	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rhine_tx
_rhine_tx:                              ## @rhine_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	32(%r14), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	(%r13), %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_smp_rmb
	movl	4(%r13), %ecx
	movl	%ecx, %eax
	subl	%ebx, %eax
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %ecx
	xorl	%r12d, %r12d
	jmp	LBB0_25
LBB0_2:
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r13, %rax
	addq	$32, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	subl	%ecx, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	(%rbx), %r15d
	incl	%r12d
	movq	%rbx, %rdi
	callq	_dev_consume_skb_any
	movq	16(%r13), %rax
	movq	$0, (%rax,%r14,8)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	addl	%r12d, %eax
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_24
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	movl	%edx, %ebx
	movq	48(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	_DescOwn@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r13), %rax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testl	$32768, %r14d                   ## imm = 0x8000
	jne	LBB0_5
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_rqRhineI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r8d
	shrl	$3, %r8d
	andl	$15, %r8d
	addl	%r8d, (%rdx)
	andl	$15, %r14d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	leaq	L_.str.1(%rip), %rcx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_netif_dbg
	incl	24(%rbx)
	testl	$1024, %r14d                    ## imm = 0x400
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	$512, %r14d                     ## imm = 0x200
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	$256, %r14d                     ## imm = 0x100
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$-128, %r14b
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	8(%rbx)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_rqRhineI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %r13                ## 8-byte Reload
	testl	%eax, 8(%r13)
	sete	%al
	testb	$2, %r14b
	sete	%cl
	testl	$6144, %r14d                    ## imm = 0x1800
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	orb	%al, %cl
	jne	LBB0_21
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	20(%rbx)
	testl	$512, %r14d                     ## imm = 0x200
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	16(%rbx)
	testl	$256, %r14d                     ## imm = 0x100
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	12(%rbx)
	testb	$-128, %r14b
	jne	LBB0_12
	jmp	LBB0_13
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	andl	$15, %eax
	addl	%eax, (%rdx)
	shrl	$3, %r14d
	movl	%r14d, %r8d
	andl	$15, %r8d
	movl	%eax, %r14d
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rcx
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_u64_stats_update_begin
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	addl	%eax, 40(%r13)
	incl	36(%r13)
	movq	%r14, %rdi
	callq	_u64_stats_update_end
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r13), %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rsi
	testq	%rsi, %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_dma_unmap_single
	jmp	LBB0_23
LBB0_24:
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r12d
	jmp	LBB0_25
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	movq	_DescOwn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	48(%r13), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
LBB0_16:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
LBB0_25:
	movl	%ecx, (%r13)
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_netdev_completed_queue
	movq	%r13, %rdi
	callq	_rhine_tx_queue_full
	testq	%rax, %rax
	je	LBB0_26
LBB0_28:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	%r14, %rdi
	callq	_netif_wake_queue
	xorl	%eax, %eax
	callq	_smp_rmb
	movq	%r13, %rdi
	callq	_rhine_tx_queue_full
	testq	%rax, %rax
	je	LBB0_28
## %bb.29:
	movq	%r14, %rdi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_stop_queue               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_tx_done,4,2                    ## @tx_done
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx scavenge %d status %08x\n"

	.comm	_DescOwn,4,2                    ## @DescOwn
L_.str.1:                               ## @.str.1
	.asciz	"Transmit error, Tx status %08x\n"

	.comm	_rqRhineI,4,2                   ## @rqRhineI
L_.str.2:                               ## @.str.2
	.asciz	"collisions: %1.1x:%1.1x\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_rhine_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rhine_tx
_rhine_tx:                              ; @rhine_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x19, #32]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w25, [x0]
	bl	_smp_rmb
	ldr	w8, [x20, #4]
	subs	w9, w8, w25
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	mov	w22, #0
	b	LBB0_25
LBB0_2:
	stp	w9, w8, [sp, #8]                ; 8-byte Folded Spill
	mov	w22, #0
	mov	w21, #0
	add	x24, x20, #32
	sub	w8, w25, w8
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x23, _tx_done@GOTPAGE
Lloh1:
	ldr	x23, [x23, _tx_done@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	add	w21, w21, w8
	add	w22, w22, #1
	mov	x0, x26
	bl	_dev_consume_skb_any
	ldr	x8, [x20, #16]
	str	xzr, [x8, x28, lsl #3]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmn	w8, w22
	b.eq	LBB0_23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w26, w25, w22
Lloh2:
	adrp	x8, _TX_RING_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TX_RING_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	udiv	w9, w26, w8
	msub	w28, w9, w8, w26
	ldr	x8, [x20, #48]
	ldr	w0, [x8, w28, uxtw #2]
	bl	_le32_to_cpu
	mov	x27, x0
	ldr	w1, [x23]
	str	x27, [sp]
	mov	x0, x20
	mov	x2, x19
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x28
	bl	_netif_dbg
Lloh7:
	adrp	x8, _DescOwn@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DescOwn@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w27
	b.ne	LBB0_22
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	ldr	x26, [x8, x28, lsl #3]
	tbnz	w27, #15, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #8]
Lloh10:
	adrp	x9, _rqRhineI@GOTPAGE
Lloh11:
	ldr	x9, [x9, _rqRhineI@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ubfx	w4, w27, #3, #4
	tst	w9, w8
	b.eq	LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	add	w8, w8, w4
	str	w8, [x19]
	and	w8, w27, #0xf
	b	LBB0_19
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x19
Lloh13:
	adrp	x3, l_.str.1@PAGE
Lloh14:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x4, x27
	bl	_netif_dbg
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	tbnz	w27, #10, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w27, #9, LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w27, #8, LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w27, #7, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #8]
Lloh15:
	adrp	x9, _rqRhineI@GOTPAGE
Lloh16:
	ldr	x9, [x9, _rqRhineI@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, eq
	tst	w27, #0x2
	cset	w9, eq
	tst	w27, #0x1800
	b.ne	LBB0_24
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	orr	w8, w9, w8
	tbnz	w8, #0, LBB0_20
	b	LBB0_24
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	tbz	w27, #9, LBB0_10
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	tbz	w27, #8, LBB0_11
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	tbnz	w27, #7, LBB0_12
	b	LBB0_13
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w27, #0xf
	ldr	w9, [x19]
	add	w9, w9, w8
	str	w9, [x19]
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23]
	str	x8, [sp]
	mov	x0, x20
	mov	x2, x19
Lloh18:
	adrp	x3, l_.str.2@PAGE
Lloh19:
	add	x3, x3, l_.str.2@PAGEOFF
	bl	_netif_dbg
	mov	x0, x24
	bl	_u64_stats_update_begin
	ldr	w8, [x26]
	ldp	w10, w9, [x20, #36]
	add	w8, w9, w8
	add	w9, w10, #1
	stp	w9, w8, [x20, #36]
	mov	x0, x24
	bl	_u64_stats_update_end
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #24]
	ldr	x1, [x8, x28, lsl #3]
	cbz	x1, LBB0_3
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x26]
Lloh20:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_dma_unmap_single
	b	LBB0_3
LBB0_22:
	mov	x25, x26
	b	LBB0_25
LBB0_23:
	ldp	w22, w25, [sp, #8]              ; 8-byte Folded Reload
	b	LBB0_25
LBB0_24:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
Lloh23:
	adrp	x8, _DescOwn@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DescOwn@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x20, #48]
	str	w0, [x8, x28, lsl #2]
	add	w25, w25, w22
LBB0_25:
	str	w25, [x20]
	bl	_smp_wmb
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_netdev_completed_queue
	mov	x0, x20
	bl	_rhine_tx_queue_full
	cbz	x0, LBB0_27
LBB0_26:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_27:
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_26
; %bb.28:
	mov	x0, x19
	bl	_netif_wake_queue
	bl	_smp_rmb
	mov	x0, x20
	bl	_rhine_tx_queue_full
	cbz	x0, LBB0_26
; %bb.29:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_netif_stop_queue
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_tx_done,4,2                    ; @tx_done
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx scavenge %d status %08x\n"

	.comm	_DescOwn,4,2                    ; @DescOwn
l_.str.1:                               ; @.str.1
	.asciz	"Transmit error, Tx status %08x\n"

	.comm	_rqRhineI,4,2                   ; @rqRhineI
l_.str.2:                               ; @.str.2
	.asciz	"collisions: %1.1x:%1.1x\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_rhine_tx
.subsections_via_symbols
