	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enetc_xmit                     ## -- Begin function enetc_xmit
	.p2align	4, 0x90
_enetc_xmit:                            ## @enetc_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, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %r15
	movq	%r13, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	movq	_ENETC_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_skb_linearize
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_skb_shinfo
	movl	(%rax), %ebx
	incl	%ebx
	movq	%r15, %rdi
	callq	_enetc_bd_unused
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_ENETC_TXBDS_NEEDED
	cmpq	%rax, %r14
	jge	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_stop_subqueue
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_4:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_enetc_map_tx_buffs
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_5
LBB0_7:
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
LBB0_8:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	callq	_enetc_bd_unused
	movq	_ENETC_TXBDS_MAX_NEEDED@GOTPCREL(%rip), %rcx
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.6:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_netif_stop_subqueue
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_MAX_SKB_FRAGS,4,2        ## @ENETC_MAX_SKB_FRAGS
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_ENETC_TXBDS_MAX_NEEDED,8,3     ## @ENETC_TXBDS_MAX_NEEDED
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enetc_xmit                     ; -- Begin function enetc_xmit
	.p2align	2
_enetc_xmit:                            ; @enetc_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	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x21]
	ldr	x20, [x8, x9, lsl #3]
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ENETC_MAX_SKB_FRAGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENETC_MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_skb_linearize
	bl	_unlikely
	cbnz	x0, LBB0_5
LBB0_2:
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	add	w23, w8, #1
	mov	x0, x20
	bl	_enetc_bd_unused
	mov	x24, x0
	mov	x0, x23
	bl	_ENETC_TXBDS_NEEDED
	cmp	x24, x0
	b.ge	LBB0_4
; %bb.3:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_netif_stop_subqueue
Lloh3:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_enetc_map_tx_buffs
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_8
LBB0_5:
	mov	x0, x21
	bl	_dev_kfree_skb_any
LBB0_6:
Lloh5:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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_8:
	mov	x0, x20
	bl	_enetc_bd_unused
Lloh7:
	adrp	x8, _ENETC_TXBDS_MAX_NEEDED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENETC_TXBDS_MAX_NEEDED@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.9:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_netif_stop_subqueue
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_MAX_SKB_FRAGS,4,2        ; @ENETC_MAX_SKB_FRAGS
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_ENETC_TXBDS_MAX_NEEDED,8,3     ; @ENETC_TXBDS_MAX_NEEDED
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
.subsections_via_symbols
