	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl6040_power_down_manual
_twl6040_power_down_manual:             ## @twl6040_power_down_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, %r12
	movq	_TWL6040_REG_NCPCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_twl6040_reg_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_TWL6040_REG_LDOCTL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_twl6040_reg_read
	movl	%eax, %r15d
	movq	_TWL6040_REG_LPPLLCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_twl6040_reg_read
	movl	%eax, %ebx
	movq	_TWL6040_OSCENA@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_twl6040_reg_write
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
	movq	_TWL6040_LPLLENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%ebx, %edx
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_twl6040_reg_write
	movq	_TWL6040_LSLDOENA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_twl6040_reg_write
	movq	_TWL6040_NCPENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	_TWL6040_REG_NCPCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_twl6040_reg_write
	movq	_TWL6040_HSLDOENA@GOTPCREL(%rip), %rax
	movq	_TWL6040_REFENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_TWL6040_OSCENA@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	%ebx, %edx
	movl	(%r13), %esi
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_twl6040_reg_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL6040_REG_NCPCTL,4,2         ## @TWL6040_REG_NCPCTL
	.comm	_TWL6040_REG_LDOCTL,4,2         ## @TWL6040_REG_LDOCTL
	.comm	_TWL6040_REG_LPPLLCTL,4,2       ## @TWL6040_REG_LPPLLCTL
	.comm	_TWL6040_OSCENA,4,2             ## @TWL6040_OSCENA
	.comm	_TWL6040_LPLLENA,4,2            ## @TWL6040_LPLLENA
	.comm	_TWL6040_LSLDOENA,4,2           ## @TWL6040_LSLDOENA
	.comm	_TWL6040_NCPENA,4,2             ## @TWL6040_NCPENA
	.comm	_TWL6040_HSLDOENA,4,2           ## @TWL6040_HSLDOENA
	.comm	_TWL6040_REFENA,4,2             ## @TWL6040_REFENA
	.no_dead_strip	_twl6040_power_down_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_down_manual
_twl6040_power_down_manual:             ; @twl6040_power_down_manual
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x24, _TWL6040_REG_NCPCTL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TWL6040_REG_NCPCTL@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_twl6040_reg_read
	mov	x20, x0
Lloh2:
	adrp	x23, _TWL6040_REG_LDOCTL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TWL6040_REG_LDOCTL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_twl6040_reg_read
	mov	x21, x0
Lloh4:
	adrp	x25, _TWL6040_REG_LPPLLCTL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _TWL6040_REG_LPPLLCTL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_twl6040_reg_read
	mov	x22, x0
Lloh6:
	adrp	x26, _TWL6040_OSCENA@GOTPAGE
Lloh7:
	ldr	x26, [x26, _TWL6040_OSCENA@GOTPAGEOFF]
	ldr	w8, [x26]
	orr	w21, w8, w21
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_twl6040_reg_write
	mov	w0, #1000
	mov	w1, #1500
	bl	_usleep_range
Lloh8:
	adrp	x8, _TWL6040_LPLLENA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TWL6040_LPLLENA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w2, w22, w8
	ldr	w1, [x25]
	mov	x0, x19
	bl	_twl6040_reg_write
Lloh11:
	adrp	x8, _TWL6040_LSLDOENA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TWL6040_LSLDOENA@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w21, w21, w8
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_twl6040_reg_write
Lloh14:
	adrp	x8, _TWL6040_NCPENA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TWL6040_NCPENA@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	bic	w2, w20, w8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_twl6040_reg_write
Lloh17:
	adrp	x8, _TWL6040_HSLDOENA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TWL6040_HSLDOENA@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _TWL6040_REFENA@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TWL6040_REFENA@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	bic	w2, w21, w8
	ldr	w1, [x23]
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_twl6040_reg_write
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL6040_REG_NCPCTL,4,2         ; @TWL6040_REG_NCPCTL
	.comm	_TWL6040_REG_LDOCTL,4,2         ; @TWL6040_REG_LDOCTL
	.comm	_TWL6040_REG_LPPLLCTL,4,2       ; @TWL6040_REG_LPPLLCTL
	.comm	_TWL6040_OSCENA,4,2             ; @TWL6040_OSCENA
	.comm	_TWL6040_LPLLENA,4,2            ; @TWL6040_LPLLENA
	.comm	_TWL6040_LSLDOENA,4,2           ; @TWL6040_LSLDOENA
	.comm	_TWL6040_NCPENA,4,2             ; @TWL6040_NCPENA
	.comm	_TWL6040_HSLDOENA,4,2           ; @TWL6040_HSLDOENA
	.comm	_TWL6040_REFENA,4,2             ; @TWL6040_REFENA
	.no_dead_strip	_twl6040_power_down_manual
.subsections_via_symbols
