	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ack_dbb_wakeup
_ack_dbb_wakeup:                        ## @ack_dbb_wakeup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_mb0_transfer@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_PRCM_MBOX_CPU_VAL@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_readl
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_MBOX_BIT
	testl	%ebx, %eax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	jmp	LBB0_2
LBB0_3:
	movq	_MB0H_READ_WAKEUP_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_tcdm_base@GOTPCREL(%rip), %rax
	movq	_PRCM_MBOX_HEADER_REQ_MB0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	callq	_writeb
	xorl	%edi, %edi
	callq	_MBOX_BIT
	movq	_PRCM_MBOX_CPU_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_writel
	movq	_mb0_transfer@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mb0_transfer,4,2               ## @mb0_transfer
	.comm	_PRCM_MBOX_CPU_VAL,4,2          ## @PRCM_MBOX_CPU_VAL
	.comm	_MB0H_READ_WAKEUP_ACK,4,2       ## @MB0H_READ_WAKEUP_ACK
	.comm	_tcdm_base,8,3                  ## @tcdm_base
	.comm	_PRCM_MBOX_HEADER_REQ_MB0,8,3   ## @PRCM_MBOX_HEADER_REQ_MB0
	.comm	_PRCM_MBOX_CPU_SET,4,2          ## @PRCM_MBOX_CPU_SET
	.no_dead_strip	_ack_dbb_wakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ack_dbb_wakeup
_ack_dbb_wakeup:                        ; @ack_dbb_wakeup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, _mb0_transfer@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mb0_transfer@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x20, _PRCM_MBOX_CPU_VAL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PRCM_MBOX_CPU_VAL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_readl
	mov	x19, x0
	mov	w0, #0
	bl	_MBOX_BIT
	tst	w0, w19
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	b	LBB0_1
LBB0_3:
Lloh4:
	adrp	x8, _MB0H_READ_WAKEUP_ACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MB0H_READ_WAKEUP_ACK@GOTPAGEOFF]
Lloh6:
	adrp	x9, _tcdm_base@GOTPAGE
Lloh7:
	ldr	x9, [x9, _tcdm_base@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	ldr	x8, [x9]
Lloh10:
	adrp	x9, _PRCM_MBOX_HEADER_REQ_MB0@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PRCM_MBOX_HEADER_REQ_MB0@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
	mov	w0, #0
	bl	_MBOX_BIT
Lloh13:
	adrp	x8, _PRCM_MBOX_CPU_SET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PRCM_MBOX_CPU_SET@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_writel
Lloh16:
	adrp	x0, _mb0_transfer@GOTPAGE
Lloh17:
	ldr	x0, [x0, _mb0_transfer@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mb0_transfer,4,2               ; @mb0_transfer
	.comm	_PRCM_MBOX_CPU_VAL,4,2          ; @PRCM_MBOX_CPU_VAL
	.comm	_MB0H_READ_WAKEUP_ACK,4,2       ; @MB0H_READ_WAKEUP_ACK
	.comm	_tcdm_base,8,3                  ; @tcdm_base
	.comm	_PRCM_MBOX_HEADER_REQ_MB0,8,3   ; @PRCM_MBOX_HEADER_REQ_MB0
	.comm	_PRCM_MBOX_CPU_SET,4,2          ; @PRCM_MBOX_CPU_SET
	.no_dead_strip	_ack_dbb_wakeup
.subsections_via_symbols
