	.file	"extr_prof.c_prof_dump_prep.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	prof_dump_prep, @function
prof_dump_prep:
.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, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	rbx, bt2gctx[rip]
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 8[rsp], rsi
	lea	r14, 48[rsp]
	lea	r13, 40[rsp]
	mov	QWORD PTR 16[rsp], rdx
	mov	QWORD PTR 24[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	prof_enter@PLT
	mov	rdi, r12
	call	gctx_tree_new@PLT
	mov	QWORD PTR 40[rsp], 0
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r15, QWORD PTR 48[rsp]
	mov	rdi, rbp
	call	tsd_tsdn@PLT
	mov	rdx, r12
	mov	rdi, rax
	mov	rsi, r15
	call	prof_dump_gctx_prep@PLT
.L2:
	xor	edx, edx
	mov	rcx, r14
	mov	rsi, r13
	mov	rdi, rbx
	call	ckh_iter@PLT
	test	eax, eax
	je	.L3
	mov	rdi, rbp
	call	tsd_tsdn@PLT
	mov	rbx, QWORD PTR 16[rsp]
	mov	edx, 4
	xor	esi, esi
	mov	QWORD PTR 8[rbx], rax
	mov	rdi, rbx
	call	memset@PLT
	mov	rdi, rbp
	call	tsd_tsdn@PLT
	lea	rsi, tdatas_mtx[rip]
	mov	rdi, rax
	call	malloc_mutex_lock@PLT
	mov	edx, DWORD PTR prof_tdata_merge_iter[rip]
	mov	rcx, rbx
	xor	esi, esi
	lea	rdi, tdatas[rip]
	call	tdata_tree_iter@PLT
	mov	rdi, rbp
	call	tsd_tsdn@PLT
	lea	rsi, tdatas_mtx[rip]
	mov	rdi, rax
	call	malloc_mutex_unlock@PLT
	mov	rdi, rbp
	call	tsd_tsdn@PLT
	mov	rcx, QWORD PTR 24[rsp]
	xor	esi, esi
	mov	rdi, r12
	mov	edx, DWORD PTR prof_gctx_merge_iter[rip]
	mov	QWORD PTR 8[rcx], rax
	mov	QWORD PTR [rcx], 0
	call	gctx_tree_iter@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	call	prof_leave@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 72
	.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
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	prof_dump_prep, .-prof_dump_prep
	.comm	tdatas_mtx,4,4
	.comm	tdatas,4,4
	.comm	prof_tdata_merge_iter,4,4
	.comm	prof_gctx_merge_iter,4,4
	.comm	bt2gctx,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.c_prof_dump_prep.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prof_dump_prep, %function
prof_dump_prep:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #20
	ldr	r5, [sp, #48]
	mov	r8, r3
	ldr	r3, .L8
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r9, r1
	mov	r4, r0
	bl	prof_enter
	mov	r0, r5
	bl	gctx_tree_new
	mov	r3, #0
	ldr	r6, .L8+4
	str	r3, [sp, #4]
	b	.L2
.L3:
	bl	tsd_tsdn
	mov	r2, r5
	ldr	r1, [sp, #8]
	bl	prof_dump_gctx_prep
.L2:
	mov	r2, #0
	mov	r0, r6
	add	r3, sp, #8
	add	r1, sp, #4
	bl	ckh_iter
	cmp	r0, #0
	mov	r0, r4
	beq	.L3
	bl	tsd_tsdn
	mov	r6, #0
	str	r0, [r7, #4]
	strb	r6, [r7]
	mov	r0, r4
	strb	r6, [r7, #1]
	strb	r6, [r7, #2]
	strb	r6, [r7, #3]
	bl	tsd_tsdn
	ldr	r1, .L8+8
	bl	malloc_mutex_lock
	ldr	r2, .L8+12
	mov	r3, r7
	ldr	r2, [r2]
	mov	r1, r6
	ldr	r0, .L8+16
	bl	tdata_tree_iter
	mov	r0, r4
	bl	tsd_tsdn
	ldr	r1, .L8+8
	bl	malloc_mutex_unlock
	mov	r0, r4
	bl	tsd_tsdn
	ldr	r2, .L8+20
	mov	r3, r8
	ldr	r2, [r2]
	mov	r1, r6
	str	r0, [r8, #4]
	str	r6, [r8]
	mov	r0, r5
	bl	gctx_tree_iter
	mov	r1, r9
	mov	r0, r4
	bl	prof_leave
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	bt2gctx
	.word	tdatas_mtx
	.word	prof_tdata_merge_iter
	.word	tdatas
	.word	prof_gctx_merge_iter
	.size	prof_dump_prep, .-prof_dump_prep
	.comm	tdatas_mtx,4,4
	.comm	tdatas,4,4
	.comm	prof_tdata_merge_iter,4,4
	.comm	prof_gctx_merge_iter,4,4
	.comm	bt2gctx,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
