	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ms_presenter_8k_quirk
_ms_presenter_8k_quirk:                 ## @ms_presenter_8k_quirk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rsi), %eax
	movq	_HID_UP_MSVENDOR@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdi), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_set_bit
	movq	_HID_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	addl	$-64776, %eax                   ## imm = 0xFFFF02F8
	cmpl	$7, %eax
	ja	LBB0_4
## %bb.2:
	movl	$203, %ecx
	btl	%eax, %ecx
	jae	LBB0_4
## %bb.3:
	cltq
	leaq	l_switch.table.ms_presenter_8k_quirk(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	callq	_ms_map_key_clear
	movl	$1, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	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	_EV_REP,4,2                     ## @EV_REP
	.comm	_HID_USAGE,4,2                  ## @HID_USAGE
	.comm	_KEY_FORWARD,4,2                ## @KEY_FORWARD
	.comm	_KEY_BACK,4,2                   ## @KEY_BACK
	.comm	_KEY_PLAYPAUSE,4,2              ## @KEY_PLAYPAUSE
	.comm	_KEY_CLOSE,4,2                  ## @KEY_CLOSE
	.comm	_KEY_PLAY,4,2                   ## @KEY_PLAY
	.no_dead_strip	_ms_presenter_8k_quirk
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ms_presenter_8k_quirk
l_switch.table.ms_presenter_8k_quirk:
	.quad	_KEY_FORWARD
	.quad	_KEY_BACK
	.quad	_KEY_FORWARD
	.quad	_KEY_PLAYPAUSE
	.quad	_KEY_FORWARD
	.quad	_KEY_FORWARD
	.quad	_KEY_CLOSE
	.quad	_KEY_PLAY

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ms_presenter_8k_quirk
_ms_presenter_8k_quirk:                 ; @ms_presenter_8k_quirk
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1]
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_3
; %bb.1:
	mov	x19, x1
Lloh6:
	adrp	x8, _EV_REP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x0]
	ldr	w1, [x9]
	mov	x0, x8
	bl	_set_bit
Lloh9:
	adrp	x8, _HID_USAGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HID_USAGE@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w9
	mov	w9, #-64776
	add	w8, w8, w9
	cmp	w8, #7
	b.hi	LBB0_3
; %bb.2:
	mov	w9, #203
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh12:
	adrp	x9, l_switch.table.ms_presenter_8k_quirk@PAGE
Lloh13:
	add	x9, x9, l_switch.table.ms_presenter_8k_quirk@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w0, [x8]
	bl	_ms_map_key_clear
	mov	w0, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_USAGE_PAGE,4,2             ; @HID_USAGE_PAGE
	.comm	_HID_UP_MSVENDOR,4,2            ; @HID_UP_MSVENDOR
	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_HID_USAGE,4,2                  ; @HID_USAGE
	.comm	_KEY_FORWARD,4,2                ; @KEY_FORWARD
	.comm	_KEY_BACK,4,2                   ; @KEY_BACK
	.comm	_KEY_PLAYPAUSE,4,2              ; @KEY_PLAYPAUSE
	.comm	_KEY_CLOSE,4,2                  ; @KEY_CLOSE
	.comm	_KEY_PLAY,4,2                   ; @KEY_PLAY
	.no_dead_strip	_ms_presenter_8k_quirk
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ms_presenter_8k_quirk
l_switch.table.ms_presenter_8k_quirk:
	.quad	_KEY_FORWARD
	.quad	_KEY_BACK
	.quad	_KEY_FORWARD
	.quad	_KEY_PLAYPAUSE
	.quad	_KEY_FORWARD
	.quad	_KEY_FORWARD
	.quad	_KEY_CLOSE
	.quad	_KEY_PLAY

.subsections_via_symbols
