	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	28(%rdi), %edi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	callq	_virtqueue_detach_unused_buf
	testq	%rax, %rax
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	callq	_dev_kfree_skb
	movl	28(%rbx), %edi
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_give_pages
	decq	(%rbx)
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %edi
	callq	_virtqueue_detach_unused_buf
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%rbx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	callq	_dev_kfree_skb
	decq	(%rbx)
	jmp	LBB0_2
LBB0_8:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_BUG_ON                         ## TAILCALL
	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #28]
	bl	_virtqueue_detach_unused_buf
	cbz	x0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_dev_kfree_skb
	ldr	w0, [x19, #28]
	bl	_virtqueue_detach_unused_buf
	cbnz	x0, LBB0_1
LBB0_2:
	ldr	w0, [x19, #24]
	bl	_virtqueue_detach_unused_buf
	cbz	x0, LBB0_9
; %bb.3:
	mov	x1, x0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_give_pages
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
	ldr	w0, [x19, #24]
	bl	_virtqueue_detach_unused_buf
	mov	x1, x0
	cbz	x0, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x1
	bl	_dev_kfree_skb
	b	LBB0_5
LBB0_9:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_BUG_ON
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_free_unused_bufs
.subsections_via_symbols
