	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfrm_input_mapping
_gfrm_input_mapping:                    ## @gfrm_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	%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	%rax, %rcx
	movq	_GFRM100@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.1:
	movl	(%rbx), %ecx
	movq	_HID_UP_CONSUMER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	orl	$4, %esi
	cmpl	%esi, %ecx
	jne	LBB0_3
## %bb.2:
	movq	_KEY_INFO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	orl	$65, %edx
	cmpl	%edx, %ecx
	jne	LBB0_6
## %bb.4:
	movq	_KEY_OK@GOTPCREL(%rip), %rax
LBB0_5:
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	(%rax), %r9d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_hid_map_usage_clear
	movl	$1, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFRM100,8,3                    ## @GFRM100
	.comm	_HID_UP_CONSUMER,4,2            ## @HID_UP_CONSUMER
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_INFO,4,2                   ## @KEY_INFO
	.comm	_KEY_OK,4,2                     ## @KEY_OK
	.no_dead_strip	_gfrm_input_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfrm_input_mapping
_gfrm_input_mapping:                    ; @gfrm_input_mapping
	.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
Lloh0:
	adrp	x8, _GFRM100@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFRM100@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _HID_UP_CONSUMER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HID_UP_CONSUMER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w10, w9, #0x4
	cmp	w8, w10
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _KEY_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEY_INFO@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	w10, #65
	orr	w9, w9, w10
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _KEY_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEY_OK@GOTPAGEOFF]
LBB0_5:
Lloh10:
	adrp	x9, _EV_KEY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EV_KEY@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x9]
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_hid_map_usage_clear
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFRM100,8,3                    ; @GFRM100
	.comm	_HID_UP_CONSUMER,4,2            ; @HID_UP_CONSUMER
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_INFO,4,2                   ; @KEY_INFO
	.comm	_KEY_OK,4,2                     ; @KEY_OK
	.no_dead_strip	_gfrm_input_mapping
.subsections_via_symbols
