	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl6040_power_up_manual
_twl6040_power_up_manual:               ## @twl6040_power_up_manual
	.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	_TWL6040_HSLDOENA@GOTPCREL(%rip), %rax
	movq	_TWL6040_REFENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_TWL6040_OSCENA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_TWL6040_REG_LDOCTL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%ebx, %edx
	callq	_twl6040_reg_write
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$10500, %esi                    ## imm = 0x2904
	callq	_usleep_range
	movq	_TWL6040_NCPENA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_TWL6040_REG_NCPCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_twl6040_reg_write
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	jmp	LBB0_12
LBB0_3:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
	movq	_TWL6040_LSLDOENA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_twl6040_reg_write
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	jmp	LBB0_11
LBB0_5:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
	movq	_TWL6040_LPLLENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TWL6040_REG_LPPLLCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_twl6040_reg_write
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_7:
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$5500, %esi                     ## imm = 0x157C
	callq	_usleep_range
	movq	_TWL6040_OSCENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_twl6040_reg_write
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r12d
	movq	_TWL6040_LPLLENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	andl	%eax, %edx
	movq	_TWL6040_REG_LPPLLCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_twl6040_reg_write
LBB0_10:
	movq	_TWL6040_LSLDOENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_twl6040_reg_write
LBB0_11:
	movq	_TWL6040_REG_NCPCTL@GOTPCREL(%rip), %rcx
	movq	_TWL6040_NCPENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_twl6040_reg_write
LBB0_12:
	movq	_TWL6040_HSLDOENA@GOTPCREL(%rip), %rax
	movq	_TWL6040_REFENA@GOTPCREL(%rip), %rcx
	movq	_TWL6040_OSCENA@GOTPCREL(%rip), %rsi
	movl	(%rcx), %edx
	orl	(%rax), %edx
	orl	(%rsi), %edx
	notl	%edx
	andl	%ebx, %edx
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_twl6040_reg_write
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL6040_HSLDOENA,4,2           ## @TWL6040_HSLDOENA
	.comm	_TWL6040_REFENA,4,2             ## @TWL6040_REFENA
	.comm	_TWL6040_OSCENA,4,2             ## @TWL6040_OSCENA
	.comm	_TWL6040_REG_LDOCTL,4,2         ## @TWL6040_REG_LDOCTL
	.comm	_TWL6040_NCPENA,4,2             ## @TWL6040_NCPENA
	.comm	_TWL6040_REG_NCPCTL,4,2         ## @TWL6040_REG_NCPCTL
	.comm	_TWL6040_LSLDOENA,4,2           ## @TWL6040_LSLDOENA
	.comm	_TWL6040_LPLLENA,4,2            ## @TWL6040_LPLLENA
	.comm	_TWL6040_REG_LPPLLCTL,4,2       ## @TWL6040_REG_LPPLLCTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"manual power-up failed\n"

	.no_dead_strip	_twl6040_power_up_manual
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl6040_power_up_manual
_twl6040_power_up_manual:               ; @twl6040_power_up_manual
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x24, _TWL6040_HSLDOENA@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TWL6040_HSLDOENA@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _TWL6040_REFENA@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TWL6040_REFENA@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh4:
	adrp	x26, _TWL6040_OSCENA@GOTPAGE
Lloh5:
	ldr	x26, [x26, _TWL6040_OSCENA@GOTPAGEOFF]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w20, w8, w9
Lloh6:
	adrp	x27, _TWL6040_REG_LDOCTL@GOTPAGE
Lloh7:
	ldr	x27, [x27, _TWL6040_REG_LDOCTL@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x2, x20
	bl	_twl6040_reg_write
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.1:
	mov	w0, #10000
	mov	w1, #10500
	bl	_usleep_range
Lloh8:
	adrp	x28, _TWL6040_NCPENA@GOTPAGE
Lloh9:
	ldr	x28, [x28, _TWL6040_NCPENA@GOTPAGEOFF]
	ldr	w21, [x28]
Lloh10:
	adrp	x23, _TWL6040_REG_NCPCTL@GOTPAGE
Lloh11:
	ldr	x23, [x23, _TWL6040_REG_NCPCTL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_twl6040_reg_write
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	b	LBB0_10
LBB0_3:
	mov	w0, #1000
	mov	w1, #1500
	bl	_usleep_range
Lloh12:
	adrp	x8, _TWL6040_LSLDOENA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TWL6040_LSLDOENA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x20
	bl	_twl6040_reg_write
	cbz	w0, LBB0_5
; %bb.4:
	mov	x22, x0
	b	LBB0_9
LBB0_5:
	mov	w0, #1000
	mov	w1, #1500
	bl	_usleep_range
Lloh15:
	adrp	x8, _TWL6040_LPLLENA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TWL6040_LPLLENA@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _TWL6040_REG_LPPLLCTL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TWL6040_REG_LPPLLCTL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
	bl	_twl6040_reg_write
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.6:
	mov	w0, #5000
	mov	w1, #5500
	bl	_usleep_range
	ldr	w8, [x26]
	bic	w20, w20, w8
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x20
	bl	_twl6040_reg_write
	mov	x22, x0
	cbz	w0, LBB0_11
; %bb.7:
Lloh21:
	adrp	x8, _TWL6040_LPLLENA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TWL6040_LPLLENA@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	bic	w2, w9, w8
Lloh24:
	adrp	x8, _TWL6040_REG_LPPLLCTL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TWL6040_REG_LPPLLCTL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_twl6040_reg_write
LBB0_8:
Lloh27:
	adrp	x8, _TWL6040_LSLDOENA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TWL6040_LSLDOENA@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	bic	w20, w20, w8
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x20
	bl	_twl6040_reg_write
LBB0_9:
	ldr	w8, [x28]
	bic	w2, w21, w8
	ldr	w1, [x23]
	mov	x0, x19
	bl	_twl6040_reg_write
LBB0_10:
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	bic	w2, w20, w8
	ldr	w1, [x27]
	mov	x0, x19
	bl	_twl6040_reg_write
	ldr	w0, [x19]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL6040_HSLDOENA,4,2           ; @TWL6040_HSLDOENA
	.comm	_TWL6040_REFENA,4,2             ; @TWL6040_REFENA
	.comm	_TWL6040_OSCENA,4,2             ; @TWL6040_OSCENA
	.comm	_TWL6040_REG_LDOCTL,4,2         ; @TWL6040_REG_LDOCTL
	.comm	_TWL6040_NCPENA,4,2             ; @TWL6040_NCPENA
	.comm	_TWL6040_REG_NCPCTL,4,2         ; @TWL6040_REG_NCPCTL
	.comm	_TWL6040_LSLDOENA,4,2           ; @TWL6040_LSLDOENA
	.comm	_TWL6040_LPLLENA,4,2            ; @TWL6040_LPLLENA
	.comm	_TWL6040_REG_LPPLLCTL,4,2       ; @TWL6040_REG_LPPLLCTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"manual power-up failed\n"

	.no_dead_strip	_twl6040_power_up_manual
.subsections_via_symbols
