	.file	"781462.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"input: %u\n"
	.text
	.globl	fn1
	.type	fn1, @function
fn1:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fn2
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 400
	call	malloc@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fn1, .-fn1
	.globl	fn2
	.type	fn2, @function
fn2:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fn2, .-fn2
	.section	.rodata
.LC1:
	.string	"%u\n"
.LC2:
	.string	"Final print"
.LC3:
	.string	"Final print -end"
	.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
	push	rbx
	sub	rsp, 200
	.cfi_offset 3, -24
	mov	edi, 400
	call	malloc@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	edi, 400
	call	malloc@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -144[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -168[rbp]
	mov	DWORD PTR [rax], 3
	mov	rax, QWORD PTR -160[rbp]
	mov	DWORD PTR [rax], 9
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -192[rbp], rax
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -192[rbp]
	mov	DWORD PTR [rax], 5
	mov	rax, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -192[rbp], 4
.L6:
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 400
	cmp	QWORD PTR -192[rbp], rax
	jb	.L7
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -184[rbp], 0
.L11:
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	edi, 400
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -176[rbp], rax
	jmp	.L8
.L10:
	cmp	QWORD PTR -184[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -184[rbp], rax
.L9:
	add	QWORD PTR -176[rbp], 4
.L8:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 400
	cmp	QWORD PTR -176[rbp], rax
	jb	.L10
	cmp	QWORD PTR -96[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	jne	.L12
	add	QWORD PTR -152[rbp], 396
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR [rax], 10
.L12:
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -152[rbp], rax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -192[rbp], rax
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -192[rbp], 4
.L13:
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 400
	cmp	QWORD PTR -192[rbp], rax
	jb	.L14
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 400
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 5
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -200[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	fn1
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fn1
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 4
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	ebx, DWORD PTR [rax]
	mov	rax, QWORD PTR -152[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -152[rbp], rdx
	mov	rdi, rax
	call	fn1
	mov	eax, DWORD PTR [rax]
	lea	edx, [rbx+rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -196[rbp], eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	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	"781462.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"input: %u\012\000"
	.text
	.align	2
	.global	fn1
	.syntax unified
	.arm
	.fpu softvfp
	.type	fn1, %function
fn1:
	@ 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]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	fn2
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L3
	bl	printf
	mov	r0, #400
	bl	malloc
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	fn1, .-fn1
	.align	2
	.global	fn2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fn2, %function
fn2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	fn2, .-fn2
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%u\012\000"
	.align	2
.LC2:
	.ascii	"Final print\000"
	.align	2
.LC3:
	.ascii	"Final print -end\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #100
	mov	r0, #400
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-96]
	mov	r0, #40
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-84]
	mov	r0, #400
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-88]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-84]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-96]
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, [fp, #-92]
	mov	r2, #9
	str	r2, [r3]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-108]
	b	.L8
.L9:
	ldr	r3, [fp, #-108]
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, [fp, #-108]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18
	bl	printf
	ldr	r3, [fp, #-108]
	add	r3, r3, #4
	str	r3, [fp, #-108]
.L8:
	ldr	r3, [fp, #-88]
	add	r3, r3, #400
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	bcc	.L9
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-104]
.L13:
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-56]
	mov	r0, #400
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-100]
	b	.L10
.L12:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-104]
.L11:
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	str	r3, [fp, #-100]
.L10:
	ldr	r3, [fp, #-52]
	add	r3, r3, #400
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	bcc	.L12
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-88]
	add	r3, r3, #396
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	mov	r2, #10
	str	r2, [r3]
.L14:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-88]
	ldr	r0, .L18+4
	bl	puts
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-108]
	b	.L15
.L16:
	ldr	r3, [fp, #-108]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18
	bl	printf
	ldr	r3, [fp, #-108]
	add	r3, r3, #4
	str	r3, [fp, #-108]
.L15:
	ldr	r3, [fp, #-88]
	add	r3, r3, #400
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	bcc	.L16
	ldr	r0, .L18+8
	bl	puts
	mov	r0, #400
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-88]
	bl	fn1
	str	r0, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	fn1
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-88]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-96]
	ldr	r4, [r3]
	ldr	r3, [fp, #-88]
	add	r2, r3, #4
	str	r2, [fp, #-88]
	mov	r0, r3
	bl	fn1
	mov	r3, r0
	ldr	r3, [r3]
	add	r2, r4, r3
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-72]
	bl	free
	ldr	r0, [fp, #-68]
	bl	free
	ldr	r0, [fp, #-64]
	bl	free
	ldr	r0, [fp, #-40]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
