	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lg_input_mapping
_lg_input_mapping:                      ## @lg_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_hid_get_drvdata
	movq	%rax, %r13
	movl	(%rbx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	_USB_DEVICE_ID_LOGITECH_RECEIVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_lg_ultrax_remote_mapping
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_16
## %bb.2:
	movq	(%r14), %rax
LBB0_3:
	movq	_USB_DEVICE_ID_DINOVO_MINI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_lg_dinovo_mapping
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_16
LBB0_5:
	movq	_LG_WIRELESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_lg_wireless_mapping
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_16
LBB0_7:
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	andl	%esi, %ecx
	movq	_HID_UP_BUTTON@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_16
## %bb.8:
	movq	_HID_USAGE@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	_HID_GD_MOUSE@GOTPCREL(%rip), %rdx
	movl	(%r13), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.9:
	movq	_LG_IGNORE_DOUBLED_WHEEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	addl	$-7, %esi
	movl	$-1, %eax
	cmpl	$2, %esi
	jb	LBB0_16
	jmp	LBB0_11
LBB0_12:
	movq	_LG_EXPANDED_KEYMAP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.13:
	movq	%rsi, %r13
	leaq	_lg_input_mapping.e_keymap(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jae	LBB0_11
## %bb.14:
	movl	(%r14,%r13,4), %r9d
	testl	%r9d, %r9d
	je	LBB0_11
## %bb.15:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_hid_map_usage
	movl	$1, %eax
	jmp	LBB0_16
LBB0_11:
	xorl	%eax, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @lg_input_mapping.e_keymap
_lg_input_mapping.e_keymap:
	.long	0                               ## 0x0
	.long	216                             ## 0xd8
	.long	0                               ## 0x0
	.long	213                             ## 0xd5
	.long	175                             ## 0xaf
	.long	156                             ## 0x9c
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	144                             ## 0x90
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	212                             ## 0xd4
	.long	174                             ## 0xae
	.long	167                             ## 0xa7
	.long	152                             ## 0x98
	.long	161                             ## 0xa1
	.long	112                             ## 0x70
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	154                             ## 0x9a
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	183                             ## 0xb7
	.long	184                             ## 0xb8
	.long	185                             ## 0xb9
	.long	186                             ## 0xba
	.long	187                             ## 0xbb
	.long	188                             ## 0xbc
	.long	189                             ## 0xbd
	.long	190                             ## 0xbe
	.long	191                             ## 0xbf
	.long	192                             ## 0xc0
	.long	193                             ## 0xc1
	.long	194                             ## 0xc2
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_USB_DEVICE_ID_LOGITECH_RECEIVER,8,3 ## @USB_DEVICE_ID_LOGITECH_RECEIVER
	.comm	_USB_DEVICE_ID_DINOVO_MINI,8,3  ## @USB_DEVICE_ID_DINOVO_MINI
	.comm	_LG_WIRELESS,4,2                ## @LG_WIRELESS
	.comm	_HID_USAGE_PAGE,4,2             ## @HID_USAGE_PAGE
	.comm	_HID_UP_BUTTON,4,2              ## @HID_UP_BUTTON
	.comm	_HID_USAGE,4,2                  ## @HID_USAGE
	.comm	_HID_GD_MOUSE,8,3               ## @HID_GD_MOUSE
	.comm	_LG_IGNORE_DOUBLED_WHEEL,4,2    ## @LG_IGNORE_DOUBLED_WHEEL
	.comm	_LG_EXPANDED_KEYMAP,4,2         ## @LG_EXPANDED_KEYMAP
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.no_dead_strip	_lg_input_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lg_input_mapping
_lg_input_mapping:                      ; @lg_input_mapping
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x25, x0
	bl	_hid_get_drvdata
	mov	x24, x0
	ldr	w26, [x21]
	ldr	x8, [x25]
Lloh0:
	adrp	x9, _USB_DEVICE_ID_LOGITECH_RECEIVER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USB_DEVICE_ID_LOGITECH_RECEIVER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_lg_ultrax_remote_mapping
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	x8, [x25]
LBB0_3:
Lloh3:
	adrp	x9, _USB_DEVICE_ID_DINOVO_MINI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_DEVICE_ID_DINOVO_MINI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_lg_dinovo_mapping
	cbnz	x0, LBB0_7
LBB0_5:
	ldr	w8, [x24]
Lloh6:
	adrp	x9, _LG_WIRELESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LG_WIRELESS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_lg_wireless_mapping
	cbz	x0, LBB0_8
LBB0_7:
	mov	w0, #1
	b	LBB0_18
LBB0_8:
Lloh9:
	adrp	x8, _HID_USAGE_PAGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HID_USAGE_PAGE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w26
Lloh12:
	adrp	x9, _HID_UP_BUTTON@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HID_UP_BUTTON@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.9:
Lloh15:
	adrp	x8, _HID_USAGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HID_USAGE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	x25, x8, x26
	ldr	x9, [x23]
Lloh18:
	adrp	x8, _HID_GD_MOUSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HID_GD_MOUSE@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x8]
	ldr	w8, [x24]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.10:
Lloh21:
	adrp	x9, _LG_IGNORE_DOUBLED_WHEEL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LG_IGNORE_DOUBLED_WHEEL@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w8, LBB0_17
; %bb.11:
	sub	w8, w25, #7
	cmp	w8, #2
	b.hs	LBB0_17
; %bb.12:
	mov	w0, #-1
	b	LBB0_18
LBB0_13:
Lloh24:
	adrp	x9, _LG_EXPANDED_KEYMAP@GOTPAGE
Lloh25:
	ldr	x9, [x9, _LG_EXPANDED_KEYMAP@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.14:
Lloh27:
	adrp	x23, _lg_input_mapping.e_keymap@PAGE
Lloh28:
	add	x23, x23, _lg_input_mapping.e_keymap@PAGEOFF
	mov	x0, x23
	bl	_ARRAY_SIZE
	cmp	w25, w0
	b.hs	LBB0_17
; %bb.15:
	ldr	w5, [x23, x25, lsl #2]
	cbz	w5, LBB0_17
; %bb.16:
Lloh29:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh31:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_hid_map_usage
	mov	w0, #1
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @lg_input_mapping.e_keymap
_lg_input_mapping.e_keymap:
	.long	0                               ; 0x0
	.long	216                             ; 0xd8
	.long	0                               ; 0x0
	.long	213                             ; 0xd5
	.long	175                             ; 0xaf
	.long	156                             ; 0x9c
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	144                             ; 0x90
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	212                             ; 0xd4
	.long	174                             ; 0xae
	.long	167                             ; 0xa7
	.long	152                             ; 0x98
	.long	161                             ; 0xa1
	.long	112                             ; 0x70
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	154                             ; 0x9a
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	183                             ; 0xb7
	.long	184                             ; 0xb8
	.long	185                             ; 0xb9
	.long	186                             ; 0xba
	.long	187                             ; 0xbb
	.long	188                             ; 0xbc
	.long	189                             ; 0xbd
	.long	190                             ; 0xbe
	.long	191                             ; 0xbf
	.long	192                             ; 0xc0
	.long	193                             ; 0xc1
	.long	194                             ; 0xc2
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_USB_DEVICE_ID_LOGITECH_RECEIVER,8,3 ; @USB_DEVICE_ID_LOGITECH_RECEIVER
	.comm	_USB_DEVICE_ID_DINOVO_MINI,8,3  ; @USB_DEVICE_ID_DINOVO_MINI
	.comm	_LG_WIRELESS,4,2                ; @LG_WIRELESS
	.comm	_HID_USAGE_PAGE,4,2             ; @HID_USAGE_PAGE
	.comm	_HID_UP_BUTTON,4,2              ; @HID_UP_BUTTON
	.comm	_HID_USAGE,4,2                  ; @HID_USAGE
	.comm	_HID_GD_MOUSE,8,3               ; @HID_GD_MOUSE
	.comm	_LG_IGNORE_DOUBLED_WHEEL,4,2    ; @LG_IGNORE_DOUBLED_WHEEL
	.comm	_LG_EXPANDED_KEYMAP,4,2         ; @LG_EXPANDED_KEYMAP
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.no_dead_strip	_lg_input_mapping
.subsections_via_symbols
