	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_power_up
_twl4030_power_up:                      ## @twl4030_power_up
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_twl4030_codec_enable
	movq	_TWL4030_REG_ANAMICL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_twl4030_read_reg_cache
	movl	(%r15), %esi
	movq	_TWL4030_CNCL_OFFSET_START@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_twl4030_write
	movl	$101, %ebx
	movq	_TWL4030_MODULE_AUDIO_VOICE@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_udelay
	movl	(%r14), %edi
	movl	(%r15), %edx
	movq	%r13, %rsi
	callq	_twl4030_i2c_read_u8
	decl	%ebx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx
	movl	%edx, %eax
	notl	%eax
	testl	%eax, (%r12)
	je	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	-44(%rbp), %edx
LBB0_5:
	movl	(%r15), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_twl4030_write_reg_cache
	movq	_TWL4030_REG_MISC_SET_1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_twl4030_read_reg_cache
	movl	(%r14), %esi
	movq	_TWL4030_SMOOTH_ANAVOL_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_twl4030_write
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_twl4030_codec_enable
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_twl4030_codec_enable
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL4030_REG_ANAMICL,4,2        ## @TWL4030_REG_ANAMICL
	.comm	_TWL4030_CNCL_OFFSET_START,4,2  ## @TWL4030_CNCL_OFFSET_START
	.comm	_TWL4030_MODULE_AUDIO_VOICE,4,2 ## @TWL4030_MODULE_AUDIO_VOICE
	.comm	_TWL4030_REG_MISC_SET_1,4,2     ## @TWL4030_REG_MISC_SET_1
	.comm	_TWL4030_SMOOTH_ANAVOL_EN,4,2   ## @TWL4030_SMOOTH_ANAVOL_EN
	.no_dead_strip	_twl4030_power_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_power_up
_twl4030_power_up:                      ; @twl4030_power_up
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	w1, #1
	bl	_twl4030_codec_enable
Lloh0:
	adrp	x20, _TWL4030_REG_ANAMICL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TWL4030_REG_ANAMICL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_twl4030_read_reg_cache
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _TWL4030_CNCL_OFFSET_START@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TWL4030_CNCL_OFFSET_START@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_twl4030_write
	mov	w22, #101
Lloh4:
	adrp	x23, _TWL4030_MODULE_AUDIO_VOICE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _TWL4030_MODULE_AUDIO_VOICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #2000
	bl	_udelay
	ldr	w0, [x23]
	ldr	w2, [x20]
	add	x1, sp, #12
	bl	_twl4030_i2c_read_u8
	subs	w22, w22, #1
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [sp, #12]
	ldr	w8, [x21]
	bics	wzr, w8, w2
	b.eq	LBB0_2
	b	LBB0_5
LBB0_4:
	ldr	w2, [sp, #12]
LBB0_5:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_twl4030_write_reg_cache
Lloh6:
	adrp	x20, _TWL4030_REG_MISC_SET_1@GOTPAGE
Lloh7:
	ldr	x20, [x20, _TWL4030_REG_MISC_SET_1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_twl4030_read_reg_cache
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _TWL4030_SMOOTH_ANAVOL_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TWL4030_SMOOTH_ANAVOL_EN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_twl4030_write
	mov	x0, x19
	mov	w1, #0
	bl	_twl4030_codec_enable
	mov	x0, x19
	mov	w1, #1
	bl	_twl4030_codec_enable
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL4030_REG_ANAMICL,4,2        ; @TWL4030_REG_ANAMICL
	.comm	_TWL4030_CNCL_OFFSET_START,4,2  ; @TWL4030_CNCL_OFFSET_START
	.comm	_TWL4030_MODULE_AUDIO_VOICE,4,2 ; @TWL4030_MODULE_AUDIO_VOICE
	.comm	_TWL4030_REG_MISC_SET_1,4,2     ; @TWL4030_REG_MISC_SET_1
	.comm	_TWL4030_SMOOTH_ANAVOL_EN,4,2   ; @TWL4030_SMOOTH_ANAVOL_EN
	.no_dead_strip	_twl4030_power_up
.subsections_via_symbols
