	.file	"extr_test_array.c_test_insert.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unable to create array"
.LC1:
	.string	"unable to create integer"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"able to insert value out of bounds"
	.align 8
.LC3:
	.string	"unable to insert value in an empty array"
	.align 8
.LC4:
	.string	"json_array_insert works incorrectly"
	.align 8
.LC5:
	.string	"array size is invalid after insertion"
	.align 8
.LC6:
	.string	"unable to insert value at the end of an array"
	.align 8
.LC7:
	.string	"unable to insert value in the middle of an array"
	.align 8
.LC8:
	.string	"json_array_insert_new works incorrectly"
	.align 8
.LC9:
	.string	"unable to insert value at the begining of an array"
	.align 8
.LC10:
	.string	"json_aray_insert works incorrectly"
	.align 8
.LC11:
	.string	"array size is invalid after loop insertion"
	.text
	.p2align 4
	.type	test_insert, @function
test_insert:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	call	json_array@PLT
	mov	edi, 5
	mov	rbp, rax
	call	json_integer@PLT
	mov	edi, 7
	mov	r13, rax
	call	json_integer@PLT
	mov	edi, 11
	mov	r12, rax
	call	json_integer@PLT
	mov	r14, rax
	test	rbp, rbp
	je	.L66
.L2:
	test	r13, r13
	sete	dl
	test	r12, r12
	sete	al
	or	dl, al
	jne	.L28
	test	r14, r14
	je	.L28
.L3:
	mov	rdx, r13
	mov	esi, 1
	mov	rdi, rbp
	call	json_array_insert@PLT
	test	rax, rax
	je	.L67
.L5:
	xor	esi, esi
	mov	rdx, r13
	mov	rdi, rbp
	call	json_array_insert@PLT
	test	rax, rax
	jne	.L68
.L6:
	xor	esi, esi
	mov	rdi, rbp
	call	json_array_get@PLT
	cmp	r13, rax
	je	.L7
	lea	rdi, .LC4[rip]
	call	fail@PLT
.L7:
	mov	rdi, rbp
	call	json_array_size@PLT
	cmp	eax, 1
	je	.L8
	lea	rdi, .LC5[rip]
	call	fail@PLT
.L8:
	mov	rdx, r12
	mov	esi, 1
	mov	rdi, rbp
	call	json_array_insert@PLT
	test	rax, rax
	jne	.L69
.L9:
	xor	esi, esi
	mov	rdi, rbp
	call	json_array_get@PLT
	cmp	r13, rax
	je	.L10
	lea	rdi, .LC4[rip]
	call	fail@PLT
.L10:
	mov	esi, 1
	mov	rdi, rbp
	call	json_array_get@PLT
	cmp	r12, rax
	je	.L11
	lea	rdi, .LC4[rip]
	call	fail@PLT
.L11:
	mov	rdi, rbp
	call	json_array_size@PLT
	cmp	eax, 2
	je	.L12
	lea	rdi, .LC5[rip]
	call	fail@PLT
.L12:
	mov	rdx, r14
	mov	esi, 1
	mov	rdi, rbp
	call	json_array_insert@PLT
	test	rax, rax
	jne	.L70
.L13:
	xor	esi, esi
	mov	rdi, rbp
	call	json_array_get@PLT
	cmp	r13, rax
	je	.L14
	lea	rdi, .LC4[rip]
	call	fail@PLT
.L14:
	mov	esi, 1
	mov	rdi, rbp
	call	json_array_get@PLT
	cmp	r14, rax
	je	.L15
	lea	rdi, .LC4[rip]
	call	fail@PLT
.L15:
	mov	esi, 2
	mov	rdi, rbp
	call	json_array_get@PLT
	cmp	r12, rax
	je	.L16
	lea	rdi, .LC4[rip]
	call	fail@PLT
.L16:
	mov	rdi, rbp
	call	json_array_size@PLT
	cmp	eax, 3
	je	.L17
	lea	rdi, .LC5[rip]
	call	fail@PLT
.L17:
	mov	edi, 123
	call	json_integer@PLT
	mov	esi, 2
	mov	rdi, rbp
	mov	rdx, rax
	call	json_array_insert_new@PLT
	test	rax, rax
	jne	.L71
.L18:
	mov	rdi, rbp
	mov	esi, 2
	call	json_array_get@PLT
	mov	rdi, rax
	mov	r15, rax
	call	json_is_integer@PLT
	test	eax, eax
	je	.L21
	mov	rdi, r15
	call	json_integer_value@PLT
	cmp	eax, 123
	je	.L20
.L21:
	lea	rdi, .LC8[rip]
	call	fail@PLT
.L20:
	mov	rdi, rbp
	call	json_array_size@PLT
	cmp	eax, 4
	je	.L22
	lea	rdi, .LC5[rip]
	call	fail@PLT
.L22:
	mov	ebx, 20
	lea	r15, .LC9[rip]
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	sub	ebx, 1
	je	.L72
.L24:
	xor	esi, esi
	mov	rdx, r12
	mov	rdi, rbp
	call	json_array_insert@PLT
	test	rax, rax
	je	.L23
	mov	rdi, r15
	call	fail@PLT
	sub	ebx, 1
	jne	.L24
.L72:
	xor	ebx, ebx
	lea	r15, .LC10[rip]
	.p2align 4,,10
	.p2align 3
.L26:
	mov	esi, ebx
	mov	rdi, rbp
	call	json_array_get@PLT
	cmp	r12, rax
	je	.L25
	mov	rdi, r15
	call	fail@PLT
.L25:
	add	ebx, 1
	cmp	ebx, 20
	jne	.L26
	mov	rdi, rbp
	call	json_array_size@PLT
	cmp	eax, 24
	je	.L27
	lea	rdi, .LC11[rip]
	call	fail@PLT
.L27:
	mov	rdi, r13
	call	json_decref@PLT
	mov	rdi, r12
	call	json_decref@PLT
	mov	rdi, r14
	call	json_decref@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	json_decref@PLT
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	fail@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L71:
	lea	rdi, .LC7[rip]
	call	fail@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L70:
	lea	rdi, .LC7[rip]
	call	fail@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L69:
	lea	rdi, .LC6[rip]
	call	fail@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L68:
	lea	rdi, .LC3[rip]
	call	fail@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L67:
	lea	rdi, .LC2[rip]
	call	fail@PLT
	jmp	.L5
.L66:
	lea	rdi, .LC0[rip]
	call	fail@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	test_insert, .-test_insert
	.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_test_array.c_test_insert.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unable to create array\000"
	.align	2
.LC1:
	.ascii	"unable to create integer\000"
	.align	2
.LC2:
	.ascii	"able to insert value out of bounds\000"
	.align	2
.LC3:
	.ascii	"unable to insert value in an empty array\000"
	.align	2
.LC4:
	.ascii	"json_array_insert works incorrectly\000"
	.align	2
.LC5:
	.ascii	"array size is invalid after insertion\000"
	.align	2
.LC6:
	.ascii	"unable to insert value at the end of an array\000"
	.align	2
.LC7:
	.ascii	"unable to insert value in the middle of an array\000"
	.align	2
.LC8:
	.ascii	"json_array_insert_new works incorrectly\000"
	.align	2
.LC9:
	.ascii	"unable to insert value at the begining of an array\000"
	.align	2
.LC10:
	.ascii	"json_aray_insert works incorrectly\000"
	.align	2
.LC11:
	.ascii	"array size is invalid after loop insertion\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_insert, %function
test_insert:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	bl	json_array
	mov	r5, r0
	mov	r0, #5
	bl	json_integer
	mov	r7, r0
	mov	r0, #7
	bl	json_integer
	mov	r6, r0
	mov	r0, #11
	bl	json_integer
	cmp	r5, #0
	mov	r8, r0
	beq	.L64
.L2:
	clz	r3, r6
	cmp	r7, #0
	lsr	r3, r3, #5
	moveq	r3, #1
	cmp	r8, #0
	moveq	r3, #1
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L71
	bl	fail
.L3:
	mov	r2, r7
	mov	r1, #1
	mov	r0, r5
	bl	json_array_insert
	cmp	r0, #0
	beq	.L65
.L4:
	mov	r2, r7
	mov	r1, #0
	mov	r0, r5
	bl	json_array_insert
	cmp	r0, #0
	bne	.L66
.L5:
	mov	r1, #0
	mov	r0, r5
	bl	json_array_get
	cmp	r7, r0
	beq	.L6
	ldr	r0, .L71+4
	bl	fail
.L6:
	mov	r0, r5
	bl	json_array_size
	cmp	r0, #1
	beq	.L7
	ldr	r0, .L71+8
	bl	fail
.L7:
	mov	r2, r6
	mov	r1, #1
	mov	r0, r5
	bl	json_array_insert
	cmp	r0, #0
	bne	.L67
.L8:
	mov	r1, #0
	mov	r0, r5
	bl	json_array_get
	cmp	r7, r0
	beq	.L9
	ldr	r0, .L71+4
	bl	fail
.L9:
	mov	r1, #1
	mov	r0, r5
	bl	json_array_get
	cmp	r6, r0
	beq	.L10
	ldr	r0, .L71+4
	bl	fail
.L10:
	mov	r0, r5
	bl	json_array_size
	cmp	r0, #2
	beq	.L11
	ldr	r0, .L71+8
	bl	fail
.L11:
	mov	r2, r8
	mov	r1, #1
	mov	r0, r5
	bl	json_array_insert
	cmp	r0, #0
	bne	.L68
.L12:
	mov	r1, #0
	mov	r0, r5
	bl	json_array_get
	cmp	r7, r0
	beq	.L13
	ldr	r0, .L71+4
	bl	fail
.L13:
	mov	r1, #1
	mov	r0, r5
	bl	json_array_get
	cmp	r8, r0
	beq	.L14
	ldr	r0, .L71+4
	bl	fail
.L14:
	mov	r1, #2
	mov	r0, r5
	bl	json_array_get
	cmp	r6, r0
	beq	.L15
	ldr	r0, .L71+4
	bl	fail
.L15:
	mov	r0, r5
	bl	json_array_size
	cmp	r0, #3
	beq	.L16
	ldr	r0, .L71+8
	bl	fail
.L16:
	mov	r0, #123
	bl	json_integer
	mov	r1, #2
	mov	r2, r0
	mov	r0, r5
	bl	json_array_insert_new
	cmp	r0, #0
	bne	.L69
.L17:
	mov	r1, #2
	mov	r0, r5
	bl	json_array_get
	mov	r4, r0
	bl	json_is_integer
	cmp	r0, #0
	beq	.L20
	mov	r0, r4
	bl	json_integer_value
	cmp	r0, #123
	beq	.L19
.L20:
	ldr	r0, .L71+12
	bl	fail
.L19:
	mov	r0, r5
	bl	json_array_size
	cmp	r0, #4
	beq	.L21
	ldr	r0, .L71+8
	bl	fail
.L21:
	mov	r4, #20
	ldr	r9, .L71+16
	b	.L23
.L22:
	subs	r4, r4, #1
	beq	.L70
.L23:
	mov	r2, r6
	mov	r1, #0
	mov	r0, r5
	bl	json_array_insert
	cmp	r0, #0
	beq	.L22
	mov	r0, r9
	bl	fail
	subs	r4, r4, #1
	bne	.L23
.L70:
	ldr	r9, .L71+20
.L25:
	mov	r1, r4
	mov	r0, r5
	bl	json_array_get
	cmp	r6, r0
	add	r4, r4, #1
	beq	.L24
	mov	r0, r9
	bl	fail
.L24:
	cmp	r4, #20
	bne	.L25
	mov	r0, r5
	bl	json_array_size
	cmp	r0, #24
	beq	.L26
	ldr	r0, .L71+24
	bl	fail
.L26:
	mov	r0, r7
	bl	json_decref
	mov	r0, r6
	bl	json_decref
	mov	r0, r8
	bl	json_decref
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	json_decref
.L69:
	ldr	r0, .L71+28
	bl	fail
	b	.L17
.L68:
	ldr	r0, .L71+28
	bl	fail
	b	.L12
.L67:
	ldr	r0, .L71+32
	bl	fail
	b	.L8
.L66:
	ldr	r0, .L71+36
	bl	fail
	b	.L5
.L65:
	ldr	r0, .L71+40
	bl	fail
	b	.L4
.L64:
	ldr	r0, .L71+44
	bl	fail
	b	.L2
.L72:
	.align	2
.L71:
	.word	.LC1
	.word	.LC4
	.word	.LC5
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC7
	.word	.LC6
	.word	.LC3
	.word	.LC2
	.word	.LC0
	.size	test_insert, .-test_insert
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
