	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nicvf_xmit
_nicvf_xmit:                            ## @nicvf_xmit
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_skb_get_queue_mapping
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_netdev_get_tx_queue
	movq	%rax, %rdi
	movq	(%r13), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_1
## %bb.2:
	cmpq	$0, 40(%r15)
	je	LBB0_4
## %bb.3:
	addl	32(%r15), %r14d
LBB0_4:
	movq	_MAX_SND_QUEUES_PER_QS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r14d
	jge	LBB0_6
## %bb.5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rcx
	jmp	LBB0_9
LBB0_6:
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	movq	24(%r15), %rcx
	movslq	%eax, %rsi
	movq	-8(%rcx,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	movl	%edx, %r14d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
LBB0_9:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rax
	movslq	%r14d, %r12
	shlq	$2, %r12
	addq	(%rax), %r12
	movq	%rdi, %rbx
	callq	_netif_tx_queue_stopped
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	_nicvf_sq_append_skb
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	%rbx, %rdi
	callq	_netif_tx_stop_queue
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r12, %rdi
	callq	_atomic_read
	movq	_MIN_SQ_DESC_PER_PKT_XMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_netif_tx_wake_queue
	jmp	LBB0_14
LBB0_7:
	decl	%eax
	movl	16(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_warn
LBB0_1:
	movq	%r13, %rdi
	callq	_dev_kfree_skb
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %r15
LBB0_15:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_this_cpu_inc
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %r8d
	callq	_netif_warn
LBB0_14:
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %r15
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_MAX_SND_QUEUES_PER_QS,4,2      ## @MAX_SND_QUEUES_PER_QS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Secondary Qset#%d's ptr not initialized\n"

	.comm	_MIN_SQ_DESC_PER_PKT_XMIT,8,3   ## @MIN_SQ_DESC_PER_PKT_XMIT
	.comm	_tx_err,4,2                     ## @tx_err
L_.str.1:                               ## @.str.1
	.asciz	"Transmit ring full, stopping SQ%d\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.no_dead_strip	_nicvf_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nicvf_xmit
_nicvf_xmit:                            ; @nicvf_xmit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x22
	bl	_skb_get_queue_mapping
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_netdev_get_tx_queue
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_12
; %bb.1:
	mov	x23, x0
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x20, #32]
	add	w21, w21, w8
LBB0_3:
Lloh3:
	adrp	x8, _MAX_SND_QUEUES_PER_QS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SND_QUEUES_PER_QS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ge	LBB0_5
; %bb.4:
	mov	x24, x20
	b	LBB0_7
LBB0_5:
	sdiv	w9, w21, w8
	ldr	x10, [x20, #24]
	sub	w2, w9, #1
	ldr	x24, [x10, w2, sxtw #3]
	cbz	x24, LBB0_11
; %bb.6:
	msub	w21, w9, w8, w21
LBB0_7:
	ldr	x8, [x24, #8]
	ldr	x25, [x8]
	mov	x0, x23
	bl	_netif_tx_queue_stopped
	cbnz	w0, LBB0_13
; %bb.8:
	add	x25, x25, w21, sxtw #2
	mov	x0, x24
	mov	x1, x25
	mov	x2, x22
	mov	x3, x21
	bl	_nicvf_sq_append_skb
	cbnz	w0, LBB0_13
; %bb.9:
	mov	x0, x23
	bl	_netif_tx_stop_queue
	bl	_smp_mb
	mov	x0, x25
	bl	_atomic_read
Lloh6:
	adrp	x8, _MIN_SQ_DESC_PER_PKT_XMIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIN_SQ_DESC_PER_PKT_XMIT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_15
; %bb.10:
	mov	x0, x23
	bl	_netif_tx_wake_queue
	b	LBB0_16
LBB0_11:
	ldr	w0, [x20, #16]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
LBB0_12:
	mov	x0, x22
	bl	_dev_kfree_skb
LBB0_13:
Lloh11:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_this_cpu_inc
Lloh13:
	adrp	x8, _tx_err@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x3, l_.str.1@PAGE
Lloh17:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x4, x21
	bl	_netif_warn
LBB0_16:
Lloh18:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_MAX_SND_QUEUES_PER_QS,4,2      ; @MAX_SND_QUEUES_PER_QS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Secondary Qset#%d's ptr not initialized\n"

	.comm	_MIN_SQ_DESC_PER_PKT_XMIT,8,3   ; @MIN_SQ_DESC_PER_PKT_XMIT
	.comm	_tx_err,4,2                     ; @tx_err
l_.str.1:                               ; @.str.1
	.asciz	"Transmit ring full, stopping SQ%d\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.no_dead_strip	_nicvf_xmit
.subsections_via_symbols
