	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apple_input_mapping
_apple_input_mapping:                   ## @apple_input_mapping
	.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	%r9, %r14
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rsi, %rbx
	movl	(%rcx), %ecx
	movq	_HID_UP_CUSTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	$3, %eax
	cmpl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	_HID_UP_MSVENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	$3, %edx
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	jne	LBB0_3
LBB0_2:
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	callq	_set_bit
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KEY_FN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_hid_map_usage_clear
	movq	(%rbx), %rdi
	callq	_apple_setup_input
	movl	$1, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_UP_CUSTOM,4,2              ## @HID_UP_CUSTOM
	.comm	_HID_UP_MSVENDOR,4,2            ## @HID_UP_MSVENDOR
	.comm	_EV_REP,4,2                     ## @EV_REP
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_FN,4,2                     ## @KEY_FN
	.no_dead_strip	_apple_input_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apple_input_mapping
_apple_input_mapping:                   ; @apple_input_mapping
	.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	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x19, x1
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _HID_UP_CUSTOM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_UP_CUSTOM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w9, w9, #0x3
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _HID_UP_MSVENDOR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HID_UP_MSVENDOR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w9, w9, #0x3
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EV_REP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	bl	_set_bit
Lloh9:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
Lloh12:
	adrp	x8, _KEY_FN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KEY_FN@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_hid_map_usage_clear
	ldr	x0, [x19]
	bl	_apple_setup_input
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_UP_CUSTOM,4,2              ; @HID_UP_CUSTOM
	.comm	_HID_UP_MSVENDOR,4,2            ; @HID_UP_MSVENDOR
	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_FN,4,2                     ; @KEY_FN
	.no_dead_strip	_apple_input_mapping
.subsections_via_symbols
