	.file	"813992.c"
	.intel_syntax noprefix
	.text
	.local	g_malloc
	.comm	g_malloc,8,8
	.local	g_free
	.comm	g_free,8,8
	.data
	.align 4
	.type	g_heapprof_frames, @object
	.size	g_heapprof_frames, 4
g_heapprof_frames:
	.long	16
	.local	g_backtrace_mutex
	.comm	g_backtrace_mutex,40,32
	.local	g_mutex_attr
	.comm	g_mutex_attr,4,4
	.local	g_mutex_init
	.comm	g_mutex_init,4,4
	.local	g_pre_init_begin
	.comm	g_pre_init_begin,8,8
	.local	g_pre_init_end
	.comm	g_pre_init_end,8,8
	.section	.rodata
.LC0:
	.string	"malloc"
.LC1:
	.string	"free"
.LC2:
	.string	"HEAPPROF_FRAMES"
	.align 8
.LC3:
	.string	"*** heapprof: initialized (remove heapprof.so from $LD_PRELOAD to disable) ***"
	.text
	.type	init, @function
init:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, DWORD PTR once.1[rip]
	test	eax, eax
	je	.L4
	mov	DWORD PTR once.1[rip], 0
	lea	rsi, .LC0[rip]
	mov	rdi, -1
	call	dlsym@PLT
	mov	QWORD PTR g_malloc[rip], rax
	lea	rsi, .LC1[rip]
	mov	rdi, -1
	call	dlsym@PLT
	mov	QWORD PTR g_free[rip], rax
	lea	rdi, .LC2[rip]
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR g_heapprof_frames[rip], eax
.L3:
	lea	rdi, g_mutex_attr[rip]
	call	pthread_mutexattr_init@PLT
	mov	esi, 1
	lea	rdi, g_mutex_attr[rip]
	call	pthread_mutexattr_settype@PLT
	lea	rsi, g_mutex_attr[rip]
	lea	rdi, g_backtrace_mutex[rip]
	call	pthread_mutex_init@PLT
	mov	DWORD PTR g_mutex_init[rip], 1
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.type	pre_init_malloc, @function
pre_init_malloc:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR g_pre_init_begin[rip]
	test	rax, rax
	jne	.L6
	mov	edi, 0
	call	sbrk@PLT
	mov	QWORD PTR g_pre_init_begin[rip], rax
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sbrk@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR g_pre_init_end[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pre_init_malloc, .-pre_init_malloc
	.globl	malloc
	.type	malloc, @function
malloc:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	call	init
	mov	eax, DWORD PTR g_mutex_init[rip]
	test	eax, eax
	je	.L9
	lea	rdi, g_backtrace_mutex[rip]
	call	pthread_mutex_lock@PLT
.L9:
	mov	rax, QWORD PTR g_malloc[rip]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR g_malloc[rip]
	mov	edx, DWORD PTR g_heapprof_frames[rip]
	add	edx, 3
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, 7
	mov	rcx, rdx
	and	rcx, -8
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	rdi, rdx
	call	rax
	jmp	.L11
.L10:
	mov	eax, DWORD PTR g_heapprof_frames[rip]
	add	eax, 3
	cdqe
	sal	rax, 3
	add	rax, 7
	and	rax, -8
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	pre_init_malloc
.L11:
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR inside_malloc.0[rip]
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR g_mutex_init[rip]
	test	eax, eax
	jne	.L13
.L12:
	mov	eax, DWORD PTR g_mutex_init[rip]
	test	eax, eax
	je	.L14
	lea	rdi, g_backtrace_mutex[rip]
	call	pthread_mutex_unlock@PLT
.L14:
	mov	eax, DWORD PTR g_heapprof_frames[rip]
	add	eax, 3
	cdqe
	sal	rax, 3
	add	rax, 7
	and	rax, -8
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	jmp	.L15
.L13:
	mov	DWORD PTR inside_malloc.0[rip], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 1348560200
	mov	eax, DWORD PTR g_heapprof_frames[rip]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	esi, edx
	mov	rdi, rax
	call	backtrace@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR g_heapprof_frames[rip]
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 1181708880
	mov	DWORD PTR inside_malloc.0[rip], 0
	mov	eax, DWORD PTR g_mutex_init[rip]
	test	eax, eax
	je	.L16
	lea	rdi, g_backtrace_mutex[rip]
	call	pthread_mutex_unlock@PLT
.L16:
	mov	eax, DWORD PTR g_heapprof_frames[rip]
	add	eax, 3
	cdqe
	sal	rax, 3
	add	rax, 7
	and	rax, -8
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	malloc, .-malloc
	.globl	free
	.type	free, @function
free:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	je	.L22
	call	init
	mov	eax, DWORD PTR g_heapprof_frames[rip]
	add	eax, 3
	cdqe
	sal	rax, 3
	add	rax, 7
	and	rax, -8
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, DWORD PTR g_heapprof_frames[rip]
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR g_free[rip]
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR g_pre_init_begin[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L21
	mov	rax, QWORD PTR g_pre_init_end[rip]
	cmp	QWORD PTR -8[rbp], rax
	jbe	.L24
.L21:
	mov	rdx, QWORD PTR g_free[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rdx
	jmp	.L17
.L22:
	nop
	jmp	.L17
.L23:
	nop
	jmp	.L17
.L24:
	nop
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	free, .-free
	.globl	calloc
	.type	calloc, @function
calloc:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	malloc
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	calloc, .-calloc
	.globl	realloc
	.type	realloc, @function
realloc:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L28
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	malloc
	jmp	.L29
.L28:
	mov	eax, DWORD PTR g_heapprof_frames[rip]
	add	eax, 3
	cdqe
	sal	rax, 3
	add	rax, 7
	and	rax, -8
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	malloc
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	cmp	QWORD PTR -48[rbp], rax
	cmovbe	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free
	mov	rax, QWORD PTR -16[rbp]
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	realloc, .-realloc
	.data
	.align 4
	.type	once.1, @object
	.size	once.1, 4
once.1:
	.long	1
	.local	inside_malloc.0
	.comm	inside_malloc.0,4,4
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"813992.c"
	.text
	.local	g_malloc
	.comm	g_malloc,4,4
	.local	g_free
	.comm	g_free,4,4
	.data
	.align	2
	.type	g_heapprof_frames, %object
	.size	g_heapprof_frames, 4
g_heapprof_frames:
	.word	16
	.local	g_backtrace_mutex
	.comm	g_backtrace_mutex,24,4
	.local	g_mutex_attr
	.comm	g_mutex_attr,4,4
	.local	g_mutex_init
	.comm	g_mutex_init,4,4
	.local	g_pre_init_begin
	.comm	g_pre_init_begin,4,4
	.local	g_pre_init_end
	.comm	g_pre_init_end,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"malloc\000"
	.align	2
.LC1:
	.ascii	"free\000"
	.align	2
.LC2:
	.ascii	"HEAPPROF_FRAMES\000"
	.align	2
.LC3:
	.ascii	"*** heapprof: initialized (remove heapprof.so from "
	.ascii	"$LD_PRELOAD to disable) ***\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L5
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L5
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L5+4
	mvn	r0, #0
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L5+8
	str	r2, [r3]
	ldr	r1, .L5+12
	mvn	r0, #0
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L5+16
	str	r2, [r3]
	ldr	r0, .L5+20
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L3
	ldr	r0, [fp, #-8]
	bl	atoi
	mov	r3, r0
	ldr	r2, .L5+24
	str	r3, [r2]
.L3:
	ldr	r0, .L5+28
	bl	pthread_mutexattr_init
	mov	r1, #1
	ldr	r0, .L5+28
	bl	pthread_mutexattr_settype
	ldr	r1, .L5+28
	ldr	r0, .L5+32
	bl	pthread_mutex_init
	ldr	r3, .L5+36
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L5+40
	bl	puts
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	once.6970
	.word	.LC0
	.word	g_malloc
	.word	.LC1
	.word	g_free
	.word	.LC2
	.word	g_heapprof_frames
	.word	g_mutex_attr
	.word	g_backtrace_mutex
	.word	g_mutex_init
	.word	.LC3
	.size	init, .-init
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pre_init_malloc, %function
pre_init_malloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	mov	r0, #0
	bl	sbrk
	mov	r3, r0
	ldr	r2, .L10
	str	r3, [r2]
.L8:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	sbrk
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L10+4
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	g_pre_init_begin
	.word	g_pre_init_end
	.size	pre_init_malloc, .-pre_init_malloc
	.align	2
	.global	malloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	malloc, %function
malloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	bl	init
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L21+4
	bl	pthread_mutex_lock
.L13:
	ldr	r3, .L21+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L21+8
	ldr	r3, [r3]
	ldr	r2, .L21+12
	ldr	r2, [r2]
	add	r2, r2, #3
	lsl	r2, r2, #2
	add	r2, r2, #7
	bic	r1, r2, #7
	ldr	r2, [fp, #-16]
	add	r2, r1, r2
	mov	r0, r2
	blx	r3
	mov	r3, r0
	b	.L15
.L14:
	ldr	r3, .L21+12
	ldr	r3, [r3]
	add	r3, r3, #3
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r2, r3, #7
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	bl	pre_init_malloc
	mov	r3, r0
.L15:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L21+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
.L16:
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L21+4
	bl	pthread_mutex_unlock
.L18:
	ldr	r3, .L21+12
	ldr	r3, [r3]
	add	r3, r3, #3
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	b	.L19
.L17:
	ldr	r3, .L21+16
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, .L21+20
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r3, #4
	ldr	r3, .L21+12
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	backtrace
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L21+12
	ldr	r3, [r3]
	add	r3, r3, #2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L21+24
	str	r2, [r3]
	ldr	r3, .L21+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	ldr	r0, .L21+4
	bl	pthread_mutex_unlock
.L20:
	ldr	r3, .L21+12
	ldr	r3, [r3]
	add	r3, r3, #3
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	g_mutex_init
	.word	g_backtrace_mutex
	.word	g_malloc
	.word	g_heapprof_frames
	.word	inside_malloc.6979
	.word	1348560200
	.word	1181708880
	.size	malloc, .-malloc
	.align	2
	.global	free
	.syntax unified
	.arm
	.fpu softvfp
	.type	free, %function
free:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L28
	bl	init
	ldr	r3, .L31
	ldr	r3, [r3]
	add	r3, r3, #3
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	rsb	r3, r3, #0
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L31
	ldr	r3, [r3]
	add	r3, r3, #2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L31+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L31+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L27
	ldr	r3, .L31+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bls	.L30
.L27:
	ldr	r3, .L31+4
	ldr	r3, [r3]
	ldr	r0, [fp, #-8]
	blx	r3
	b	.L23
.L28:
	nop
	b	.L23
.L29:
	nop
	b	.L23
.L30:
	nop
.L23:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	g_heapprof_frames
	.word	g_free
	.word	g_pre_init_begin
	.word	g_pre_init_end
	.size	free, .-free
	.align	2
	.global	calloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	calloc, %function
calloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	calloc, .-calloc
	.align	2
	.global	realloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	realloc, %function
realloc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L36
	ldr	r0, [fp, #-28]
	bl	malloc
	mov	r3, r0
	b	.L37
.L36:
	ldr	r3, .L38
	ldr	r3, [r3]
	add	r3, r3, #3
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	rsb	r3, r3, #0
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-28]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	movcc	r3, r2
	movcs	r3, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-12]
	bl	memcpy
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r3, [fp, #-12]
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	g_heapprof_frames
	.size	realloc, .-realloc
	.data
	.align	2
	.type	once.6970, %object
	.size	once.6970, 4
once.6970:
	.word	1
	.local	inside_malloc.6979
	.comm	inside_malloc.6979,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
