	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rdi, %r15
	callq	_hid_get_drvdata
	movl	(%rax), %eax
	movq	_LG_BAD_RELATIVE_KEYS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rcx
	movq	_EV_KEY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:
	movl	(%r14), %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, (%r14)
LBB0_4:
	movq	_LG_DUPLICATE_USAGES@GOTPCREL(%rip), %rcx
	testl	%eax, (%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:
	movq	8(%rbx), %rdi
	movq	(%r12), %rsi
	callq	_clear_bit
LBB0_9:
	movq	(%rbx), %rax
	movq	_EV_ABS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.10:
	movq	8(%rbx), %rax
	movq	_ABS_X@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.11:
	movq	_ABS_Y@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.12:
	movq	_ABS_Z@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	_ABS_RZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_14:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$11, %eax
	ja	LBB0_16
## %bb.15:
	movq	_HID_GD_MULTIAXIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_16:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LG_BAD_RELATIVE_KEYS,4,2       ## @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,4,2        ## @LG_DUPLICATE_USAGES
	.comm	_EV_REL,8,3                     ## @EV_REL
	.comm	_EV_ABS,8,3                     ## @EV_ABS
	.comm	_ABS_X,8,3                      ## @ABS_X
	.comm	_ABS_Y,8,3                      ## @ABS_Y
	.comm	_ABS_Z,8,3                      ## @ABS_Z
	.comm	_ABS_RZ,8,3                     ## @ABS_RZ
	.comm	_HID_GD_MULTIAXIS,4,2           ## @HID_GD_MULTIAXIS
	.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	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	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	bl	_hid_get_drvdata
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _LG_BAD_RELATIVE_KEYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LG_BAD_RELATIVE_KEYS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.1:
	ldr	x10, [x21]
	ldr	x11, [x8]
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.2:
	ldr	w10, [x19]
Lloh5:
	adrp	x11, _HID_MAIN_ITEM_RELATIVE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _HID_MAIN_ITEM_RELATIVE@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.3:
	bic	w10, w10, w11
	str	w10, [x19]
LBB0_4:
Lloh8:
	adrp	x10, _LG_DUPLICATE_USAGES@GOTPAGE
Lloh9:
	ldr	x10, [x10, _LG_DUPLICATE_USAGES@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x23, _EV_ABS@GOTPAGE
Lloh12:
	ldr	x23, [x23, _EV_ABS@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.5:
	ldr	x9, [x21]
Lloh13:
	adrp	x10, _EV_REL@GOTPAGE
Lloh14:
	ldr	x10, [x10, _EV_REL@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh15:
	ldr	x10, [x10]
	ldr	x11, [x23]
	cmp	x9, x8
	ccmp	x9, x10, #4, ne
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [x21, #8]
	ldr	x1, [x22]
	bl	_clear_bit
LBB0_7:
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
	ldr	x8, [x21, #8]
Lloh16:
	adrp	x9, _ABS_X@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ABS_X@GOTPAGEOFF]
Lloh18:
	adrp	x10, _ABS_Y@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ABS_Y@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	ldr	x10, [x10]
Lloh22:
	adrp	x11, _ABS_Z@GOTPAGE
Lloh23:
	ldr	x11, [x11, _ABS_Z@GOTPAGEOFF]
Lloh24:
	adrp	x12, _ABS_RZ@GOTPAGE
Lloh25:
	ldr	x12, [x12, _ABS_RZ@GOTPAGEOFF]
Lloh26:
	ldr	x11, [x11]
Lloh27:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #11
	b.hi	LBB0_11
; %bb.10:
Lloh28:
	adrp	x8, _HID_GD_MULTIAXIS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HID_GD_MULTIAXIS@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_11:
	mov	w0, #0
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_LG_BAD_RELATIVE_KEYS,4,2       ; @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,4,2        ; @LG_DUPLICATE_USAGES
	.comm	_EV_REL,8,3                     ; @EV_REL
	.comm	_EV_ABS,8,3                     ; @EV_ABS
	.comm	_ABS_X,8,3                      ; @ABS_X
	.comm	_ABS_Y,8,3                      ; @ABS_Y
	.comm	_ABS_Z,8,3                      ; @ABS_Z
	.comm	_ABS_RZ,8,3                     ; @ABS_RZ
	.comm	_HID_GD_MULTIAXIS,4,2           ; @HID_GD_MULTIAXIS
	.no_dead_strip	_lg_input_mapped
.subsections_via_symbols
