	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmfts_report_key_event
_stmfts_report_key_event:               ## @stmfts_report_key_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	8(%rsi), %edx
	cmpl	$129, %edx
	je	LBB0_4
## %bb.1:
	cmpl	$128, %edx
	je	LBB0_6
## %bb.2:
	testl	%edx, %edx
	jne	LBB0_7
## %bb.3:
	movl	(%rbx), %edi
	movq	_KEY_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	_KEY_MENU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	jmp	LBB0_8
LBB0_4:
	movl	(%rbx), %edi
	movq	_KEY_BACK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movl	(%rbx), %edi
	movq	_KEY_MENU@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_input_report_key
	jmp	LBB0_8
LBB0_7:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_8:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_BACK,4,2                   ## @KEY_BACK
	.comm	_KEY_MENU,4,2                   ## @KEY_MENU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown key event: %#02x\n"

	.no_dead_strip	_stmfts_report_key_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmfts_report_key_event
_stmfts_report_key_event:               ; @stmfts_report_key_event
	.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	w2, [x1, #8]
	cmp	w2, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.2:
	cbnz	w2, LBB0_7
; %bb.3:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _KEY_BACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_BACK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_input_report_key
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _KEY_MENU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_MENU@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_report_key
	b	LBB0_8
LBB0_4:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _KEY_BACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEY_BACK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _KEY_MENU@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEY_MENU@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_input_report_key
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_8:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_BACK,4,2                   ; @KEY_BACK
	.comm	_KEY_MENU,4,2                   ; @KEY_MENU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown key event: %#02x\n"

	.no_dead_strip	_stmfts_report_key_event
.subsections_via_symbols
