	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ave_start_xmit
_ave_start_xmit:                        ## @ave_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, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movslq	(%rax), %r15
	movl	8(%rax), %r13d
	movl	%r15d, %eax
	notl	%eax
	addl	4(%rbx), %eax
	addl	%r13d, %eax
	cltd
	idivl	%r13d
	xorl	%edi, %edi
	testl	%edx, %edx
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_skb_put_padto
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	incl	24(%rbx)
	jmp	LBB0_10
LBB0_4:
	leaq	(,%r15,8), %rsi
	addq	16(%rbx), %rsi
	movl	(%r12), %ecx
	movl	16(%r12), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-48(%rbp), %r9
	movq	%r14, %rdi
	callq	_ave_dma_map
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	incl	24(%rbx)
	jmp	LBB0_10
LBB0_6:
	movq	16(%rbx), %rax
	movq	%r12, (%rax,%r15,8)
	movq	_AVE_DESCID_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %ecx
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_ave_desc_write_addr
	movq	_AVE_STS_OWN@GOTPCREL(%rip), %rax
	movq	_AVE_STS_1ST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_AVE_STS_LAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_AVE_STS_PKTLEN_TX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r12), %edi
	orl	%ecx, %edi
	movq	_AVE_FORCE_TXINTCNT@GOTPCREL(%rip), %rcx
	movl	%r15d, %eax
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	je	LBB0_8
## %bb.7:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	_AVE_STS_INTR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
LBB0_9:
	movq	8(%r12), %rax
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rdx
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rax
	movq	_AVE_STS_NOCSUM@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmovel	%esi, %ecx
	cmpq	(%rdx), %rax
	cmovel	%esi, %ecx
	orl	%edi, %ecx
	movq	_AVE_DESCID_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_ave_desc_write_cmdsts
	incl	%r15d
	movl	%r15d, %eax
	cltd
	idivl	%r13d
	movl	%edx, (%rbx)
LBB0_10:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_AVE_DESCID_TX,4,2              ## @AVE_DESCID_TX
	.comm	_AVE_STS_OWN,4,2                ## @AVE_STS_OWN
	.comm	_AVE_STS_1ST,4,2                ## @AVE_STS_1ST
	.comm	_AVE_STS_LAST,4,2               ## @AVE_STS_LAST
	.comm	_AVE_STS_PKTLEN_TX_MASK,4,2     ## @AVE_STS_PKTLEN_TX_MASK
	.comm	_AVE_FORCE_TXINTCNT,4,2         ## @AVE_FORCE_TXINTCNT
	.comm	_AVE_STS_INTR,4,2               ## @AVE_STS_INTR
	.comm	_CHECKSUM_NONE,8,3              ## @CHECKSUM_NONE
	.comm	_CHECKSUM_UNNECESSARY,8,3       ## @CHECKSUM_UNNECESSARY
	.comm	_AVE_STS_NOCSUM,4,2             ## @AVE_STS_NOCSUM
	.no_dead_strip	_ave_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ave_start_xmit
_ave_start_xmit:                        ; @ave_start_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x22, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	ldp	w21, w8, [x0]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
	ldr	w23, [x0, #8]
	mvn	w9, w21
	add	w8, w8, w9
	add	w8, w8, w23
	sdiv	w9, w8, w23
	msub	w8, w9, w23, w8
	cmp	w8, #1
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_netif_stop_queue
Lloh0:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
Lloh2:
	adrp	x8, _ETH_ZLEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_ZLEN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_skb_put_padto
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	add	x1, x8, x21, lsl #3
	ldr	w2, [x22, #16]
	ldr	w3, [x22]
Lloh5:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	add	x5, sp, #12
	mov	x0, x20
	bl	_ave_dma_map
	cbz	w0, LBB0_8
; %bb.4:
	mov	x0, x22
	bl	_dev_kfree_skb_any
LBB0_5:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_6:
Lloh8:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	x8, [x19, #16]
	str	x22, [x8, x21, lsl #3]
Lloh10:
	adrp	x24, _AVE_DESCID_TX@GOTPAGE
Lloh11:
	ldr	x24, [x24, _AVE_DESCID_TX@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	x2, x21
	bl	_ave_desc_write_addr
Lloh12:
	adrp	x8, _AVE_STS_OWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVE_STS_OWN@GOTPAGEOFF]
Lloh14:
	adrp	x9, _AVE_STS_1ST@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AVE_STS_1ST@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _AVE_STS_LAST@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AVE_STS_LAST@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x22]
Lloh21:
	adrp	x10, _AVE_STS_PKTLEN_TX_MASK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AVE_STS_PKTLEN_TX_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w25, w8, w9
Lloh24:
	adrp	x8, _AVE_FORCE_TXINTCNT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AVE_FORCE_TXINTCNT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	sdiv	w9, w21, w8
	msub	w8, w9, w8, w21
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_netif_queue_stopped
	cbz	x0, LBB0_11
LBB0_10:
Lloh27:
	adrp	x8, _AVE_STS_INTR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AVE_STS_INTR@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w25, w8, w25
LBB0_11:
	ldr	x8, [x22, #8]
Lloh30:
	adrp	x9, _CHECKSUM_NONE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
Lloh33:
	adrp	x10, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh34:
	ldr	x10, [x10, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh36:
	adrp	x8, _AVE_STS_NOCSUM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AVE_STS_NOCSUM@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	csel	w8, w8, wzr, eq
	orr	w3, w8, w25
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x21
	bl	_ave_desc_write_cmdsts
	add	w8, w21, #1
	sdiv	w9, w8, w23
	msub	w8, w9, w23, w8
	str	w8, [x19]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_AVE_DESCID_TX,4,2              ; @AVE_DESCID_TX
	.comm	_AVE_STS_OWN,4,2                ; @AVE_STS_OWN
	.comm	_AVE_STS_1ST,4,2                ; @AVE_STS_1ST
	.comm	_AVE_STS_LAST,4,2               ; @AVE_STS_LAST
	.comm	_AVE_STS_PKTLEN_TX_MASK,4,2     ; @AVE_STS_PKTLEN_TX_MASK
	.comm	_AVE_FORCE_TXINTCNT,4,2         ; @AVE_FORCE_TXINTCNT
	.comm	_AVE_STS_INTR,4,2               ; @AVE_STS_INTR
	.comm	_CHECKSUM_NONE,8,3              ; @CHECKSUM_NONE
	.comm	_CHECKSUM_UNNECESSARY,8,3       ; @CHECKSUM_UNNECESSARY
	.comm	_AVE_STS_NOCSUM,4,2             ; @AVE_STS_NOCSUM
	.no_dead_strip	_ave_start_xmit
.subsections_via_symbols
