	.file	"extr_jv_parse.c_parser_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	parser_reset, @function
parser_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR JV_PARSE_STREAMING[rip], eax
	jne	.L11
.L2:
	mov	eax, DWORD PTR JV_LAST_NONE[rip]
	mov	rdi, QWORD PTR 40[rbp]
	mov	DWORD PTR 48[rbp], eax
	call	jv_free@PLT
	xor	eax, eax
	call	jv_invalid@PLT
	mov	rdi, QWORD PTR 32[rbp]
	mov	QWORD PTR 40[rbp], rax
	call	jv_free@PLT
	xor	eax, eax
	call	jv_invalid@PLT
	mov	QWORD PTR 32[rbp], rax
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	jle	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	call	jv_free@PLT
	cmp	DWORD PTR 4[rbp], ebx
	jg	.L4
.L3:
	mov	eax, DWORD PTR JV_PARSER_NORMAL[rip]
	mov	DWORD PTR 4[rbp], 0
	mov	QWORD PTR 16[rbp], 0
	mov	DWORD PTR 8[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, QWORD PTR 64[rdi]
	call	jv_free@PLT
	xor	eax, eax
	call	jv_array@PLT
	mov	QWORD PTR 56[rbp], 0
	mov	QWORD PTR 64[rbp], rax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	parser_reset, .-parser_reset
	.comm	JV_PARSE_STREAMING,4,4
	.comm	JV_PARSER_NORMAL,4,4
	.comm	JV_LAST_NONE,4,4
	.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_jv_parse.c_parser_reset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parser_reset, %function
parser_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	tst	r2, r3
	mov	r5, r0
	bne	.L11
.L2:
	ldr	r3, .L12+4
	ldr	r0, [r5, #24]
	ldr	r3, [r3]
	str	r3, [r5, #28]
	bl	jv_free
	bl	jv_invalid
	mov	r3, r0
	ldr	r0, [r5, #20]
	str	r3, [r5, #24]
	bl	jv_free
	bl	jv_invalid
	ldr	r3, [r5, #4]
	str	r0, [r5, #20]
	cmp	r3, #0
	ble	.L3
	mov	r4, #0
.L4:
	ldr	r3, [r5, #16]
	ldr	r0, [r3, r4, lsl #2]
	bl	jv_free
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
.L3:
	mov	r3, #0
	ldr	r2, .L12+8
	str	r3, [r5, #4]
	ldr	r2, [r2]
	str	r3, [r5, #12]
	str	r2, [r5, #8]
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r0, [r0, #36]
	bl	jv_free
	bl	jv_array
	mov	r3, #0
	str	r0, [r5, #36]
	str	r3, [r5, #32]
	b	.L2
.L13:
	.align	2
.L12:
	.word	JV_PARSE_STREAMING
	.word	JV_LAST_NONE
	.word	JV_PARSER_NORMAL
	.size	parser_reset, .-parser_reset
	.comm	JV_PARSE_STREAMING,4,4
	.comm	JV_PARSER_NORMAL,4,4
	.comm	JV_LAST_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
