	.file	"extr_obs-data.c_set_json_array.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_json_array, @function
set_json_array:
.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
	mov	r14, rsi
	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
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdi
	call	json_array@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	obs_data_item_get_array@PLT
	mov	rdi, rax
	mov	r13, rax
	call	obs_data_array_count@PLT
	test	rax, rax
	je	.L2
	mov	rbx, rax
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, r15
	mov	rdi, r13
	add	r15, 1
	call	obs_data_array_item@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	obs_data_to_json@PLT
	mov	rdi, r12
	mov	rsi, rax
	call	json_array_append_new@PLT
	mov	rdi, rbp
	call	obs_data_release@PLT
	cmp	rbx, r15
	jne	.L3
.L2:
	mov	rdi, QWORD PTR 8[rsp]
	mov	rdx, r12
	mov	rsi, r14
	call	json_object_set_new@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rdi, r13
	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	obs_data_array_release@PLT
	.cfi_endproc
.LFE0:
	.size	set_json_array, .-set_json_array
	.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_obs-data.c_set_json_array.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_json_array, %function
set_json_array:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r2
	mov	r10, r1
	mov	r9, r0
	bl	json_array
	mov	r7, r0
	mov	r0, r4
	bl	obs_data_item_get_array
	mov	r6, r0
	bl	obs_data_array_count
	subs	r8, r0, #0
	beq	.L2
	mov	r4, #0
.L3:
	mov	r1, r4
	mov	r0, r6
	bl	obs_data_array_item
	mov	r5, r0
	bl	obs_data_to_json
	mov	r1, r0
	mov	r0, r7
	bl	json_array_append_new
	add	r4, r4, #1
	mov	r0, r5
	bl	obs_data_release
	cmp	r8, r4
	bne	.L3
.L2:
	mov	r2, r7
	mov	r1, r10
	mov	r0, r9
	bl	json_object_set_new
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	obs_data_array_release
	.size	set_json_array, .-set_json_array
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
