	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ms_input_mapping
_ms_input_mapping:                      ## @ms_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -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	%rax, %r13
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	(%rbx), %ecx
	movq	_HID_UP_MSVENDOR@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_6
## %bb.1:
	movq	_MS_ERGONOMY@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_ms_ergonomy_kb_quirk
	testl	%eax, %eax
	jne	LBB0_6
LBB0_3:
	movq	_MS_PRESENTER@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_ms_presenter_8k_quirk
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_USAGE_PAGE,4,2             ## @HID_USAGE_PAGE
	.comm	_HID_UP_MSVENDOR,4,2            ## @HID_UP_MSVENDOR
	.comm	_MS_ERGONOMY,8,3                ## @MS_ERGONOMY
	.comm	_MS_PRESENTER,8,3               ## @MS_PRESENTER
	.no_dead_strip	_ms_input_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ms_input_mapping
_ms_input_mapping:                      ; @ms_input_mapping
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x1
	bl	_hid_get_drvdata
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _HID_USAGE_PAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_USAGE_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _HID_UP_MSVENDOR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HID_UP_MSVENDOR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.1:
	mov	x23, x0
Lloh6:
	adrp	x8, _MS_ERGONOMY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MS_ERGONOMY@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_ms_ergonomy_kb_quirk
	cbnz	w0, LBB0_7
LBB0_3:
Lloh9:
	adrp	x8, _MS_PRESENTER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MS_PRESENTER@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	tst	x8, x23
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_ms_presenter_8k_quirk
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_USAGE_PAGE,4,2             ; @HID_USAGE_PAGE
	.comm	_HID_UP_MSVENDOR,4,2            ; @HID_UP_MSVENDOR
	.comm	_MS_ERGONOMY,8,3                ; @MS_ERGONOMY
	.comm	_MS_PRESENTER,8,3               ; @MS_PRESENTER
	.no_dead_strip	_ms_input_mapping
.subsections_via_symbols
