	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poll_mbox
_poll_mbox:                             ## @poll_mbox
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	movq	_ISAR_IRQBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*(%r15)
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.1:
	movl	%eax, %r12d
	movq	_ISAR_IRQSTA@GOTPCREL(%rip), %r13
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r12d, (%r13)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_2
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	callq	_get_irq_infos
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_rcv_mbox
LBB0_7:
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	subl	%ebx, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %ecx
	callq	_pr_debug
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISAR_IRQBIT,4,2                ## @ISAR_IRQBIT
	.comm	_ISAR_IRQSTA,4,2                ## @ISAR_IRQSTA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: pulled %d bytes after %d us\n"

	.no_dead_strip	_poll_mbox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poll_mbox
_poll_mbox:                             ; @poll_mbox
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x9, _ISAR_IRQBIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISAR_IRQBIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	blr	x8
	cbz	w19, LBB0_4
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x23, _ISAR_IRQSTA@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ISAR_IRQSTA@GOTPAGEOFF]
	mov	x21, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	tst	w8, w22
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_udelay
	subs	w21, w21, #1
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w21, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_get_irq_infos
	mov	x0, x20
	mov	x1, #0
	bl	_rcv_mbox
LBB0_6:
	ldp	w2, w1, [x20, #8]
	sub	w3, w19, w21
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ISAR_IRQBIT,4,2                ; @ISAR_IRQBIT
	.comm	_ISAR_IRQSTA,4,2                ; @ISAR_IRQSTA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: pulled %d bytes after %d us\n"

	.no_dead_strip	_poll_mbox
.subsections_via_symbols
