	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_mailbox_0
_read_mailbox_0:                        ## @read_mailbox_0
	.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	_tcdm_base@GOTPCREL(%rip), %rbx
	movq	_PRCM_MBOX_HEADER_ACK_MB0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readb
	movl	%eax, %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	jne	LBB0_14
## %bb.1:
	movq	_PRCM_ACK_MB0_READ_POINTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readb
	testb	$1, %al
	jne	LBB0_2
## %bb.3:
	movq	_PRCM_ACK_MB0_WAKEUP_0_8500@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_14:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_print_unknown_header_warning
	jmp	LBB0_15
LBB0_2:
	movq	_PRCM_ACK_MB0_WAKEUP_1_8500@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	_WAKEUP_BIT_AC_WAKE_ACK@GOTPCREL(%rip), %rax
	movq	_WAKEUP_BIT_AC_SLEEP_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_6
## %bb.5:
	movq	_mb0_transfer@GOTPCREL(%rip), %rdi
	addq	$4, %rdi
	callq	_complete
LBB0_6:
	movq	_WAKEUP_BIT_SYSCLK_OK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_mb3_transfer@GOTPCREL(%rip), %rdi
	callq	_complete
LBB0_8:
	movq	_NUM_PRCMU_WAKEUPS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	$1, %ebx
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	movq	_mb0_transfer@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	andl	%r14d, %r12d
	xorl	%ebx, %ebx
	movq	_prcmu_irq_bit@GOTPCREL(%rip), %r13
	movq	_db8500_irq_domain@GOTPCREL(%rip), %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	testl	%r12d, (%rcx,%rbx,4)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
	movl	(%r15), %eax
	jmp	LBB0_12
LBB0_13:
	movl	$1, %ebx
LBB0_15:
	xorl	%edi, %edi
	callq	_MBOX_BIT
	movq	_PRCM_ARM_IT1_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_writel
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tcdm_base,8,3                  ## @tcdm_base
	.comm	_PRCM_MBOX_HEADER_ACK_MB0,8,3   ## @PRCM_MBOX_HEADER_ACK_MB0
	.comm	_PRCM_ACK_MB0_READ_POINTER,8,3  ## @PRCM_ACK_MB0_READ_POINTER
	.comm	_PRCM_ACK_MB0_WAKEUP_1_8500,8,3 ## @PRCM_ACK_MB0_WAKEUP_1_8500
	.comm	_PRCM_ACK_MB0_WAKEUP_0_8500,8,3 ## @PRCM_ACK_MB0_WAKEUP_0_8500
	.comm	_WAKEUP_BIT_AC_WAKE_ACK,4,2     ## @WAKEUP_BIT_AC_WAKE_ACK
	.comm	_WAKEUP_BIT_AC_SLEEP_ACK,4,2    ## @WAKEUP_BIT_AC_SLEEP_ACK
	.comm	_mb0_transfer,8,2               ## @mb0_transfer
	.comm	_WAKEUP_BIT_SYSCLK_OK,4,2       ## @WAKEUP_BIT_SYSCLK_OK
	.comm	_mb3_transfer,4,2               ## @mb3_transfer
	.comm	_NUM_PRCMU_WAKEUPS,4,2          ## @NUM_PRCMU_WAKEUPS
	.comm	_prcmu_irq_bit,8,3              ## @prcmu_irq_bit
	.comm	_db8500_irq_domain,4,2          ## @db8500_irq_domain
	.comm	_PRCM_ARM_IT1_CLR,4,2           ## @PRCM_ARM_IT1_CLR
	.no_dead_strip	_read_mailbox_0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_mailbox_0
_read_mailbox_0:                        ; @read_mailbox_0
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x19, _tcdm_base@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tcdm_base@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _PRCM_MBOX_HEADER_ACK_MB0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PRCM_MBOX_HEADER_ACK_MB0@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readb
	and	w8, w0, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.1:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _PRCM_ACK_MB0_READ_POINTER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PRCM_ACK_MB0_READ_POINTER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readb
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _PRCM_ACK_MB0_WAKEUP_0_8500@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PRCM_ACK_MB0_WAKEUP_0_8500@GOTPAGEOFF]
Lloh10:
	adrp	x10, _PRCM_ACK_MB0_WAKEUP_1_8500@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PRCM_ACK_MB0_WAKEUP_1_8500@GOTPAGEOFF]
	tst	w0, #0x1
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
Lloh12:
	adrp	x8, _WAKEUP_BIT_AC_WAKE_ACK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WAKEUP_BIT_AC_WAKE_ACK@GOTPAGEOFF]
Lloh14:
	adrp	x9, _WAKEUP_BIT_AC_SLEEP_ACK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WAKEUP_BIT_AC_SLEEP_ACK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x22, _mb0_transfer@GOTPAGE
Lloh19:
	ldr	x22, [x22, _mb0_transfer@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	add	x0, x22, #4
	bl	_complete
LBB0_3:
Lloh20:
	adrp	x8, _WAKEUP_BIT_SYSCLK_OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WAKEUP_BIT_SYSCLK_OK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh23:
	adrp	x0, _mb3_transfer@GOTPAGE
Lloh24:
	ldr	x0, [x0, _mb3_transfer@GOTPAGEOFF]
	bl	_complete
LBB0_5:
Lloh25:
	adrp	x21, _NUM_PRCMU_WAKEUPS@GOTPAGE
Lloh26:
	ldr	x21, [x21, _NUM_PRCMU_WAKEUPS@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.6:
	mov	x19, #0
	ldr	w9, [x22]
	and	w20, w9, w20
Lloh27:
	adrp	x22, _prcmu_irq_bit@GOTPAGE
Lloh28:
	ldr	x22, [x22, _prcmu_irq_bit@GOTPAGEOFF]
Lloh29:
	adrp	x23, _db8500_irq_domain@GOTPAGE
Lloh30:
	ldr	x23, [x23, _db8500_irq_domain@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x19, x19, #1
	cmp	x19, w8, uxtw
	b.hs	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	ldr	w9, [x9, x19, lsl #2]
	tst	w20, w9
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x23]
	mov	x1, x19
	bl	_irq_find_mapping
	bl	_generic_handle_irq
	ldr	w8, [x21]
	b	LBB0_7
LBB0_10:
	mov	x1, x0
	mov	w0, #0
	bl	_print_unknown_header_warning
	mov	w19, #0
	b	LBB0_12
LBB0_11:
	mov	w19, #1
LBB0_12:
	mov	w0, #0
	bl	_MBOX_BIT
Lloh31:
	adrp	x8, _PRCM_ARM_IT1_CLR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PRCM_ARM_IT1_CLR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_writel
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_tcdm_base,8,3                  ; @tcdm_base
	.comm	_PRCM_MBOX_HEADER_ACK_MB0,8,3   ; @PRCM_MBOX_HEADER_ACK_MB0
	.comm	_PRCM_ACK_MB0_READ_POINTER,8,3  ; @PRCM_ACK_MB0_READ_POINTER
	.comm	_PRCM_ACK_MB0_WAKEUP_1_8500,8,3 ; @PRCM_ACK_MB0_WAKEUP_1_8500
	.comm	_PRCM_ACK_MB0_WAKEUP_0_8500,8,3 ; @PRCM_ACK_MB0_WAKEUP_0_8500
	.comm	_WAKEUP_BIT_AC_WAKE_ACK,4,2     ; @WAKEUP_BIT_AC_WAKE_ACK
	.comm	_WAKEUP_BIT_AC_SLEEP_ACK,4,2    ; @WAKEUP_BIT_AC_SLEEP_ACK
	.comm	_mb0_transfer,8,2               ; @mb0_transfer
	.comm	_WAKEUP_BIT_SYSCLK_OK,4,2       ; @WAKEUP_BIT_SYSCLK_OK
	.comm	_mb3_transfer,4,2               ; @mb3_transfer
	.comm	_NUM_PRCMU_WAKEUPS,4,2          ; @NUM_PRCMU_WAKEUPS
	.comm	_prcmu_irq_bit,8,3              ; @prcmu_irq_bit
	.comm	_db8500_irq_domain,4,2          ; @db8500_irq_domain
	.comm	_PRCM_ARM_IT1_CLR,4,2           ; @PRCM_ARM_IT1_CLR
	.no_dead_strip	_read_mailbox_0
.subsections_via_symbols
