	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function _glfwPlatformWaitEventsTimeout
LCPI0_0:
	.quad	0x41cdcd6500000000              ## double 1.0E+9
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__glfwPlatformWaitEventsTimeout
	.p2align	4, 0x90
__glfwPlatformWaitEventsTimeout:        ## @_glfwPlatformWaitEventsTimeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%xmm0, -24(%rbp)                ## 8-byte Folded Spill
	movq	__glfw@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	movl	8(%rbx), %edi
	callq	_emptyEventQueue
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %r14
	movq	%r14, %rsi
	callq	_clock_gettime
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	cvttsd2si	%xmm1, %rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	subsd	%xmm0, %xmm1
	mulsd	LCPI0_0(%rip), %xmm1
	cvttsd2si	%xmm1, %rcx
	movq	%rcx, %xmm0
	movq	%rax, %xmm1
	punpcklqdq	%xmm0, %xmm1            ## xmm1 = xmm1[0],xmm0[0]
	paddq	-48(%rbp), %xmm1
	movdqa	%xmm1, -48(%rbp)
	leaq	4(%rbx), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_pthread_cond_timedwait
LBB0_2:
	movq	__glfw@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	xorl	%eax, %eax
	callq	__glfwPlatformPollEvents
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,12,2                     ## @_glfw
	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformWaitEventsTimeout ; -- Begin function _glfwPlatformWaitEventsTimeout
	.p2align	2
__glfwPlatformWaitEventsTimeout:        ; @_glfwPlatformWaitEventsTimeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	fmov	d8, d0
Lloh0:
	adrp	x19, __glfw@GOTPAGE
Lloh1:
	ldr	x19, [x19, __glfw@GOTPAGEOFF]
	mov	x0, x19
	bl	_pthread_mutex_lock
	ldr	w0, [x19, #8]
	bl	_emptyEventQueue
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _CLOCK_REALTIME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CLOCK_REALTIME@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_clock_gettime
	fcvtzs	x8, d8
	ldp	x9, x10, [sp]
	add	x8, x9, x8
	fcvtzs	d0, d8
	scvtf	d0, d0
	fsub	d0, d8, d0
	mov	x9, #225833675390976
	movk	x9, #16845, lsl #48
	fmov	d1, x9
	fmul	d0, d0, d1
	fcvtzs	x9, d0
	add	x9, x10, x9
	stp	x8, x9, [sp]
	add	x0, x19, #4
	mov	x2, sp
	mov	x1, x19
	bl	_pthread_cond_timedwait
LBB0_2:
Lloh5:
	adrp	x0, __glfw@GOTPAGE
Lloh6:
	ldr	x0, [x0, __glfw@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
	bl	__glfwPlatformPollEvents
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,12,2                     ; @_glfw
	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
.subsections_via_symbols
