	.file	"103265512.c"
	.intel_syntax noprefix
	.text
	.local	real_malloc
	.comm	real_malloc,8,8
	.local	real_calloc
	.comm	real_calloc,8,8
	.local	real_realloc
	.comm	real_realloc,8,8
	.local	real_free
	.comm	real_free,8,8
	.section	.rodata
.LC0:
	.string	"<no return ...>\n"
	.text
	.globl	abort_handler
	.type	abort_handler, @function
abort_handler:
.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	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	abort_handler, .-abort_handler
	.section	.rodata
.LC1:
	.string	"malloc"
.LC2:
	.string	"calloc"
.LC3:
	.string	"realloc"
.LC4:
	.string	"free"
.LC5:
	.string	"2"
.LC6:
	.string	"MALLOC_CHECK_"
.LC7:
	.string	"Error in `dlsym`: %s\n"
.LC8:
	.string	"Couldn't set signal handler\n"
	.text
	.type	mtrace_init, @function
mtrace_init:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC1[rip]
	mov	rdi, -1
	call	dlsym@PLT
	mov	QWORD PTR real_malloc[rip], rax
	lea	rsi, .LC2[rip]
	mov	rdi, -1
	call	dlsym@PLT
	mov	QWORD PTR real_calloc[rip], rax
	lea	rsi, .LC3[rip]
	mov	rdi, -1
	call	dlsym@PLT
	mov	QWORD PTR real_realloc[rip], rax
	lea	rsi, .LC4[rip]
	mov	rdi, -1
	call	dlsym@PLT
	mov	QWORD PTR real_free[rip], rax
	mov	edx, 1
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	setenv@PLT
	mov	rax, QWORD PTR real_malloc[rip]
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR real_free[rip]
	test	rax, rax
	jne	.L4
.L3:
	call	dlerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L4:
	lea	rsi, abort_handler[rip]
	mov	edi, 6
	call	signal@PLT
	cmp	rax, -1
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mtrace_init, .-mtrace_init
	.section	.rodata
.LC9:
	.string	"malloc(%lu) = "
.LC10:
	.string	"%p\n"
.LC11:
	.string	"<error>\n"
	.text
	.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
	mov	rax, QWORD PTR real_malloc[rip]
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR real_free[rip]
	test	rax, rax
	jne	.L9
.L8:
	call	mtrace_init
.L9:
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR real_malloc[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rdx
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L11
.L10:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
.L11:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	malloc, .-malloc
	.section	.rodata
.LC12:
	.string	"free(%p) = "
.LC13:
	.string	"<void>\n"
	.text
	.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR real_free[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rdx
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	free, .-free
	.section	.rodata
.LC14:
	.string	"realloc(%p, %lu) = %p\n"
	.text
	.globl	realloc
	.type	realloc, @function
realloc:
.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	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR real_realloc[rip]
	test	rax, rax
	jne	.L17
	mov	rdx, QWORD PTR real_malloc[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	rdx
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L18
	cmp	QWORD PTR -24[rbp], 0
	je	.L18
	mov	rdx, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	mov	rax, QWORD PTR real_free[rip]
	test	rax, rax
	jne	.L19
	call	mtrace_init
.L19:
	mov	rdx, QWORD PTR real_free[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rdx
	jmp	.L18
.L17:
	mov	rcx, QWORD PTR real_realloc[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	mov	QWORD PTR -8[rbp], rax
.L18:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	r8, rsi
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	realloc, .-realloc
	.section	.rodata
.LC15:
	.string	"calloc(%lu, %lu) = %p\n"
	.text
	.globl	calloc
	.type	calloc, @function
calloc:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR real_calloc[rip]
	test	rax, rax
	jne	.L22
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	malloc
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L23
	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
	jmp	.L23
.L22:
	mov	rcx, QWORD PTR real_calloc[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	mov	QWORD PTR -8[rbp], rax
.L23:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	r8, rsi
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	calloc, .-calloc
	.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	"103265512.c"
	.text
	.local	real_malloc
	.comm	real_malloc,4,4
	.local	real_calloc
	.comm	real_calloc,4,4
	.local	real_realloc
	.comm	real_realloc,4,4
	.local	real_free
	.comm	real_free,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"<no return ...>\012\000"
	.text
	.align	2
	.global	abort_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	abort_handler, %function
abort_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	abort_handler, .-abort_handler
	.section	.rodata
	.align	2
.LC1:
	.ascii	"malloc\000"
	.align	2
.LC2:
	.ascii	"calloc\000"
	.align	2
.LC3:
	.ascii	"realloc\000"
	.align	2
.LC4:
	.ascii	"free\000"
	.align	2
.LC5:
	.ascii	"2\000"
	.align	2
.LC6:
	.ascii	"MALLOC_CHECK_\000"
	.align	2
.LC7:
	.ascii	"Error in `dlsym`: %s\012\000"
	.align	2
.LC8:
	.ascii	"Couldn't set signal handler\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mtrace_init, %function
mtrace_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	ldr	r1, .L9
	mvn	r0, #0
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L9+4
	str	r2, [r3]
	ldr	r1, .L9+8
	mvn	r0, #0
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L9+12
	str	r2, [r3]
	ldr	r1, .L9+16
	mvn	r0, #0
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L9+20
	str	r2, [r3]
	ldr	r1, .L9+24
	mvn	r0, #0
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L9+28
	str	r2, [r3]
	mov	r2, #1
	ldr	r1, .L9+32
	ldr	r0, .L9+36
	bl	setenv
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L9+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
.L5:
	ldr	r3, .L9+40
	ldr	r4, [r3]
	bl	dlerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L9+44
	mov	r0, r4
	bl	fprintf
	bl	abort
.L6:
	ldr	r1, .L9+48
	mov	r0, #6
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r3, .L9+40
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L9+52
	bl	fwrite
	mov	r0, #1
	bl	exit
.L8:
	nop
	pop	{r4, r5, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	real_malloc
	.word	.LC2
	.word	real_calloc
	.word	.LC3
	.word	real_realloc
	.word	.LC4
	.word	real_free
	.word	.LC5
	.word	.LC6
	.word	stderr
	.word	.LC7
	.word	abort_handler
	.word	.LC8
	.size	mtrace_init, .-mtrace_init
	.section	.rodata
	.align	2
.LC9:
	.ascii	"malloc(%lu) = \000"
	.align	2
.LC10:
	.ascii	"%p\012\000"
	.align	2
.LC11:
	.ascii	"<error>\012\000"
	.text
	.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]
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
.L12:
	bl	mtrace_init
.L13:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L17+12
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r0, [fp, #-16]
	blx	r3
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L17+16
	mov	r0, r3
	bl	fprintf
	b	.L15
.L14:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L17+20
	bl	fwrite
.L15:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	real_malloc
	.word	real_free
	.word	stderr
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	malloc, .-malloc
	.section	.rodata
	.align	2
.LC12:
	.ascii	"free(%p) = \000"
	.align	2
.LC13:
	.ascii	"<void>\012\000"
	.text
	.align	2
	.global	free
	.syntax unified
	.arm
	.fpu softvfp
	.type	free, %function
free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L22+4
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L22+8
	ldr	r3, [r3]
	ldr	r0, [fp, #-8]
	blx	r3
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L22+12
	bl	fwrite
.L21:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	stderr
	.word	.LC12
	.word	real_free
	.word	.LC13
	.size	free, .-free
	.section	.rodata
	.align	2
.LC14:
	.ascii	"realloc(%p, %lu) = %p\012\000"
	.text
	.align	2
	.global	realloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	realloc, %function
realloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L29
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L29+4
	ldr	r3, [r3]
	ldr	r0, [fp, #-20]
	blx	r3
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L26
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	memmove
	ldr	r3, .L29+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L27
	bl	mtrace_init
.L27:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	ldr	r0, [fp, #-16]
	blx	r3
	b	.L26
.L25:
	ldr	r3, .L29
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	blx	r3
	str	r0, [fp, #-8]
.L26:
	ldr	r3, .L29+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, .L29+16
	bl	fprintf
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	real_realloc
	.word	real_malloc
	.word	real_free
	.word	stderr
	.word	.LC14
	.size	realloc, .-realloc
	.section	.rodata
	.align	2
.LC15:
	.ascii	"calloc(%lu, %lu) = %p\012\000"
	.text
	.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, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L35
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L32
	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, #-8]
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	b	.L33
.L32:
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	blx	r3
	str	r0, [fp, #-8]
.L33:
	ldr	r3, .L35+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, .L35+8
	bl	fprintf
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	real_calloc
	.word	stderr
	.word	.LC15
	.size	calloc, .-calloc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
