	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function belkin_input_mapping
_belkin_input_mapping:                  ## @belkin_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rcx, %rbx
	callq	_hid_get_drvdata
	movq	%rax, %rcx
	movl	(%rbx), %edx
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%edx, %esi
	movq	_HID_UP_CONSUMER@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpl	(%rdi), %esi
	jne	LBB0_4
## %bb.1:
	movq	_BELKIN_WKBD@GOTPCREL(%rip), %rsi
	testq	%rcx, (%rsi)
	je	LBB0_4
## %bb.2:
	movq	_HID_USAGE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	addl	$-58, %edx
	cmpl	$2, %edx
	ja	LBB0_4
## %bb.3:
	movslq	%edx, %rax
	leaq	l_switch.table.belkin_input_mapping(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	callq	_belkin_map_key_clear
	movl	$1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_USAGE_PAGE,4,2             ## @HID_USAGE_PAGE
	.comm	_HID_UP_CONSUMER,4,2            ## @HID_UP_CONSUMER
	.comm	_BELKIN_WKBD,8,3                ## @BELKIN_WKBD
	.comm	_HID_USAGE,4,2                  ## @HID_USAGE
	.comm	_KEY_SOUND,4,2                  ## @KEY_SOUND
	.comm	_KEY_CAMERA,4,2                 ## @KEY_CAMERA
	.comm	_KEY_DOCUMENTS,4,2              ## @KEY_DOCUMENTS
	.no_dead_strip	_belkin_input_mapping
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.belkin_input_mapping
l_switch.table.belkin_input_mapping:
	.quad	_KEY_SOUND
	.quad	_KEY_CAMERA
	.quad	_KEY_DOCUMENTS

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function belkin_input_mapping
_belkin_input_mapping:                  ; @belkin_input_mapping
	.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
	mov	x19, x3
	bl	_hid_get_drvdata
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _HID_USAGE_PAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_USAGE_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh3:
	adrp	x10, _HID_UP_CONSUMER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HID_UP_CONSUMER@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x9, _BELKIN_WKBD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BELKIN_WKBD@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	tst	x9, x0
	b.eq	LBB0_4
; %bb.2:
Lloh9:
	adrp	x9, _HID_USAGE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HID_USAGE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #58
	cmp	w8, #2
	b.hi	LBB0_4
; %bb.3:
Lloh12:
	adrp	x9, l_switch.table.belkin_input_mapping@PAGE
Lloh13:
	add	x9, x9, l_switch.table.belkin_input_mapping@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w0, [x8]
	bl	_belkin_map_key_clear
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_USAGE_PAGE,4,2             ; @HID_USAGE_PAGE
	.comm	_HID_UP_CONSUMER,4,2            ; @HID_UP_CONSUMER
	.comm	_BELKIN_WKBD,8,3                ; @BELKIN_WKBD
	.comm	_HID_USAGE,4,2                  ; @HID_USAGE
	.comm	_KEY_SOUND,4,2                  ; @KEY_SOUND
	.comm	_KEY_CAMERA,4,2                 ; @KEY_CAMERA
	.comm	_KEY_DOCUMENTS,4,2              ; @KEY_DOCUMENTS
	.no_dead_strip	_belkin_input_mapping
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.belkin_input_mapping
l_switch.table.belkin_input_mapping:
	.quad	_KEY_SOUND
	.quad	_KEY_CAMERA
	.quad	_KEY_DOCUMENTS

.subsections_via_symbols
