	.file	"extr_prof_log.c_prof_log_emit_threads.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"threads"
.LC1:
	.string	"thr_uid"
.LC2:
	.string	"thr_name"
	.text
	.p2align 4
	.type	prof_log_emit_threads, @function
prof_log_emit_threads:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rdi, rbp
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	emitter_json_array_kv_begin@PLT
	mov	rbx, QWORD PTR log_thr_first[rip]
	test	rbx, rbx
	je	.L2
	mov	r14, rsp
	lea	r13, .LC1[rip]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	mov	r15, rbx
	call	emitter_json_object_begin@PLT
	mov	rcx, rbx
	mov	rsi, r13
	mov	rdi, rbp
	mov	edx, DWORD PTR emitter_type_uint64[rip]
	call	emitter_json_kv@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rcx, r14
	mov	rdi, rbp
	mov	edx, DWORD PTR emitter_type_string[rip]
	lea	rsi, .LC2[rip]
	mov	QWORD PTR [rsp], rax
	call	emitter_json_kv@PLT
	mov	rdi, rbp
	call	emitter_json_object_end@PLT
	mov	rdi, r12
	mov	rbx, QWORD PTR 16[rbx]
	call	tsd_tsdn@PLT
	xor	ecx, ecx
	xor	edx, edx
	mov	r9d, 1
	mov	edi, eax
	mov	r8d, 1
	mov	rsi, r15
	call	idalloctm@PLT
	test	rbx, rbx
	jne	.L3
.L2:
	mov	rdi, rbp
	call	emitter_json_array_end@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	prof_log_emit_threads, .-prof_log_emit_threads
	.comm	log_thr_first,8,8
	.comm	emitter_type_uint64,4,4
	.comm	emitter_type_string,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_prof_log.c_prof_log_emit_threads.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"threads\000"
	.align	2
.LC1:
	.ascii	"thr_uid\000"
	.align	2
.LC2:
	.ascii	"thr_name\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prof_log_emit_threads, %function
prof_log_emit_threads:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	ldr	r3, .L12
	sub	sp, sp, #20
	mov	r7, r0
	ldr	r1, .L12+4
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	emitter_json_array_kv_begin
	ldr	r3, .L12+8
	ldr	r4, [r3]
	cmp	r4, #0
	beq	.L2
	mov	r6, #1
	ldr	fp, .L12+12
	ldr	r9, .L12+16
	ldr	r8, .L12+20
.L3:
	mov	r0, r5
	bl	emitter_json_object_begin
	mov	r3, r4
	mov	r1, r9
	ldr	r2, [fp]
	mov	r0, r5
	bl	emitter_json_kv
	ldr	r2, .L12+24
	ldr	ip, [r4, #4]
	mov	r1, r8
	ldr	r2, [r2]
	add	r3, sp, #8
	mov	r0, r5
	str	ip, [sp, #8]
	bl	emitter_json_kv
	mov	r0, r5
	bl	emitter_json_object_end
	mov	r0, r7
	mov	r10, r4
	ldr	r4, [r4, #8]
	bl	tsd_tsdn
	mov	r3, #0
	mov	r1, r10
	mov	r2, r3
	str	r6, [sp, #4]
	str	r6, [sp]
	bl	idalloctm
	cmp	r4, #0
	bne	.L3
.L2:
	mov	r0, r5
	bl	emitter_json_array_end
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC0
	.word	log_thr_first
	.word	emitter_type_uint64
	.word	.LC1
	.word	.LC2
	.word	emitter_type_string
	.size	prof_log_emit_threads, .-prof_log_emit_threads
	.comm	log_thr_first,4,4
	.comm	emitter_type_uint64,4,4
	.comm	emitter_type_string,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
