	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic_mbx_intr_handler
_nic_mbx_intr_handler:                  ## @nic_mbx_intr_handler
	.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
	movl	%edi, %r14d
	movq	(%rsi), %rdi
	movq	_NIC_PF_INTR_ID_MBOX0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_irq_vector
	movl	%eax, %r15d
	xorl	%r12d, %r12d
	cmpl	%r14d, %eax
	setne	%r12b
	movq	_NIC_PF_MAILBOX_INT@GOTPCREL(%rip), %rax
	leaq	(,%r12,8), %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_nic_reg_read
	movq	%rax, %r13
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_NIC_VF_PER_MBX_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r12, %rsi
	movq	%rbx, %rdi
	callq	_nic_handle_mbx_intr
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nic_clear_mbx_intr
	movq	_NIC_VF_PER_MBX_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	%rdx, %r12
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	btq	%r12, %r13
	jae	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %r15d
	movq	(%rbx), %rdi
	movl	$0, %eax
	cmoveq	%rax, %rdx
	addq	%r12, %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$0, %esi
	cmpl	%r14d, %r15d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NIC_VF_PER_MBX_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_5
LBB0_7:
	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	_NIC_PF_INTR_ID_MBOX0,4,2       ## @NIC_PF_INTR_ID_MBOX0
	.comm	_NIC_PF_MAILBOX_INT,8,3         ## @NIC_PF_MAILBOX_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PF interrupt Mbox%d 0x%llx\n"

	.comm	_NIC_VF_PER_MBX_REG,8,3         ## @NIC_VF_PER_MBX_REG
L_.str.1:                               ## @.str.1
	.asciz	"Intr from VF %d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic_mbx_intr_handler
_nic_mbx_intr_handler:                  ; @nic_mbx_intr_handler
	.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
	mov	x20, x0
	ldr	x0, [x1]
Lloh0:
	adrp	x8, _NIC_PF_INTR_ID_MBOX0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_PF_INTR_ID_MBOX0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pci_irq_vector
	mov	x21, x0
	cmp	w0, w20
	cset	w22, ne
Lloh3:
	adrp	x8, _NIC_PF_MAILBOX_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIC_PF_MAILBOX_INT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, w22, uxtw #3
	mov	x0, x19
	bl	_nic_reg_read
	mov	x23, x0
	ldr	x0, [x19]
	str	x23, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
Lloh8:
	adrp	x26, _NIC_VF_PER_MBX_REG@GOTPAGE
Lloh9:
	ldr	x26, [x26, _NIC_VF_PER_MBX_REG@GOTPAGEOFF]
	ldr	x8, [x26]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x24, #0
Lloh10:
	adrp	x25, l_.str.1@PAGE
Lloh11:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	cmp	x24, x8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	x9, x23, x24
	tbz	w9, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19]
	cmp	w21, w20
	csel	x8, x8, xzr, ne
	add	x2, x8, x24
	mov	x1, x25
	bl	_dev_dbg
	cmp	w21, w20
	ldr	x8, [x26]
	csel	x8, x8, xzr, ne
	add	x1, x8, x24
	mov	x0, x19
	bl	_nic_handle_mbx_intr
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	bl	_nic_clear_mbx_intr
	ldr	x8, [x26]
	b	LBB0_2
LBB0_5:
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh14:
	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	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_PF_INTR_ID_MBOX0,4,2       ; @NIC_PF_INTR_ID_MBOX0
	.comm	_NIC_PF_MAILBOX_INT,8,3         ; @NIC_PF_MAILBOX_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PF interrupt Mbox%d 0x%llx\n"

	.comm	_NIC_VF_PER_MBX_REG,8,3         ; @NIC_VF_PER_MBX_REG
l_.str.1:                               ; @.str.1
	.asciz	"Intr from VF %d\n"

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