	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_config_warmreset_sequence
_twl4030_config_warmreset_sequence:     ## @twl4030_config_warmreset_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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_WARM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	(%r14), %edi
	movq	_R_P1_SW_EVENTS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-36(%rbp), %rsi
	callq	_twl_i2c_read_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	_PWR_ENABLE_WARMRESET@GOTPCREL(%rip), %r15
	movl	-36(%rbp), %esi
	orl	(%r15), %esi
	movl	%esi, -36(%rbp)
	movl	(%r14), %edi
	movl	(%r12), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movl	(%r14), %edi
	movq	_R_P2_SW_EVENTS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-36(%rbp), %rsi
	callq	_twl_i2c_read_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movl	-36(%rbp), %esi
	orl	(%r15), %esi
	movl	%esi, -36(%rbp)
	movl	(%r14), %edi
	movl	(%r12), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	(%r14), %edi
	movq	_R_P3_SW_EVENTS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-36(%rbp), %rsi
	callq	_twl_i2c_read_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	-36(%rbp), %esi
	orl	(%r15), %esi
	movl	%esi, -36(%rbp)
	movl	(%r14), %edi
	movl	(%r12), %edx
	callq	_twl_i2c_write_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL_MODULE_PM_MASTER,4,2       ## @TWL_MODULE_PM_MASTER
	.comm	_R_SEQ_ADD_WARM,4,2             ## @R_SEQ_ADD_WARM
	.comm	_R_P1_SW_EVENTS,4,2             ## @R_P1_SW_EVENTS
	.comm	_PWR_ENABLE_WARMRESET,4,2       ## @PWR_ENABLE_WARMRESET
	.comm	_R_P2_SW_EVENTS,4,2             ## @R_P2_SW_EVENTS
	.comm	_R_P3_SW_EVENTS,4,2             ## @R_P3_SW_EVENTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TWL4030 warmreset seq config error\n"

	.no_dead_strip	_twl4030_config_warmreset_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_warmreset_sequence
_twl4030_config_warmreset_sequence:     ; @twl4030_config_warmreset_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_WARM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_SEQ_ADD_WARM@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_twl_i2c_write_u8
	mov	x19, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w0, [x20]
Lloh5:
	adrp	x22, _R_P1_SW_EVENTS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _R_P1_SW_EVENTS@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x1, sp, #12
	bl	_twl_i2c_read_u8
	mov	x19, x0
	cbnz	w0, LBB0_7
; %bb.2:
Lloh7:
	adrp	x21, _PWR_ENABLE_WARMRESET@GOTPAGE
Lloh8:
	ldr	x21, [x21, _PWR_ENABLE_WARMRESET@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	orr	w1, w9, w8
	str	w1, [sp, #12]
	ldr	w0, [x20]
	ldr	w2, [x22]
	bl	_twl_i2c_write_u8
	mov	x19, x0
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	w0, [x20]
Lloh9:
	adrp	x22, _R_P2_SW_EVENTS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _R_P2_SW_EVENTS@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x1, sp, #12
	bl	_twl_i2c_read_u8
	mov	x19, x0
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	orr	w1, w9, w8
	str	w1, [sp, #12]
	ldr	w0, [x20]
	ldr	w2, [x22]
	bl	_twl_i2c_write_u8
	mov	x19, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w0, [x20]
Lloh11:
	adrp	x22, _R_P3_SW_EVENTS@GOTPAGE
Lloh12:
	ldr	x22, [x22, _R_P3_SW_EVENTS@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x1, sp, #12
	bl	_twl_i2c_read_u8
	mov	x19, x0
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	orr	w1, w9, w8
	str	w1, [sp, #12]
	ldr	w0, [x20]
	ldr	w2, [x22]
	bl	_twl_i2c_write_u8
	mov	x19, x0
	cbz	w0, LBB0_8
LBB0_7:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_8:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL_MODULE_PM_MASTER,4,2       ; @TWL_MODULE_PM_MASTER
	.comm	_R_SEQ_ADD_WARM,4,2             ; @R_SEQ_ADD_WARM
	.comm	_R_P1_SW_EVENTS,4,2             ; @R_P1_SW_EVENTS
	.comm	_PWR_ENABLE_WARMRESET,4,2       ; @PWR_ENABLE_WARMRESET
	.comm	_R_P2_SW_EVENTS,4,2             ; @R_P2_SW_EVENTS
	.comm	_R_P3_SW_EVENTS,4,2             ; @R_P3_SW_EVENTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TWL4030 warmreset seq config error\n"

	.no_dead_strip	_twl4030_config_warmreset_sequence
.subsections_via_symbols
