	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lg_input_mapped
_lg_input_mapped:                       ## @lg_input_mapped
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, %r15
	callq	_hid_get_drvdata
	movq	_LG_BAD_RELATIVE_KEYS@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rcx
	movq	_EV_KEY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:
	movl	(%r15), %ecx
	movq	_HID_MAIN_ITEM_RELATIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_4
## %bb.3:
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%r15)
LBB0_4:
	movq	_LG_DUPLICATE_USAGES@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_9
## %bb.5:
	movq	(%rbx), %rax
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	_EV_REL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_EV_ABS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_8:
	movl	8(%rbx), %edi
	movq	(%r14), %rsi
	callq	_clear_bit
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LG_BAD_RELATIVE_KEYS,8,3       ## @LG_BAD_RELATIVE_KEYS
	.comm	_EV_KEY,8,3                     ## @EV_KEY
	.comm	_HID_MAIN_ITEM_RELATIVE,4,2     ## @HID_MAIN_ITEM_RELATIVE
	.comm	_LG_DUPLICATE_USAGES,8,3        ## @LG_DUPLICATE_USAGES
	.comm	_EV_REL,8,3                     ## @EV_REL
	.comm	_EV_ABS,8,3                     ## @EV_ABS
	.no_dead_strip	_lg_input_mapped
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lg_input_mapped
_lg_input_mapped:                       ; @lg_input_mapped
	.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, x4
	mov	x20, x3
	mov	x21, x2
	bl	_hid_get_drvdata
Lloh0:
	adrp	x8, _LG_BAD_RELATIVE_KEYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LG_BAD_RELATIVE_KEYS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
	tst	x9, x0
	b.eq	LBB0_4
; %bb.1:
	ldr	x9, [x20]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	w9, [x21]
Lloh5:
	adrp	x10, _HID_MAIN_ITEM_RELATIVE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HID_MAIN_ITEM_RELATIVE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	bic	w9, w9, w10
	str	w9, [x21]
LBB0_4:
Lloh8:
	adrp	x9, _LG_DUPLICATE_USAGES@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LG_DUPLICATE_USAGES@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	tst	x9, x0
	b.eq	LBB0_7
; %bb.5:
	ldr	x9, [x20]
	ldr	x8, [x8]
Lloh11:
	adrp	x10, _EV_REL@GOTPAGE
Lloh12:
	ldr	x10, [x10, _EV_REL@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x11, _EV_ABS@GOTPAGE
Lloh15:
	ldr	x11, [x11, _EV_ABS@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	cmp	x9, x8
	ccmp	x9, x10, #4, ne
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x20, #8]
	ldr	x1, [x19]
	bl	_clear_bit
LBB0_7:
	mov	w0, #0
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LG_BAD_RELATIVE_KEYS,8,3       ; @LG_BAD_RELATIVE_KEYS
	.comm	_EV_KEY,8,3                     ; @EV_KEY
	.comm	_HID_MAIN_ITEM_RELATIVE,4,2     ; @HID_MAIN_ITEM_RELATIVE
	.comm	_LG_DUPLICATE_USAGES,8,3        ; @LG_DUPLICATE_USAGES
	.comm	_EV_REL,8,3                     ; @EV_REL
	.comm	_EV_ABS,8,3                     ; @EV_ABS
	.no_dead_strip	_lg_input_mapped
.subsections_via_symbols
