.file "cockpit.c" .text .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "a_Vertex" .LC1: .string "a_TexCoord" .LC2: .string "a_Color" .LC3: .string "projection_matrix" .LC4: .string "modelview_matrix" .text .p2align 4 .globl textureShader2 .type textureShader2, @function textureShader2: .LFB22: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 1: call mcount movl $frag.2, %esi movl $vert.3, %edi call createShader movl n_shaderProgram(%rip), %edi call createProgram movl n_shaderProgram(%rip), %edi movl $.LC0, %edx xorl %esi, %esi call Location movl n_shaderProgram(%rip), %edi movl $.LC1, %edx movl $1, %esi call Location movl n_shaderProgram(%rip), %edi movl $.LC2, %edx movl $2, %esi call Location movl n_shaderProgram(%rip), %edi call linkProgram movl n_shaderProgram(%rip), %edi call bindShader movl $projection2.1, %esi movl $2983, %edi call glGetFloatv movl $modelview2.0, %esi movl $2982, %edi call glGetFloatv movl n_shaderProgram(%rip), %edi movl $projection2.1, %ecx xorl %edx, %edx movl $.LC3, %esi call Uniform4x4 movl n_shaderProgram(%rip), %edi movl $modelview2.0, %ecx movl $1, %edx movl $.LC4, %esi call Uniform4x4 movl $1, %eax popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE22: .size textureShader2, .-textureShader2 .section .rodata.str1.1 .LC5: .string "glGenBuffers" .LC6: .string "glBindBuffer" .LC7: .string "glBufferData" .LC8: .string "VBO: NOT SUPPORTED " .section .rodata.str1.8,"aMS",@progbits,1 .align 8 .LC9: .string " COULD NOT INITIALIZE THE SHADER " .text .p2align 4 .globl initCockpit .type initCockpit, @function initCockpit: .LFB23: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 pushq %rbx subq $8, %rsp .cfi_offset 3, -24 1: call mcount movl $.LC5, %edi call glXGetProcAddress movl $.LC6, %edi movq %rax, __glewGenBuffers(%rip) call glXGetProcAddress movl $.LC7, %edi movq %rax, __glewBindBuffer(%rip) call glXGetProcAddress cmpq $0, __glewGenBuffers(%rip) movq %rax, __glewBufferData(%rip) je .L4 cmpq $0, __glewBindBuffer(%rip) je .L4 testq %rax, %rax je .L4 xorl %eax, %eax call textureShader2 movl %eax, %ebx testb %al, %al je .L12 .L7: movl $1, %ebx movl $vbos2, %esi movl $4, %edi call *__glewGenBuffers(%rip) movl vbos2(%rip), %esi movl $34962, %edi call *__glewBindBuffer(%rip) movl $35044, %ecx movl $n_colors, %edx movl $32000, %esi movl $34962, %edi call *__glewBufferData(%rip) movl vbos2+4(%rip), %esi movl $34962, %edi call *__glewBindBuffer(%rip) movl $35044, %ecx movl $n_texCoords, %edx movl $16000, %esi movl $34962, %edi call *__glewBufferData(%rip) movl vbos2+8(%rip), %esi movl $34962, %edi call *__glewBindBuffer(%rip) movl $35044, %ecx movl $n_vertices, %edx movl $24000, %esi movl $34962, %edi call *__glewBufferData(%rip) movl vbos2+12(%rip), %esi movl $34963, %edi call *__glewBindBuffer(%rip) movl $35044, %ecx movl $n_indices, %edx movl $24000, %esi movl $34963, %edi call *__glewBufferData(%rip) movl %ebx, %eax movq -8(%rbp), %rbx leave .cfi_remember_state .cfi_def_cfa 7, 8 ret .p2align 4,,10 .p2align 3 .L4: .cfi_restore_state movl $.LC8, %edi call puts xorl %eax, %eax call textureShader2 movl %eax, %ebx testb %al, %al jne .L7 .L12: movl $.LC9, %edi call puts movl %ebx, %eax movq -8(%rbp), %rbx leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE23: .size initCockpit, .-initCockpit .p2align 4 .globl C_Vertex .type C_Vertex, @function C_Vertex: .LFB24: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 1: call mcount popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE24: .size C_Vertex, .-C_Vertex .p2align 4 .globl C_Color .type C_Color, @function C_Color: .LFB25: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 1: call mcount popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE25: .size C_Color, .-C_Color .p2align 4 .globl C_Textur .type C_Textur, @function C_Textur: .LFB26: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 1: call mcount popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE26: .size C_Textur, .-C_Textur .section .rodata.str1.1 .LC10: .string "r" .LC11: .string "%f %f %f %f %f %f %f %f %f" .text .p2align 4 .globl GridRaster .type GridRaster, @function GridRaster: .LFB27: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 pushq %rbx subq $8, %rsp .cfi_offset 3, -24 1: call mcount movl $.LC10, %esi call fopen movq %rax, %rbx jmp .L17 .p2align 4,,10 .p2align 3 .L18: movss fl+8(%rip), %xmm2 movss fl+12(%rip), %xmm3 movss fl+4(%rip), %xmm1 movss fl(%rip), %xmm0 call glColor4f movss fl+20(%rip), %xmm1 movss fl+16(%rip), %xmm0 call glTexCoord2f movss fl+40(%rip), %xmm2 movss fl+36(%rip), %xmm1 movss fl+32(%rip), %xmm0 call glVertex3f .L17: subq $8, %rsp movl $fl+4, %ecx movl $fl, %edx xorl %eax, %eax pushq $fl+40 movl $fl+12, %r9d movl $.LC11, %esi movq %rbx, %rdi pushq $fl+36 movl $fl+8, %r8d pushq $fl+32 pushq $fl+20 pushq $fl+16 call __isoc99_fscanf addq $48, %rsp cmpl $-1, %eax jne .L18 movq %rbx, %rdi movq -8(%rbp), %rbx leave .cfi_def_cfa 7, 8 jmp fclose .cfi_endproc .LFE27: .size GridRaster, .-GridRaster .p2align 4 .globl PolygonMatrix .type PolygonMatrix, @function PolygonMatrix: .LFB28: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 pushq %r12 pushq %rbx .cfi_offset 12, -24 .cfi_offset 3, -32 1: call mcount movl %edi, %r12d movl $1032, %edi movq %rdx, %rbx call glPolygonMode movl %r12d, %edi call glBegin movq %rbx, %rdi call GridRaster popq %rbx popq %r12 popq %rbp .cfi_def_cfa 7, 8 jmp glEnd .cfi_endproc .LFE28: .size PolygonMatrix, .-PolygonMatrix .p2align 4 .globl DrawMatrix .type DrawMatrix, @function DrawMatrix: .LFB29: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 pushq %r13 pushq %r12 pushq %rbx subq $8, %rsp .cfi_offset 13, -24 .cfi_offset 12, -32 .cfi_offset 3, -40 1: call mcount movl %ecx, %r12d movl %edx, %r13d movl %edi, %ebx movl $1032, %edi call glPolygonMode call glPushMatrix movl %r13d, %edx movl %r12d, %esi movl %ebx, %edi call glDrawArrays addq $8, %rsp popq %rbx popq %r12 popq %r13 popq %rbp .cfi_def_cfa 7, 8 jmp glPopMatrix .cfi_endproc .LFE29: .size DrawMatrix, .-DrawMatrix .p2align 4 .globl renderCockpit .type renderCockpit, @function renderCockpit: .LFB30: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 1: call mcount movl $2832, %edi call glEnable movss .LC12(%rip), %xmm0 call glLineWidth movss .LC13(%rip), %xmm0 call glPointSize movl $6912, %esi movl $1032, %edi call glPolygonMode xorl %edi, %edi call glBegin movl $pointFile, %edi call GridRaster call glEnd movl $6914, %esi movl $1032, %edi call glPolygonMode movl $4, %edi call glBegin movl $metalicFile, %edi call GridRaster call glEnd movl $6913, %esi movl $1032, %edi call glPolygonMode movl $7, %edi call glBegin movl $cockpitFile, %edi call GridRaster call glEnd movl $6914, %esi movl $1032, %edi call glPolygonMode movl $7, %edi call glBegin movl $cockpitFile, %edi call GridRaster call glEnd movss .LC14(%rip), %xmm0 call glPointSize movl $6912, %esi movl $1032, %edi call glPolygonMode movl $7, %edi call glBegin movl $rasterWhite, %edi call GridRaster call glEnd movl $6913, %esi movl $1032, %edi call glPolygonMode movl $7, %edi call glBegin movl $rasterWhite, %edi call GridRaster call glEnd movl $6914, %esi movl $1032, %edi call glPolygonMode movl $7, %edi call glBegin movl $rasterBlue, %edi call GridRaster call glEnd movl $2832, %edi call glDisable popq %rbp .cfi_def_cfa 7, 8 jmp glFlush .cfi_endproc .LFE30: .size renderCockpit, .-renderCockpit .p2align 4 .globl Cockpit .type Cockpit, @function Cockpit: .LFB31: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 1: call mcount xorl %eax, %eax call CameraLook xorl %eax, %eax call ScalePlane xorl %eax, %eax call TransPlane movl n_shaderProgram(%rip), %edi call linkProgram movl n_shaderProgram(%rip), %edi call bindShader movl $32886, %edi call glEnableClientState movl $32884, %edi call glEnableClientState movl $32885, %edi call glEnableClientState movl vbos2(%rip), %esi movl $34962, %edi call *__glewBindBuffer(%rip) movl $vcolor2, %ecx xorl %edx, %edx movl $5126, %esi movl $4, %edi call glColorPointer movl vbos2+8(%rip), %esi movl $34962, %edi call *__glewBindBuffer(%rip) movl $vcircle2, %ecx xorl %edx, %edx movl $5126, %esi movl $3, %edi call glVertexPointer movl vbos2+4(%rip), %esi movl $34962, %edi call *__glewBindBuffer(%rip) movl $tcircle2, %ecx xorl %edx, %edx movl $5126, %esi movl $2, %edi call glTexCoordPointer xorl %eax, %eax call renderCockpit movl $32885, %edi call glDisableClientState movl $32884, %edi call glDisableClientState movl $32886, %edi call glDisableClientState movl $4, %edi movl $vbos2, %esi call *__glewDeleteBuffers(%rip) movl n_shaderProgram(%rip), %edi popq %rbp .cfi_def_cfa 7, 8 jmp DeleteShader .cfi_endproc .LFE31: .size Cockpit, .-Cockpit .local modelview2.0 .comm modelview2.0,64,32 .local projection2.1 .comm projection2.1,64,32 .section .rodata .align 8 .type frag.2, @object .size frag.2, 14 frag.2: .string "GLSL/fly.frag" .align 8 .type vert.3, @object .size vert.3, 14 vert.3: .string "GLSL/fly.vert" .globl rasterBlue .align 16 .type rasterBlue, @object .size rasterBlue, 20 rasterBlue: .string "DATA/raster-blue.fs" .globl rasterWhite .align 16 .type rasterWhite, @object .size rasterWhite, 21 rasterWhite: .string "DATA/raster-white.fs" .globl cockpitFile .align 16 .type cockpitFile, @object .size cockpitFile, 16 cockpitFile: .string "DATA/cockpit.fs" .globl metalicFile .align 16 .type metalicFile, @object .size metalicFile, 16 metalicFile: .string "DATA/metalic.fs" .globl pointFile .align 8 .type pointFile, @object .size pointFile, 15 pointFile: .string "DATA/points.fs" .globl n_shaderProgram .bss .align 4 .type n_shaderProgram, @object .size n_shaderProgram, 4 n_shaderProgram: .zero 4 .globl n_indices .align 32 .type n_indices, @object .size n_indices, 8000 n_indices: .zero 8000 .globl n_vertices .align 32 .type n_vertices, @object .size n_vertices, 8000 n_vertices: .zero 8000 .globl n_texCoords .align 32 .type n_texCoords, @object .size n_texCoords, 8000 n_texCoords: .zero 8000 .globl n_colors .align 32 .type n_colors, @object .size n_colors, 8000 n_colors: .zero 8000 .globl vcircle2 .align 32 .type vcircle2, @object .size vcircle2, 8000 vcircle2: .zero 8000 .globl tcircle2 .align 32 .type tcircle2, @object .size tcircle2, 8000 tcircle2: .zero 8000 .globl vcolor2 .align 32 .type vcolor2, @object .size vcolor2, 8000 vcolor2: .zero 8000 .globl fl .align 32 .type fl, @object .size fl, 48 fl: .zero 48 .globl n3 .align 16 .type n3, @object .size n3, 16 n3: .zero 16 .globl c3 .align 16 .type c3, @object .size c3, 16 c3: .zero 16 .globl n2 .align 16 .type n2, @object .size n2, 16 n2: .zero 16 .globl c2 .align 16 .type c2, @object .size c2, 16 c2: .zero 16 .globl n1 .align 16 .type n1, @object .size n1, 16 n1: .zero 16 .globl c1 .align 16 .type c1, @object .size c1, 16 c1: .zero 16 .globl vbos2 .align 16 .type vbos2, @object .size vbos2, 16 vbos2: .zero 16 .section .rodata.cst4,"aM",@progbits,4 .align 4 .LC12: .long 1065353216 .align 4 .LC13: .long 1097859072 .align 4 .LC14: .long 1084227584 .ident "GCC: (GNU) 12.2.1 20220819 (Red Hat 12.2.1-2)" .section .note.GNU-stack,"",@progbits