	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netcp_ndo_start_xmit
_netcp_ndo_start_xmit:                  ## @netcp_ndo_start_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_skb_get_queue_mapping
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpq	$0, (%r13)
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_dev_kfree_skb
LBB0_14:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_2:
	movq	(%r13), %rax
	movq	_NETCP_MIN_PACKET_SIZE@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_6
## %bb.3:
	movq	(%r12), %rsi
	movq	%r13, %rdi
	callq	_skb_padto
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	(%r12), %rax
	movq	%rax, (%r13)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_6:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_netcp_tx_map_skb
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_netif_stop_subqueue
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_11:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_netcp_tx_submit_skb
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
LBB0_8:
	incl	12(%r14)
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_netcp_free_tx_desc_chain
LBB0_10:
	movq	%r13, %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_15
LBB0_4:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	incl	12(%r14)
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	8(%r14), %edi
	callq	_knav_pool_count
	cmpl	(%r14), %eax
	jge	LBB0_14
## %bb.13:
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_netif_stop_subqueue
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_NETCP_MIN_PACKET_SIZE,8,3      ## @NETCP_MIN_PACKET_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"padding failed (%d), packet dropped\n"

	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
L_.str.1:                               ## @.str.1
	.asciz	"pausing tx, count(%d)\n"

	.no_dead_strip	_netcp_ndo_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netcp_ndo_start_xmit
_netcp_ndo_start_xmit:                  ; @netcp_ndo_start_xmit
	.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	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_skb_get_queue_mapping
	mov	x22, x0
	ldr	x8, [x20]
	cmp	x8, #1
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_dev_kfree_skb
LBB0_2:
Lloh0:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	b	LBB0_13
LBB0_3:
	ldr	x8, [x20]
Lloh3:
	adrp	x24, _NETCP_MIN_PACKET_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NETCP_MIN_PACKET_SIZE@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x1, [x24]
	mov	x0, x20
	bl	_skb_padto
	tbnz	w0, #31, LBB0_12
; %bb.5:
	ldr	x8, [x24]
	str	x8, [x20]
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_netcp_tx_map_skb
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x22
	bl	_netif_stop_subqueue
Lloh5:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_netcp_tx_submit_skb
	mov	x23, x0
	cbz	w0, LBB0_14
LBB0_9:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	cbz	x24, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x24
	mov	w2, #4
	bl	_netcp_free_tx_desc_chain
LBB0_11:
	mov	x0, x20
	bl	_dev_kfree_skb
	b	LBB0_13
LBB0_12:
	mov	x23, x0
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_warn
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_13:
	mov	x0, x23
	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
LBB0_14:
	ldr	w0, [x19, #8]
	bl	_knav_pool_count
	ldr	w8, [x19]
	cmp	w0, w8
	b.ge	LBB0_2
; %bb.15:
	mov	x2, x0
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x0, x21
	mov	x1, x22
	bl	_netif_stop_subqueue
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_NETCP_MIN_PACKET_SIZE,8,3      ; @NETCP_MIN_PACKET_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"padding failed (%d), packet dropped\n"

	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
l_.str.1:                               ; @.str.1
	.asciz	"pausing tx, count(%d)\n"

	.no_dead_strip	_netcp_ndo_start_xmit
.subsections_via_symbols
