	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lg4ff_switch_compatibility_mode
_lg4ff_switch_compatibility_mode:       ## @lg4ff_switch_compatibility_mode
	.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	%rsi, %r12
	movq	%rdi, %rbx
	callq	_hid_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, (%r12)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_8
## %bb.6:
	movl	$24, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	-24(%rax,%rbx), %ecx
	movl	%ecx, (%r13)
	movl	-20(%rax,%rbx), %ecx
	movl	%ecx, 4(%r13)
	movl	-16(%rax,%rbx), %ecx
	movl	%ecx, 8(%r13)
	movl	-12(%rax,%rbx), %ecx
	movl	%ecx, 12(%r13)
	movl	-8(%rax,%rbx), %ecx
	movl	%ecx, 16(%r13)
	movl	-4(%rax,%rbx), %ecx
	movl	%ecx, 20(%r13)
	movl	(%rax,%rbx), %eax
	movl	%eax, 24(%r13)
	movq	8(%r15), %rsi
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_hid_hw_request
	incq	%r14
	addq	$28, %rbx
	cmpq	(%r12), %r14
	jl	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_hid_hw_wait
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%rbx, %rdi
	callq	_hid_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Private driver data not found!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Device properties not found!\n"

	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.no_dead_strip	_lg4ff_switch_compatibility_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lg4ff_switch_compatibility_mode
_lg4ff_switch_compatibility_mode:       ; @lg4ff_switch_compatibility_mode
	.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	x20, x1
	mov	x19, x0
	bl	_hid_get_drvdata
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x21, [x0]
	cbz	x21, LBB0_7
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x22, [x8]
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
	mov	x24, #0
Lloh0:
	adrp	x25, _HID_REQ_SET_REPORT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HID_REQ_SET_REPORT@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	ldr	w9, [x8]
	str	w9, [x22]
	ldr	w9, [x8, #4]
	str	w9, [x22, #4]
	ldr	w9, [x8, #8]
	str	w9, [x22, #8]
	ldr	w9, [x8, #12]
	str	w9, [x22, #12]
	ldr	w9, [x8, #16]
	str	w9, [x22, #16]
	ldr	w9, [x8, #20]
	str	w9, [x22, #20]
	ldr	w8, [x8, #24]
	str	w8, [x22, #24]
	ldr	x1, [x21, #8]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_hid_hw_request
	add	x24, x24, #1
	ldr	x8, [x20]
	add	x23, x23, #28
	cmp	x24, x8
	b.lt	LBB0_4
LBB0_5:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_hid_hw_wait
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_hid_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Private driver data not found!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Device properties not found!\n"

	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.no_dead_strip	_lg4ff_switch_compatibility_mode
.subsections_via_symbols
