	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanup
_cleanup:                               ## @cleanup
	.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, %r15
	xorl	%eax, %eax
	callq	_NISERR
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	movl	24(%r15), %ecx
	movq	%r15, %rdi
	movl	%ecx, %esi
	xorl	%edx, %edx
	callq	_markreachable
	movq	16(%r15), %rcx
	movl	24(%r15), %edx
	movq	%r15, %rdi
	movq	%rcx, %rsi
	callq	_markcanreach
	movq	8(%r15), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rbx
	xorl	%eax, %eax
	callq	_NISERR
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %r14
	movq	24(%rbx), %rax
	cmpq	16(%r15), %rax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 16(%rbx)
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dropstate
	jmp	LBB0_2
LBB0_7:
	xorl	%eax, %eax
	callq	_NISERR
	movl	$1, %r14d
	movl	$1, %edi
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	16(%r15), %rax
	cmpq	$0, (%rax)
	movl	$1, %edi
	je	LBB0_10
## %bb.9:
	xorl	%edi, %edi
	cmpq	%rax, 8(%rax)
	sete	%dil
LBB0_10:
	callq	_assert
	movl	24(%r15), %esi
	movq	%r15, %rdi
	callq	_cleartraverse
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_NISERR
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	16(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rax)
	sete	%r14b
LBB0_13:
	movl	%r14d, %edi
	callq	_assert
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, (%rax)
	incl	%ebx
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_15
LBB0_16:
	movl	%ebx, (%r15)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanup
_cleanup:                               ; @cleanup
	.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
	bl	_NISERR
	cbnz	x0, LBB0_20
; %bb.1:
	ldr	w1, [x19, #24]
	mov	x0, x19
	mov	x2, #0
	mov	x3, x1
	bl	_markreachable
	ldr	x1, [x19, #16]
	ldr	w2, [x19, #24]
	mov	x0, x19
	mov	x3, x1
	bl	_markcanreach
	ldr	x21, [x19, #8]
	cbnz	x21, LBB0_5
LBB0_2:
	bl	_NISERR
	cbz	x0, LBB0_9
LBB0_3:
	mov	w0, #1
	b	LBB0_11
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x21, LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x21
	bl	_NISERR
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [x20, #8]
	ldr	x8, [x20, #24]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_dropstate
	b	LBB0_4
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	cbz	x9, LBB0_3
; %bb.10:
	ldr	x9, [x8, #8]
	cmp	x9, x8
	cset	w0, eq
LBB0_11:
	bl	_assert
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_cleartraverse
	bl	_NISERR
	cbz	x0, LBB0_13
LBB0_12:
	mov	w0, #1
	b	LBB0_15
LBB0_13:
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	cbz	x9, LBB0_12
; %bb.14:
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
LBB0_15:
	bl	_assert
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
; %bb.16:
	mov	w10, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	w9, w10, #1
	str	w10, [x8]
	ldr	x8, [x8, #8]
	mov	x10, x9
	cbnz	x8, LBB0_17
	b	LBB0_19
LBB0_18:
	mov	w9, #0
LBB0_19:
	str	w9, [x19]
LBB0_20:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cleanup
.subsections_via_symbols
