	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_mbox_irq
_bcm2835_mbox_irq:                      ## @bcm2835_mbox_irq
	.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	%rsi, %rbx
	movq	8(%rsi), %r14
	movq	16(%rsi), %r15
	movq	_MAIL0_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rsi), %rdi
	callq	_readl
	movq	_ARM_MS_EMPTY@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	jne	LBB0_3
## %bb.1:
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MAIL0_RD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movl	%eax, -44(%rbp)
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mbox_chan_received_data
	movq	_MAIL0_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testl	%eax, (%r12)
	je	LBB0_2
LBB0_3:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAIL0_STA,8,3                  ## @MAIL0_STA
	.comm	_ARM_MS_EMPTY,4,2               ## @ARM_MS_EMPTY
	.comm	_MAIL0_RD,8,3                   ## @MAIL0_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reply 0x%08X\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_bcm2835_mbox_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_mbox_irq
_bcm2835_mbox_irq:                      ; @bcm2835_mbox_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	ldp	x21, x20, [x1, #8]
	ldr	x8, [x1]
Lloh0:
	adrp	x23, _MAIL0_STA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAIL0_STA@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x24, _ARM_MS_EMPTY@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ARM_MS_EMPTY@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.1:
Lloh4:
	adrp	x25, _MAIL0_RD@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MAIL0_RD@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	mov	x2, x0
	str	w0, [sp, #12]
	mov	x0, x20
	mov	x1, x22
	bl	_dev_dbg
	add	x1, sp, #12
	mov	x0, x21
	bl	_mbox_chan_received_data
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_3:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAIL0_STA,8,3                  ; @MAIL0_STA
	.comm	_ARM_MS_EMPTY,4,2               ; @ARM_MS_EMPTY
	.comm	_MAIL0_RD,8,3                   ; @MAIL0_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reply 0x%08X\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_bcm2835_mbox_irq
.subsections_via_symbols
