	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rio_free_tx
_rio_free_tx:                           ## @rio_free_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movl	(%rax), %eax
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%edx, %r12d
	movq	%r13, %rbx
	addq	$12, %rbx
	movq	%rbx, %rdi
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	callq	_spin_lock
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
LBB0_3:
	cmpl	4(%r13), %r12d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
LBB0_9:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_dev_kfree_skb
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r13), %rax
	movq	$0, (%rax,%r14,8)
	incl	%r14d
	movl	%r14d, %eax
	cltd
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%edx, %r12d
	cmpl	4(%r13), %edx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movslq	%r12d, %r14
	movl	(%rax,%r14,4), %ebx
	movq	_TFDDone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le64
	testl	%ebx, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%r14,8), %rbx
	movl	32(%r13), %r12d
	leaq	(,%r14,4), %rdi
	addq	24(%r13), %rdi
	callq	_desc_to_dma
	movl	(%rbx), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_pci_unmap_single
	movq	%rbx, %rdi
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_dev_consume_skb_irq
	jmp	LBB0_8
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
LBB0_12:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%r12d, (%r13)
	movq	%rbx, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movl	4(%r13), %eax
	subl	(%r13), %eax
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	cltd
	idivl	%ecx
	movq	_TX_QUEUE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, %edx
	jl	LBB0_16
## %bb.14:
	cmpl	$10, 8(%r13)
	jne	LBB0_15
LBB0_16:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_TFDDone,4,2                    ## @TFDDone
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_TX_QUEUE_LEN,4,2               ## @TX_QUEUE_LEN
	.no_dead_strip	_rio_free_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rio_free_tx
_rio_free_tx:                           ; @rio_free_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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x22, x0
	ldr	w8, [x22], #12
Lloh0:
	adrp	x25, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w9, [x25]
	sdiv	w10, w8, w9
	msub	w26, w10, w9, w8
	mov	x0, x22
	cbz	w21, LBB0_2
; %bb.1:
	bl	_spin_lock
	b	LBB0_3
LBB0_2:
	mov	x1, #0
	bl	_spin_lock_irqsave
LBB0_3:
	ldr	w8, [x20, #4]
	cmp	w26, w8
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b.ne	LBB0_6
LBB0_4:
	mov	x0, x22
	cbz	w21, LBB0_12
; %bb.5:
	bl	_spin_unlock
	b	LBB0_13
LBB0_6:
Lloh2:
	adrp	x27, _TFDDone@GOTPAGE
Lloh3:
	ldr	x27, [x27, _TFDDone@GOTPAGEOFF]
Lloh4:
	adrp	x28, _PCI_DMA_TODEVICE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_dev_kfree_skb
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #16]
	str	xzr, [x8, x19, lsl #3]
	add	w8, w26, #1
	ldr	w9, [x25]
	sdiv	w10, w8, w9
	msub	w26, w10, w9, w8
	ldr	w8, [x20, #4]
	cmp	w26, w8
	b.eq	LBB0_4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w19, [x8, w26, sxtw #2]
	ldr	w0, [x27]
	bl	_cpu_to_le64
	tst	w0, w19
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sxtw	x19, w26
	ldp	x8, x9, [x20, #16]
	ldr	x23, [x8, x19, lsl #3]
	ldr	w24, [x20, #32]
	add	x0, x9, x19, lsl #2
	bl	_desc_to_dma
	mov	x1, x0
	ldr	w2, [x23]
	ldr	w3, [x28]
	mov	x0, x24
	bl	_pci_unmap_single
	mov	x0, x23
	cbz	w21, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_dev_consume_skb_irq
	b	LBB0_8
LBB0_12:
	mov	x1, #0
	bl	_spin_unlock_irqrestore
LBB0_13:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	str	w26, [x20]
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_17
; %bb.14:
	ldp	w9, w8, [x20]
	ldr	w10, [x25]
	sub	w8, w8, w9
	add	w8, w8, w10
	sdiv	w9, w8, w10
	msub	w8, w9, w10, w8
Lloh6:
	adrp	x9, _TX_QUEUE_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TX_QUEUE_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_16
; %bb.15:
	ldr	w8, [x20, #8]
	cmp	w8, #10
	b.ne	LBB0_17
LBB0_16:
	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	_netif_wake_queue
LBB0_17:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_TFDDone,4,2                    ; @TFDDone
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_TX_QUEUE_LEN,4,2               ; @TX_QUEUE_LEN
	.no_dead_strip	_rio_free_tx
.subsections_via_symbols
