	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_poll_mouse
_sdl_poll_mouse:                        ## @sdl_poll_mouse
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$40, %rdi
	leaq	36(%rbx), %rsi
	callq	_SDL_GetRelativeMouseState
	movl	%eax, %r14d
	leaq	32(%rbx), %rdi
	leaq	28(%rbx), %rsi
	callq	_SDL_GetMouseState
	movq	_SDL_BUTTON_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_BUTTON
	xorl	%ecx, %ecx
	testl	%r14d, %eax
	setne	%cl
	movl	%ecx, (%rbx)
	movq	_SDL_BUTTON_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_BUTTON
	xorl	%ecx, %ecx
	testl	%r14d, %eax
	setne	%cl
	movl	%ecx, 4(%rbx)
	movq	_SDL_BUTTON_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_BUTTON
	xorl	%ecx, %ecx
	testl	%r14d, %eax
	setne	%cl
	movl	%ecx, 8(%rbx)
	movq	_SDL_BUTTON_X1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_BUTTON
	xorl	%ecx, %ecx
	testl	%r14d, %eax
	setne	%cl
	movl	%ecx, 12(%rbx)
	movq	_SDL_BUTTON_X2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_BUTTON
	xorl	%ecx, %ecx
	testl	%r14d, %eax
	setne	%cl
	movl	%ecx, 16(%rbx)
	movq	_SDL_BUTTON_WHEELUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_BUTTON
	xorl	%ecx, %ecx
	testl	%r14d, %eax
	setne	%cl
	movl	%ecx, 20(%rbx)
	movq	_SDL_BUTTON_WHEELDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_BUTTON
	xorl	%ecx, %ecx
	testl	%r14d, %eax
	setne	%cl
	movl	%ecx, 24(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_BUTTON_LEFT,4,2            ## @SDL_BUTTON_LEFT
	.comm	_SDL_BUTTON_RIGHT,4,2           ## @SDL_BUTTON_RIGHT
	.comm	_SDL_BUTTON_MIDDLE,4,2          ## @SDL_BUTTON_MIDDLE
	.comm	_SDL_BUTTON_X1,4,2              ## @SDL_BUTTON_X1
	.comm	_SDL_BUTTON_X2,4,2              ## @SDL_BUTTON_X2
	.comm	_SDL_BUTTON_WHEELUP,4,2         ## @SDL_BUTTON_WHEELUP
	.comm	_SDL_BUTTON_WHEELDOWN,4,2       ## @SDL_BUTTON_WHEELDOWN
	.no_dead_strip	_sdl_poll_mouse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_poll_mouse
_sdl_poll_mouse:                        ; @sdl_poll_mouse
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #40
	add	x1, x19, #36
	bl	_SDL_GetRelativeMouseState
	mov	x20, x0
	add	x0, x19, #32
	add	x1, x19, #28
	bl	_SDL_GetMouseState
Lloh0:
	adrp	x8, _SDL_BUTTON_LEFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDL_BUTTON_LEFT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SDL_BUTTON
	tst	w0, w20
	cset	w8, ne
	str	w8, [x19]
Lloh3:
	adrp	x8, _SDL_BUTTON_RIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDL_BUTTON_RIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SDL_BUTTON
	tst	w0, w20
	cset	w8, ne
	str	w8, [x19, #4]
Lloh6:
	adrp	x8, _SDL_BUTTON_MIDDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDL_BUTTON_MIDDLE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_SDL_BUTTON
	tst	w0, w20
	cset	w8, ne
	str	w8, [x19, #8]
Lloh9:
	adrp	x8, _SDL_BUTTON_X1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDL_BUTTON_X1@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_SDL_BUTTON
	tst	w0, w20
	cset	w8, ne
	str	w8, [x19, #12]
Lloh12:
	adrp	x8, _SDL_BUTTON_X2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDL_BUTTON_X2@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_SDL_BUTTON
	tst	w0, w20
	cset	w8, ne
	str	w8, [x19, #16]
Lloh15:
	adrp	x8, _SDL_BUTTON_WHEELUP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDL_BUTTON_WHEELUP@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_SDL_BUTTON
	tst	w0, w20
	cset	w8, ne
	str	w8, [x19, #20]
Lloh18:
	adrp	x8, _SDL_BUTTON_WHEELDOWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SDL_BUTTON_WHEELDOWN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_SDL_BUTTON
	tst	w0, w20
	cset	w8, ne
	str	w8, [x19, #24]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_BUTTON_LEFT,4,2            ; @SDL_BUTTON_LEFT
	.comm	_SDL_BUTTON_RIGHT,4,2           ; @SDL_BUTTON_RIGHT
	.comm	_SDL_BUTTON_MIDDLE,4,2          ; @SDL_BUTTON_MIDDLE
	.comm	_SDL_BUTTON_X1,4,2              ; @SDL_BUTTON_X1
	.comm	_SDL_BUTTON_X2,4,2              ; @SDL_BUTTON_X2
	.comm	_SDL_BUTTON_WHEELUP,4,2         ; @SDL_BUTTON_WHEELUP
	.comm	_SDL_BUTTON_WHEELDOWN,4,2       ; @SDL_BUTTON_WHEELDOWN
	.no_dead_strip	_sdl_poll_mouse
.subsections_via_symbols
