	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_unused_bufs
_free_unused_bufs:                      ## @free_unused_bufs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_18
## %bb.1:
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	32(%r14), %rax
	movq	(%rax,%r12,8), %r15
	movq	%r15, %rdi
	callq	_virtqueue_detach_unused_buf
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	callq	_ptr_to_xdp
	movl	%eax, %edi
	callq	_xdp_return_frame
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rdi
	callq	_virtqueue_detach_unused_buf
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_15
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_is_xdp_frame
	movq	%rbx, %rdi
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	callq	_dev_kfree_skb
	jmp	LBB0_14
LBB0_6:
	testl	%eax, %eax
	jle	LBB0_18
## %bb.7:
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jge	LBB0_18
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%rax, %rdi
	callq	_virt_to_head_page
	movl	%eax, %edi
	callq	_put_page
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_virtqueue_detach_unused_buf
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpq	$0, 24(%r14)
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpq	$0, 16(%r14)
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	leaq	(,%r15,8), %rdi
	addq	8(%r14), %rdi
	movq	%rax, %rsi
	callq	_give_pages
	jmp	LBB0_9
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_free_unused_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_unused_bufs
_free_unused_bufs:                      ; @free_unused_bufs
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x0
	mov	x22, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x19, #32]
	ldr	x20, [x8, x22, lsl #3]
	mov	x0, x20
	bl	_virtqueue_detach_unused_buf
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x21
	bl	_ptr_to_xdp
	bl	_xdp_return_frame
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x20
	bl	_virtqueue_detach_unused_buf
	mov	x21, x0
	cbz	x0, LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_is_xdp_frame
	cbnz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x21
	bl	_dev_kfree_skb
	b	LBB0_6
LBB0_9:
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.10:
	mov	x21, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_19
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x21, lsl #3]
	mov	x0, x20
	bl	_virtqueue_detach_unused_buf
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x1, x0
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x1
	bl	_virt_to_head_page
	bl	_put_page
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x20
	bl	_virtqueue_detach_unused_buf
	mov	x1, x0
	cbz	x0, LBB0_11
LBB0_16:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [x19, #8]
	add	x0, x8, x21, lsl #3
	bl	_give_pages
	b	LBB0_15
LBB0_19:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_free_unused_bufs
.subsections_via_symbols
