	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_event
_handle_event:                          ## @handle_event
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	(%rsi), %rcx
	movq	_SDL_KEYDOWN@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	cmpq	%rsi, %rcx
	je	LBB0_2
## %bb.1:
	movq	_SDL_KEYUP@GOTPCREL(%rip), %rdx
	movl	$-1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
LBB0_2:
	xorl	%edx, %edx
	cmpq	%rsi, %rcx
	sete	%dl
	movl	(%rdi), %edi
	movl	8(%rbx), %esi
	callq	_update_keystate
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %eax
	movl	%eax, (%r15)
LBB0_4:
	movl	$1, %eax
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	(%rbx), %rcx
	xorl	%edx, %edx
	cmpq	(%r12), %rcx
	sete	%dl
	movl	%edx, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_KEYDOWN,8,3                ## @SDL_KEYDOWN
	.comm	_SDL_KEYUP,8,3                  ## @SDL_KEYUP
	.no_dead_strip	_handle_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_event
_handle_event:                          ; @handle_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x1]
Lloh0:
	adrp	x22, _SDL_KEYDOWN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SDL_KEYDOWN@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x10, _SDL_KEYUP@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SDL_KEYUP@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	cmp	x8, x9
	cset	w2, eq
	ldr	w0, [x0]
	ldr	w1, [x1, #8]
	bl	_update_keystate
	cbz	x21, LBB0_3
; %bb.2:
	ldr	w8, [x20, #8]
	str	w8, [x21]
LBB0_3:
	cbz	x19, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x19]
LBB0_5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_KEYDOWN,8,3                ; @SDL_KEYDOWN
	.comm	_SDL_KEYUP,8,3                  ; @SDL_KEYUP
	.no_dead_strip	_handle_event
.subsections_via_symbols
