	.file	"57831.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\t[+] allocating %d bytes of memory on the heap for char_ptr\n"
	.align 8
.LC1:
	.string	"Error: could not allocate heap memory"
.LC2:
	.string	"char_ptr (%p) ==> '%s'\n"
	.align 8
.LC3:
	.string	"\t[+] allocating 12 bytes of memory on the heap for int_ptr"
	.align 8
.LC4:
	.string	"Error could not allocate heap memory.\n"
.LC5:
	.string	"int_ptr (%p) ==> %d\n"
	.align 8
.LC6:
	.string	"\t[-] freeing char_ptr's heap memory..."
	.align 8
.LC7:
	.string	"\t[+] allocating anothe 15 bytes for char_ptr"
	.align 8
.LC8:
	.string	"Error: could not allocate heap memory.\n"
.LC9:
	.string	"char_ptr (%p) ==> '%s' \n"
	.align 8
.LC10:
	.string	"\t[-] freeing int_ptr's heap memory..."
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 1
	jg	.L2
	mov	DWORD PTR -20[rbp], 50
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
.L3:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -16[rbp]
	movabs	rsi, 7882826708924590164
	movabs	rdi, 7791354250704548463
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	movabs	rsi, 8007510524371755887
	movabs	rdi, 7307126015324856430
	mov	QWORD PTR 16[rax], rsi
	mov	QWORD PTR 24[rax], rdi
	mov	DWORD PTR 32[rax], 3043425
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 12
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 31337
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 15
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -16[rbp]
	movabs	rcx, 8029185230041998702
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 31090
	mov	BYTE PTR 10[rax], 0
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"57831.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\011[+] allocating %d bytes of memory on the heap f"
	.ascii	"or char_ptr\012\000"
	.align	2
.LC1:
	.ascii	"Error: could not allocate heap memory\000"
	.align	2
.LC2:
	.ascii	"This memory is located on the heap.\000"
	.align	2
.LC3:
	.ascii	"char_ptr (%p) ==> '%s'\012\000"
	.align	2
.LC4:
	.ascii	"\011[+] allocating 12 bytes of memory on the heap f"
	.ascii	"or int_ptr\000"
	.align	2
.LC5:
	.ascii	"Error could not allocate heap memory.\012\000"
	.align	2
.LC6:
	.ascii	"int_ptr (%p) ==> %d\012\000"
	.align	2
.LC7:
	.ascii	"\011[-] freeing char_ptr's heap memory...\000"
	.align	2
.LC8:
	.ascii	"\011[+] allocating anothe 15 bytes for char_ptr\000"
	.align	2
.LC9:
	.ascii	"Error: could not allocate heap memory.\012\000"
	.align	2
.LC10:
	.ascii	"new memory\000"
	.align	2
.LC11:
	.ascii	"char_ptr (%p) ==> '%s' \012\000"
	.align	2
.LC12:
	.ascii	"\011[-] freeing int_ptr's heap memory...\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #1
	bgt	.L2
	mov	r3, #50
	str	r3, [fp, #-16]
	b	.L3
.L2:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
.L3:
	ldr	r1, [fp, #-16]
	ldr	r0, .L8
	bl	printf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L8+4
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L8+8
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L4:
	ldr	r3, [fp, #-12]
	ldr	r2, .L8+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #36
	mov	r2, r3
	bl	memcpy
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L8+16
	bl	printf
	ldr	r0, .L8+20
	bl	puts
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L8+4
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L8+24
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L5:
	ldr	r3, [fp, #-8]
	ldr	r2, .L8+28
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+32
	bl	printf
	ldr	r0, .L8+36
	bl	puts
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r0, .L8+40
	bl	puts
	mov	r0, #15
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L8+4
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L8+44
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L6:
	ldr	r3, [fp, #-12]
	ldr	r2, .L8+48
	mov	r0, r3
	mov	r1, r2
	mov	r3, #11
	mov	r2, r3
	bl	memcpy
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L8+52
	bl	printf
	ldr	r0, .L8+56
	bl	puts
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r0, .L8+36
	bl	puts
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	31337
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
