	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ep93xx_free_buffers
_ep93xx_free_buffers:                   ## @ep93xx_free_buffers
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r12
	movq	32(%rdi), %rcx
	movq	(%rcx), %r14
	movq	_RX_QUEUE_ENTRIES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.2:
	movl	$1, %ebx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	-8(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PKT_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	callq	_dma_unmap_single
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %rax
	movl	-4(%rax,%rbx,4), %edi
	callq	_kfree
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	incq	%rbx
	jmp	LBB0_3
LBB0_6:
	movq	_TX_QUEUE_ENTRIES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_kfree
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_PKT_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	callq	_dma_unmap_single
	jmp	LBB0_10
LBB0_11:
	movq	(%r12), %rdx
	movl	8(%r12), %ecx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_dma_free_coherent
	movq	$0, (%r12)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_QUEUE_ENTRIES,4,2           ## @RX_QUEUE_ENTRIES
	.comm	_PKT_BUF_SIZE,4,2               ## @PKT_BUF_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_TX_QUEUE_ENTRIES,4,2           ## @TX_QUEUE_ENTRIES
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_ep93xx_free_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ep93xx_free_buffers
_ep93xx_free_buffers:                   ; @ep93xx_free_buffers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #32]
	ldr	x20, [x9]
Lloh0:
	adrp	x22, _RX_QUEUE_ENTRIES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RX_QUEUE_ENTRIES@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh2:
	adrp	x21, _PKT_BUF_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PKT_BUF_SIZE@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x23, #0
Lloh4:
	adrp	x24, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	x1, [x8, x23, lsl #3]
	cbz	x1, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x21]
	ldr	w3, [x24]
	mov	x0, x20
	bl	_dma_unmap_single
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x23, lsl #2]
	bl	_kfree
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	b	LBB0_3
LBB0_7:
Lloh6:
	adrp	x22, _TX_QUEUE_ENTRIES@GOTPAGE
Lloh7:
	ldr	x22, [x22, _TX_QUEUE_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x23, #0
Lloh8:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x23, lsl #2]
	bl	_kfree
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x1, [x8, x23, lsl #3]
	cbz	x1, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w2, [x21]
	ldr	w3, [x24]
	mov	x0, x20
	bl	_dma_unmap_single
	b	LBB0_9
LBB0_12:
	ldr	x2, [x19]
	ldr	w3, [x19, #8]
	mov	x0, x20
	mov	w1, #4
	bl	_dma_free_coherent
	str	xzr, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_QUEUE_ENTRIES,4,2           ; @RX_QUEUE_ENTRIES
	.comm	_PKT_BUF_SIZE,4,2               ; @PKT_BUF_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_TX_QUEUE_ENTRIES,4,2           ; @TX_QUEUE_ENTRIES
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_ep93xx_free_buffers
.subsections_via_symbols
