	.file	"extr_prof_data.c_prof_dump_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	prof_dump_write, @function
prof_dump_write:
.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
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	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
	mov	edi, DWORD PTR config_prof[rip]
	call	cassert@PLT
	mov	rdi, r12
	call	strlen@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L9
	mov	rdx, QWORD PTR prof_dump_buf_end[rip]
	mov	rax, QWORD PTR PROF_DUMP_BUFSIZE[rip]
	xor	r14d, r14d
	cmp	rax, rdx
	je	.L18
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbx, rbp
	sub	rbx, r14
	lea	rcx, [rbx+rdx]
	cmp	rcx, rax
	ja	.L6
	mov	rax, QWORD PTR prof_dump_buf[rip]
	lea	rsi, [r12+r14]
	mov	r15, rbp
	lea	rdi, [rax+rdx*4]
	mov	rdx, rbx
	call	memcpy@PLT
	add	QWORD PTR prof_dump_buf_end[rip], rbx
.L2:
	xor	edi, edi
	cmp	rbp, r15
	sete	dil
	call	assert@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	sub	rax, rdx
	lea	rsi, [r12+r14]
	mov	rbx, rax
	lea	r15, [rax+r14]
	mov	rax, QWORD PTR prof_dump_buf[rip]
	lea	rdi, [rax+rdx*4]
	mov	rdx, rbx
	call	memcpy@PLT
	mov	rdx, QWORD PTR prof_dump_buf_end[rip]
	add	rdx, rbx
	mov	QWORD PTR prof_dump_buf_end[rip], rdx
	cmp	rbp, r15
	jbe	.L2
	mov	rax, QWORD PTR PROF_DUMP_BUFSIZE[rip]
	mov	r14, r15
	cmp	rax, rdx
	jne	.L3
.L18:
	mov	edi, r13d
	call	prof_dump_flush@PLT
	test	r13d, r13d
	je	.L12
	test	rax, rax
	jne	.L10
.L12:
	mov	rdx, QWORD PTR prof_dump_buf_end[rip]
	mov	rax, QWORD PTR PROF_DUMP_BUFSIZE[rip]
	jmp	.L3
.L10:
	mov	eax, 1
	jmp	.L1
.L9:
	xor	r15d, r15d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	prof_dump_write, .-prof_dump_write
	.comm	prof_dump_buf_end,8,8
	.comm	prof_dump_buf,8,8
	.comm	config_prof,4,4
	.comm	PROF_DUMP_BUFSIZE,8,8
	.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_data.c_prof_dump_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prof_dump_write, %function
prof_dump_write:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r1
	mov	fp, r0
	ldr	r3, .L14
	sub	sp, sp, #12
	ldr	r0, [r3]
	str	fp, [sp, #4]
	bl	cassert
	mov	r0, r8
	bl	strlen
	subs	r7, r0, #0
	beq	.L8
	mov	r4, #0
	ldr	fp, .L14+4
	ldr	r10, .L14+8
	ldr	r0, [fp]
.L7:
	ldr	r3, .L14+12
	sub	r9, r7, r4
	ldr	ip, [r3]
	cmp	ip, r0
	beq	.L13
.L3:
	add	lr, r9, r0
	sub	r5, ip, r0
	cmp	lr, ip
	add	r1, r8, r4
	add	r6, r5, r4
	bhi	.L5
	mov	r6, r7
	ldr	ip, .L14+8
	mov	r2, r9
	ldr	ip, [ip]
	add	r0, ip, r0, lsl #2
	bl	memcpy
	ldr	r1, [fp]
	add	r2, r1, r9
	str	r2, [fp]
.L2:
	sub	r0, r7, r6
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	ip, [r10]
	mov	r2, r5
	add	r0, ip, r0, lsl #2
	bl	memcpy
	ldr	r0, [fp]
	cmp	r7, r6
	add	r0, r5, r0
	str	r0, [fp]
	bls	.L2
	mov	r4, r6
	b	.L7
.L13:
	ldr	r5, [sp, #4]
	mov	r0, r5
	bl	prof_dump_flush
	cmp	r5, #0
	cmpne	r0, #0
	ldreq	r3, .L14+12
	ldreq	r0, [fp]
	ldreq	ip, [r3]
	beq	.L3
.L9:
	mov	r0, #1
	b	.L1
.L8:
	mov	r6, r7
	b	.L2
.L15:
	.align	2
.L14:
	.word	config_prof
	.word	prof_dump_buf_end
	.word	prof_dump_buf
	.word	PROF_DUMP_BUFSIZE
	.size	prof_dump_write, .-prof_dump_write
	.comm	prof_dump_buf_end,4,4
	.comm	prof_dump_buf,4,4
	.comm	config_prof,4,4
	.comm	PROF_DUMP_BUFSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
