	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_free_unused_buffers            ## -- Begin function free_unused_buffers
	.p2align	4, 0x90
_free_unused_buffers:                   ## @free_unused_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_NB_MAGIC_HEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_NB_MAGIC_BUSYHEAD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movq	48(%rdi), %r15
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	8(%r14), %rax
	cmpq	16(%r14), %rax
	jne	LBB0_3
## %bb.1:
	movq	24(%r14), %rax
	movq	%rax, 16(%r14)
	movq	%rax, 8(%r14)
	cmpq	$0, 32(%r14)
	je	LBB0_3
## %bb.2:
	movq	%rax, 32(%r14)
LBB0_3:
	cmpq	%r14, %r15
	je	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	cmpq	16(%r15), %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	48(%r15), %rbx
	movq	%rbx, 48(%r14)
	movq	%r14, 56(%rbx)
	xorl	%edi, %edi
	cmpl	$0, 40(%r14)
	setg	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_free_buffer
	movl	40(%r14), %eax
	decl	%eax
	movl	%eax, 40(%r14)
	movq	%rbx, %r15
	cmpq	%r14, %rbx
	jne	LBB0_5
	jmp	LBB0_7
LBB0_4:
	movl	40(%r14), %eax
LBB0_7:
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_8:
	movq	56(%r14), %r15
	xorl	%edi, %edi
	cmpq	%r14, %r15
	setne	%dil
	callq	_assert
	movq	8(%r15), %rax
	cmpq	16(%r15), %rax
	je	LBB0_9
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$2, 40(%r14)
	setge	%al
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r12d, %r12d
	cmpq	%r14, %rbx
	setne	%r12b
	movzbl	%al, %edi
	callq	_assert
	movq	%r14, 48(%rbx)
	movq	%r15, %rdi
	callq	_free_buffer
	decl	40(%r14)
	movl	%r12d, %edi
	callq	_assert
	movq	8(%rbx), %rax
	movq	%rbx, %r15
	cmpq	16(%rbx), %rax
	jne	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r15), %rbx
	movq	%rbx, 56(%r14)
	cmpq	%r14, %rbx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_NB_MAGIC_HEAD,8,3              ## @NB_MAGIC_HEAD
	.comm	_NB_MAGIC_BUSYHEAD,8,3          ## @NB_MAGIC_BUSYHEAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_free_unused_buffers            ; -- Begin function free_unused_buffers
	.p2align	2
_free_unused_buffers:                   ; @free_unused_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
	mov	x19, x0
	ldr	x20, [x0, #48]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NB_MAGIC_HEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NB_MAGIC_HEAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _NB_MAGIC_BUSYHEAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NB_MAGIC_BUSYHEAD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldp	x8, x9, [x19, #24]
	stp	x8, x8, [x19, #8]
	cbz	x9, LBB0_3
; %bb.2:
	str	x8, [x19, #32]
LBB0_3:
	cmp	x20, x19
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x20, #48]
	str	x21, [x19, #48]
	str	x19, [x21, #56]
	ldr	w8, [x19, #40]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	mov	x0, x20
	bl	_free_buffer
	ldr	w8, [x19, #40]
	sub	w8, w8, #1
	str	w8, [x19, #40]
	mov	x20, x21
	cmp	x21, x19
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19, #40]
LBB0_7:
	cmp	w8, #0
	cset	w0, eq
	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
	b	_assert
LBB0_8:
	ldr	x20, [x19, #56]
	cmp	x20, x19
	cset	w0, ne
	bl	_assert
	ldp	x8, x9, [x20, #8]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x19, #40]
	cmp	w8, #1
	cset	w0, gt
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	x22, x19
	cset	w21, ne
	bl	_assert
	str	x19, [x22, #48]
	mov	x0, x20
	bl	_free_buffer
	ldr	w8, [x19, #40]
	sub	w8, w8, #1
	str	w8, [x19, #40]
	mov	x0, x21
	bl	_assert
	ldp	x8, x9, [x22, #8]
	mov	x20, x22
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x22, [x20, #56]
	str	x22, [x19, #56]
	cmp	x22, x19
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #0
	b	LBB0_10
LBB0_14:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NB_MAGIC_HEAD,8,3              ; @NB_MAGIC_HEAD
	.comm	_NB_MAGIC_BUSYHEAD,8,3          ; @NB_MAGIC_BUSYHEAD
.subsections_via_symbols
