	.file	"extr_pmcpl_calltree.c_pmcpl_ct_instr_grow.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ERROR: out of memory"
	.text
	.p2align 4
	.type	pmcpl_ct_instr_grow, @function
pmcpl_ct_instr_grow:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12d, DWORD PTR [rsi]
	cmp	r12d, edi
	jle	.L6
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rbx, rsi
	add	edi, 1
	mov	esi, DWORD PTR PMCPL_CT_GROWSIZE[rip]
	mov	rbp, rdx
	sub	edi, r12d
	call	max@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	edx, 4
	add	r12d, eax
	mov	esi, r12d
	call	reallocarray@PLT
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	je	.L7
.L3:
	movsx	rdx, DWORD PTR [rbx]
	mov	esi, r12d
	sub	esi, edx
	lea	rdi, [rax+rdx*4]
	sal	esi, 2
	call	bzero@PLT
	mov	DWORD PTR [rbx], r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR EX_SOFTWARE[rip]
	lea	rsi, .LC0[rip]
	call	errx@PLT
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	pmcpl_ct_instr_grow, .-pmcpl_ct_instr_grow
	.comm	PMCPL_CT_GROWSIZE,4,4
	.comm	EX_SOFTWARE,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_calltree.c_pmcpl_ct_instr_grow.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERROR: out of memory\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmcpl_ct_instr_grow, %function
pmcpl_ct_instr_grow:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r1]
	cmp	r5, r0
	popgt	{r4, r5, r6, pc}
	ldr	r3, .L7
	add	r0, r0, #1
	sub	r0, r0, r5
	mov	r4, r1
	ldr	r1, [r3]
	mov	r6, r2
	bl	max
	add	r5, r5, r0
	mov	r1, r5
	mov	r2, #4
	ldr	r0, [r6]
	bl	reallocarray
	cmp	r0, #0
	str	r0, [r6]
	beq	.L6
.L3:
	ldr	r3, [r4]
	sub	r1, r5, r3
	add	r0, r0, r3, lsl #2
	lsl	r1, r1, #2
	bl	bzero
	str	r5, [r4]
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L7+4
	ldr	r1, .L7+8
	ldr	r0, [r3]
	bl	errx
	ldr	r0, [r6]
	b	.L3
.L8:
	.align	2
.L7:
	.word	PMCPL_CT_GROWSIZE
	.word	EX_SOFTWARE
	.word	.LC0
	.size	pmcpl_ct_instr_grow, .-pmcpl_ct_instr_grow
	.comm	PMCPL_CT_GROWSIZE,4,4
	.comm	EX_SOFTWARE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
