	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformPollEvents        ## -- Begin function _glfwPlatformPollEvents
	.p2align	4, 0x90
__glfwPlatformPollEvents:               ## @_glfwPlatformPollEvents
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	__glfw@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_XPending
	movl	(%r14), %edi
	callq	_XQLength
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-28(%rbp), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_XNextEvent
	movq	%rbx, %rdi
	callq	_processEvent
	movl	(%r14), %edi
	callq	_XQLength
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	__glfwPlatformGetWindowSize
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	cmpl	%esi, (%rbx)
	jne	LBB0_5
## %bb.6:
	movl	-20(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	cmpl	%edx, 4(%rbx)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_5:
	movl	-20(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
LBB0_7:
	movq	%rbx, %rdi
	callq	__glfwPlatformSetCursorPos
LBB0_8:
	movl	(%r14), %edi
	callq	_XFlush
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,16,3                     ## @_glfw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformPollEvents        ; -- Begin function _glfwPlatformPollEvents
	.p2align	2
__glfwPlatformPollEvents:               ; @_glfwPlatformPollEvents
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, __glfw@GOTPAGE
Lloh1:
	ldr	x20, [x20, __glfw@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_XPending
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_XQLength
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x20]
	add	x1, sp, #12
	bl	_XNextEvent
	add	x0, sp, #12
	bl	_processEvent
	b	LBB0_1
LBB0_3:
	ldr	x19, [x20, #8]
	cbz	x19, LBB0_8
; %bb.4:
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x19
	bl	__glfwPlatformGetWindowSize
	ldr	w8, [x19]
	ldr	w9, [sp, #8]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w1, w9, #1
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x19, #4]
	ldr	w9, [sp, #4]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w2, w9, #1
	cmp	w8, w2
	b.ne	LBB0_7
	b	LBB0_8
LBB0_6:
	ldr	w8, [sp, #4]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
LBB0_7:
	mov	x0, x19
	bl	__glfwPlatformSetCursorPos
LBB0_8:
	ldr	w0, [x20]
	bl	_XFlush
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,16,3                     ; @_glfw
.subsections_via_symbols
