	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgs8g75_init_data
_lgs8g75_init_data:                     ## @lgs8g75_init_data
	.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	%rdi, %r15
	movq	_LGS8GXX_FIRMWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rdi), %rdx
	leaq	-32(%rbp), %rdi
	callq	_request_firmware
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	movl	$198, %esi
	movl	$64, %edx
	callq	_lgs8gxx_write_reg
	movq	%r15, %rdi
	movl	$61, %esi
	movl	$4, %edx
	callq	_lgs8gxx_write_reg
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	$57, %esi
	xorl	%edx, %edx
	callq	_lgs8gxx_write_reg
	movq	%r15, %rdi
	movl	$58, %esi
	xorl	%edx, %edx
	callq	_lgs8gxx_write_reg
	movq	%r15, %rdi
	movl	$56, %esi
	xorl	%edx, %edx
	callq	_lgs8gxx_write_reg
	movq	%r15, %rdi
	movl	$59, %esi
	xorl	%edx, %edx
	callq	_lgs8gxx_write_reg
	movq	%r15, %rdi
	movl	$56, %esi
	xorl	%edx, %edx
	callq	_lgs8gxx_write_reg
	movq	-32(%rbp), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$56, %esi
	xorl	%edx, %edx
	callq	_lgs8gxx_write_reg
	movzbl	%bl, %edx
	movq	%r15, %rdi
	movl	$58, %esi
	callq	_lgs8gxx_write_reg
	movl	%ebx, %edx
	shrl	$8, %edx
	movq	%r15, %rdi
	movl	$59, %esi
	callq	_lgs8gxx_write_reg
	movq	-32(%rbp), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	movl	$60, %esi
	callq	_lgs8gxx_write_reg
	incq	%rbx
	movq	-32(%rbp), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	%r15, %rdi
	movl	$56, %esi
	xorl	%edx, %edx
	callq	_lgs8gxx_write_reg
	movq	-32(%rbp), %rdi
	callq	_release_firmware
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LGS8GXX_FIRMWARE,4,2           ## @LGS8GXX_FIRMWARE
	.no_dead_strip	_lgs8g75_init_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgs8g75_init_data
_lgs8g75_init_data:                     ; @lgs8g75_init_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _LGS8GXX_FIRMWARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LGS8GXX_FIRMWARE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x0]
	add	x0, sp, #8
	bl	_request_firmware
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #198
	mov	w2, #64
	bl	_lgs8gxx_write_reg
	mov	x0, x19
	mov	w1, #61
	mov	w2, #4
	bl	_lgs8gxx_write_reg
	mov	x0, x19
	mov	w1, #57
	mov	w2, #0
	bl	_lgs8gxx_write_reg
	mov	x0, x19
	mov	w1, #58
	mov	w2, #0
	bl	_lgs8gxx_write_reg
	mov	x0, x19
	mov	w1, #56
	mov	w2, #0
	bl	_lgs8gxx_write_reg
	mov	x0, x19
	mov	w1, #59
	mov	w2, #0
	bl	_lgs8gxx_write_reg
	mov	x0, x19
	mov	w1, #56
	mov	w2, #0
	bl	_lgs8gxx_write_reg
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #56
	mov	w2, #0
	bl	_lgs8gxx_write_reg
	and	w2, w20, #0xff
	mov	x0, x19
	mov	w1, #58
	bl	_lgs8gxx_write_reg
	ubfx	x2, x20, #8, #24
	mov	x0, x19
	mov	w1, #59
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_lgs8gxx_write_reg
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x19
	mov	w1, #60
	bl	_lgs8gxx_write_reg
	add	x20, x20, #1
	ldr	x8, [sp, #8]
	ldrsw	x8, [x8]
	cmp	x20, x8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x19
	mov	w1, #56
	mov	w2, #0
	bl	_lgs8gxx_write_reg
	ldr	x0, [sp, #8]
	bl	_release_firmware
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LGS8GXX_FIRMWARE,4,2           ; @LGS8GXX_FIRMWARE
	.no_dead_strip	_lgs8g75_init_data
.subsections_via_symbols
