	.file	"extr_pmcpl_gprof.c_pmcpl_gmon_process.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ERROR:"
	.text
	.p2align 4
	.globl	pmcpl_gmon_process
	.type	pmcpl_gmon_process, @function
pmcpl_gmon_process:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	test	r8d, r8d
	cmove	rdi, QWORD PTR pmcstat_kernproc[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	rsi, QWORD PTR [rcx]
	call	pmcstat_process_find_map@PLT
	test	rax, rax
	je	.L20
	mov	rbp, rax
	xor	edi, edi
	mov	rax, QWORD PTR [r12]
	cmp	rax, QWORD PTR 0[rbp]
	jge	.L21
.L5:
	call	assert@PLT
	mov	r13, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR PMCSTAT_IMAGE_UNKNOWN[rip]
	mov	r14d, DWORD PTR [rbx]
	mov	rax, QWORD PTR 0[r13]
	cmp	rax, rdx
	je	.L22
.L6:
	xor	edi, edi
	cmp	rdx, rax
	setne	dil
	call	assert@PLT
	mov	rax, QWORD PTR PMCSTAT_IMAGE_INDETERMINABLE[rip]
	cmp	QWORD PTR 0[r13], rax
	je	.L23
	mov	esi, r14d
	mov	rdi, r13
	call	pmcstat_image_find_gmonfile@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR 24[rbx]
	test	rax, rax
	je	.L25
.L11:
	xor	edi, edi
	test	rax, rax
	setne	dil
	call	assert@PLT
	mov	rax, QWORD PTR [r12]
	sub	rax, QWORD PTR 0[rbp]
	xor	edi, edi
	cqo
	idiv	QWORD PTR FUNCTION_ALIGNMENT[rip]
	mov	rbp, rax
	movsx	rax, DWORD PTR [rbx]
	cmp	rax, rbp
	setg	dil
	call	assert@PLT
	mov	eax, DWORD PTR args[rip]
	test	DWORD PTR FLAG_DO_WIDE_GPROF_HC[rip], eax
	mov	rax, QWORD PTR 24[rbx]
	lea	rdx, 4[rax+rbp*8]
	mov	rax, QWORD PTR [rdx]
	je	.L12
	cmp	rax, QWORD PTR WIDEHISTCOUNTER_MAX[rip]
	jl	.L18
.L15:
	mov	DWORD PTR 8[rbx], 1
.L14:
	add	QWORD PTR 16[rbx], 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	xor	edi, edi
	cmp	rax, QWORD PTR 8[rbp]
	setl	dil
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	rax, QWORD PTR HISTCOUNTER_MAX[rip]
	jge	.L15
.L18:
	add	rax, 1
	mov	QWORD PTR [rdx], rax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L23:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	add	DWORD PTR pmcstat_stats[rip], 1
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	eax, DWORD PTR hc_sz[rip]
	test	eax, eax
	jne	.L9
	mov	DWORD PTR hc_sz[rip], 8
.L9:
	mov	esi, 48
	mov	edi, 1
	call	calloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L26
.L10:
	mov	QWORD PTR 24[rbx], 0
	mov	edi, DWORD PTR args[rip+4]
	mov	edx, r14d
	mov	rsi, r13
	call	pmcstat_gmon_create_name@PLT
	mov	DWORD PTR 40[rbx], r14d
	xor	edi, edi
	mov	DWORD PTR 44[rbx], eax
	mov	rax, QWORD PTR 16[r13]
	cmp	QWORD PTR 8[r13], rax
	setg	dil
	call	assert@PLT
	mov	rsi, QWORD PTR FUNCTION_ALIGNMENT[rip]
	mov	rdi, QWORD PTR 8[r13]
	sub	rdi, QWORD PTR 16[r13]
	call	howmany@PLT
	mov	QWORD PTR 16[rbx], 0
	mov	rsi, r13
	mov	rdi, rbx
	mov	DWORD PTR [rbx], eax
	imul	eax, DWORD PTR hc_sz[rip]
	mov	QWORD PTR 32[rbx], 0
	add	eax, 4
	mov	DWORD PTR 4[rbx], eax
	call	pmcstat_gmon_create_file@PLT
	mov	edx, DWORD PTR pgf_next[rip]
	lea	rdi, 24[r13]
	mov	rsi, rbx
	call	LIST_INSERT_HEAD@PLT
	mov	rax, QWORD PTR 24[rbx]
	test	rax, rax
	jne	.L11
.L25:
	mov	rdi, rbx
	call	pmcstat_gmon_map_file@PLT
	mov	rax, QWORD PTR 24[rbx]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	add	DWORD PTR pmcstat_stats[rip+4], 1
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	lea	rsi, args[rip]
	mov	rdi, r13
	call	pmcstat_image_determine_type@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	rdx, QWORD PTR PMCSTAT_IMAGE_UNKNOWN[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR EX_OSERR[rip]
	lea	rsi, .LC0[rip]
	call	err@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	pmcpl_gmon_process, .-pmcpl_gmon_process
	.comm	pmcstat_stats,8,8
	.comm	pmcstat_kernproc,8,8
	.comm	pgf_next,4,4
	.comm	hc_sz,4,4
	.comm	args,8,8
	.comm	WIDEHISTCOUNTER_MAX,8,8
	.comm	PMCSTAT_IMAGE_UNKNOWN,8,8
	.comm	PMCSTAT_IMAGE_INDETERMINABLE,8,8
	.comm	HISTCOUNTER_MAX,8,8
	.comm	FUNCTION_ALIGNMENT,8,8
	.comm	FLAG_DO_WIDE_GPROF_HC,4,4
	.comm	EX_OSERR,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_pmcpl_gprof.c_pmcpl_gmon_process.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERROR:\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.global	pmcpl_gmon_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmcpl_gmon_process, %function
pmcpl_gmon_process:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r3
	ldr	r2, [sp, #40]
	mov	r4, r1
	cmp	r2, #0
	ldreq	r3, .L30
	ldr	r1, [r7]
	ldreq	r0, [r3]
	bl	pmcstat_process_find_map
	subs	r5, r0, #0
	beq	.L24
	ldr	r0, [r7]
	ldr	r3, [r5]
	cmp	r0, r3
	movlt	r0, #0
	bge	.L25
.L5:
	bl	assert
	ldr	r8, .L30+4
	ldr	r6, [r5, #8]
	ldr	r0, [r8]
	ldr	r3, [r6]
	ldr	r9, [r4]
	cmp	r3, r0
	beq	.L26
.L6:
	subs	r0, r0, r3
	movne	r0, #1
	bl	assert
	ldr	r3, .L30+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L27
	mov	r1, r9
	mov	r0, r6
	bl	pmcstat_image_find_gmonfile
	subs	r4, r0, #0
	beq	.L18
	ldr	r8, .L30+12
	ldr	r9, .L30+16
.L8:
	ldr	r0, [r4, #16]
	cmp	r0, #0
	beq	.L28
.L11:
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r3, [r5]
	ldr	r0, [r7]
	ldr	r1, [r9]
	sub	r0, r0, r3
	bl	__aeabi_idiv
	mov	r5, r0
	ldr	r0, [r4]
	cmp	r0, r5
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	ldr	r3, .L30+20
	ldr	r2, [r8]
	ldr	r3, [r3]
	tst	r2, r3
	ldr	r3, [r4, #16]
	ldrne	r1, .L30+24
	ldreq	r1, .L30+28
	add	r3, r3, #4
	ldr	r2, [r3, r5, lsl #2]
	ldr	r1, [r1]
	cmp	r2, r1
	movge	r3, #1
	addlt	r2, r2, #1
	strlt	r2, [r3, r5, lsl #2]
	strge	r3, [r4, #8]
	ldr	r3, [r4, #12]
	add	r3, r3, #1
	str	r3, [r4, #12]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	ldr	r3, [r5, #4]
	cmp	r0, r3
	movge	r0, #0
	movlt	r0, #1
	b	.L5
.L27:
	ldr	r2, .L30+32
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	fp, .L30+36
	mov	r1, #32
	ldr	r3, [fp]
	mov	r0, #1
	cmp	r3, #0
	moveq	r3, #4
	streq	r3, [fp]
	bl	calloc
	subs	r4, r0, #0
	beq	.L29
.L10:
	mov	r10, #0
	ldr	r8, .L30+12
	mov	r1, r6
	mov	r2, r9
	ldr	r0, [r8, #4]
	str	r10, [r4, #16]
	bl	pmcstat_gmon_create_name
	ldmib	r6, {r2, r3}
	str	r9, [r4, #24]
	cmp	r2, r3
	ldr	r9, .L30+16
	str	r0, [r4, #28]
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	ldmib	r6, {r0, r3}
	ldr	r1, [r9]
	sub	r0, r0, r3
	bl	howmany
	ldr	r3, [fp]
	str	r0, [r4]
	mul	r0, r3, r0
	add	r0, r0, #4
	mov	r1, r6
	str	r0, [r4, #4]
	str	r10, [r4, #12]
	mov	r0, r4
	str	r10, [r4, #20]
	bl	pmcstat_gmon_create_file
	ldr	r3, .L30+40
	mov	r1, r4
	ldr	r2, [r3]
	add	r0, r6, #12
	bl	LIST_INSERT_HEAD
	b	.L8
.L24:
	ldr	r2, .L30+32
	ldr	r3, [r2, #4]
	add	r3, r3, #1
	str	r3, [r2, #4]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	mov	r0, r6
	ldr	r1, .L30+12
	bl	pmcstat_image_determine_type
	ldr	r0, [r8]
	ldr	r3, [r6]
	b	.L6
.L28:
	mov	r0, r4
	bl	pmcstat_gmon_map_file
	ldr	r0, [r4, #16]
	b	.L11
.L29:
	ldr	r3, .L30+44
	ldr	r1, .L30+48
	ldr	r0, [r3]
	bl	err
	b	.L10
.L31:
	.align	2
.L30:
	.word	pmcstat_kernproc
	.word	PMCSTAT_IMAGE_UNKNOWN
	.word	PMCSTAT_IMAGE_INDETERMINABLE
	.word	args
	.word	FUNCTION_ALIGNMENT
	.word	FLAG_DO_WIDE_GPROF_HC
	.word	WIDEHISTCOUNTER_MAX
	.word	HISTCOUNTER_MAX
	.word	pmcstat_stats
	.word	hc_sz
	.word	pgf_next
	.word	EX_OSERR
	.word	.LC0
	.size	pmcpl_gmon_process, .-pmcpl_gmon_process
	.comm	pmcstat_stats,8,4
	.comm	pmcstat_kernproc,4,4
	.comm	pgf_next,4,4
	.comm	hc_sz,4,4
	.comm	args,8,4
	.comm	WIDEHISTCOUNTER_MAX,4,4
	.comm	PMCSTAT_IMAGE_UNKNOWN,4,4
	.comm	PMCSTAT_IMAGE_INDETERMINABLE,4,4
	.comm	HISTCOUNTER_MAX,4,4
	.comm	FUNCTION_ALIGNMENT,4,4
	.comm	FLAG_DO_WIDE_GPROF_HC,4,4
	.comm	EX_OSERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
