	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mailbox_signal
_mailbox_signal:                        ## @mailbox_signal
	.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, %r13d
	movl	%edi, %r15d
	testl	%esi, %esi
	je	LBB0_1
## %bb.5:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	leal	16(%r15), %r12d
	movl	$1001, %r14d                    ## imm = 0x3E9
	movq	_FIRST_QSB_QID@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	addl	%r12d, %edi
	callq	_MBOX_IGU3_ISR_ISR
	leal	-1(%r14), %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$1, %r14d
	movl	%ebx, %r14d
	jne	LBB0_6
LBB0_8:
	addl	(%r13), %r12d
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_9
LBB0_1:
	movl	$1001, %r14d                    ## imm = 0x3E9
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_MBOX_IGU3_ISR_ISR
	leal	-1(%r14), %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %r14d
	movl	%ebx, %r14d
	jne	LBB0_2
LBB0_4:
	movl	%r15d, %r12d
LBB0_9:
	movl	%r12d, %edi
	callq	_MBOX_IGU3_ISRS_SET
	movq	_MBOX_IGU3_ISRS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	setg	%r12b
	movq	_MBOX_IGU3_ISR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IFX_REG_R32
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ASSERT                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FIRST_QSB_QID,4,2              ## @FIRST_QSB_QID
	.comm	_MBOX_IGU3_ISRS,8,3             ## @MBOX_IGU3_ISRS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue = %u, is_tx = %d, MBOX_IGU3_ISR = 0x%08x"

	.comm	_MBOX_IGU3_ISR,4,2              ## @MBOX_IGU3_ISR
	.no_dead_strip	_mailbox_signal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mailbox_signal
_mailbox_signal:                        ; @mailbox_signal
	.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
	cbz	w1, LBB0_4
; %bb.1:
	add	w22, w20, #16
	mov	w21, #1001
Lloh0:
	adrp	x23, _FIRST_QSB_QID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FIRST_QSB_QID@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x21
	ldr	w8, [x23]
	add	w0, w22, w8
	bl	_MBOX_IGU3_ISR_ISR
	sub	w21, w21, #1
	cmp	x0, #0
	ccmp	w24, #1, #4, ne
	b.ne	LBB0_2
; %bb.3:
	ldr	w8, [x23]
	add	w0, w22, w8
	b	LBB0_8
LBB0_4:
	mov	w21, #1001
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_MBOX_IGU3_ISR_ISR
	subs	w21, w21, #1
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	b.ne	LBB0_5
LBB0_7:
	mov	x0, x20
LBB0_8:
	bl	_MBOX_IGU3_ISRS_SET
Lloh2:
	adrp	x8, _MBOX_IGU3_ISRS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBOX_IGU3_ISRS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	w0, [x8]
	cmp	w21, #0
	cset	w21, gt
Lloh5:
	adrp	x8, _MBOX_IGU3_ISR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBOX_IGU3_ISR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_IFX_REG_R32
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x0
	mov	x0, x21
	mov	x2, x20
	mov	x3, 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
	b	_ASSERT
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FIRST_QSB_QID,4,2              ; @FIRST_QSB_QID
	.comm	_MBOX_IGU3_ISRS,8,3             ; @MBOX_IGU3_ISRS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue = %u, is_tx = %d, MBOX_IGU3_ISR = 0x%08x"

	.comm	_MBOX_IGU3_ISR,4,2              ; @MBOX_IGU3_ISR
	.no_dead_strip	_mailbox_signal
.subsections_via_symbols
