	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftmac100_free_buffers
_ftmac100_free_buffers:                 ## @ftmac100_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, %r12
	movq	_RX_QUEUE_ENTRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_RX_QUEUE_ENTRIES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	8(%rax), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_ftmac100_rxdes_get_page
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ftmac100_rxdes_get_dma_addr
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r12), %edi
	movq	_RX_BUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_dma_unmap_page
	movq	%r15, %rdi
	callq	___free_page
	jmp	LBB0_4
LBB0_5:
	movq	_TX_QUEUE_ENTRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.6:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movq	_TX_QUEUE_ENTRIES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_ftmac100_txdes_get_skb
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ftmac100_txdes_get_dma_addr
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %ebx
	movq	%r12, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	%r12, %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_9
LBB0_10:
	movl	16(%r12), %edi
	movq	8(%r12), %rdx
	movl	(%r12), %ecx
	movl	$4, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_free_coherent              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_QUEUE_ENTRIES,4,2           ## @RX_QUEUE_ENTRIES
	.comm	_RX_BUF_SIZE,4,2                ## @RX_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	_ftmac100_free_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftmac100_free_buffers
_ftmac100_free_buffers:                 ; @ftmac100_free_buffers
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _RX_QUEUE_ENTRIES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RX_QUEUE_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	mov	x24, #0
Lloh2:
	adrp	x25, _RX_BUF_SIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _RX_BUF_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #4
	cmp	x24, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	add	x21, x8, x23
	mov	x0, x21
	bl	_ftmac100_rxdes_get_page
	mov	x20, x0
	mov	x0, x21
	bl	_ftmac100_rxdes_get_dma_addr
	cbz	x20, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	ldr	w0, [x19, #16]
	ldr	w2, [x25]
	ldr	w3, [x26]
	bl	_dma_unmap_page
	mov	x0, x20
	bl	___free_page
	b	LBB0_2
LBB0_5:
Lloh6:
	adrp	x23, _TX_QUEUE_ENTRIES@GOTPAGE
Lloh7:
	ldr	x23, [x23, _TX_QUEUE_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x24, #0
	mov	x25, #0
Lloh8:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #4
	cmp	x25, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x21, x8, x24
	mov	x0, x21
	bl	_ftmac100_txdes_get_skb
	mov	x20, x0
	mov	x0, x21
	bl	_ftmac100_txdes_get_dma_addr
	cbz	x20, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x0
	ldr	w22, [x19, #16]
	mov	x0, x20
	bl	_skb_headlen
	mov	x2, x0
	ldr	w3, [x26]
	mov	x0, x22
	mov	x1, x21
	bl	_dma_unmap_single
	mov	x0, x20
	bl	_dev_kfree_skb
	b	LBB0_7
LBB0_10:
	ldr	w0, [x19, #16]
	ldr	x2, [x19, #8]
	ldr	w3, [x19]
	mov	w1, #4
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dma_free_coherent
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_QUEUE_ENTRIES,4,2           ; @RX_QUEUE_ENTRIES
	.comm	_RX_BUF_SIZE,4,2                ; @RX_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	_ftmac100_free_buffers
.subsections_via_symbols
