	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enic_hard_start_xmit
_enic_hard_start_xmit:                  ## @enic_hard_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
	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, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_netdev_priv
	cmpq	$0, (%rbx)
	jle	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_skb_get_queue_mapping
	xorl	%edx, %edx
	divl	(%r14)
                                        ## kill: def $edx killed $edx def $rdx
	leaq	(,%rdx,4), %r15
	movq	16(%r14), %r12
	addq	%r15, %r12
	movq	%r13, %rdi
	movl	%edx, %esi
	callq	_netdev_get_tx_queue
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_shinfo
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rax
	movq	_ENIC_NON_TSO_MAX_DESC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_skb_linearize
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_13
LBB0_5:
	movq	8(%r14), %rdi
	addq	%r15, %rdi
	callq	_spin_lock
	movq	%r12, %rdi
	callq	_vnic_wq_desc_avail
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	_ENIC_DESC_MAX_SPLITS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	addq	8(%rax), %rcx
	cmpq	%rcx, %r14
	jge	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_tx_stop_queue
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_err
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rdx, %r13
	movq	%rbx, %rdx
	callq	_enic_queue_wq_skb
	movq	%r12, %rdi
	callq	_vnic_wq_desc_avail
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movq	(%r13), %rdx
	addq	(%rcx), %rdx
	cmpq	%rdx, %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_netif_tx_stop_queue
LBB0_9:
	movq	%rbx, %rdi
	callq	_skb_tx_timestamp
	xorl	%eax, %eax
	callq	_netdev_xmit_more
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_netif_xmit_stopped
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	%r12, %rdi
	callq	_vnic_wq_doorbell
LBB0_12:
	addq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_13:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_ENIC_NON_TSO_MAX_DESC,8,3      ## @ENIC_NON_TSO_MAX_DESC
	.comm	_ENIC_DESC_MAX_SPLITS,8,3       ## @ENIC_DESC_MAX_SPLITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG! Tx ring full when queue awake!\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
	.no_dead_strip	_enic_hard_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enic_hard_start_xmit
_enic_hard_start_xmit:                  ; @enic_hard_start_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	x23, x1
	mov	x21, x0
	mov	x0, x1
	bl	_netdev_priv
	ldr	x8, [x21]
	cmp	x8, #0
	b.le	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	bl	_skb_get_queue_mapping
	ldr	w8, [x19]
	udiv	w9, w0, w8
	msub	w20, w9, w8, w0
	ldr	x24, [x19, #16]
	mov	x0, x23
	mov	x1, x20
	bl	_netdev_get_tx_queue
	mov	x22, x0
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0]
	cbnz	x8, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _ENIC_NON_TSO_MAX_DESC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENIC_NON_TSO_MAX_DESC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_skb_linearize
	cbz	x0, LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_dev_kfree_skb_any
	b	LBB0_13
LBB0_5:
	add	x24, x24, w20, uxtw #2
	ldr	x8, [x19, #8]
	add	x0, x8, x20, lsl #2
	bl	_spin_lock
	mov	x0, x24
	bl	_vnic_wq_desc_avail
	mov	x25, x0
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x26, _ENIC_DESC_MAX_SPLITS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _ENIC_DESC_MAX_SPLITS@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x8, x9, x8
	cmp	x25, x8
	b.ge	LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_netif_tx_stop_queue
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_netdev_err
	ldr	x8, [x19, #8]
	add	x0, x8, x20, lsl #2
	bl	_spin_unlock
Lloh7:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	bl	_enic_queue_wq_skb
	mov	x0, x24
	bl	_vnic_wq_desc_avail
Lloh9:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x26]
	add	x8, x9, x8
	cmp	x0, x8
	b.ge	LBB0_9
; %bb.8:
	mov	x0, x22
	bl	_netif_tx_stop_queue
LBB0_9:
	mov	x0, x21
	bl	_skb_tx_timestamp
	bl	_netdev_xmit_more
	cbz	w0, LBB0_11
; %bb.10:
	mov	x0, x22
	bl	_netif_xmit_stopped
	cbz	x0, LBB0_12
LBB0_11:
	mov	x0, x24
	bl	_vnic_wq_doorbell
LBB0_12:
	ldr	x8, [x19, #8]
	add	x0, x8, x20, lsl #2
	bl	_spin_unlock
LBB0_13:
Lloh12:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_ENIC_NON_TSO_MAX_DESC,8,3      ; @ENIC_NON_TSO_MAX_DESC
	.comm	_ENIC_DESC_MAX_SPLITS,8,3       ; @ENIC_DESC_MAX_SPLITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG! Tx ring full when queue awake!\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
	.no_dead_strip	_enic_hard_start_xmit
.subsections_via_symbols
