	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pool_release_buffer
_pool_release_buffer:                   ## @pool_release_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	16(%rdi), %r14
	movq	_CONFIG_MEMORY_POISONING@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movq	_FF_MEMORY_POISON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %edx
	callq	_memset
LBB0_2:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_ff_mutex_lock
	movq	8(%r14), %rax
	movq	%rax, (%rbx)
	movq	%rbx, 8(%r14)
	movq	%r15, %rdi
	callq	_ff_mutex_unlock
	movq	_memory_order_acq_rel@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_atomic_fetch_add_explicit
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_buffer_pool_free               ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_MEMORY_POISONING,8,3    ## @CONFIG_MEMORY_POISONING
	.comm	_FF_MEMORY_POISON,4,2           ## @FF_MEMORY_POISON
	.comm	_memory_order_acq_rel,4,2       ## @memory_order_acq_rel
	.no_dead_strip	_pool_release_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pool_release_buffer
_pool_release_buffer:                   ; @pool_release_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	x20, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _CONFIG_MEMORY_POISONING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_MEMORY_POISONING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x8, _FF_MEMORY_POISON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FF_MEMORY_POISON@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	bl	_memset
LBB0_2:
	add	x21, x19, #4
	mov	x0, x21
	bl	_ff_mutex_lock
	ldr	x8, [x19, #8]
	str	x8, [x20]
	str	x20, [x19, #8]
	mov	x0, x21
	bl	_ff_mutex_unlock
Lloh6:
	adrp	x8, _memory_order_acq_rel@GOTPAGE
Lloh7:
	ldr	x8, [x8, _memory_order_acq_rel@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #-1
	bl	_atomic_fetch_add_explicit
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	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	_buffer_pool_free
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_MEMORY_POISONING,8,3    ; @CONFIG_MEMORY_POISONING
	.comm	_FF_MEMORY_POISON,4,2           ; @FF_MEMORY_POISON
	.comm	_memory_order_acq_rel,4,2       ; @memory_order_acq_rel
	.no_dead_strip	_pool_release_buffer
.subsections_via_symbols
