	.file	"345816.c"
	.intel_syntax noprefix
	.text
	.globl	str
	.bss
	.align 8
	.type	str, @object
	.size	str, 8
str:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Allocated memory is freed  "
	.text
	.globl	freeup1
	.type	freeup1, @function
freeup1:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR str[rip]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	freeup1, .-freeup1
	.section	.rodata
	.align 8
.LC1:
	.string	"The size of dynamic memory can be increased and decreased  "
	.text
	.globl	freeup2
	.type	freeup2, @function
freeup2:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	freeup2, .-freeup2
	.section	.rodata
	.align 8
.LC2:
	.string	"Registration of function freeup1() for atexit () function failed"
	.align 8
.LC3:
	.string	"Registration of function freeup2() for atexit () function failed"
	.align 8
.LC4:
	.string	"Some error occurred in allocating memory"
.LC5:
	.string	"Enter a string "
.LC6:
	.string	"%s"
.LC7:
	.string	"The string entered is %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	lea	rdi, freeup1[rip]
	call	atexit@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdi, freeup2[rip]
	call	atexit@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR str[rip], rax
	mov	rax, QWORD PTR str[rip]
	test	rax, rax
	jne	.L6
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR str[rip]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR str[rip]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"345816.c"
	.text
	.comm	str,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Allocated memory is freed  \000"
	.text
	.align	2
	.global	freeup1
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeup1, %function
freeup1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, .L2+4
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	str
	.word	.LC0
	.size	freeup1, .-freeup1
	.section	.rodata
	.align	2
.LC1:
	.ascii	"The size of dynamic memory can be increased and dec"
	.ascii	"reased  \000"
	.text
	.align	2
	.global	freeup2
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeup2, %function
freeup2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L5
	bl	puts
	nop
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC1
	.size	freeup2, .-freeup2
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Registration of function freeup1() for atexit () fu"
	.ascii	"nction failed\000"
	.align	2
.LC3:
	.ascii	"Registration of function freeup2() for atexit () fu"
	.ascii	"nction failed\000"
	.align	2
.LC4:
	.ascii	"Some error occurred in allocating memory\000"
	.align	2
.LC5:
	.ascii	"Enter a string \000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"The string entered is %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r0, .L12
	bl	atexit
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L12+4
	bl	puts
	mov	r0, #1
	bl	exit
.L8:
	ldr	r0, .L12+8
	bl	atexit
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L9
	ldr	r0, .L12+12
	bl	puts
	mov	r0, #1
	bl	exit
.L9:
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L12+16
	str	r2, [r3]
	ldr	r3, .L12+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L12+20
	bl	puts
	mov	r0, #1
	bl	exit
.L10:
	ldr	r0, .L12+24
	bl	printf
	ldr	r3, .L12+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+28
	bl	__isoc99_scanf
	ldr	r3, .L12+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	freeup1
	.word	.LC2
	.word	freeup2
	.word	.LC3
	.word	str
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
