	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_handle_key_press               ## -- Begin function handle_key_press
	.p2align	4, 0x90
_handle_key_press:                      ## @handle_key_press
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_XCB_KEY_RELEASE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	16(%rdi), %eax
	movq	_last_timestamp@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	8(%rdi), %ecx
	movl	12(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	callq	_DLOG
	movq	%rbx, %rdi
	callq	_get_binding_from_xcb_event
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_run_binding
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_command_result_free            ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XCB_KEY_RELEASE,8,3            ## @XCB_KEY_RELEASE
	.comm	_last_timestamp,4,2             ## @last_timestamp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %d, state raw = 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"KeyRelease"

L_.str.2:                               ## @.str.2
	.asciz	"KeyPress"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_handle_key_press               ; -- Begin function handle_key_press
	.p2align	2
_handle_key_press:                      ; @handle_key_press
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _XCB_KEY_RELEASE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XCB_KEY_RELEASE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldp	w2, w10, [x0, #12]
Lloh3:
	adrp	x11, _last_timestamp@GOTPAGE
Lloh4:
	ldr	x11, [x11, _last_timestamp@GOTPAGEOFF]
Lloh5:
	str	w10, [x11]
Lloh6:
	adrp	x10, l_.str.2@PAGE
Lloh7:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh8:
	adrp	x11, l_.str.1@PAGE
Lloh9:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x1, x11, x10, eq
	ldr	w3, [x0, #8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	mov	x0, x19
	bl	_get_binding_from_xcb_event
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, #0
	bl	_run_binding
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_command_result_free
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XCB_KEY_RELEASE,8,3            ; @XCB_KEY_RELEASE
	.comm	_last_timestamp,4,2             ; @last_timestamp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %d, state raw = 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"KeyRelease"

l_.str.2:                               ; @.str.2
	.asciz	"KeyPress"

.subsections_via_symbols
