	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_free_buffers
_fec_enet_free_buffers:                 ## @fec_enet_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	xorl	%edx, %edx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	movl	%eax, %ecx
	cmpq	%rcx, %rdx
	jae	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	32(%rcx), %rcx
	movq	(%rcx,%rdx,8), %r15
	cmpl	$0, (%r15)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_fec_enet_get_nextdesc
	movq	%rax, %rbx
	incq	%r14
	movl	(%r15), %eax
	cmpq	%rax, %r14
	jae	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r15), %rax
	movq	(%rax,%r14,8), %r12
	movq	$0, (%rax,%r14,8)
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	24(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_fec32_to_cpu
	movq	_FEC_ENET_RX_FRSIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	subq	16(%r13), %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_dma_unmap_single
	movq	%r12, %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_6
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	movl	%eax, %ecx
	cmpq	%rcx, %r14
	jae	LBB0_16
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%rcx,%r14,8), %r15
	cmpl	$0, 16(%r15)
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
	movq	8(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	$0, (%rax,%rbx,8)
	callq	_dev_kfree_skb
	incq	%rbx
	movl	16(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	jmp	LBB0_15
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FEC_ENET_RX_FRSIZE,8,3         ## @FEC_ENET_RX_FRSIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_fec_enet_free_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_free_buffers
_fec_enet_free_buffers:                 ; @fec_enet_free_buffers
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x24, #0
Lloh0:
	adrp	x25, _FEC_ENET_RX_FRSIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FEC_ENET_RX_FRSIZE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, uxtw
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x9, [x19, #32]
	ldr	x20, [x9, x24, lsl #3]
	ldr	w9, [x20]
	cbz	w9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, #0
	ldr	x21, [x20, #8]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x21
	mov	x1, x20
	bl	_fec_enet_get_nextdesc
	mov	x21, x0
	add	x27, x27, #1
	ldr	w8, [x20]
	cmp	x27, x8
	b.hs	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #16]
	lsl	x9, x27, #3
	ldr	x22, [x8, x9]
	str	xzr, [x8, x9]
	cbz	x22, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x23, [x19, #24]
	ldr	w0, [x21]
	bl	_fec32_to_cpu
	mov	x1, x0
	ldr	x8, [x25]
	ldr	x9, [x19, #16]
	sub	x2, x8, x9
	ldr	w3, [x26]
	mov	x0, x23
	bl	_dma_unmap_single
	mov	x0, x22
	bl	_dev_kfree_skb
	b	LBB0_6
LBB0_9:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_16
; %bb.10:
	mov	x20, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, uxtw
	b.hs	LBB0_16
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x9, [x19, #8]
	ldr	x21, [x9, x20, lsl #3]
	ldr	w9, [x21, #16]
	cbz	w9, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x22, #0
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #8]
	lsl	x23, x22, #3
	ldr	x0, [x8, x23]
	bl	_kfree
	ldr	x8, [x21, #8]
	str	xzr, [x8, x23]
	ldr	x8, [x21]
	ldr	x0, [x8, x23]
	str	xzr, [x8, x23]
	bl	_dev_kfree_skb
	add	x22, x22, #1
	ldr	w8, [x21, #16]
	cmp	x22, x8
	b.lo	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x19, #4]
	b	LBB0_11
LBB0_16:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FEC_ENET_RX_FRSIZE,8,3         ; @FEC_ENET_RX_FRSIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_fec_enet_free_buffers
.subsections_via_symbols
