	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apple_input_mapped
_apple_input_mapped:                    ## @apple_input_mapped
	.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, %rbx
	movq	%rsi, %r12
	callq	_hid_get_drvdata
	movq	_APPLE_MIGHTYMOUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.1:
	movq	(%rbx), %rax
	movq	_HID_GD_Z@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	jmp	LBB0_8
LBB0_4:
	movq	8(%rbx), %rax
	movq	_BTN_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	cmpq	%r9, %rax
	jne	LBB0_6
## %bb.5:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_BTN_2@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	jmp	LBB0_8
LBB0_6:
	movq	_BTN_2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_8:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_hid_map_usage
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APPLE_MIGHTYMOUSE,4,2          ## @APPLE_MIGHTYMOUSE
	.comm	_HID_GD_Z,8,3                   ## @HID_GD_Z
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_REL_HWHEEL,8,3                 ## @REL_HWHEEL
	.comm	_BTN_1,8,3                      ## @BTN_1
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_2,8,3                      ## @BTN_2
	.no_dead_strip	_apple_input_mapped
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apple_input_mapped
_apple_input_mapped:                    ; @apple_input_mapped
	.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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x1
	bl	_hid_get_drvdata
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _APPLE_MIGHTYMOUSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _APPLE_MIGHTYMOUSE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _HID_GD_Z@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HID_GD_Z@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EV_REL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_REL@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _REL_HWHEEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REL_HWHEEL@GOTPAGEOFF]
Lloh11:
	ldr	x5, [x8]
	b	LBB0_7
LBB0_3:
	ldr	x8, [x21, #8]
Lloh12:
	adrp	x9, _BTN_1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BTN_1@GOTPAGEOFF]
Lloh14:
	ldr	x5, [x9]
	cmp	x8, x5
	b.ne	LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _BTN_2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_2@GOTPAGEOFF]
Lloh20:
	ldr	x5, [x8]
	b	LBB0_7
LBB0_5:
Lloh21:
	adrp	x9, _BTN_2@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BTN_2@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
Lloh24:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh26:
	ldr	w4, [x8]
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_hid_map_usage
LBB0_8:
	mov	w0, #0
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_APPLE_MIGHTYMOUSE,4,2          ; @APPLE_MIGHTYMOUSE
	.comm	_HID_GD_Z,8,3                   ; @HID_GD_Z
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_REL_HWHEEL,8,3                 ; @REL_HWHEEL
	.comm	_BTN_1,8,3                      ; @BTN_1
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_2,8,3                      ; @BTN_2
	.no_dead_strip	_apple_input_mapped
.subsections_via_symbols
