	.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, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	callq	_hid_get_drvdata
	movq	(%rax), %r12
	movq	_MS_ERGONOMY@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_ms_ergonomy_kb_quirk
	testl	%eax, %eax
	jne	LBB0_7
LBB0_2:
	movq	_MS_PRESENTER@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_ms_presenter_8k_quirk
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_7
LBB0_4:
	movq	_MS_SURFACE_DIAL@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_ms_surface_dial_quirk
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MS_ERGONOMY,8,3                ## @MS_ERGONOMY
	.comm	_MS_PRESENTER,8,3               ## @MS_PRESENTER
	.comm	_MS_SURFACE_DIAL,8,3            ## @MS_SURFACE_DIAL
	.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, x2
	mov	x23, x1
	bl	_hid_get_drvdata
	ldr	x24, [x0]
Lloh0:
	adrp	x8, _MS_ERGONOMY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MS_ERGONOMY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x24
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_ms_ergonomy_kb_quirk
	cbnz	w0, LBB0_8
LBB0_2:
Lloh3:
	adrp	x8, _MS_PRESENTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MS_PRESENTER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x24
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_ms_presenter_8k_quirk
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _MS_SURFACE_DIAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MS_SURFACE_DIAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	tst	x8, x24
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_ms_surface_dial_quirk
	cbnz	w0, LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MS_ERGONOMY,8,3                ; @MS_ERGONOMY
	.comm	_MS_PRESENTER,8,3               ; @MS_PRESENTER
	.comm	_MS_SURFACE_DIAL,8,3            ; @MS_SURFACE_DIAL
	.no_dead_strip	_ms_input_mapping
.subsections_via_symbols
