	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lg216x_enable_fic
_lg216x_enable_fic:                     ## @lg216x_enable_fic
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$23, %esi
	movl	$35, %edx
	callq	_lg216x_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_fail
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	%r15, %rdi
	movl	$22, %esi
	movl	$252, %edx
	callq	_lg216x_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_fail
	testq	%rax, %rax
	jne	LBB0_11
## %bb.2:
	movq	(%r15), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.4:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	leal	(%rax,%rax), %edx
	addl	$252, %edx
	jmp	LBB0_6
LBB0_5:
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
	shll	$4, %edx
LBB0_6:
	movq	%r15, %rdi
	movl	$22, %esi
	callq	_lg216x_write_reg
	movl	%eax, %ebx
LBB0_7:
	movl	%ebx, %edi
	callq	_lg_fail
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	callq	_lg216x_initialize
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_fail
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.9:
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movl	$23, %esi
	movl	$3, %edx
	callq	_lg216x_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_fail
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lg216x_enable_fic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lg216x_enable_fic
_lg216x_enable_fic:                     ; @lg216x_enable_fic
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	mov	w1, #23
	mov	w2, #35
	bl	_lg216x_write_reg
	mov	x21, x0
	bl	_lg_fail
	cbnz	x0, LBB0_11
; %bb.1:
	mov	x0, x19
	mov	w1, #22
	mov	w2, #252
	bl	_lg216x_write_reg
	mov	x21, x0
	bl	_lg_fail
	cbnz	x0, LBB0_11
; %bb.2:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.4:
	mov	w8, #254
	mov	w9, #252
	cmp	w20, #0
	csel	w2, w9, w8, eq
	b	LBB0_6
LBB0_5:
	cmp	w20, #0
	cset	w8, ne
	lsl	w2, w8, #4
LBB0_6:
	mov	x0, x19
	mov	w1, #22
	bl	_lg216x_write_reg
	mov	x21, x0
LBB0_7:
	mov	x0, x21
	bl	_lg_fail
	cbnz	x0, LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_lg216x_initialize
	mov	x21, x0
	bl	_lg_fail
	cbz	w20, LBB0_11
; %bb.9:
	cbnz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #23
	mov	w2, #3
	bl	_lg216x_write_reg
	mov	x21, x0
	bl	_lg_fail
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lg216x_enable_fic
.subsections_via_symbols
