	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_buffer_free_gc_two
_test_buffer_free_gc_two:               ## @test_buffer_free_gc_two
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_gc_new
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %r15
	movl	$1024, %edi                     ## imm = 0x400
	movq	%r15, %rsi
	callq	_alloc_buf_gc
	movl	%eax, %r14d
	movl	$1024, %edi                     ## imm = 0x400
	movq	%r15, %rsi
	callq	_alloc_buf_gc
	movl	%eax, %r12d
	movl	%eax, -40(%rbp)
	movl	$1024, %edi                     ## imm = 0x400
	movq	%r15, %rsi
	callq	_alloc_buf_gc
	movq	-48(%rbp), %rbx
	leaq	8(%rbx), %rdi
	movl	%eax, %esi
	callq	_assert_ptr_equal
	movq	(%rbx), %rdi
	addq	$8, %rdi
	movl	%r12d, %esi
	callq	_assert_ptr_equal
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	$8, %rdi
	movl	%r14d, %esi
	callq	_assert_ptr_equal
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_free_buf_gc
	movq	-48(%rbp), %rdi
	callq	_assert_non_null
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	8(%rbx), %rdi
	movl	-40(%rbp), %esi
	callq	_assert_ptr_not_equal
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %rdi
	callq	_gc_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_test_buffer_free_gc_two
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_buffer_free_gc_two
_test_buffer_free_gc_two:               ; @test_buffer_free_gc_two
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_gc_new
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	w0, #1024
	bl	_alloc_buf_gc
	mov	x19, x0
	add	x1, sp, #8
	mov	w0, #1024
	bl	_alloc_buf_gc
	mov	x20, x0
	str	w0, [sp]
	add	x1, sp, #8
	mov	w0, #1024
	bl	_alloc_buf_gc
	mov	x1, x0
	ldr	x21, [sp, #8]
	add	x0, x21, #8
	bl	_assert_ptr_equal
	ldr	x8, [x21]
	add	x0, x8, #8
	mov	x1, x20
	bl	_assert_ptr_equal
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x0, x8, #8
	mov	x1, x19
	bl	_assert_ptr_equal
	mov	x0, sp
	add	x1, sp, #8
	bl	_free_buf_gc
	ldr	x0, [sp, #8]
	bl	_assert_non_null
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x21, #8
	ldr	w1, [sp]
	bl	_assert_ptr_not_equal
	ldr	x21, [x21]
	cbnz	x21, LBB0_1
; %bb.2:
	add	x0, sp, #8
	bl	_gc_free
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_test_buffer_free_gc_two
.subsections_via_symbols
