	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmveth_free_buffer_pool
_ibmveth_free_buffer_pool:              ## @ibmveth_free_buffer_pool
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	32(%rsi), %rdi
	callq	_kfree
	movq	$0, 32(%r15)
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	cmpq	$0, 16(%r15)
	je	LBB0_8
## %bb.2:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	movl	$1, %ebx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rcx,%rbx,8), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	movq	16(%r15), %rax
	movq	-8(%rax,%rbx,8), %rsi
	movl	24(%r15), %edx
	movl	(%r13), %ecx
	callq	_dma_unmap_single
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	8(%r15), %rax
	movq	$0, -8(%rax,%rbx,8)
	movl	(%r15), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rcx
	incq	%rbx
	jmp	LBB0_4
LBB0_8:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_kfree
	movq	$0, 16(%r15)
LBB0_10:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_kfree
	movq	$0, 8(%r15)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_ibmveth_free_buffer_pool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmveth_free_buffer_pool
_ibmveth_free_buffer_pool:              ; @ibmveth_free_buffer_pool
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1, #32]
	bl	_kfree
	str	xzr, [x19, #32]
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_7
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x22, #0
Lloh0:
	adrp	x23, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	x21, [x9, x22, lsl #3]
	cbz	x21, LBB0_5
LBB0_4:
	ldr	x0, [x20]
	ldr	x8, [x19, #16]
	lsl	x24, x22, #3
	ldr	x1, [x8, x24]
	ldr	w2, [x19, #24]
	ldr	w3, [x23]
	bl	_dma_unmap_single
	mov	x0, x21
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #8]
	str	xzr, [x8, x24]
	ldr	w8, [x19]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #8]
	ldr	x21, [x9, x22, lsl #3]
	cbnz	x21, LBB0_4
	b	LBB0_5
LBB0_7:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_kfree
	str	xzr, [x19, #16]
LBB0_9:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_11:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_ibmveth_free_buffer_pool
.subsections_via_symbols
