	.file	"extr_json.c_parse_json_string.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unterminated string\n"
.LC1:
	.string	"unescape failed\n"
	.text
	.p2align 4
	.type	parse_json_string, @function
parse_json_string:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	lea	r12, 1[rax]
	mov	QWORD PTR [rdi], r12
	mov	rdi, r12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rax
.L3:
	movzx	eax, BYTE PTR [rdi]
	test	al, al
	je	.L20
.L24:
	cmp	al, 34
	je	.L23
	lea	rax, 1[rdi]
	mov	QWORD PTR 0[rbp], rax
	cmp	BYTE PTR -1[rax], 92
	jne	.L12
	add	rdi, 2
	mov	QWORD PTR 0[rbp], rdi
	movzx	eax, BYTE PTR [rdi]
	test	al, al
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdi, .LC0[rip]
	call	FIXME@PLT
	mov	eax, DWORD PTR E_FAIL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	test	al, al
	je	.L20
	sub	rdi, r12
	mov	QWORD PTR [rsp], rdi
	add	rdi, 1
	call	heap_alloc@PLT
	mov	r13, rax
	mov	eax, DWORD PTR E_OUTOFMEMORY[rip]
	test	r13, r13
	je	.L1
	mov	rdx, QWORD PTR [rsp]
	test	rdx, rdx
	jne	.L25
	mov	rsi, rsp
	mov	rdi, r13
	call	unescape@PLT
	test	eax, eax
	je	.L26
.L10:
	mov	rax, QWORD PTR [rsp]
	mov	BYTE PTR 0[r13+rax], 0
	mov	eax, DWORD PTR S_OK[rip]
	add	QWORD PTR 0[rbp], 1
	mov	QWORD PTR [rbx], r13
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L27
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, r13
	call	memcpy@PLT
	mov	rsi, rsp
	mov	rdi, r13
	call	unescape@PLT
	test	eax, eax
	jne	.L10
.L26:
	lea	rdi, .LC1[rip]
	call	FIXME@PLT
	mov	rdi, r13
	call	heap_free@PLT
	mov	eax, DWORD PTR E_FAIL[rip]
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	parse_json_string, .-parse_json_string
	.comm	S_OK,4,4
	.comm	E_OUTOFMEMORY,4,4
	.comm	E_FAIL,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_json.c_parse_json_string.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unterminated string\012\000"
	.align	2
.LC1:
	.ascii	"unescape failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_json_string, %function
parse_json_string:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r6, [r0]
	ldr	r3, .L22
	add	r6, r6, #1
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	mov	r5, r1
	mov	r3, r6
	str	r6, [r0]
	b	.L3
.L4:
	str	r3, [r4]
	ldrb	r2, [r3, #-1]	@ zero_extendqisi2
	cmp	r2, #92
	addeq	r3, r0, #2
	streq	r3, [r4]
.L3:
	mov	r0, r3
	ldrb	r2, [r3], #1	@ zero_extendqisi2
	cmp	r2, #0
	cmpne	r2, #34
	bne	.L4
	cmp	r2, #0
	beq	.L17
	sub	r3, r0, r6
	add	r0, r3, #1
	str	r3, [sp]
	bl	heap_alloc
	subs	r7, r0, #0
	beq	.L18
	ldr	r2, [sp]
	cmp	r2, #0
	bne	.L19
.L8:
	mov	r1, sp
	mov	r0, r7
	bl	unescape
	cmp	r0, #0
	beq	.L20
	mov	r1, #0
	ldr	r3, [sp]
	ldr	r2, .L22+4
	strb	r1, [r7, r3]
	ldr	r3, [r4]
	ldr	r0, [r2]
	add	r3, r3, #1
	str	r3, [r4]
	str	r7, [r5]
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L17:
	ldr	r0, .L22+8
	bl	FIXME
	ldr	r3, .L22+12
	ldr	r0, [r3]
	b	.L1
.L19:
	mov	r1, r6
	bl	memcpy
	b	.L8
.L20:
	ldr	r0, .L22+16
	bl	FIXME
	mov	r0, r7
	bl	heap_free
	ldr	r3, .L22+12
	ldr	r0, [r3]
	b	.L1
.L18:
	ldr	r3, .L22+20
	ldr	r0, [r3]
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	S_OK
	.word	.LC0
	.word	E_FAIL
	.word	.LC1
	.word	E_OUTOFMEMORY
	.size	parse_json_string, .-parse_json_string
	.comm	S_OK,4,4
	.comm	E_OUTOFMEMORY,4,4
	.comm	E_FAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
