	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ravb_tx_free
_ravb_tx_free:                          ## @ravb_tx_free
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %rdi
	movslq	%ebx, %r12
	movq	8(%rax), %rcx
	movq	16(%rax), %rax
	movslq	(%rax,%r12,4), %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpq	%rax, (%rcx,%r12,8)
	jle	LBB0_12
## %bb.1:
	movl	(%rdi), %ecx
	movq	48(%rdi), %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	decl	%ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_DT_EEMPTY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	16(%rdi), %rcx
	movslq	(%rcx,%r12,4), %rax
	incq	%rax
	movl	%eax, (%rcx,%r12,4)
	movq	8(%rdi), %rcx
	cmpq	%rax, (%rcx,%r12,8)
	jle	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rdi), %rcx
	movq	40(%rdi), %rsi
	movl	(%rcx,%r12,4), %ecx
	imull	-96(%rbp), %ecx                 ## 4-byte Folded Reload
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ecx
	movl	%edx, %r14d
	movq	(%rsi,%r12,8), %r15
	movslq	%edx, %r13
	shlq	$4, %r13
	movq	(%r15,%r13), %rcx
	movq	_DT_FEMPTY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, %rcx
	jne	LBB0_12
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_dma_rmb
	movl	12(%r15,%r13), %edi
	callq	_le16_to_cpu
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ebx
	movq	32(%rdi), %rax
	movq	(%rax,%r12,8), %rcx
	movl	%r14d, %eax
	cltd
	movq	_TX_DS@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ebx
	idivl	-96(%rbp)                       ## 4-byte Folded Reload
	movslq	%eax, %r14
	cmpq	$0, (%rcx,%r14,8)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	8(%r15,%r13), %edi
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	callq	_le32_to_cpu
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_dma_unmap_single
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	cmpl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rdi), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_dev_kfree_skb_any
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	32(%rdi), %rax
	movq	(%rax,%r12,8), %rax
	movq	$0, (%rax,%r14,8)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax,%r12,8)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, %r15
	cmpq	-104(%rbp), %rax                ## 8-byte Folded Reload
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, (%rax,%r12,8)
	jmp	LBB0_11
LBB0_12:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DT_FEMPTY,8,3                  ## @DT_FEMPTY
	.comm	_TX_DS,4,2                      ## @TX_DS
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DT_EEMPTY,8,3                  ## @DT_EEMPTY
	.no_dead_strip	_ravb_tx_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ravb_tx_free
_ravb_tx_free:                          ; @ravb_tx_free
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x24, x2
	mov	x23, x1
	mov	x19, x0
	bl	_netdev_priv
	ldp	x8, x9, [x0, #8]
	ldr	x10, [x8, w23, sxtw #3]
	ldrsw	x8, [x9, w23, sxtw #2]
	cmp	x10, x8
	b.le	LBB0_13
; %bb.1:
	mov	x21, x0
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	stp	w24, wzr, [sp, #32]             ; 8-byte Folded Spill
	sxtw	x25, w23
	ldr	w12, [x0]
	ldr	x9, [x0, #48]
	sub	w10, w12, #1
	str	w10, [sp, #20]                  ; 4-byte Folded Spill
	add	x9, x9, x25, lsl #3
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	add	x9, x9, #4
	str	x9, [sp]                        ; 8-byte Folded Spill
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh0:
	adrp	x8, _DT_EEMPTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DT_EEMPTY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x10]
	lsl	x9, x25, #2
	ldp	x11, x10, [x21, #8]
	ldrsw	x8, [x10, x9]
	add	x8, x8, #1
	str	w8, [x10, x9]
	ldr	x9, [x11, x25, lsl #3]
	cmp	x9, x8
	b.le	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #24]
	ldr	w9, [x9, x25, lsl #2]
	mul	w9, w9, w12
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	ldr	x9, [x21, #40]
	ldr	x22, [x9, x25, lsl #3]
	add	x10, x22, w8, sxtw #4
	ldr	x20, [x10]
Lloh3:
	adrp	x9, _DT_FEMPTY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DT_FEMPTY@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x9]
	cbz	w24, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x20, x19
	b.ne	LBB0_14
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x10, [sp, #40]                  ; 8-byte Folded Spill
	sxtw	x28, w8
	mov	x23, x12
	bl	_dma_rmb
	add	x26, x22, x28, lsl #4
	ldr	w0, [x26, #12]
	bl	_le16_to_cpu
Lloh6:
	adrp	x8, _TX_DS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_DS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w27, w8, w0
	ldr	x8, [x21, #32]
	ldr	x9, [x8, x25, lsl #3]
	sdiv	w8, w28, w23
	ldr	x9, [x9, w8, sxtw #3]
	cbz	x9, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x22, w8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w24, [x8]
	ldr	w0, [x26, #8]
	bl	_le32_to_cpu
	mov	x1, x0
Lloh9:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x2, x27
	bl	_dma_unmap_single
	mov	x12, x23
	msub	w8, w22, w23, w28
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #32]
	lsl	x24, x25, #3
	ldr	x8, [x8, x24]
	lsl	x22, x22, #3
	ldr	x0, [x8, x22]
	bl	_dev_kfree_skb_any
	mov	x12, x23
	ldr	x8, [x21, #32]
	ldr	x8, [x8, x24]
	str	xzr, [x8, x22]
	cmp	x20, x19
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	w24, w8, [sp, #32]              ; 8-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, x23
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x20, x19
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x9]
	add	w8, w8, w27
	str	w8, [x9]
	b	LBB0_2
LBB0_13:
	str	wzr, [sp, #36]                  ; 4-byte Folded Spill
LBB0_14:
	ldr	w0, [sp, #36]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DT_FEMPTY,8,3                  ; @DT_FEMPTY
	.comm	_TX_DS,4,2                      ; @TX_DS
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DT_EEMPTY,8,3                  ; @DT_EEMPTY
	.no_dead_strip	_ravb_tx_free
.subsections_via_symbols
