	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function an30259a_init_default_state
_an30259a_init_default_state:           ## @an30259a_init_default_state
	.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, %rbx
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.2:
	movq	_LED_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	16(%rbx), %r14
	movl	(%r14), %edi
	movq	_AN30259A_REG_LED_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movl	-28(%rbp), %r15d
	movl	8(%rbx), %edi
	callq	_AN30259A_LED_EN
	testl	%r15d, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r14), %r14d
	movl	8(%rbx), %edi
	callq	_AN30259A_REG_LEDCC
	leaq	4(%rbx), %rdx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_read
	jmp	LBB0_8
LBB0_6:
	movq	_LED_OFF@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_8:
	movl	4(%rbx), %esi
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_an30259a_brightness_set
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_AN30259A_REG_LED_ON,4,2        ## @AN30259A_REG_LED_ON
	.comm	_LED_OFF,8,3                    ## @LED_OFF
	.no_dead_strip	_an30259a_init_default_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function an30259a_init_default_state
_an30259a_init_default_state:           ; @an30259a_init_default_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_7
LBB0_3:
	ldr	x20, [x19, #16]
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _AN30259A_REG_LED_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AN30259A_REG_LED_ON@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w21, [sp, #12]
	ldr	w0, [x19, #8]
	bl	_AN30259A_LED_EN
	tst	w0, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	w20, [x20]
	ldr	w0, [x19, #8]
	bl	_AN30259A_REG_LEDCC
	mov	x1, x0
	add	x2, x19, #4
	mov	x0, x20
	bl	_regmap_read
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	w8, [x19, #4]
LBB0_7:
	ldr	w1, [x19, #4]!
	mov	x0, x19
	bl	_an30259a_brightness_set
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_AN30259A_REG_LED_ON,4,2        ; @AN30259A_REG_LED_ON
	.comm	_LED_OFF,8,3                    ; @LED_OFF
	.no_dead_strip	_an30259a_init_default_state
.subsections_via_symbols
