	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_endscan                   ## -- Begin function heap_endscan
	.p2align	4, 0x90
_heap_endscan:                          ## @heap_endscan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movslq	%edi, %rbx
	movl	32(%rbx), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	32(%rbx), %edi
	callq	_ReleaseBuffer
LBB0_2:
	movl	16(%rbx), %edi
	callq	_RelationDecrementReferenceCount
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_pfree
LBB0_4:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_FreeAccessStrategy
LBB0_6:
	movq	_SO_TEMP_SNAPSHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.7:
	movl	4(%rbx), %edi
	callq	_UnregisterSnapshot
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SO_TEMP_SNAPSHOT,4,2           ## @SO_TEMP_SNAPSHOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_endscan                   ; -- Begin function heap_endscan
	.p2align	2
_heap_endscan:                          ; @heap_endscan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x19, w0
	ldr	w0, [x19, #32]
	bl	_BufferIsValid
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #32]
	bl	_ReleaseBuffer
LBB0_2:
	ldr	w0, [x19, #16]
	bl	_RelationDecrementReferenceCount
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_pfree
LBB0_4:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_FreeAccessStrategy
LBB0_6:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SO_TEMP_SNAPSHOT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SO_TEMP_SNAPSHOT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x19, #4]
	bl	_UnregisterSnapshot
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SO_TEMP_SNAPSHOT,4,2           ; @SO_TEMP_SNAPSHOT
.subsections_via_symbols
