	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_config_wakeup12_sequence
_twl4030_config_wakeup12_sequence:      ## @twl4030_config_wakeup12_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	%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	_TWL_MODULE_PM_MASTER@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_R_SEQ_ADD_S2A12@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movl	(%r15), %edi
	movq	_R_P1_SW_EVENTS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-44(%rbp), %rsi
	callq	_twl_i2c_read_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	movq	_PWR_LVL_WAKEUP@GOTPCREL(%rip), %r12
	movl	-44(%rbp), %esi
	orl	(%r12), %esi
	movl	%esi, -44(%rbp)
	movl	(%r15), %edi
	movl	(%r13), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movl	(%r15), %edi
	movq	_R_P2_SW_EVENTS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-44(%rbp), %rsi
	callq	_twl_i2c_read_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movl	-44(%rbp), %esi
	orl	(%r12), %esi
	movl	%esi, -44(%rbp)
	movl	(%r15), %edi
	movl	(%r13), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	cmpq	$0, (%r14)
	jne	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_machine_is_omap_3430sdp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_machine_is_omap_ldp
	testq	%rax, %rax
	je	LBB0_12
LBB0_8:
	movl	(%r15), %edi
	movq	_R_CFG_P1_TRANSITION@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-44(%rbp), %rsi
	callq	_twl_i2c_read_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	_STARTON_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	-44(%rbp), %esi
	movl	%esi, -44(%rbp)
	movl	(%r15), %edi
	movl	(%r14), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL_MODULE_PM_MASTER,4,2       ## @TWL_MODULE_PM_MASTER
	.comm	_R_SEQ_ADD_S2A12,4,2            ## @R_SEQ_ADD_S2A12
	.comm	_R_P1_SW_EVENTS,4,2             ## @R_P1_SW_EVENTS
	.comm	_PWR_LVL_WAKEUP,4,2             ## @PWR_LVL_WAKEUP
	.comm	_R_P2_SW_EVENTS,4,2             ## @R_P2_SW_EVENTS
	.comm	_R_CFG_P1_TRANSITION,4,2        ## @R_CFG_P1_TRANSITION
	.comm	_STARTON_CHG,4,2                ## @STARTON_CHG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TWL4030 wakeup sequence for P1 and P2config error\n"

	.no_dead_strip	_twl4030_config_wakeup12_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_wakeup12_sequence
_twl4030_config_wakeup12_sequence:      ; @twl4030_config_wakeup12_sequence
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	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, _R_SEQ_ADD_S2A12@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_SEQ_ADD_S2A12@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_twl_i2c_write_u8
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	w0, [x21]
Lloh5:
	adrp	x23, _R_P1_SW_EVENTS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _R_P1_SW_EVENTS@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x1, sp, #12
	bl	_twl_i2c_read_u8
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.2:
Lloh7:
	adrp	x22, _PWR_LVL_WAKEUP@GOTPAGE
Lloh8:
	ldr	x22, [x22, _PWR_LVL_WAKEUP@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [sp, #12]
	orr	w1, w9, w8
	str	w1, [sp, #12]
	ldr	w0, [x21]
	ldr	w2, [x23]
	bl	_twl_i2c_write_u8
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	w0, [x21]
Lloh9:
	adrp	x23, _R_P2_SW_EVENTS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _R_P2_SW_EVENTS@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x1, sp, #12
	bl	_twl_i2c_read_u8
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w8, [x22]
	ldr	w9, [sp, #12]
	orr	w1, w9, w8
	str	w1, [sp, #12]
	ldr	w0, [x21]
	ldr	w2, [x23]
	bl	_twl_i2c_write_u8
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	x8, [x19]
	cbnz	x8, LBB0_8
; %bb.6:
	bl	_machine_is_omap_3430sdp
	cbnz	x0, LBB0_8
; %bb.7:
	bl	_machine_is_omap_ldp
	cbz	x0, LBB0_12
LBB0_8:
	ldr	w0, [x21]
Lloh11:
	adrp	x19, _R_CFG_P1_TRANSITION@GOTPAGE
Lloh12:
	ldr	x19, [x19, _R_CFG_P1_TRANSITION@GOTPAGEOFF]
	ldr	w2, [x19]
	add	x1, sp, #12
	bl	_twl_i2c_read_u8
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _STARTON_CHG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STARTON_CHG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w1, w9, w8
	str	w1, [sp, #12]
	ldr	w0, [x21]
	ldr	w2, [x19]
	bl	_twl_i2c_write_u8
	mov	x20, x0
	cbz	w0, LBB0_11
LBB0_10:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_12:
	mov	w20, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL_MODULE_PM_MASTER,4,2       ; @TWL_MODULE_PM_MASTER
	.comm	_R_SEQ_ADD_S2A12,4,2            ; @R_SEQ_ADD_S2A12
	.comm	_R_P1_SW_EVENTS,4,2             ; @R_P1_SW_EVENTS
	.comm	_PWR_LVL_WAKEUP,4,2             ; @PWR_LVL_WAKEUP
	.comm	_R_P2_SW_EVENTS,4,2             ; @R_P2_SW_EVENTS
	.comm	_R_CFG_P1_TRANSITION,4,2        ; @R_CFG_P1_TRANSITION
	.comm	_STARTON_CHG,4,2                ; @STARTON_CHG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TWL4030 wakeup sequence for P1 and P2config error\n"

	.no_dead_strip	_twl4030_config_wakeup12_sequence
.subsections_via_symbols
