	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function main
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%edi, %edi
	callq	_time
	movl	%eax, %edi
	callq	_srand
	movq	_error_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glfwSetErrorCallback
	xorl	%eax, %eax
	callq	_glfwInit
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movl	$640, %edi                      ## imm = 0x280
	movl	$480, %esi                      ## imm = 0x1E0
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_glfwCreateWindow
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_glfwTerminate
LBB0_3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_glfwMakeContextCurrent
	movq	_glfwGetProcAddress@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gladLoadGL
	movq	_key_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_glfwSetKeyCallback
	movq	%rbx, %rdi
	callq	_glfwWindowShouldClose
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	leaq	-56(%rbp), %r14
	leaq	-52(%rbp), %r15
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_nrand
	movss	%xmm0, -40(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_nrand
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_nrand
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movss	-36(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm2
	movss	-40(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	addss	%xmm2, %xmm1
	mulss	%xmm0, %xmm0
	addss	%xmm1, %xmm0
	callq	_sqrt
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_glfwGetFramebufferSize
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_glViewport
	movss	-40(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	divss	%xmm2, %xmm0
	movss	-36(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm2, %xmm1
	movaps	%xmm2, %xmm3
	movss	-48(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	divss	%xmm3, %xmm2
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	callq	_glClearColor
	movl	(%r12), %edi
	callq	_glClear
	movq	%rbx, %rdi
	callq	_glfwSwapBuffers
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_glfwWaitEventsTimeout
	movq	%rbx, %rdi
	callq	_glfwWindowShouldClose
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	callq	_glfwDestroyWindow
	xorl	%eax, %eax
	callq	_glfwTerminate
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_error_callback,4,2             ## @error_callback
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Event Wait Timeout Test"

	.comm	_glfwGetProcAddress,4,2         ## @glfwGetProcAddress
	.comm	_key_callback,4,2               ## @key_callback
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_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, #80
	.cfi_def_cfa_offset 80
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	mov	x0, #0
	bl	_time
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_srand
Lloh0:
	adrp	x8, _error_callback@GOTPAGE
Lloh1:
	ldr	x8, [x8, _error_callback@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_glfwSetErrorCallback
	bl	_glfwInit
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #640
	mov	w1, #480
	mov	x3, #0
	mov	x4, #0
	bl	_glfwCreateWindow
	cbnz	x0, LBB0_4
; %bb.2:
	bl	_glfwTerminate
LBB0_3:
Lloh5:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_exit
LBB0_4:
	mov	x19, x0
	bl	_glfwMakeContextCurrent
Lloh8:
	adrp	x8, _glfwGetProcAddress@GOTPAGE
Lloh9:
	ldr	x8, [x8, _glfwGetProcAddress@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_gladLoadGL
Lloh11:
	adrp	x8, _key_callback@GOTPAGE
Lloh12:
	ldr	x8, [x8, _key_callback@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetKeyCallback
	mov	x0, x19
	bl	_glfwWindowShouldClose
	cbnz	w0, LBB0_7
; %bb.5:
Lloh14:
	adrp	x20, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh15:
	ldr	x20, [x20, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_nrand
	fmov	s8, s0
	bl	_nrand
	fmov	s9, s0
	bl	_nrand
	fmov	s10, s0
	fmul	s0, s9, s9
	fmadd	s0, s8, s8, s0
	fmadd	s0, s10, s10, s0
	bl	_sqrt
	scvtf	s11, x0
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_glfwGetFramebufferSize
	ldp	w3, w2, [sp, #8]
	mov	w0, #0
	mov	w1, #0
	bl	_glViewport
	fdiv	s0, s8, s11
	fdiv	s1, s9, s11
	fdiv	s2, s10, s11
	fmov	s3, #1.00000000
	bl	_glClearColor
	ldr	w0, [x20]
	bl	_glClear
	mov	x0, x19
	bl	_glfwSwapBuffers
	fmov	d0, #1.00000000
	bl	_glfwWaitEventsTimeout
	mov	x0, x19
	bl	_glfwWindowShouldClose
	cbz	w0, LBB0_6
LBB0_7:
	mov	x0, x19
	bl	_glfwDestroyWindow
	bl	_glfwTerminate
Lloh16:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_error_callback,4,2             ; @error_callback
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Event Wait Timeout Test"

	.comm	_glfwGetProcAddress,4,2         ; @glfwGetProcAddress
	.comm	_key_callback,4,2               ; @key_callback
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
