	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lg_probe
_lg_probe:                              ## @lg_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rsi), %r14
	movq	_HID_CONNECT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rsi
	callq	_hid_set_drvdata
	movq	_LG_NOGET@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_HID_QUIRK_NOGET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
LBB0_2:
	movq	%r15, %rdi
	callq	_hid_parse
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movq	_LG_FF@GOTPCREL(%rip), %rcx
	movq	_LG_FF2@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	orq	(%rcx), %rax
	andq	%r14, %rax
	movq	_HID_CONNECT_FF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	xorl	%esi, %esi
	cmpq	$1, %rax
	sbbl	%esi, %esi
	orl	%ecx, %esi
	andl	%r12d, %esi
	movq	%r15, %rdi
	callq	_hid_hw_start
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	callq	_dev_err
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_LG_FF@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_lgff_init
LBB0_9:
	xorl	%ebx, %ebx
	testq	%r14, (%r13)
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_lg2ff_init
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_CONNECT_DEFAULT,4,2        ## @HID_CONNECT_DEFAULT
	.comm	_LG_NOGET,8,3                   ## @LG_NOGET
	.comm	_HID_QUIRK_NOGET,4,2            ## @HID_QUIRK_NOGET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parse failed\n"

	.comm	_LG_FF,8,3                      ## @LG_FF
	.comm	_LG_FF2,8,3                     ## @LG_FF2
	.comm	_HID_CONNECT_FF,4,2             ## @HID_CONNECT_FF
L_.str.1:                               ## @.str.1
	.asciz	"hw start failed\n"

	.no_dead_strip	_lg_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lg_probe
_lg_probe:                              ; @lg_probe
	.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	x19, x0
	ldr	x20, [x1]
Lloh0:
	adrp	x8, _HID_CONNECT_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_CONNECT_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x1, x20
	bl	_hid_set_drvdata
Lloh3:
	adrp	x8, _LG_NOGET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LG_NOGET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _HID_QUIRK_NOGET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_QUIRK_NOGET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_2:
	mov	x0, x19
	bl	_hid_parse
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x24, _LG_FF@GOTPAGE
Lloh12:
	ldr	x24, [x24, _LG_FF@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh13:
	adrp	x23, _LG_FF2@GOTPAGE
Lloh14:
	ldr	x23, [x23, _LG_FF2@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh15:
	adrp	x10, _HID_CONNECT_FF@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HID_CONNECT_FF@GOTPAGEOFF]
	orr	x8, x9, x8
Lloh17:
	ldr	w9, [x10]
	tst	x8, x20
	mov	w8, #-1
	csinv	w8, w8, w9, eq
	and	w1, w8, w22
	mov	x0, x19
	bl	_hid_hw_start
	cbz	w0, LBB0_8
; %bb.5:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	ldr	x8, [x24]
	tst	x8, x20
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_lgff_init
LBB0_10:
	ldr	x8, [x23]
	tst	x8, x20
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_lg2ff_init
LBB0_12:
	mov	w21, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_CONNECT_DEFAULT,4,2        ; @HID_CONNECT_DEFAULT
	.comm	_LG_NOGET,8,3                   ; @LG_NOGET
	.comm	_HID_QUIRK_NOGET,4,2            ; @HID_QUIRK_NOGET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parse failed\n"

	.comm	_LG_FF,8,3                      ; @LG_FF
	.comm	_LG_FF2,8,3                     ; @LG_FF2
	.comm	_HID_CONNECT_FF,4,2             ; @HID_CONNECT_FF
l_.str.1:                               ; @.str.1
	.asciz	"hw start failed\n"

	.no_dead_strip	_lg_probe
.subsections_via_symbols
