	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1000_tx
_au1000_tx:                             ## @au1000_tx
	.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, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_tx_queued@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %r9d
	movl	4(%r14), %eax
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	%ebx, %r8d
	pushq	(%rbx)
	pushq	%rax
	callq	_netif_dbg
	addq	$16, %rsp
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rcx,%rax,8), %r12
	movl	(%r12), %eax
	movq	_TX_DMA_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_netif_stop_queue
	movl	$1, 8(%rbx)
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_TX_T_DONE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	8(%r12), %esi
	movq	%r15, %rdi
	callq	_au1000_update_tx_stats
	movl	$0, 4(%r12)
LBB0_4:
	cmpl	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movl	$0, 8(%rbx)
	movq	%r15, %rdi
	callq	_netif_wake_queue
LBB0_6:
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %r13
	movq	8(%r13), %rsi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	_skb_copy_from_linear_data
	movl	(%r14), %eax
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_9
## %bb.7:
	movslq	%eax, %rdx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movb	$0, (%rax,%rdx)
	incq	%rdx
	movslq	(%rcx), %rax
	cmpq	%rax, %rdx
	jl	LBB0_8
LBB0_9:
	movl	%eax, 4(%r12)
	incl	4(%r15)
	addl	%eax, (%r15)
	movq	_TX_DMA_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r13), %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	movq	(%rbx), %rax
	incq	%rax
	movq	_NUM_TX_DMA@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%rax, %rcx
	movq	%rcx, (%rbx)
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tx_queued,4,2                  ## @tx_queued
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx: aup %x len=%d, data=%p, head %d\n"

	.comm	_TX_DMA_ENABLE,4,2              ## @TX_DMA_ENABLE
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_TX_T_DONE,4,2                  ## @TX_T_DONE
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_NUM_TX_DMA,4,2                 ## @NUM_TX_DMA
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_au1000_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1000_tx
_au1000_tx:                             ; @au1000_tx
	.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
Lloh0:
	adrp	x8, _tx_queued@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tx_queued@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w5, w6, [x20]
	ldr	x7, [x0]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x21
	mov	x4, x19
	bl	_netif_dbg
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	ldr	x22, [x8, x9, lsl #3]
	ldr	w8, [x22]
Lloh5:
	adrp	x23, _TX_DMA_ENABLE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _TX_DMA_ENABLE@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_netif_stop_queue
	mov	w8, #1
	str	w8, [x19, #8]
Lloh7:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
Lloh9:
	adrp	x9, _TX_T_DONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TX_T_DONE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x22, #8]
	mov	x0, x21
	bl	_au1000_update_tx_stats
	str	wzr, [x22, #4]
LBB0_4:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_6
; %bb.5:
	str	wzr, [x19, #8]
	mov	x0, x21
	bl	_netif_wake_queue
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	ldr	x24, [x8, x9, lsl #3]
	ldr	x1, [x24, #8]
	ldr	w2, [x20]
	mov	x0, x20
	bl	_skb_copy_from_linear_data
	ldr	w9, [x20]
Lloh12:
	adrp	x8, _ETH_ZLEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_ZLEN@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w9, w10
	b.ge	LBB0_10
; %bb.7:
	sxtw	x9, w9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x24, #8]
	strb	wzr, [x10, x9]
	add	x9, x9, #1
	ldrsw	x10, [x8]
	cmp	x9, x10
	b.lt	LBB0_8
; %bb.9:
	mov	x9, x10
LBB0_10:
	str	w9, [x22, #4]
	ldr	d0, [x21]
	movi.2s	v1, #1
	mov.s	v1[0], w9
	add.2s	v0, v0, v1
	str	d0, [x21]
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x22]
	bl	_wmb
	mov	x0, x20
	bl	_dev_kfree_skb
	ldr	x8, [x19]
	add	x8, x8, #1
Lloh14:
	adrp	x9, _NUM_TX_DMA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NUM_TX_DMA@GOTPAGEOFF]
Lloh16:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	and	x8, x8, x9
	str	x8, [x19]
Lloh17:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_tx_queued,4,2                  ; @tx_queued
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx: aup %x len=%d, data=%p, head %d\n"

	.comm	_TX_DMA_ENABLE,4,2              ; @TX_DMA_ENABLE
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_TX_T_DONE,4,2                  ; @TX_T_DONE
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_NUM_TX_DMA,4,2                 ; @NUM_TX_DMA
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_au1000_tx
.subsections_via_symbols
