	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_config_wakeup3_sequence
_twl4030_config_wakeup3_sequence:       ## @twl4030_config_wakeup3_sequence
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %esi
	movq	_TWL_MODULE_PM_MASTER@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_R_SEQ_ADD_S2A3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %edi
	movq	_R_P3_SW_EVENTS@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-28(%rbp), %rsi
	callq	_twl_i2c_read_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	_PWR_LVL_WAKEUP@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %esi
	orl	(%rax), %esi
	movl	%esi, -28(%rbp)
	movl	(%r14), %edi
	movl	(%r15), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL_MODULE_PM_MASTER,4,2       ## @TWL_MODULE_PM_MASTER
	.comm	_R_SEQ_ADD_S2A3,4,2             ## @R_SEQ_ADD_S2A3
	.comm	_R_P3_SW_EVENTS,4,2             ## @R_P3_SW_EVENTS
	.comm	_PWR_LVL_WAKEUP,4,2             ## @PWR_LVL_WAKEUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TWL4030 wakeup sequence for P3 config error\n"

	.no_dead_strip	_twl4030_config_wakeup3_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_config_wakeup3_sequence
_twl4030_config_wakeup3_sequence:       ; @twl4030_config_wakeup3_sequence
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x1, x0
Lloh0:
	adrp	x20, _TWL_MODULE_PM_MASTER@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TWL_MODULE_PM_MASTER@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _R_SEQ_ADD_S2A3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_SEQ_ADD_S2A3@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_twl_i2c_write_u8
	mov	x19, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x20]
Lloh5:
	adrp	x21, _R_P3_SW_EVENTS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _R_P3_SW_EVENTS@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #12
	bl	_twl_i2c_read_u8
	mov	x19, x0
	cbnz	w0, LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _PWR_LVL_WAKEUP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PWR_LVL_WAKEUP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w1, w9, w8
	str	w1, [sp, #12]
	ldr	w0, [x20]
	ldr	w2, [x21]
	bl	_twl_i2c_write_u8
	mov	x19, x0
	cbz	w0, LBB0_4
LBB0_3:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_4:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL_MODULE_PM_MASTER,4,2       ; @TWL_MODULE_PM_MASTER
	.comm	_R_SEQ_ADD_S2A3,4,2             ; @R_SEQ_ADD_S2A3
	.comm	_R_P3_SW_EVENTS,4,2             ; @R_P3_SW_EVENTS
	.comm	_PWR_LVL_WAKEUP,4,2             ; @PWR_LVL_WAKEUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TWL4030 wakeup sequence for P3 config error\n"

	.no_dead_strip	_twl4030_config_wakeup3_sequence
.subsections_via_symbols
