	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apple_input_keyboard_event     ## -- Begin function apple_input_keyboard_event
	.p2align	4, 0x90
_apple_input_keyboard_event:            ## @apple_input_keyboard_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
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%edi, %ebx
	movl	%esi, %edi
	callq	_HIDKEY
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_MAX_KEYS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jae	LBB0_2
## %bb.3:
	movq	_apple_key_state@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %edx
	movl	%ebx, (%rcx,%rdx,4)
	movl	%eax, %edi
	callq	_input_keymaps_translate_keysym_to_rk
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_keyboard_event           ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_KEYS,4,2                   ## @MAX_KEYS
	.comm	_apple_key_state,8,3            ## @apple_key_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apple_input_keyboard_event     ; -- Begin function apple_input_keyboard_event
	.p2align	2
_apple_input_keyboard_event:            ; @apple_input_keyboard_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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
	mov	x0, x1
	bl	_HIDKEY
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MAX_KEYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_KEYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hs	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _apple_key_state@GOTPAGE
Lloh4:
	ldr	x8, [x8, _apple_key_state@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	w22, [x8, w0, uxtw #2]
	bl	_input_keymaps_translate_keysym_to_rk
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	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
	b	_input_keyboard_event
LBB0_3:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_KEYS,4,2                   ; @MAX_KEYS
	.comm	_apple_key_state,8,3            ; @apple_key_state
.subsections_via_symbols
