	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netcp_rxpool_free
_netcp_rxpool_free:                     ## @netcp_rxpool_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_KNAV_DMA_FDQ_PER_CHAN@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_netcp_free_rx_buf
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_4:
	movq	8(%r14), %rdi
	callq	_knav_pool_count
	movq	(%r14), %rbx
	cmpq	%rbx, %rax
	je	LBB0_6
## %bb.5:
	movl	16(%r14), %r15d
	movq	8(%r14), %rdi
	callq	_knav_pool_count
	subq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%rbx, %rdx
	callq	_dev_err
LBB0_6:
	movq	8(%r14), %rdi
	callq	_knav_pool_destroy
	movq	$0, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KNAV_DMA_FDQ_PER_CHAN,4,2      ## @KNAV_DMA_FDQ_PER_CHAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Lost Rx (%d) descriptors\n"

	.no_dead_strip	_netcp_rxpool_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netcp_rxpool_free
_netcp_rxpool_free:                     ; @netcp_rxpool_free
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _KNAV_DMA_FDQ_PER_CHAN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KNAV_DMA_FDQ_PER_CHAN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x20, lsl #2]
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_netcp_free_rx_buf
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_4:
	ldr	x0, [x19, #8]
	bl	_knav_pool_count
	ldr	x21, [x19]
	cmp	x0, x21
	b.eq	LBB0_6
; %bb.5:
	ldr	w20, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_knav_pool_count
	sub	x2, x21, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_knav_pool_destroy
	str	xzr, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_KNAV_DMA_FDQ_PER_CHAN,4,2      ; @KNAV_DMA_FDQ_PER_CHAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Lost Rx (%d) descriptors\n"

	.no_dead_strip	_netcp_rxpool_free
.subsections_via_symbols
