	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_restore                   ## -- Begin function read_restore
	.p2align	4, 0x90
_read_restore:                          ## @read_restore
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	jle	LBB0_9
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %r12
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	decq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	%rbx, 8(%rbx)
	setne	%dil
	callq	_assert
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_map_int_vptr_get
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_map_int_vptr_add
	movq	%rbx, (%rax)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r14
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r14,4), %esi
	testl	%esi, %esi
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_restore_list_push_back
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %edi
	callq	_CONV_ID
	movl	%eax, %edi
	callq	_restore_list_alloc
	movq	%rax, %rbx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r14), %r13
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 4(%r12,%r14,4)
	jns	LBB0_8
	jmp	LBB0_7
LBB0_9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shll	$2, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_restore                   ; -- Begin function read_restore
	.p2align	2
_read_restore:                          ; @read_restore
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x21, #0
	mov	w22, w19
	add	x23, x0, #4
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x21, #8]
	cmp	x8, x21
	cset	w0, ne
	bl	_assert
	ldr	w1, [x21]
	mov	x0, x20
	bl	_map_int_vptr_get
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	w1, [x21]
	mov	x0, x20
	bl	_map_int_vptr_add
	str	x21, [x0]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #4
	subs	x22, x22, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w1, [x23, #-4]
	tbnz	w1, #31, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_restore_list_push_back
	cmp	x22, #1
	b.eq	LBB0_2
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x1
	bl	_CONV_ID
	bl	_restore_list_alloc
	mov	x21, x0
	cmp	x22, #1
	b.eq	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	tbz	w8, #31, LBB0_3
	b	LBB0_2
LBB0_8:
	lsl	w0, w19, #2
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
