	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nicvf_cq_intr_handler
_nicvf_cq_intr_handler:                 ## @nicvf_cq_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movl	$0, -64(%rbp)
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	40(%rax), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%r15,8), %rdi
	leaq	(,%r15,4), %rdx
	movq	8(%rax), %rcx
	addq	%rdx, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	addq	(%rax), %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	$0, -60(%rbp)
	movl	$0, -56(%rbp)
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	callq	_spin_lock_bh
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_NIC_QSET_CQ_0_7_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_nicvf_queue_reg_read
	movl	%eax, %r12d
	movq	_CQ_CQE_COUNT@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	je	LBB0_19
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_NIC_QSET_CQ_0_7_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_nicvf_queue_reg_read
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	shrl	$9, %eax
	movzwl	%ax, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$129, %eax
	jne	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %r8
	leaq	-56(%rbp), %r9
	callq	_nicvf_snd_pkt_handler
	incl	-52(%rbp)                       ## 4-byte Folded Spill
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=2
	incl	%r14d
	cmpl	%r14d, %r12d
	je	LBB0_15
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_GET_CQ_DESC
	movq	%rax, %rbx
	movl	%r13d, %eax
	incl	%eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movl	4(%rdx,%rcx,8), %r13d
	decl	%r13d
	andl	%eax, %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_GET_CQ_DESC
	movq	%rax, %rdi
	callq	_prefetch
	movl	(%rbx), %eax
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, -44(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$128, %eax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$129, %eax
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$132, %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-120(%rbp), %r8                 ## 8-byte Reload
	callq	_nicvf_rcv_pkt_handler
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_nicvf_snd_ptp_handler
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %r14d
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_NIC_QSET_CQ_0_7_DOOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_nicvf_queue_reg_write
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jl	LBB0_1
LBB0_19:
	movl	-64(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_21
## %bb.20:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_nicvf_put_sq_desc
LBB0_21:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_nicvf_netdev_qidx
	movl	%eax, %r14d
	movq	16(%rbx), %r13
	cmpq	$0, 32(%r13)
	je	LBB0_22
## %bb.23:
	cmpl	(%r13), %r14d
	jae	LBB0_25
## %bb.24:
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_nicvf_xdp_sq_doorbell
	jmp	LBB0_34
LBB0_22:
	movq	%r13, %rax
	movq	%rbx, %r13
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_29
	jmp	LBB0_27
LBB0_25:
	movq	16(%r13), %rax
	subl	(%rax), %r14d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_29
LBB0_27:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	movq	_MIN_SQ_DESC_PER_PKT_XMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_34
## %bb.28:
	movq	16(%r13), %rax
LBB0_29:
	movq	24(%rax), %r15
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_netdev_get_tx_queue
	movq	%rax, %r12
	movl	-60(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_31
## %bb.30:
	movl	-56(%rbp), %edx
	movq	%r12, %rdi
	callq	_netdev_tx_completed_queue
LBB0_31:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r12, %rdi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_34
## %bb.32:
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movq	%r12, %rdi
	callq	_netif_tx_wake_queue
	movq	16(%r13), %rbx
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_this_cpu_inc
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	%r14d, %r8d
	callq	_netif_warn
LBB0_34:
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_spin_unlock_bh
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_QSET_CQ_0_7_STATUS,4,2     ## @NIC_QSET_CQ_0_7_STATUS
	.comm	_CQ_CQE_COUNT,4,2               ## @CQ_CQE_COUNT
	.comm	_NIC_QSET_CQ_0_7_HEAD,4,2       ## @NIC_QSET_CQ_0_7_HEAD
	.comm	_NIC_QSET_CQ_0_7_DOOR,4,2       ## @NIC_QSET_CQ_0_7_DOOR
	.comm	_MIN_SQ_DESC_PER_PKT_XMIT,8,3   ## @MIN_SQ_DESC_PER_PKT_XMIT
	.comm	_tx_err,4,2                     ## @tx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Transmit queue wakeup SQ%d\n"

	.no_dead_strip	_nicvf_cq_intr_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nicvf_cq_intr_handler
_nicvf_cq_intr_handler:                 ; @nicvf_cq_intr_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x25, x2
	mov	x22, x1
	mov	x26, x0
	str	wzr, [sp, #44]
	bl	_netdev_priv
	mov	x27, x0
	ldr	x8, [x0, #40]
	ldp	x10, x9, [x8, #8]
	add	x19, x9, x22, lsl #3
	lsl	x9, x22, #2
	ldr	x8, [x8]
	add	x10, x10, x9
	add	x8, x8, x9
	stp	x8, x10, [sp, #16]              ; 16-byte Folded Spill
	stp	wzr, wzr, [sp, #36]
	mov	x0, x19
	bl	_spin_lock_bh
	mov	w21, #0
	str	wzr, [sp, #32]                  ; 4-byte Folded Spill
	add	x23, x19, #4
	stp	x22, x27, [sp]                  ; 16-byte Folded Spill
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
Lloh0:
	adrp	x8, _NIC_QSET_CQ_0_7_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_QSET_CQ_0_7_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x27
	mov	x2, x22
	bl	_nicvf_queue_reg_read
Lloh3:
	adrp	x8, _CQ_CQE_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CQ_CQE_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ands	w20, w8, w0
	b.eq	LBB0_19
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh6:
	adrp	x8, _NIC_QSET_CQ_0_7_HEAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NIC_QSET_CQ_0_7_HEAD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x27
	mov	x2, x22
	bl	_nicvf_queue_reg_read
	cmp	w20, #1
	b.lt	LBB0_16
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w28, #0
	ubfx	w22, w0, #9, #16
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=2
	cmp	w8, #129
	b.ne	LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x3, sp, #44
	add	x4, sp, #40
	add	x5, sp, #36
	mov	x0, x26
	mov	x1, x27
	mov	x2, x24
	bl	_nicvf_snd_pkt_handler
	add	w21, w21, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w28, w28, #1
	cmp	w20, w28
	b.eq	LBB0_14
LBB0_7:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x22
	bl	_GET_CQ_DESC
	mov	x27, x0
	add	w8, w22, #1
	ldr	w9, [x23]
	sub	w9, w9, #1
	and	w22, w9, w8
	mov	x0, x19
	mov	x1, x22
	bl	_GET_CQ_DESC
	bl	_prefetch
	ldr	w8, [x27]
	cbz	x25, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w9, [sp, #32]                   ; 4-byte Folded Reload
	cmp	w9, w24
	b.ge	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
	cmp	w8, #128
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	cmp	w8, #132
	b.ne	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x26
	mov	x1, x25
	mov	x2, x27
	ldp	x4, x3, [sp, #16]               ; 16-byte Folded Reload
	bl	_nicvf_rcv_pkt_handler
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x26
	mov	x1, x27
	bl	_nicvf_snd_ptp_handler
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x28, x20
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x22, x27, [sp]                  ; 16-byte Folded Reload
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w28, #0
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh9:
	adrp	x8, _NIC_QSET_CQ_0_7_DOOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NIC_QSET_CQ_0_7_DOOR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x27
	mov	x2, x22
	mov	x3, x28
	bl	_nicvf_queue_reg_write
	cbz	x25, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	cmp	w8, w24
	b.lt	LBB0_1
LBB0_19:
	ldr	w1, [sp, #44]
	cbz	w1, LBB0_21
; %bb.20:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_nicvf_put_sq_desc
LBB0_21:
	mov	x0, x27
	mov	x1, x22
	bl	_nicvf_netdev_qidx
	mov	x24, x0
	ldr	x9, [x27, #16]
	ldr	x8, [x9, #32]
	cbz	x8, LBB0_24
; %bb.22:
	ldr	w8, [x9]
	cmp	w24, w8
	b.hs	LBB0_25
; %bb.23:
	mov	x0, x27
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x22
	bl	_nicvf_xdp_sq_doorbell
	b	LBB0_33
LBB0_24:
	mov	x8, x9
	cbnz	w21, LBB0_28
	b	LBB0_26
LBB0_25:
	ldr	x8, [x9, #16]
	ldr	w10, [x8]
	sub	w24, w24, w10
	mov	x27, x9
	cbnz	w21, LBB0_28
LBB0_26:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_atomic_read
Lloh12:
	adrp	x8, _MIN_SQ_DESC_PER_PKT_XMIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MIN_SQ_DESC_PER_PKT_XMIT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_33
; %bb.27:
	ldr	x8, [x27, #16]
LBB0_28:
	ldr	x22, [x8, #24]
	mov	x0, x22
	mov	x1, x24
	bl	_netdev_get_tx_queue
	mov	x23, x0
	ldr	w1, [sp, #40]
	cbz	w1, LBB0_30
; %bb.29:
	ldr	w2, [sp, #36]
	mov	x0, x23
	bl	_netdev_tx_completed_queue
LBB0_30:
	bl	_smp_mb
	mov	x0, x23
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_33
; %bb.31:
	mov	x0, x22
	bl	_netif_carrier_ok
	cbz	x0, LBB0_33
; %bb.32:
	mov	x0, x23
	bl	_netif_tx_wake_queue
	ldr	x21, [x27, #16]
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_this_cpu_inc
Lloh15:
	adrp	x8, _tx_err@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	mov	x4, x24
	bl	_netif_warn
LBB0_33:
	mov	x0, x19
	bl	_spin_unlock_bh
	ldr	w0, [sp, #32]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_QSET_CQ_0_7_STATUS,4,2     ; @NIC_QSET_CQ_0_7_STATUS
	.comm	_CQ_CQE_COUNT,4,2               ; @CQ_CQE_COUNT
	.comm	_NIC_QSET_CQ_0_7_HEAD,4,2       ; @NIC_QSET_CQ_0_7_HEAD
	.comm	_NIC_QSET_CQ_0_7_DOOR,4,2       ; @NIC_QSET_CQ_0_7_DOOR
	.comm	_MIN_SQ_DESC_PER_PKT_XMIT,8,3   ; @MIN_SQ_DESC_PER_PKT_XMIT
	.comm	_tx_err,4,2                     ; @tx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Transmit queue wakeup SQ%d\n"

	.no_dead_strip	_nicvf_cq_intr_handler
.subsections_via_symbols
