	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk_free_sio_buffers
_stk_free_sio_buffers:                  ## @stk_free_sio_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r12
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.2:
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	shlq	$4, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx)
	jg	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_5
LBB0_7:
	leaq	16(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	24(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	20(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movl	(%r12), %r13d
	movl	$0, (%r12)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.8:
	shlq	$4, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	8(%rax,%rbx), %edi
	callq	_vfree
	addq	$16, %rbx
	cmpq	%rbx, %r13
	jne	LBB0_9
LBB0_10:
	movq	8(%r12), %rdi
	callq	_kfree
	movq	$0, 8(%r12)
	jmp	LBB0_11
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_stk_free_sio_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk_free_sio_buffers
_stk_free_sio_buffers:                  ; @stk_free_sio_buffers
	.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]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_9
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, #1
	b.ge	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_5:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
	add	x0, x19, #20
	bl	_INIT_LIST_HEAD
	ldr	w21, [x19]
	str	wzr, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x20, #0
	lsl	x21, x21, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x20
	ldr	w0, [x8, #8]
	bl	_vfree
	add	x20, x20, #16
	cmp	x21, x20
	b.ne	LBB0_7
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_kfree
	mov	w0, #0
	str	xzr, [x19, #8]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
LBB0_11:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_stk_free_sio_buffers
.subsections_via_symbols
