	.file	"extr_utils.c_read_restore.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	read_restore
	.type	read_restore, @function
read_restore:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	esi, esi
	jle	.L2
	lea	r15d, -1[rsi]
	mov	r12, rdi
	mov	r14, rdx
	mov	ebx, 1
	add	r15, 2
	xor	ebp, ebp
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	restore_list_push_back@PLT
	cmp	r13d, ebx
	je	.L5
.L11:
	mov	eax, DWORD PTR [r12+rbx*4]
	test	eax, eax
	js	.L5
	add	rbx, 1
	cmp	r15, rbx
	je	.L2
.L7:
	mov	esi, DWORD PTR -4[r12+rbx*4]
	test	esi, esi
	jns	.L3
	mov	edi, esi
	call	CONV_ID@PLT
	mov	edi, eax
	call	restore_list_alloc@PLT
	mov	rbp, rax
	cmp	r13d, ebx
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	xor	edi, edi
	test	rbp, rbp
	setne	dil
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 8[rbp], rbp
	setne	dil
	call	assert@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r14
	call	map_int_vptr_get@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	add	rbx, 1
	call	assert@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r14
	call	map_int_vptr_add@PLT
	mov	QWORD PTR [rax], rbp
	cmp	r15, rbx
	jne	.L7
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	lea	eax, 0[0+r13*4]
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	read_restore, .-read_restore
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_utils.c_read_restore.c"
	.text
	.align	2
	.global	read_restore
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_restore, %function
read_restore:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r7, r1, #0
	ble	.L2
	mov	r4, #0
	mov	r8, r2
	mov	r6, r0
	mov	r5, r4
.L7:
	ldr	r1, [r6], #4
	cmp	r1, #0
	blt	.L10
	mov	r0, r4
	bl	restore_list_push_back
.L4:
	add	r5, r5, #1
	cmp	r5, r7
	beq	.L5
	ldr	r3, [r6]
	cmp	r3, #0
	bge	.L7
.L5:
	subs	r0, r4, #0
	movne	r0, #1
	bl	assert
	ldr	r0, [r4, #4]
	subs	r0, r0, r4
	movne	r0, #1
	bl	assert
	ldr	r1, [r4]
	mov	r0, r8
	bl	map_int_vptr_get
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r0, r8
	ldr	r1, [r4]
	bl	map_int_vptr_add
	cmp	r5, r7
	str	r4, [r0]
	bne	.L7
.L2:
	lsl	r0, r7, #2
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r1
	bl	CONV_ID
	bl	restore_list_alloc
	mov	r4, r0
	b	.L4
	.size	read_restore, .-read_restore
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
