	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_twl4030_remove_script          ## -- Begin function twl4030_remove_script
	.p2align	4, 0x90
_twl4030_remove_script:                 ## @twl4030_remove_script
	.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
	movl	%edi, %r14d
	movq	_TWL_MODULE_PM_MASTER@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_TWL4030_PM_MASTER_KEY_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TWL4030_PM_MASTER_PROTECT_KEY@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_twl_i2c_write_u8
	leaq	L_.str(%rip), %r15
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_1:
	movl	(%r12), %edi
	movq	_TWL4030_PM_MASTER_KEY_CFG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_13:
	movq	%r15, %rdi
	callq	_pr_err
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_TWL4030_WRST_SCRIPT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	movq	_END_OF_SCRIPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_R_SEQ_ADD_WARM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_4:
	movq	_TWL4030_WAKEUP12_SCRIPT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%r12), %edi
	movq	_END_OF_SCRIPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_R_SEQ_ADD_S2A12@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_6:
	movq	_TWL4030_WAKEUP3_SCRIPT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	movl	(%r12), %edi
	movq	_END_OF_SCRIPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_R_SEQ_ADD_S2A3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_8:
	movq	_TWL4030_SLEEP_SCRIPT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
## %bb.9:
	movl	(%r12), %edi
	movq	_END_OF_SCRIPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_R_SEQ_ADD_A2S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_10:
	movl	(%r12), %edi
	movl	(%r13), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_twl_i2c_write_u8
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL_MODULE_PM_MASTER,4,2       ## @TWL_MODULE_PM_MASTER
	.comm	_TWL4030_PM_MASTER_KEY_CFG1,4,2 ## @TWL4030_PM_MASTER_KEY_CFG1
	.comm	_TWL4030_PM_MASTER_PROTECT_KEY,4,2 ## @TWL4030_PM_MASTER_PROTECT_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"twl4030: unable to unlock PROTECT_KEY\n"

	.comm	_TWL4030_PM_MASTER_KEY_CFG2,4,2 ## @TWL4030_PM_MASTER_KEY_CFG2
	.comm	_TWL4030_WRST_SCRIPT,4,2        ## @TWL4030_WRST_SCRIPT
	.comm	_END_OF_SCRIPT,4,2              ## @END_OF_SCRIPT
	.comm	_R_SEQ_ADD_WARM,4,2             ## @R_SEQ_ADD_WARM
	.comm	_TWL4030_WAKEUP12_SCRIPT,4,2    ## @TWL4030_WAKEUP12_SCRIPT
	.comm	_R_SEQ_ADD_S2A12,4,2            ## @R_SEQ_ADD_S2A12
	.comm	_TWL4030_WAKEUP3_SCRIPT,4,2     ## @TWL4030_WAKEUP3_SCRIPT
	.comm	_R_SEQ_ADD_S2A3,4,2             ## @R_SEQ_ADD_S2A3
	.comm	_TWL4030_SLEEP_SCRIPT,4,2       ## @TWL4030_SLEEP_SCRIPT
	.comm	_R_SEQ_ADD_A2S,4,2              ## @R_SEQ_ADD_A2S
L_.str.1:                               ## @.str.1
	.asciz	"TWL4030 Unable to relock registers\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_twl4030_remove_script          ; -- Begin function twl4030_remove_script
	.p2align	2
_twl4030_remove_script:                 ; @twl4030_remove_script
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _TWL_MODULE_PM_MASTER@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TWL_MODULE_PM_MASTER@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _TWL4030_PM_MASTER_KEY_CFG1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TWL4030_PM_MASTER_KEY_CFG1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x22, _TWL4030_PM_MASTER_PROTECT_KEY@GOTPAGE
Lloh6:
	ldr	x22, [x22, _TWL4030_PM_MASTER_PROTECT_KEY@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_twl_i2c_write_u8
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh7:
	adrp	x8, _TWL4030_PM_MASTER_KEY_CFG2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TWL4030_PM_MASTER_KEY_CFG2@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_twl_i2c_write_u8
	cbz	w0, LBB0_5
LBB0_2:
	mov	x20, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	bl	_pr_err
LBB0_4:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh12:
	adrp	x8, _TWL4030_WRST_SCRIPT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TWL4030_WRST_SCRIPT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x23, _END_OF_SCRIPT@GOTPAGE
Lloh16:
	ldr	x23, [x23, _END_OF_SCRIPT@GOTPAGEOFF]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x21]
	ldr	w1, [x23]
Lloh17:
	adrp	x8, _R_SEQ_ADD_WARM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _R_SEQ_ADD_WARM@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	bl	_twl_i2c_write_u8
	mov	x20, x0
	cbnz	w0, LBB0_4
LBB0_7:
Lloh20:
	adrp	x8, _TWL4030_WAKEUP12_SCRIPT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TWL4030_WAKEUP12_SCRIPT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x21]
	ldr	w1, [x23]
Lloh23:
	adrp	x8, _R_SEQ_ADD_S2A12@GOTPAGE
Lloh24:
	ldr	x8, [x8, _R_SEQ_ADD_S2A12@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_twl_i2c_write_u8
	mov	x20, x0
	cbnz	w0, LBB0_4
LBB0_9:
Lloh26:
	adrp	x8, _TWL4030_WAKEUP3_SCRIPT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TWL4030_WAKEUP3_SCRIPT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_11
; %bb.10:
	ldr	w0, [x21]
	ldr	w1, [x23]
Lloh29:
	adrp	x8, _R_SEQ_ADD_S2A3@GOTPAGE
Lloh30:
	ldr	x8, [x8, _R_SEQ_ADD_S2A3@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	bl	_twl_i2c_write_u8
	mov	x20, x0
	cbnz	w0, LBB0_4
LBB0_11:
Lloh32:
	adrp	x8, _TWL4030_SLEEP_SCRIPT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TWL4030_SLEEP_SCRIPT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_13
; %bb.12:
	ldr	w0, [x21]
	ldr	w1, [x23]
Lloh35:
	adrp	x8, _R_SEQ_ADD_A2S@GOTPAGE
Lloh36:
	ldr	x8, [x8, _R_SEQ_ADD_A2S@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	bl	_twl_i2c_write_u8
	mov	x20, x0
	cbnz	w0, LBB0_4
LBB0_13:
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_twl_i2c_write_u8
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.14:
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL_MODULE_PM_MASTER,4,2       ; @TWL_MODULE_PM_MASTER
	.comm	_TWL4030_PM_MASTER_KEY_CFG1,4,2 ; @TWL4030_PM_MASTER_KEY_CFG1
	.comm	_TWL4030_PM_MASTER_PROTECT_KEY,4,2 ; @TWL4030_PM_MASTER_PROTECT_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"twl4030: unable to unlock PROTECT_KEY\n"

	.comm	_TWL4030_PM_MASTER_KEY_CFG2,4,2 ; @TWL4030_PM_MASTER_KEY_CFG2
	.comm	_TWL4030_WRST_SCRIPT,4,2        ; @TWL4030_WRST_SCRIPT
	.comm	_END_OF_SCRIPT,4,2              ; @END_OF_SCRIPT
	.comm	_R_SEQ_ADD_WARM,4,2             ; @R_SEQ_ADD_WARM
	.comm	_TWL4030_WAKEUP12_SCRIPT,4,2    ; @TWL4030_WAKEUP12_SCRIPT
	.comm	_R_SEQ_ADD_S2A12,4,2            ; @R_SEQ_ADD_S2A12
	.comm	_TWL4030_WAKEUP3_SCRIPT,4,2     ; @TWL4030_WAKEUP3_SCRIPT
	.comm	_R_SEQ_ADD_S2A3,4,2             ; @R_SEQ_ADD_S2A3
	.comm	_TWL4030_SLEEP_SCRIPT,4,2       ; @TWL4030_SLEEP_SCRIPT
	.comm	_R_SEQ_ADD_A2S,4,2              ; @R_SEQ_ADD_A2S
l_.str.1:                               ; @.str.1
	.asciz	"TWL4030 Unable to relock registers\n"

.subsections_via_symbols
