	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movl	$0, -52(%rbp)
	xorl	%eax, %eax
	callq	_glfwInit
	testl	%eax, %eax
	je	LBB0_21
## %bb.1:
	leaq	L_.str.1(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_2
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_glfwGetPrimaryMonitor
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$102, %eax
	je	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$104, %eax
	jne	LBB0_2
## %bb.5:
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_6
LBB0_7:
	testq	%r14, %r14
	jne	LBB0_9
## %bb.8:
	movl	$640, -48(%rbp)                 ## imm = 0x280
	movl	$480, -44(%rbp)                 ## imm = 0x1E0
	leaq	L_.str.2(%rip), %rdx
	movl	$640, %edi                      ## imm = 0x280
	movl	$480, %esi                      ## imm = 0x1E0
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_glfwCreateWindow
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
	jmp	LBB0_12
LBB0_9:
	movq	%r14, %rdi
	callq	_glfwGetVideoMode
	movq	%rax, %rbx
	movq	_GLFW_RED_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%rbx), %esi
	callq	_glfwWindowHint
	movq	_GLFW_GREEN_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_glfwWindowHint
	movq	_GLFW_BLUE_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	_glfwWindowHint
	movq	_GLFW_REFRESH_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_glfwWindowHint
	movl	(%rbx), %edi
	movl	%edi, -48(%rbp)
	movl	4(%rbx), %esi
	movl	%esi, -44(%rbp)
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_glfwCreateWindow
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_15
LBB0_11:
	movq	%rax, %rbx
	movq	_GLFW_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GLFW_CURSOR_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_glfwSetInputMode
LBB0_12:
	movq	%rbx, %rdi
	callq	_glfwMakeContextCurrent
	movq	_glfwGetProcAddress@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gladLoadGL
	movl	$1, %edi
	callq	_glfwSwapInterval
	movq	_resize_callback@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_glfwSetFramebufferSizeCallback
	movq	_key_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_glfwSetKeyCallback
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_glfwGetFramebufferSize
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_resize_callback
	movq	_particle_tex_id@GOTPCREL(%rip), %r14
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_glGenTextures
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	(%r14), %esi
	callq	_glBindTexture
	movq	_GL_UNPACK_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_glPixelStorei
	movl	(%r15), %edi
	movq	_GL_TEXTURE_WRAP_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_CLAMP@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_glTexParameteri
	movl	(%r15), %edi
	movq	_GL_TEXTURE_WRAP_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	callq	_glTexParameteri
	movl	(%r15), %edi
	movq	_GL_TEXTURE_MAG_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_LINEAR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_glTexParameteri
	movl	(%r15), %edi
	movq	_GL_TEXTURE_MIN_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	callq	_glTexParameteri
	movl	(%r15), %edi
	movq	_GL_LUMINANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_P_TEX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_P_TEX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %r13
	movl	(%r13), %r10d
	movq	_particle_texture@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	pushq	%rdx
	callq	_glTexImage2D
	addq	$32, %rsp
	movq	_floor_tex_id@GOTPCREL(%rip), %r14
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_glGenTextures
	movl	(%r15), %edi
	movl	(%r14), %esi
	callq	_glBindTexture
	movq	_GL_UNPACK_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_glPixelStorei
	movl	(%r15), %edi
	movq	_GL_TEXTURE_WRAP_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_REPEAT@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_glTexParameteri
	movl	(%r15), %edi
	movq	_GL_TEXTURE_WRAP_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	callq	_glTexParameteri
	movl	(%r15), %edi
	movq	_GL_TEXTURE_MAG_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	callq	_glTexParameteri
	movl	(%r15), %edi
	movq	_GL_TEXTURE_MIN_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	callq	_glTexParameteri
	movl	(%r15), %edi
	movq	_GL_LUMINANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_F_TEX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_F_TEX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r13), %r10d
	movq	_floor_texture@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	pushq	%rdx
	callq	_glTexImage2D
	addq	$32, %rsp
	leaq	L_.str.4(%rip), %rdi
	callq	_glfwExtensionSupported
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_GL_LIGHT_MODEL_COLOR_CONTROL_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_SEPARATE_SPECULAR_COLOR_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glLightModeli
LBB0_14:
	movq	_GL_FRONT_AND_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_FILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glPolygonMode
	movq	_wireframe@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_thread_sync@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movl	$981668463, 8(%r14)             ## imm = 0x3A83126F
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movq	_mtx_timed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	20(%r14), %rdi
	callq	_mtx_init
	leaq	16(%r14), %rdi
	callq	_cnd_init
	addq	$12, %r14
	movq	%r14, %rdi
	callq	_cnd_init
	movq	_physics_thread_main@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_thrd_create
	movq	_thrd_success@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.17:
	xorps	%xmm0, %xmm0
	callq	_glfwSetTime
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_glfwWindowShouldClose
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%eax, %eax
	callq	_glfwGetTime
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_draw_scene
	movq	%rbx, %rdi
	callq	_glfwSwapBuffers
	xorl	%eax, %eax
	callq	_glfwPollEvents
	jmp	LBB0_19
LBB0_15:
	xorl	%eax, %eax
	callq	_glfwTerminate
LBB0_16:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_20:
	movl	-52(%rbp), %edi
	xorl	%esi, %esi
	callq	_thrd_join
	movq	%rbx, %rdi
	callq	_glfwDestroyWindow
	xorl	%eax, %eax
	callq	_glfwTerminate
LBB0_6:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize GLFW\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"fh"

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.comm	_GLFW_RED_BITS,4,2              ## @GLFW_RED_BITS
	.comm	_GLFW_GREEN_BITS,4,2            ## @GLFW_GREEN_BITS
	.comm	_GLFW_BLUE_BITS,4,2             ## @GLFW_BLUE_BITS
	.comm	_GLFW_REFRESH_RATE,4,2          ## @GLFW_REFRESH_RATE
L_.str.2:                               ## @.str.2
	.asciz	"Particle Engine"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to create GLFW window\n"

	.comm	_GLFW_CURSOR,4,2                ## @GLFW_CURSOR
	.comm	_GLFW_CURSOR_DISABLED,4,2       ## @GLFW_CURSOR_DISABLED
	.comm	_glfwGetProcAddress,4,2         ## @glfwGetProcAddress
	.comm	_key_callback,4,2               ## @key_callback
	.comm	_particle_tex_id,4,2            ## @particle_tex_id
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_UNPACK_ALIGNMENT,4,2        ## @GL_UNPACK_ALIGNMENT
	.comm	_GL_TEXTURE_WRAP_S,4,2          ## @GL_TEXTURE_WRAP_S
	.comm	_GL_CLAMP,4,2                   ## @GL_CLAMP
	.comm	_GL_TEXTURE_WRAP_T,4,2          ## @GL_TEXTURE_WRAP_T
	.comm	_GL_TEXTURE_MAG_FILTER,4,2      ## @GL_TEXTURE_MAG_FILTER
	.comm	_GL_LINEAR,4,2                  ## @GL_LINEAR
	.comm	_GL_TEXTURE_MIN_FILTER,4,2      ## @GL_TEXTURE_MIN_FILTER
	.comm	_GL_LUMINANCE,4,2               ## @GL_LUMINANCE
	.comm	_P_TEX_WIDTH,4,2                ## @P_TEX_WIDTH
	.comm	_P_TEX_HEIGHT,4,2               ## @P_TEX_HEIGHT
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_particle_texture,4,2           ## @particle_texture
	.comm	_floor_tex_id,4,2               ## @floor_tex_id
	.comm	_GL_REPEAT,4,2                  ## @GL_REPEAT
	.comm	_F_TEX_WIDTH,4,2                ## @F_TEX_WIDTH
	.comm	_F_TEX_HEIGHT,4,2               ## @F_TEX_HEIGHT
	.comm	_floor_texture,4,2              ## @floor_texture
L_.str.4:                               ## @.str.4
	.asciz	"GL_EXT_separate_specular_color"

	.comm	_GL_LIGHT_MODEL_COLOR_CONTROL_EXT,4,2 ## @GL_LIGHT_MODEL_COLOR_CONTROL_EXT
	.comm	_GL_SEPARATE_SPECULAR_COLOR_EXT,4,2 ## @GL_SEPARATE_SPECULAR_COLOR_EXT
	.comm	_GL_FRONT_AND_BACK,4,2          ## @GL_FRONT_AND_BACK
	.comm	_GL_FILL,4,2                    ## @GL_FILL
	.comm	_wireframe,8,3                  ## @wireframe
	.comm	_thread_sync,40,3               ## @thread_sync
	.comm	_mtx_timed,4,2                  ## @mtx_timed
	.comm	_physics_thread_main,4,2        ## @physics_thread_main
	.comm	_thrd_success,8,3               ## @thrd_success
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	str	wzr, [sp, #4]
	bl	_glfwInit
	cbz	w0, LBB0_22
; %bb.1:
	mov	x19, #0
Lloh0:
	adrp	x22, l_.str.1@PAGE
Lloh1:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_glfwGetPrimaryMonitor
	mov	x19, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	cmp	w0, #102
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #104
	b.ne	LBB0_3
; %bb.6:
	bl	_usage
	b	LBB0_21
LBB0_7:
	cbnz	x19, LBB0_9
; %bb.8:
	mov	w9, #640
	mov	w8, #480
	stp	w8, w9, [sp, #8]
Lloh2:
	adrp	x2, l_.str.2@PAGE
Lloh3:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #640
	mov	w1, #480
	mov	x3, #0
	mov	x4, #0
	bl	_glfwCreateWindow
	mov	x19, x0
	cbz	x0, LBB0_10
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_glfwGetVideoMode
	mov	x20, x0
Lloh4:
	adrp	x8, _GLFW_RED_BITS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GLFW_RED_BITS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x20, #20]
	bl	_glfwWindowHint
Lloh7:
	adrp	x8, _GLFW_GREEN_BITS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GLFW_GREEN_BITS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_glfwWindowHint
Lloh10:
	adrp	x8, _GLFW_BLUE_BITS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GLFW_BLUE_BITS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_glfwWindowHint
Lloh13:
	adrp	x8, _GLFW_REFRESH_RATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GLFW_REFRESH_RATE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_glfwWindowHint
	ldp	w0, w1, [x20]
	stp	w1, w0, [sp, #8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x19
	mov	x4, #0
	bl	_glfwCreateWindow
	cbnz	x0, LBB0_11
LBB0_10:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	b	LBB0_18
LBB0_11:
	mov	x19, x0
Lloh23:
	adrp	x8, _GLFW_CURSOR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GLFW_CURSOR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _GLFW_CURSOR_DISABLED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GLFW_CURSOR_DISABLED@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	bl	_glfwSetInputMode
LBB0_12:
	mov	x0, x19
	bl	_glfwMakeContextCurrent
Lloh29:
	adrp	x8, _glfwGetProcAddress@GOTPAGE
Lloh30:
	ldr	x8, [x8, _glfwGetProcAddress@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_gladLoadGL
	mov	w0, #1
	bl	_glfwSwapInterval
Lloh32:
	adrp	x1, _resize_callback@GOTPAGE
Lloh33:
	ldr	x1, [x1, _resize_callback@GOTPAGEOFF]
	mov	x0, x19
	bl	_glfwSetFramebufferSizeCallback
Lloh34:
	adrp	x8, _key_callback@GOTPAGE
Lloh35:
	ldr	x8, [x8, _key_callback@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetKeyCallback
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_glfwGetFramebufferSize
	ldp	w2, w1, [sp, #8]
	mov	x0, x19
	bl	_resize_callback
Lloh37:
	adrp	x20, _particle_tex_id@GOTPAGE
Lloh38:
	ldr	x20, [x20, _particle_tex_id@GOTPAGEOFF]
	mov	w0, #1
	mov	x1, x20
	bl	_glGenTextures
Lloh39:
	adrp	x21, _GL_TEXTURE_2D@GOTPAGE
Lloh40:
	ldr	x21, [x21, _GL_TEXTURE_2D@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_glBindTexture
Lloh41:
	adrp	x8, _GL_UNPACK_ALIGNMENT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _GL_UNPACK_ALIGNMENT@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_glPixelStorei
	ldr	w0, [x21]
Lloh44:
	adrp	x24, _GL_TEXTURE_WRAP_S@GOTPAGE
Lloh45:
	ldr	x24, [x24, _GL_TEXTURE_WRAP_S@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh46:
	adrp	x20, _GL_CLAMP@GOTPAGE
Lloh47:
	ldr	x20, [x20, _GL_CLAMP@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_glTexParameteri
	ldr	w0, [x21]
Lloh48:
	adrp	x25, _GL_TEXTURE_WRAP_T@GOTPAGE
Lloh49:
	ldr	x25, [x25, _GL_TEXTURE_WRAP_T@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w2, [x20]
	bl	_glTexParameteri
	ldr	w0, [x21]
Lloh50:
	adrp	x26, _GL_TEXTURE_MAG_FILTER@GOTPAGE
Lloh51:
	ldr	x26, [x26, _GL_TEXTURE_MAG_FILTER@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh52:
	adrp	x22, _GL_LINEAR@GOTPAGE
Lloh53:
	ldr	x22, [x22, _GL_LINEAR@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_glTexParameteri
	ldr	w0, [x21]
Lloh54:
	adrp	x27, _GL_TEXTURE_MIN_FILTER@GOTPAGE
Lloh55:
	ldr	x27, [x27, _GL_TEXTURE_MIN_FILTER@GOTPAGEOFF]
	ldr	w1, [x27]
	ldr	w2, [x22]
	bl	_glTexParameteri
	ldr	w0, [x21]
Lloh56:
	adrp	x28, _GL_LUMINANCE@GOTPAGE
Lloh57:
	ldr	x28, [x28, _GL_LUMINANCE@GOTPAGEOFF]
	ldr	w2, [x28]
Lloh58:
	adrp	x8, _P_TEX_WIDTH@GOTPAGE
Lloh59:
	ldr	x8, [x8, _P_TEX_WIDTH@GOTPAGEOFF]
Lloh60:
	ldr	w3, [x8]
Lloh61:
	adrp	x8, _P_TEX_HEIGHT@GOTPAGE
Lloh62:
	ldr	x8, [x8, _P_TEX_HEIGHT@GOTPAGEOFF]
Lloh63:
	ldr	w4, [x8]
Lloh64:
	adrp	x23, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh65:
	ldr	x23, [x23, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
	ldr	w7, [x23]
Lloh66:
	adrp	x8, _particle_texture@GOTPAGE
Lloh67:
	ldr	x8, [x8, _particle_texture@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	w1, #0
	mov	w5, #0
	mov	x6, x2
	bl	_glTexImage2D
Lloh69:
	adrp	x20, _floor_tex_id@GOTPAGE
Lloh70:
	ldr	x20, [x20, _floor_tex_id@GOTPAGEOFF]
	mov	w0, #1
	mov	x1, x20
	bl	_glGenTextures
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_glBindTexture
Lloh71:
	adrp	x8, _GL_UNPACK_ALIGNMENT@GOTPAGE
Lloh72:
	ldr	x8, [x8, _GL_UNPACK_ALIGNMENT@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_glPixelStorei
	ldr	w0, [x21]
	ldr	w1, [x24]
Lloh74:
	adrp	x20, _GL_REPEAT@GOTPAGE
Lloh75:
	ldr	x20, [x20, _GL_REPEAT@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_glTexParameteri
	ldr	w0, [x21]
	ldr	w1, [x25]
	ldr	w2, [x20]
	bl	_glTexParameteri
	ldr	w0, [x21]
	ldr	w1, [x26]
	ldr	w2, [x22]
	bl	_glTexParameteri
	ldr	w0, [x21]
	ldr	w1, [x27]
	ldr	w2, [x22]
	bl	_glTexParameteri
	ldr	w0, [x21]
	ldr	w2, [x28]
Lloh76:
	adrp	x8, _F_TEX_WIDTH@GOTPAGE
Lloh77:
	ldr	x8, [x8, _F_TEX_WIDTH@GOTPAGEOFF]
Lloh78:
	adrp	x9, _F_TEX_HEIGHT@GOTPAGE
Lloh79:
	ldr	x9, [x9, _F_TEX_HEIGHT@GOTPAGEOFF]
Lloh80:
	ldr	w3, [x8]
Lloh81:
	ldr	w4, [x9]
	ldr	w7, [x23]
Lloh82:
	adrp	x8, _floor_texture@GOTPAGE
Lloh83:
	ldr	x8, [x8, _floor_texture@GOTPAGEOFF]
Lloh84:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	w1, #0
	mov	w5, #0
	mov	x6, x2
	bl	_glTexImage2D
Lloh85:
	adrp	x0, l_.str.4@PAGE
Lloh86:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_glfwExtensionSupported
	cbz	x0, LBB0_14
; %bb.13:
Lloh87:
	adrp	x8, _GL_LIGHT_MODEL_COLOR_CONTROL_EXT@GOTPAGE
Lloh88:
	ldr	x8, [x8, _GL_LIGHT_MODEL_COLOR_CONTROL_EXT@GOTPAGEOFF]
Lloh89:
	ldr	w0, [x8]
Lloh90:
	adrp	x8, _GL_SEPARATE_SPECULAR_COLOR_EXT@GOTPAGE
Lloh91:
	ldr	x8, [x8, _GL_SEPARATE_SPECULAR_COLOR_EXT@GOTPAGEOFF]
Lloh92:
	ldr	w1, [x8]
	bl	_glLightModeli
LBB0_14:
Lloh93:
	adrp	x8, _GL_FRONT_AND_BACK@GOTPAGE
Lloh94:
	ldr	x8, [x8, _GL_FRONT_AND_BACK@GOTPAGEOFF]
Lloh95:
	ldr	w0, [x8]
Lloh96:
	adrp	x8, _GL_FILL@GOTPAGE
Lloh97:
	ldr	x8, [x8, _GL_FILL@GOTPAGEOFF]
Lloh98:
	ldr	w1, [x8]
	bl	_glPolygonMode
Lloh99:
	adrp	x8, _wireframe@GOTPAGE
Lloh100:
	ldr	x8, [x8, _wireframe@GOTPAGEOFF]
Lloh101:
	str	xzr, [x8]
Lloh102:
	adrp	x20, _thread_sync@GOTPAGE
Lloh103:
	ldr	x20, [x20, _thread_sync@GOTPAGEOFF]
	str	xzr, [x20]
	mov	w8, #4719
	movk	w8, #14979, lsl #16
	str	w8, [x20, #8]
	stp	xzr, xzr, [x20, #24]
Lloh104:
	adrp	x8, _mtx_timed@GOTPAGE
Lloh105:
	ldr	x8, [x8, _mtx_timed@GOTPAGEOFF]
Lloh106:
	ldr	w1, [x8]
	add	x0, x20, #20
	bl	_mtx_init
	add	x0, x20, #16
	bl	_cnd_init
	add	x0, x20, #12
	bl	_cnd_init
Lloh107:
	adrp	x8, _physics_thread_main@GOTPAGE
Lloh108:
	ldr	x8, [x8, _physics_thread_main@GOTPAGEOFF]
Lloh109:
	ldr	w1, [x8]
	add	x0, sp, #4
	mov	x2, x19
	bl	_thrd_create
Lloh110:
	adrp	x8, _thrd_success@GOTPAGE
Lloh111:
	ldr	x8, [x8, _thrd_success@GOTPAGEOFF]
Lloh112:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.15:
	movi	d0, #0000000000000000
	bl	_glfwSetTime
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_glfwWindowShouldClose
	cbnz	w0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	bl	_glfwGetTime
	mov	x1, x0
	mov	x0, x19
	bl	_draw_scene
	mov	x0, x19
	bl	_glfwSwapBuffers
	bl	_glfwPollEvents
	b	LBB0_16
LBB0_18:
	bl	_glfwTerminate
LBB0_19:
Lloh113:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh114:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh115:
	ldr	w0, [x8]
	bl	_exit
LBB0_20:
	ldr	w0, [sp, #4]
	mov	x1, #0
	bl	_thrd_join
	mov	x0, x19
	bl	_glfwDestroyWindow
	bl	_glfwTerminate
LBB0_21:
Lloh116:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh117:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh118:
	ldr	w0, [x8]
	bl	_exit
LBB0_22:
Lloh119:
	adrp	x8, _stderr@GOTPAGE
Lloh120:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh121:
	ldr	w0, [x8]
Lloh122:
	adrp	x1, l_.str@PAGE
Lloh123:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh80
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpLdrGotStr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpAdd	Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize GLFW\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"fh"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.comm	_GLFW_RED_BITS,4,2              ; @GLFW_RED_BITS
	.comm	_GLFW_GREEN_BITS,4,2            ; @GLFW_GREEN_BITS
	.comm	_GLFW_BLUE_BITS,4,2             ; @GLFW_BLUE_BITS
	.comm	_GLFW_REFRESH_RATE,4,2          ; @GLFW_REFRESH_RATE
l_.str.2:                               ; @.str.2
	.asciz	"Particle Engine"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to create GLFW window\n"

	.comm	_GLFW_CURSOR,4,2                ; @GLFW_CURSOR
	.comm	_GLFW_CURSOR_DISABLED,4,2       ; @GLFW_CURSOR_DISABLED
	.comm	_glfwGetProcAddress,4,2         ; @glfwGetProcAddress
	.comm	_key_callback,4,2               ; @key_callback
	.comm	_particle_tex_id,4,2            ; @particle_tex_id
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_UNPACK_ALIGNMENT,4,2        ; @GL_UNPACK_ALIGNMENT
	.comm	_GL_TEXTURE_WRAP_S,4,2          ; @GL_TEXTURE_WRAP_S
	.comm	_GL_CLAMP,4,2                   ; @GL_CLAMP
	.comm	_GL_TEXTURE_WRAP_T,4,2          ; @GL_TEXTURE_WRAP_T
	.comm	_GL_TEXTURE_MAG_FILTER,4,2      ; @GL_TEXTURE_MAG_FILTER
	.comm	_GL_LINEAR,4,2                  ; @GL_LINEAR
	.comm	_GL_TEXTURE_MIN_FILTER,4,2      ; @GL_TEXTURE_MIN_FILTER
	.comm	_GL_LUMINANCE,4,2               ; @GL_LUMINANCE
	.comm	_P_TEX_WIDTH,4,2                ; @P_TEX_WIDTH
	.comm	_P_TEX_HEIGHT,4,2               ; @P_TEX_HEIGHT
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_particle_texture,4,2           ; @particle_texture
	.comm	_floor_tex_id,4,2               ; @floor_tex_id
	.comm	_GL_REPEAT,4,2                  ; @GL_REPEAT
	.comm	_F_TEX_WIDTH,4,2                ; @F_TEX_WIDTH
	.comm	_F_TEX_HEIGHT,4,2               ; @F_TEX_HEIGHT
	.comm	_floor_texture,4,2              ; @floor_texture
l_.str.4:                               ; @.str.4
	.asciz	"GL_EXT_separate_specular_color"

	.comm	_GL_LIGHT_MODEL_COLOR_CONTROL_EXT,4,2 ; @GL_LIGHT_MODEL_COLOR_CONTROL_EXT
	.comm	_GL_SEPARATE_SPECULAR_COLOR_EXT,4,2 ; @GL_SEPARATE_SPECULAR_COLOR_EXT
	.comm	_GL_FRONT_AND_BACK,4,2          ; @GL_FRONT_AND_BACK
	.comm	_GL_FILL,4,2                    ; @GL_FILL
	.comm	_wireframe,8,3                  ; @wireframe
	.comm	_thread_sync,40,3               ; @thread_sync
	.comm	_mtx_timed,4,2                  ; @mtx_timed
	.comm	_physics_thread_main,4,2        ; @physics_thread_main
	.comm	_thrd_success,8,3               ; @thrd_success
.subsections_via_symbols
