	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_wait_for_boot
_arizona_wait_for_boot:                 ## @arizona_wait_for_boot
	.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
	movq	%rdi, %r14
	movq	_ARIZONA_INTERRUPT_RAW_STATUS_5@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ARIZONA_BOOT_DONE_STS@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	$30, %esi
	movl	%ecx, %r8d
	callq	_arizona_poll_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	movq	_ARIZONA_INTERRUPT_STATUS_5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	callq	_regmap_write
LBB0_2:
	movl	(%r14), %edi
	callq	_pm_runtime_mark_last_busy
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARIZONA_INTERRUPT_RAW_STATUS_5,4,2 ## @ARIZONA_INTERRUPT_RAW_STATUS_5
	.comm	_ARIZONA_BOOT_DONE_STS,4,2      ## @ARIZONA_BOOT_DONE_STS
	.comm	_ARIZONA_INTERRUPT_STATUS_5,4,2 ## @ARIZONA_INTERRUPT_STATUS_5
	.no_dead_strip	_arizona_wait_for_boot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_wait_for_boot
_arizona_wait_for_boot:                 ; @arizona_wait_for_boot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x8, _ARIZONA_INTERRUPT_RAW_STATUS_5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARIZONA_INTERRUPT_RAW_STATUS_5@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x21, _ARIZONA_BOOT_DONE_STS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ARIZONA_BOOT_DONE_STS@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	w1, #30
	mov	x4, x3
	bl	_arizona_poll_reg
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x8, _ARIZONA_INTERRUPT_STATUS_5@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARIZONA_INTERRUPT_STATUS_5@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x21]
	bl	_regmap_write
LBB0_2:
	ldr	w0, [x19]
	bl	_pm_runtime_mark_last_busy
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ARIZONA_INTERRUPT_RAW_STATUS_5,4,2 ; @ARIZONA_INTERRUPT_RAW_STATUS_5
	.comm	_ARIZONA_BOOT_DONE_STS,4,2      ; @ARIZONA_BOOT_DONE_STS
	.comm	_ARIZONA_INTERRUPT_STATUS_5,4,2 ; @ARIZONA_INTERRUPT_STATUS_5
	.no_dead_strip	_arizona_wait_for_boot
.subsections_via_symbols
