.file "opengl.c" .text .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "PIXEL/forest.png" .LC1: .string "PIXEL/desert.png" .LC2: .string "PIXEL/sea.png" .LC3: .string "PIXEL/cloud.png" .LC4: .string " LOADING TEXTURES 2: " .text .p2align 4 .globl loadTexture .type loadTexture, @function loadTexture: .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 $bla, %esi movl $.LC0, %edi call read_png movl $des, %esi movl $.LC1, %edi call read_png movl $sea, %esi movl $.LC2, %edi call read_png movl $.LC3, %edi movl $sky, %esi call read_png movl $.LC4, %edi popq %rbp .cfi_def_cfa 7, 8 jmp puts .cfi_endproc .LFE22: .size loadTexture, .-loadTexture .section .rodata.str1.1 .LC5: .string " GLEW ERROR: %s \n" .LC6: .string " GLEW VERSION: %s \n" .LC7: .string " OPENGL SUPPORTED: " .LC8: .string " SHADER VERSION: %s \n" .LC9: .string " OPENGL VERSION: %s \n" .text .p2align 4 .globl glewStatus .type glewStatus, @function glewStatus: .LFB23: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 1: call mcount call glewInit testl %eax, %eax jne .L9 .L4: movl $1, %edi call glewGetString movq stdout(%rip), %rdi movl $.LC6, %esi movq %rax, %rdx xorl %eax, %eax call fprintf cmpb $0, __GLEW_VERSION_1_3(%rip) jne .L10 .L5: movl $35724, %edi call glGetString movl $.LC8, %edi movq %rax, %rsi xorl %eax, %eax call printf movl $7938, %edi call glGetString movl $.LC9, %edi popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 movq %rax, %rsi xorl %eax, %eax jmp printf .p2align 4,,10 .p2align 3 .L9: .cfi_restore_state movl %eax, %edi call glewGetErrorString movq stderr(%rip), %rdi movl $.LC5, %esi movq %rax, %rdx xorl %eax, %eax call fprintf jmp .L4 .p2align 4,,10 .p2align 3 .L10: movl $.LC7, %edi call puts jmp .L5 .cfi_endproc .LFE23: .size glewStatus, .-glewStatus .section .rodata.str1.1 .LC10: .string "a_Vertex" .LC11: .string "a_TexCoord" .LC12: .string "a_Color" .LC13: .string "c_Vertex" .LC14: .string "c_TexCoord" .LC15: .string "c_Normal" .LC16: .string "b_Vertex" .LC17: .string "b_TexCoord" .LC18: .string "projection_matrix" .LC19: .string "modelview_matrix" .text .p2align 4 .globl textureShader3 .type textureShader3, @function textureShader3: .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 movl $fly_frag.6, %esi movl $fly_vert.7, %edi call createShader movl m_shaderProgram(%rip), %edi call createProgram movl m_shaderProgram(%rip), %edi movl $.LC10, %edx xorl %esi, %esi call Location movl m_shaderProgram(%rip), %edi movl $.LC11, %edx movl $1, %esi call Location movl m_shaderProgram(%rip), %edi movl $.LC12, %edx movl $2, %esi call Location movl $cube_frag.4, %esi movl $cube_vert.5, %edi call createShader movl m_cubeProgram(%rip), %edi call createProgram movl m_cubeProgram(%rip), %edi movl $.LC13, %edx xorl %esi, %esi call Location movl m_cubeProgram(%rip), %edi movl $.LC14, %edx movl $1, %esi call Location movl m_cubeProgram(%rip), %edi movl $.LC15, %edx movl $2, %esi call Location movl m_cubeProgram(%rip), %edi call linkProgram movl $basic_frag.2, %esi movl $basic_vert.3, %edi call createShader movl m_basicProgram(%rip), %edi call createProgram movl m_basicProgram(%rip), %edi movl $.LC16, %edx xorl %esi, %esi call Location movl m_basicProgram(%rip), %edi movl $.LC17, %edx movl $1, %esi call Location movl m_basicProgram(%rip), %edi call linkProgram movl m_basicProgram(%rip), %edi call bindShader movl $projection3.1, %esi movl $2983, %edi call glGetFloatv movl $modelview3.0, %esi movl $2982, %edi call glGetFloatv movl m_shaderProgram(%rip), %edi movl $projection3.1, %ecx xorl %edx, %edx movl $.LC18, %esi call Uniform4x4 movl m_shaderProgram(%rip), %edi movl $modelview3.0, %ecx movl $1, %edx movl $.LC19, %esi call Uniform4x4 movl $1, %eax popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE24: .size textureShader3, .-textureShader3 .section .rodata.str1.1 .LC20: .string "glGenBuffers" .LC21: .string "glBindBuffer" .LC22: .string "glBufferData" .LC23: .string "VBO: NOT SUPPORTED " .section .rodata.str1.8,"aMS",@progbits,1 .align 8 .LC31: .string " COULD NOT INITIALIZE THE BOX " .align 8 .LC32: .string " COULD NOT INITIALIZE THE VIEW " .align 8 .LC33: .string " COULD NOT INITIALIZE THE SHADER " .text .p2align 4 .globl initGrid .type initGrid, @function initGrid: .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 movl $.LC20, %edi call glXGetProcAddress movl $.LC21, %edi movq %rax, __glewGenBuffers(%rip) call glXGetProcAddress movl $.LC22, %edi movq %rax, __glewBindBuffer(%rip) call glXGetProcAddress cmpq $0, __glewGenBuffers(%rip) movq %rax, __glewBufferData(%rip) je .L13 cmpq $0, __glewBindBuffer(%rip) je .L13 testq %rax, %rax je .L13 .L14: movl $3042, %edi call glEnable movl $4608, %edi call glEnable movl $16391, %edi call glEnable movl $2896, %edi call glEnable movl $2929, %edi call glEnable movl $3089, %edi call glEnable movl $2903, %edi call glEnable movl $771, %esi movl $770, %edi call glBlendFunc cmpb $0, Fnight(%rip) jne .L27 cmpb $0, Fday(%rip) jne .L28 cmpb $0, Fblack(%rip) jne .L29 .L17: movsd .LC30(%rip), %xmm0 call glClearDepth movl $3042, %edi call glEnable movl $2929, %edi call glEnable xorl %eax, %eax call initBox testb %al, %al je .L30 xorl %eax, %eax call initCockpit testb %al, %al je .L31 xorl %eax, %eax call textureShader3 testb %al, %al je .L32 movl $vbos3, %esi movl $4, %edi call *__glewGenBuffers(%rip) movl vbos3(%rip), %esi movl $34962, %edi call *__glewBindBuffer(%rip) movl $35044, %ecx movl $m_colors, %edx movl $48000, %esi movl $34962, %edi call *__glewBufferData(%rip) movl vbos3+4(%rip), %esi movl $34962, %edi call *__glewBindBuffer(%rip) movl $35044, %ecx movl $m_texCoords, %edx movl $24000, %esi movl $34962, %edi call *__glewBufferData(%rip) movl vbos3+8(%rip), %esi movl $34962, %edi call *__glewBindBuffer(%rip) movl $35044, %ecx movl $m_vertices, %edx movl $36000, %esi movl $34962, %edi call *__glewBufferData(%rip) movl vbos3+12(%rip), %esi movl $34963, %edi call *__glewBindBuffer(%rip) movl $35044, %ecx movl $m_indices, %edx movl $36000, %esi movl $34963, %edi call *__glewBufferData(%rip) movl $1, %eax popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 ret .p2align 4,,10 .p2align 3 .L13: .cfi_restore_state movl $.LC23, %edi call puts jmp .L14 .p2align 4,,10 .p2align 3 .L28: movss .LC24(%rip), %xmm3 movss .LC28(%rip), %xmm2 movss .LC25(%rip), %xmm0 movaps %xmm3, %xmm1 call glClearColor movl $2896, %edi call glDisable jmp .L17 .p2align 4,,10 .p2align 3 .L30: movl $.LC31, %edi call puts xorl %eax, %eax .L33: popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 ret .p2align 4,,10 .p2align 3 .L27: .cfi_restore_state movss .LC24(%rip), %xmm3 movss .LC25(%rip), %xmm2 movss .LC26(%rip), %xmm1 movss .LC27(%rip), %xmm0 call glClearColor movl $16391, %edi call glDisable jmp .L17 .p2align 4,,10 .p2align 3 .L31: movl $.LC32, %edi call puts xorl %eax, %eax jmp .L33 .p2align 4,,10 .p2align 3 .L29: movss .LC29(%rip), %xmm2 movss .LC24(%rip), %xmm3 movaps %xmm2, %xmm1 movaps %xmm2, %xmm0 call glClearColor movl $2896, %edi call glDisable jmp .L17 .p2align 4,,10 .p2align 3 .L32: movl $.LC33, %edi call puts xorl %eax, %eax jmp .L33 .cfi_endproc .LFE25: .size initGrid, .-initGrid .p2align 4 .globl F_Vertex .type F_Vertex, @function F_Vertex: .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 F_Vertex, .-F_Vertex .p2align 4 .globl F_Color .type F_Color, @function F_Color: .LFB27: .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 .LFE27: .size F_Color, .-F_Color .p2align 4 .globl F_Textur .type F_Textur, @function F_Textur: .LFB28: .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 .LFE28: .size F_Textur, .-F_Textur .section .rodata.str1.1 .LC34: .string "r" .section .rodata.str1.8 .align 8 .LC35: .string "%s %f %f %f %f %f %f %f %f %f" .text .p2align 4 .globl GridRender .type GridRender, @function GridRender: .LFB29: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 pushq %rbx subq $24, %rsp .cfi_offset 3, -24 1: call mcount movl $.LC34, %esi call fopen movq %rax, %rbx jmp .L38 .p2align 4,,10 .p2align 3 .L39: movss gl+8(%rip), %xmm2 movss gl+12(%rip), %xmm3 movss gl+4(%rip), %xmm1 movss gl(%rip), %xmm0 call glColor4f movss gl+20(%rip), %xmm1 movss gl+16(%rip), %xmm0 call glTexCoord2f movss gl+40(%rip), %xmm2 movss gl+36(%rip), %xmm1 movss gl+32(%rip), %xmm0 call glVertex3f .L38: pushq $gl+40 movl $gl+8, %r9d movq %rbx, %rdi xorl %eax, %eax pushq $gl+36 movl $gl+4, %r8d movl $gl, %ecx leaq -17(%rbp), %rdx pushq $gl+32 movl $.LC35, %esi pushq $gl+20 pushq $gl+16 pushq $gl+12 call __isoc99_fscanf addq $48, %rsp cmpl $-1, %eax jne .L39 movq %rbx, %rdi call fclose movq -8(%rbp), %rbx leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE29: .size GridRender, .-GridRender .p2align 4 .globl PolygonCircle .type PolygonCircle, @function PolygonCircle: .LFB30: .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 GridRender popq %rbx popq %r12 popq %rbp .cfi_def_cfa 7, 8 jmp glEnd .cfi_endproc .LFE30: .size PolygonCircle, .-PolygonCircle .p2align 4 .globl DrawCircle .type DrawCircle, @function DrawCircle: .LFB31: .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 .LFE31: .size DrawCircle, .-DrawCircle .p2align 4 .globl MipmapsImage .type MipmapsImage, @function MipmapsImage: .LFB32: .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 %esi, %ebx movl $texID, %esi movl %ebx, %edi call glGenTextures movslq %ebx, %rax movl $3553, %edi movl texID(,%rax,4), %esi call glBindTexture movl $3553, %edi call glEnable movl $3553, %edi call *__glewGenerateMipmap(%rip) movl $9729, %edx movl $10240, %esi movl $3553, %edi call glTexParameteri movl $9986, %edx movl $10241, %esi movl $3553, %edi call glTexParameteri movl $m_cubeMapTexID, %esi movl $1, %edi call glGenTextures movl m_cubeMapTexID(%rip), %esi movl $34067, %edi call glBindTexture movl $9729, %edx movl $10241, %esi movl $34067, %edi call glTexParameteri movl $33071, %edx movl $10242, %esi movl $34067, %edi call glTexParameteri movl $33071, %edx movl $10243, %esi movl $34067, %edi call glTexParameteri movl $33071, %edx movl $32882, %esi movl $34067, %edi call glTexParameteri movl $3553, %edi call glDisable movl %ebx, %edi movl $texID, %esi call glDeleteTextures movq -8(%rbp), %rbx leave .cfi_def_cfa 7, 8 jmp glFlush .cfi_endproc .LFE32: .size MipmapsImage, .-MipmapsImage .p2align 4 .globl SubImage .type SubImage, @function SubImage: .LFB33: .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 $3553, %edi movq %rdx, %rbx movq %rsi, %r12 call glEnable movl $10242, %esi movl $3553, %edi movss .LC36(%rip), %xmm0 call glTexParameterf movl $10243, %esi movl $3553, %edi movss .LC36(%rip), %xmm0 call glTexParameterf movl $10240, %esi movl $3553, %edi movss .LC37(%rip), %xmm0 call glTexParameterf movl $10241, %esi movl $3553, %edi movss .LC37(%rip), %xmm0 call glTexParameterf subq $8, %rsp xorl %r9d, %r9d xorl %esi, %esi pushq %rbx movl $128, %ecx movl $32856, %edx movl $3553, %edi pushq $5121 movl $128, %r8d pushq $32993 call glTexImage2D addq $24, %rsp xorl %ecx, %ecx xorl %edx, %edx pushq %rbx movl $128, %r9d movl $128, %r8d xorl %esi, %esi pushq $5121 movl $3553, %edi pushq $32993 call glTexSubImage2D addq $24, %rsp xorl %ecx, %ecx movl $2, %edx pushq %rbx movl $128, %r9d movl $128, %r8d xorl %esi, %esi pushq $5121 movl $3553, %edi pushq $32993 call glTexSubImage2D addq $24, %rsp movl $2, %ecx xorl %edx, %edx pushq %rbx movl $128, %r9d movl $128, %r8d xorl %esi, %esi pushq $5121 movl $3553, %edi pushq $32993 call glTexSubImage2D addq $24, %rsp movl $2, %ecx xorl %esi, %esi pushq %rbx movl $128, %r9d movl $128, %r8d movl $2, %edx pushq $5121 movl $3553, %edi pushq $32993 call glTexSubImage2D addq $32, %rsp movl $6914, %esi movl $1032, %edi call glPolygonMode movl $4, %edi call glBegin movq %r12, %rdi call GridRender call glEnd movl $3553, %edi call glDisable leaq -16(%rbp), %rsp popq %rbx popq %r12 popq %rbp .cfi_def_cfa 7, 8 jmp glFlush .cfi_endproc .LFE33: .size SubImage, .-SubImage .p2align 4 .globl pointSpeed .type pointSpeed, @function pointSpeed: .LFB34: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 1: call mcount mulss .LC38(%rip), %xmm0 addss angle3(%rip), %xmm0 comiss .LC39(%rip), %xmm0 jbe .L45 subss .LC39(%rip), %xmm0 .L45: cmpb $0, code03(%rip) movss %xmm0, angle3(%rip) movss code2(%rip), %xmm4 movss code1(%rip), %xmm0 je .L47 addss %xmm1, %xmm0 subss %xmm1, %xmm4 .L48: comiss %xmm2, %xmm0 movss %xmm4, code2(%rip) movss %xmm0, code1(%rip) jb .L56 movb $0, code03(%rip) .L44: popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 ret .p2align 4,,10 .p2align 3 .L56: .cfi_restore_state comiss %xmm0, %xmm3 jb .L44 movb $1, code03(%rip) popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 ret .p2align 4,,10 .p2align 3 .L47: .cfi_restore_state subss %xmm1, %xmm0 addss %xmm1, %xmm4 jmp .L48 .cfi_endproc .LFE34: .size pointSpeed, .-pointSpeed .p2align 4 .globl pointGrid .type pointGrid, @function pointGrid: .LFB35: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 1: call mcount mulss .LC38(%rip), %xmm0 addss angle3(%rip), %xmm0 comiss .LC39(%rip), %xmm0 jbe .L58 subss .LC39(%rip), %xmm0 .L58: cmpb $0, code03(%rip) movss %xmm0, angle3(%rip) movss code2(%rip), %xmm1 movss code1(%rip), %xmm0 movss .LC26(%rip), %xmm2 je .L60 addss %xmm2, %xmm0 subss %xmm2, %xmm1 .L61: comiss .LC40(%rip), %xmm0 movss %xmm1, code2(%rip) movss %xmm0, code1(%rip) jb .L69 movb $0, code03(%rip) .L57: popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 ret .p2align 4,,10 .p2align 3 .L69: .cfi_restore_state movss .LC41(%rip), %xmm1 comiss %xmm0, %xmm1 jb .L57 movb $1, code03(%rip) popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 ret .p2align 4,,10 .p2align 3 .L60: .cfi_restore_state subss %xmm2, %xmm0 addss %xmm2, %xmm1 jmp .L61 .cfi_endproc .LFE35: .size pointGrid, .-pointGrid .p2align 4 .globl Objects .type Objects, @function Objects: .LFB36: .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 cmpb $0, Fgrid(%rip) movl %edi, %ebx jne .L74 .L71: movl $texID, %esi movl %ebx, %edi call glGenTextures movslq %ebx, %rax movl $35866, %edi movl texID(,%rax,4), %esi call glBindTexture cmpb $0, Ftexture(%rip) jne .L75 .L72: cmpb $0, Fcloud(%rip) jne .L76 .L73: movl %ebx, %edi movl $texID, %esi call glDeleteTextures movq -8(%rbp), %rbx leave .cfi_remember_state .cfi_def_cfa 7, 8 jmp glFlush .p2align 4,,10 .p2align 3 .L74: .cfi_restore_state movl $2881, %edi call glEnable movl $2832, %edi call glEnable movl $2848, %edi call glEnable movss .LC42(%rip), %xmm0 call glLineWidth movss .LC43(%rip), %xmm0 call glPointSize movl $6912, %esi movl $1032, %edi call glPolygonMode xorl %edi, %edi call glBegin movl $gridFileO, %edi call GridRender call glEnd movl $6913, %esi movl $1032, %edi call glPolygonMode movl $4, %edi call glBegin movl $gridFileT, %edi call GridRender call glEnd movl $6914, %esi movl $1032, %edi call glPolygonMode movl $4, %edi call glBegin movl $gridFileL, %edi call GridRender call glEnd movl $6913, %esi movl $1032, %edi call glPolygonMode movl $1, %edi call glBegin movl $gridFileU, %edi call GridRender call glEnd movl $2848, %edi call glDisable movl $2832, %edi call glDisable movl $2881, %edi call glDisable call glFlush jmp .L71 .p2align 4,,10 .p2align 3 .L76: movq sky(%rip), %rdx movl $cloudFile, %esi movl $900, %edi call SubImage jmp .L73 .p2align 4,,10 .p2align 3 .L75: movq bla(%rip), %rdx movl $forestFile, %esi movl $288, %edi call SubImage movl $desertFile, %esi movl $672, %edi movq des(%rip), %rdx call SubImage movl $seaoceFile, %esi movl $864, %edi movq sea(%rip), %rdx call SubImage jmp .L72 .cfi_endproc .LFE36: .size Objects, .-Objects .p2align 4 .globl renderObjects .type renderObjects, @function renderObjects: .LFB37: .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 %edi, %ebx movl $32886, %edi call glEnableClientState movl $32884, %edi call glEnableClientState movl $32888, %edi call glEnableClientState movl vbos3(%rip), %esi movl $34962, %edi call *__glewBindBuffer(%rip) movl $vcolor3, %ecx xorl %edx, %edx movl $5126, %esi movl $4, %edi call glColorPointer movl vbos3+8(%rip), %esi movl $34962, %edi call *__glewBindBuffer(%rip) movl $vcircle3, %ecx xorl %edx, %edx movl $5126, %esi movl $3, %edi call glVertexPointer movl vbos3+4(%rip), %esi movl $34962, %edi call *__glewBindBuffer(%rip) movl $tcircle3, %ecx xorl %edx, %edx movl $5126, %esi movl $2, %edi call glTexCoordPointer movl %ebx, %edi call Objects movl $32888, %edi call glDisableClientState movl $32884, %edi call glDisableClientState movq -8(%rbp), %rbx movl $32886, %edi leave .cfi_def_cfa 7, 8 jmp glDisableClientState .cfi_endproc .LFE37: .size renderObjects, .-renderObjects .section .rodata.str1.1 .LC45: .string "camera_position" .LC46: .string "texture2" .LC47: .string "texture0" .text .p2align 4 .globl Landscape .type Landscape, @function Landscape: .LFB38: .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 $3089, %edi call glDisable movl $17664, %edi call glClear xorl %eax, %eax call CameraLook xorl %eax, %eax call PlaneView movl $2960, %edi call glEnable xorl %edi, %edi call glDepthMask movl $7681, %edx movl $7681, %esi movl $7681, %edi call glStencilOp movl $-1, %edx movl $1, %esi movl $519, %edi call glStencilFunc xorl %eax, %eax call initBox pxor %xmm2, %xmm2 movl m_basicProgram(%rip), %edi movaps %xmm2, %xmm1 movaps %xmm2, %xmm0 call render movl $1, %edi call glDepthMask movl m_cubeProgram(%rip), %edi call bindShader pxor %xmm2, %xmm2 movl m_cubeProgram(%rip), %edi movl $.LC45, %esi movaps %xmm2, %xmm0 movaps %xmm2, %xmm1 call sendUniform3f movl m_cubeProgram(%rip), %edi pxor %xmm0, %xmm0 movl $.LC46, %esi call Uniform movl m_cubeMapTexID(%rip), %esi movl $34067, %edi call glBindTexture movl $-1, %edx movl $1, %esi movl $514, %edi call glStencilFunc movl $7680, %edx movl $7680, %esi movl $7680, %edi call glStencilOp cmpb $0, Fpurple(%rip) jne .L82 .L79: movl PIX(%rip), %edi xorl %ebx, %ebx call renderObjects movl m_shaderProgram(%rip), %edi call linkProgram movl m_shaderProgram(%rip), %edi call bindShader movl m_shaderProgram(%rip), %edi pxor %xmm0, %xmm0 movl $.LC47, %esi call Uniform movl $2960, %edi call glDisable movl PIX(%rip), %edi call renderObjects movl $256, %edi call glClear call glLoadIdentity movl $256, %edi call beginCubeMapRendering .p2align 4,,10 .p2align 3 .L80: movl %ebx, %edi call beginCubeMapFace xorl %eax, %eax call initBox pxor %xmm2, %xmm2 movl m_basicProgram(%rip), %edi movaps %xmm2, %xmm1 movaps %xmm2, %xmm0 call render pxor %xmm2, %xmm2 movss .LC48(%rip), %xmm1 movaps %xmm2, %xmm0 call glTranslatef movl PIX(%rip), %edi call renderObjects movl %ebx, %edi movl $256, %esi addl $1, %ebx call finishCubeMapFace cmpl $6, %ebx jne .L80 xorl %eax, %eax call endCubeMapRendering movl $vbos3, %esi movl $4, %edi call *__glewDeleteBuffers(%rip) movl m_shaderProgram(%rip), %edi call DeleteShader movl m_cubeProgram(%rip), %edi call DeleteShader movl m_basicProgram(%rip), %edi call DeleteShader movl $2903, %edi call glDisable movl $2896, %edi call glDisable movq -8(%rbp), %rbx movl $4608, %edi leave .cfi_remember_state .cfi_def_cfa 7, 8 jmp glDisable .p2align 4,,10 .p2align 3 .L82: .cfi_restore_state movl $1, %esi movl $775, %edi call glBlendFunc jmp .L79 .cfi_endproc .LFE38: .size Landscape, .-Landscape .p2align 4 .globl CubeMap .type CubeMap, @function CubeMap: .LFB39: .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 $256, %edi xorl %ebx, %ebx call glClear call glLoadIdentity movl $256, %edi call beginCubeMapRendering .p2align 4,,10 .p2align 3 .L84: movl %ebx, %edi call beginCubeMapFace xorl %eax, %eax call initBox pxor %xmm2, %xmm2 movl m_basicProgram(%rip), %edi movaps %xmm2, %xmm1 movaps %xmm2, %xmm0 call render pxor %xmm2, %xmm2 movss .LC48(%rip), %xmm1 movaps %xmm2, %xmm0 call glTranslatef movl PIX(%rip), %edi call renderObjects movl %ebx, %edi movl $256, %esi addl $1, %ebx call finishCubeMapFace cmpl $6, %ebx jne .L84 movq -8(%rbp), %rbx xorl %eax, %eax leave .cfi_def_cfa 7, 8 jmp endCubeMapRendering .cfi_endproc .LFE39: .size CubeMap, .-CubeMap .p2align 4 .globl process_event1 .type process_event1, @function process_event1: .LFB40: .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 %esi, %esi leaq 16(%rbp), %rdi call XLookupKeysym cmpq $65307, %rax je .L87 leaq -65474(%rax), %rdx cmpq $5, %rdx ja .L86 subq $65475, %rax cmpq $4, %rax ja .L89 jmp *.L91(,%rax,8) .section .rodata .align 8 .align 4 .L91: .quad .L95 .quad .L94 .quad .L93 .quad .L92 .quad .L90 .text .p2align 4,,10 .p2align 3 .L87: xorl %eax, %eax call closeWin .L86: popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 ret .p2align 4,,10 .p2align 3 .L93: .cfi_restore_state movb $0, Fday(%rip) popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 movb $1, Fnight(%rip) movb $0, Fblack(%rip) movb $0, Fgrid(%rip) movb $1, Ftexture(%rip) movb $0, Fcloud(%rip) ret .p2align 4,,10 .p2align 3 .L90: .cfi_restore_state movb $0, Fpurple(%rip) popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 ret .p2align 4,,10 .p2align 3 .L92: .cfi_restore_state movb $1, Fpurple(%rip) popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 ret .p2align 4,,10 .p2align 3 .L95: .cfi_restore_state movb $1, Fday(%rip) popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 movb $0, Fnight(%rip) movb $0, Fblack(%rip) movb $0, Fgrid(%rip) movb $1, Ftexture(%rip) movb $0, Fcloud(%rip) ret .p2align 4,,10 .p2align 3 .L94: .cfi_restore_state movb $1, Fday(%rip) popq %rbp .cfi_remember_state .cfi_def_cfa 7, 8 movb $0, Fnight(%rip) movb $0, Fblack(%rip) movb $0, Fgrid(%rip) movb $1, Ftexture(%rip) movb $1, Fcloud(%rip) ret .p2align 4,,10 .p2align 3 .L89: .cfi_restore_state movb $0, Fday(%rip) popq %rbp .cfi_def_cfa 7, 8 movb $0, Fnight(%rip) movb $1, Fblack(%rip) movb $1, Fgrid(%rip) movb $0, Ftexture(%rip) movb $0, Fcloud(%rip) ret .cfi_endproc .LFE40: .size process_event1, .-process_event1 .local modelview3.0 .comm modelview3.0,64,32 .local projection3.1 .comm projection3.1,64,32 .section .rodata .align 16 .type basic_frag.2, @object .size basic_frag.2, 16 basic_frag.2: .string "GLSL/basic.frag" .align 16 .type basic_vert.3, @object .size basic_vert.3, 16 basic_vert.3: .string "GLSL/basic.vert" .align 8 .type cube_frag.4, @object .size cube_frag.4, 15 cube_frag.4: .string "GLSL/cube.frag" .align 8 .type cube_vert.5, @object .size cube_vert.5, 15 cube_vert.5: .string "GLSL/cube.vert" .align 8 .type fly_frag.6, @object .size fly_frag.6, 14 fly_frag.6: .string "GLSL/fly.frag" .align 8 .type fly_vert.7, @object .size fly_vert.7, 14 fly_vert.7: .string "GLSL/fly.vert" .globl sky .bss .align 8 .type sky, @object .size sky, 8 sky: .zero 8 .globl sea .align 8 .type sea, @object .size sea, 8 sea: .zero 8 .globl des .align 8 .type des, @object .size des, 8 des: .zero 8 .globl bla .align 8 .type bla, @object .size bla, 8 bla: .zero 8 .globl cloudFile .section .rodata .align 8 .type cloudFile, @object .size cloudFile, 14 cloudFile: .string "DATA/cloud.fs" .globl seaoceFile .align 8 .type seaoceFile, @object .size seaoceFile, 15 seaoceFile: .string "DATA/seaoce.fs" .globl desertFile .align 8 .type desertFile, @object .size desertFile, 15 desertFile: .string "DATA/desert.fs" .globl forestFile .align 8 .type forestFile, @object .size forestFile, 15 forestFile: .string "DATA/forest.fs" .globl gridFileU .align 8 .type gridFileU, @object .size gridFileU, 14 gridFileU: .string "DATA/gridU.fs" .globl gridFileL .align 8 .type gridFileL, @object .size gridFileL, 14 gridFileL: .string "DATA/gridL.fs" .globl gridFileT .align 8 .type gridFileT, @object .size gridFileT, 14 gridFileT: .string "DATA/gridT.fs" .globl gridFileO .align 8 .type gridFileO, @object .size gridFileO, 14 gridFileO: .string "DATA/gridO.fs" .globl m_cubeProgram .bss .align 4 .type m_cubeProgram, @object .size m_cubeProgram, 4 m_cubeProgram: .zero 4 .globl m_basicProgram .align 4 .type m_basicProgram, @object .size m_basicProgram, 4 m_basicProgram: .zero 4 .globl m_shaderProgram .align 4 .type m_shaderProgram, @object .size m_shaderProgram, 4 m_shaderProgram: .zero 4 .globl m_indices .align 32 .type m_indices, @object .size m_indices, 12000 m_indices: .zero 12000 .globl m_vertices .align 32 .type m_vertices, @object .size m_vertices, 12000 m_vertices: .zero 12000 .globl m_texCoords .align 32 .type m_texCoords, @object .size m_texCoords, 12000 m_texCoords: .zero 12000 .globl m_colors .align 32 .type m_colors, @object .size m_colors, 12000 m_colors: .zero 12000 .globl vcircle3 .align 32 .type vcircle3, @object .size vcircle3, 12000 vcircle3: .zero 12000 .globl tcircle3 .align 32 .type tcircle3, @object .size tcircle3, 12000 tcircle3: .zero 12000 .globl vcolor3 .align 32 .type vcolor3, @object .size vcolor3, 12000 vcolor3: .zero 12000 .globl Fpurple .type Fpurple, @object .size Fpurple, 1 Fpurple: .zero 1 .globl Fcloud .type Fcloud, @object .size Fcloud, 1 Fcloud: .zero 1 .globl Ftexture .type Ftexture, @object .size Ftexture, 1 Ftexture: .zero 1 .globl Fgrid .data .type Fgrid, @object .size Fgrid, 1 Fgrid: .byte 1 .globl Fblack .type Fblack, @object .size Fblack, 1 Fblack: .byte 1 .globl Fnight .bss .type Fnight, @object .size Fnight, 1 Fnight: .zero 1 .globl Fday .type Fday, @object .size Fday, 1 Fday: .zero 1 .globl m_cubeMapTexID .align 4 .type m_cubeMapTexID, @object .size m_cubeMapTexID, 4 m_cubeMapTexID: .zero 4 .globl texID .align 32 .type texID, @object .size texID, 64 texID: .zero 64 .globl PIX .align 4 .type PIX, @object .size PIX, 4 PIX: .zero 4 .globl angle3 .align 4 .type angle3, @object .size angle3, 4 angle3: .zero 4 .globl code2 .align 4 .type code2, @object .size code2, 4 code2: .zero 4 .globl code1 .align 4 .type code1, @object .size code1, 4 code1: .zero 4 .globl code03 .type code03, @object .size code03, 1 code03: .zero 1 .globl gl .align 32 .type gl, @object .size gl, 48 gl: .zero 48 .globl m3 .align 16 .type m3, @object .size m3, 16 m3: .zero 16 .globl f3 .align 16 .type f3, @object .size f3, 16 f3: .zero 16 .globl m2 .align 16 .type m2, @object .size m2, 16 m2: .zero 16 .globl f2 .align 16 .type f2, @object .size f2, 16 f2: .zero 16 .globl m1 .align 16 .type m1, @object .size m1, 16 m1: .zero 16 .globl f1 .align 16 .type f1, @object .size f1, 16 f1: .zero 16 .globl vbos3 .align 16 .type vbos3, @object .size vbos3, 16 vbos3: .zero 16 .globl __glewBufferData .align 8 .type __glewBufferData, @object .size __glewBufferData, 8 __glewBufferData: .zero 8 .globl __glewBindBuffer .align 8 .type __glewBindBuffer, @object .size __glewBindBuffer, 8 __glewBindBuffer: .zero 8 .globl __glewGenBuffers .align 8 .type __glewGenBuffers, @object .size __glewGenBuffers, 8 __glewGenBuffers: .zero 8 .section .rodata.cst4,"aM",@progbits,4 .align 4 .LC24: .long 1056964608 .align 4 .LC25: .long 1050253722 .align 4 .LC26: .long 1045220557 .align 4 .LC27: .long 1036831949 .align 4 .LC28: .long 1060320051 .align 4 .LC29: .long 1008981770 .section .rodata.cst8,"aM",@progbits,8 .align 8 .LC30: .long 0 .long 1072693248 .section .rodata.cst4 .align 4 .LC36: .long 1191407616 .align 4 .LC37: .long 1175979008 .align 4 .LC38: .long 1103626240 .align 4 .LC39: .long 1135869952 .align 4 .LC40: .long 1119092736 .align 4 .LC41: .long -1028390912 .align 4 .LC42: .long 1077936128 .align 4 .LC43: .long 1088421888 .align 4 .LC48: .long 1073741824 .ident "GCC: (GNU) 12.2.1 20220819 (Red Hat 12.2.1-2)" .section .note.GNU-stack,"",@progbits