	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_init_chip
_twl4030_init_chip:                     ## @twl4030_init_chip
	.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	%rdi, %r14
	movq	(%rdi), %r15
	xorl	%esi, %esi
	callq	_twl4030_codec_enable
	movq	_TWL4030_REG_OPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_TWL4030_REG_MISC_SET_2@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r13d
	jg	LBB0_3
## %bb.1:
	movslq	%r13d, %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_twl4030_write
	movslq	(%r12), %rax
	incq	%rbx
	incl	%r13d
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL4030_REG_OPTION,4,2         ## @TWL4030_REG_OPTION
	.comm	_TWL4030_REG_MISC_SET_2,4,2     ## @TWL4030_REG_MISC_SET_2
	.no_dead_strip	_twl4030_init_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_init_chip
_twl4030_init_chip:                     ; @twl4030_init_chip
	.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	x19, x0
	ldr	x21, [x0]
	mov	w1, #0
	bl	_twl4030_codec_enable
Lloh0:
	adrp	x8, _TWL4030_REG_OPTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWL4030_REG_OPTION@GOTPAGEOFF]
Lloh2:
	ldrsw	x20, [x8]
Lloh3:
	adrp	x22, _TWL4030_REG_MISC_SET_2@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TWL4030_REG_MISC_SET_2@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w20, w8
	b.gt	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21, x20, lsl #2]
	mov	x0, x19
	mov	x1, x20
	bl	_twl4030_write
	add	x8, x20, #1
	ldrsw	x9, [x22]
	cmp	x20, x9
	mov	x20, x8
	b.lt	LBB0_1
LBB0_2:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL4030_REG_OPTION,4,2         ; @TWL4030_REG_OPTION
	.comm	_TWL4030_REG_MISC_SET_2,4,2     ; @TWL4030_REG_MISC_SET_2
	.no_dead_strip	_twl4030_init_chip
.subsections_via_symbols
