	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgmac_free_tx_skbufs
_xgmac_free_tx_skbufs:                  ## @xgmac_free_tx_skbufs
	.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
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.1:
	movq	_DMA_TX_RING_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.2:
	movq	%rdi, %r15
	movl	$1, %edx
	xorl	%r14d, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rcx,%r14,2)
	je	LBB0_10
	.p2align	4, 0x90
LBB0_4:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rbx
	addq	%r14, %rbx
	movq	%rbx, %rdi
	callq	_desc_get_tx_fs
	movq	%rax, %r13
	movl	8(%r15), %r15d
	movq	%rbx, %rdi
	callq	_desc_get_buf_addr
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_desc_get_buf_len
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:
	callq	_dma_unmap_single
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:
	callq	_dma_unmap_page
LBB0_7:
	movq	%rbx, %rdi
	callq	_desc_get_tx_ls
	testq	%rax, %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movq	(%r15), %rax
	movq	(%rax,%r14,2), %rdi
	callq	_dev_kfree_skb_any
LBB0_9:
	movq	(%r15), %rax
	movq	$0, (%rax,%r14,2)
	movq	_DMA_TX_RING_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r15), %rcx
	addq	$4, %r14
	incq	%rdx
	cmpq	$0, (%rcx,%r14,2)
	jne	LBB0_4
	jmp	LBB0_10
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TX_RING_SZ,4,2             ## @DMA_TX_RING_SZ
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_xgmac_free_tx_skbufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgmac_free_tx_skbufs
_xgmac_free_tx_skbufs:                  ; @xgmac_free_tx_skbufs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x9, [x0]
Lloh0:
	adrp	x24, _DMA_TX_RING_SZ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMA_TX_RING_SZ@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	x9, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	mov	x25, #0
	mov	x26, #0
Lloh2:
	adrp	x27, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	x9, [x9, x26, lsl #3]
	cbz	x9, LBB0_9
LBB0_3:
	ldr	x8, [x19, #16]
	add	x20, x8, x25
	mov	x0, x20
	bl	_desc_get_tx_fs
	mov	x23, x0
	ldr	w21, [x19, #8]
	mov	x0, x20
	bl	_desc_get_buf_addr
	mov	x22, x0
	mov	x0, x20
	bl	_desc_get_buf_len
	mov	x2, x0
	ldr	w3, [x27]
	mov	x0, x21
	mov	x1, x22
	cbz	x23, LBB0_5
; %bb.4:
	bl	_dma_unmap_single
	b	LBB0_6
LBB0_5:
	bl	_dma_unmap_page
LBB0_6:
	mov	x0, x20
	bl	_desc_get_tx_ls
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x19]
	ldr	x0, [x8, x26, lsl #3]
	bl	_dev_kfree_skb_any
LBB0_8:
	ldr	x8, [x19]
	str	xzr, [x8, x26, lsl #3]
	ldr	w8, [x24]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x19]
	add	x25, x25, #4
	ldr	x9, [x9, x26, lsl #3]
	cbnz	x9, LBB0_3
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TX_RING_SZ,4,2             ; @DMA_TX_RING_SZ
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_xgmac_free_tx_skbufs
.subsections_via_symbols
