	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_tx
_rtl_tx:                                ## @rtl_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %ebx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_smp_rmb
	movl	4(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	cmpl	%ebx, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r12d
	movl	%ebx, %eax
	xorl	%edx, %edx
	movq	_NUM_TX_DESC@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	movl	%edx, %r14d
	movq	24(%r15), %rax
	movq	32(%r15), %r13
	movl	(%rax,%r14,4), %edi
	callq	_le32_to_cpu
	movq	_DescOwn@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	leaq	(,%r14,8), %rbx
	addq	%r13, %rbx
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	%r15, %rdi
	callq	_tp_to_dev
	leaq	(,%r14,4), %rdx
	addq	24(%r15), %rdx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_rtl8169_unmap_tx_skb
	movq	(%r13,%r14,8), %rdi
	movl	%r12d, %r13d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_napi_consume_skb
	movq	$0, (%rbx)
	jmp	LBB0_7
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	%ebx, (%r15)
	jne	LBB0_10
	jmp	LBB0_14
LBB0_4:
	movl	%r12d, %r13d
	cmpl	%ebx, (%r15)
	jne	LBB0_10
	jmp	LBB0_14
LBB0_8:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	cmpl	%ebx, (%r15)
	je	LBB0_14
LBB0_10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_netdev_completed_queue
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_u64_stats_update_begin
	addl	%r13d, 8(%r15)
	addl	%r12d, 12(%r15)
	movq	%r14, %rdi
	callq	_u64_stats_update_end
	movl	%ebx, (%r15)
	xorl	%eax, %eax
	callq	_smp_mb
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rtl_tx_slots_avail
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_wake_queue
LBB0_13:
	cmpl	%ebx, 4(%r15)
	jne	LBB0_15
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8169_doorbell               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TX_DESC,4,2                ## @NUM_TX_DESC
	.comm	_DescOwn,4,2                    ## @DescOwn
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.no_dead_strip	_rtl_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_tx
_rtl_tx:                                ; @rtl_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w25, [x1]
	bl	_smp_rmb
	ldr	w26, [x19, #4]
	cmp	w26, w25
	b.eq	LBB0_6
; %bb.1:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	w22, #0
	mov	w21, #0
Lloh0:
	adrp	x27, _NUM_TX_DESC@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NUM_TX_DESC@GOTPAGEOFF]
Lloh2:
	adrp	x28, _DescOwn@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DescOwn@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w25, #1
	cmp	w26, w25
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	udiv	w9, w25, w8
	msub	w20, w9, w8, w25
	ldp	x8, x24, [x19, #24]
	ldr	w0, [x8, w20, uxtw #2]
	bl	_le32_to_cpu
	ldr	w8, [x28]
	tst	w8, w0
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, x20, lsl #3
	bl	_dma_rmb
	mov	x0, x19
	bl	_tp_to_dev
	ldr	x8, [x19, #24]
	add	x2, x8, x20, lsl #2
	mov	x1, x24
	bl	_rtl8169_unmap_tx_skb
	ldr	x0, [x24]
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	ldr	w8, [x0]
	add	w22, w22, w8
	mov	x1, x23
	bl	_napi_consume_skb
	str	xzr, [x24]
	b	LBB0_2
LBB0_6:
	mov	w21, #0
	mov	w22, #0
	b	LBB0_9
LBB0_7:
	mov	x25, x26
LBB0_8:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
LBB0_9:
	ldr	w8, [x19]
	cmp	w8, w25
	b.eq	LBB0_14
; %bb.10:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_netdev_completed_queue
	add	x23, x19, #16
	mov	x0, x23
	bl	_u64_stats_update_begin
	ldp	w8, w9, [x19, #8]
	add	w8, w8, w21
	add	w9, w9, w22
	stp	w8, w9, [x19, #8]
	mov	x0, x23
	bl	_u64_stats_update_end
	str	w25, [x19]
	bl	_smp_mb
	mov	x0, x20
	bl	_netif_queue_stopped
	cbz	x0, LBB0_13
; %bb.11:
Lloh4:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_tx_slots_avail
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_netif_wake_queue
LBB0_13:
	ldr	w8, [x19, #4]
	cmp	w8, w25
	b.ne	LBB0_15
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_rtl8169_doorbell
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TX_DESC,4,2                ; @NUM_TX_DESC
	.comm	_DescOwn,4,2                    ; @DescOwn
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.no_dead_strip	_rtl_tx
.subsections_via_symbols
