	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_free_buffer                    ## -- Begin function free_buffer
	.p2align	4, 0x90
_free_buffer:                           ## @free_buffer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_NB_Head@GOTPCREL(%rip), %r14
	movq	8(%r14), %r15
	movq	(%rdi), %rax
	movq	_NB_MAGIC_BUSY@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	_NB_MAGIC_BUSYHEAD@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	cmpq	%rbx, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	%rbx, 8(%rbx)
	sete	%dil
LBB0_4:
	callq	_assert
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 40(%rbx)
	movq	_NB_MAGIC_FREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r14, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	%rbx, 16(%r15)
	movq	%rbx, 8(%r14)
	movq	_NB_used@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_NB_free@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NB_Head,56,3                   ## @NB_Head
	.comm	_NB_MAGIC_BUSY,8,3              ## @NB_MAGIC_BUSY
	.comm	_NB_MAGIC_BUSYHEAD,8,3          ## @NB_MAGIC_BUSYHEAD
	.comm	_NB_MAGIC_FREE,8,3              ## @NB_MAGIC_FREE
	.comm	_NB_used,4,2                    ## @NB_used
	.comm	_NB_free,4,2                    ## @NB_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_free_buffer                    ; -- Begin function free_buffer
	.p2align	2
_free_buffer:                           ; @free_buffer
	.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
Lloh0:
	adrp	x20, _NB_Head@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NB_Head@GOTPAGEOFF]
	ldr	x21, [x20, #8]
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _NB_MAGIC_BUSY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NB_MAGIC_BUSY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x9, _NB_MAGIC_BUSYHEAD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NB_MAGIC_BUSYHEAD@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	cmp	x8, x19
	b.eq	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #8]
	cmp	x8, x19
	cset	w0, eq
LBB0_6:
	bl	_assert
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #24]
Lloh8:
	adrp	x8, _NB_MAGIC_FREE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NB_MAGIC_FREE@GOTPAGEOFF]
	stur	q0, [x19, #40]
Lloh10:
	ldr	x8, [x8]
	stp	x21, x20, [x19, #8]
	str	x8, [x19]
	str	x19, [x21, #16]
	str	x19, [x20, #8]
Lloh11:
	adrp	x8, _NB_used@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NB_used@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
Lloh13:
	adrp	x8, _NB_free@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NB_free@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #0
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NB_Head,56,3                   ; @NB_Head
	.comm	_NB_MAGIC_BUSY,8,3              ; @NB_MAGIC_BUSY
	.comm	_NB_MAGIC_BUSYHEAD,8,3          ; @NB_MAGIC_BUSYHEAD
	.comm	_NB_MAGIC_FREE,8,3              ; @NB_MAGIC_FREE
	.comm	_NB_used,4,2                    ; @NB_used
	.comm	_NB_free,4,2                    ; @NB_free
.subsections_via_symbols
