	.file	"144689.c"
	.intel_syntax noprefix
	.text
	.globl	need_malloc
	.type	need_malloc, @function
need_malloc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 1
	call	malloc@PLT
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	need_malloc, .-need_malloc
	.section	.rodata
.LC0:
	.string	"usage:  factorial <number>\n"
.LC1:
	.string	"6"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"trace"
.LC4:
	.string	"stack"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	cmp	DWORD PTR -4[rbp], 12345
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L5
.L4:
	lea	rdi, .LC1[rip]
	call	atoi@PLT
	mov	edi, eax
	call	factorial
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	call	marker1@PLT
	mov	edi, 43
	call	marker2@PLT
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	marker3@PLT
	mov	edi, 177601976
	call	marker4@PLT
	mov	edi, 1
	call	malloc@PLT
	cmp	DWORD PTR -4[rbp], 12345
	sete	al
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.globl	factorial
	.type	factorial, @function
factorial:
.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
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 1
	jle	.L7
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	edi, eax
	call	factorial
	mov	edx, DWORD PTR -4[rbp]
	imul	eax, edx
	mov	DWORD PTR -4[rbp], eax
.L7:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	factorial, .-factorial
	.globl	multi_line_if_conditional
	.type	multi_line_if_conditional, @function
multi_line_if_conditional:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	cmp	DWORD PTR -4[rbp], 0
	je	.L10
	cmp	DWORD PTR -8[rbp], 0
	je	.L10
	cmp	DWORD PTR -12[rbp], 0
	je	.L10
	mov	eax, 0
	jmp	.L11
.L10:
	mov	eax, 1
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	multi_line_if_conditional, .-multi_line_if_conditional
	.globl	multi_line_while_conditional
	.type	multi_line_while_conditional, @function
multi_line_while_conditional:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	jmp	.L13
.L15:
	sub	DWORD PTR -4[rbp], 1
	sub	DWORD PTR -8[rbp], 1
	sub	DWORD PTR -12[rbp], 1
.L13:
	cmp	DWORD PTR -4[rbp], 0
	je	.L14
	cmp	DWORD PTR -8[rbp], 0
	je	.L14
	cmp	DWORD PTR -12[rbp], 0
	jne	.L15
.L14:
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	multi_line_while_conditional, .-multi_line_while_conditional
	.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	"144689.c"
	.text
	.align	2
	.global	need_malloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	need_malloc, %function
need_malloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	mov	r0, r3
	pop	{fp, pc}
	.size	need_malloc, .-need_malloc
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage:  factorial <number>\012\000"
	.align	2
.LC1:
	.ascii	"6\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.ascii	"trace\000"
	.align	2
.LC4:
	.ascii	"stack\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, .L6
	cmp	r3, r2
	bne	.L4
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L6+8
	bl	fwrite
	mov	r3, #1
	b	.L5
.L4:
	ldr	r0, .L6+12
	bl	atoi
	mov	r3, r0
	mov	r0, r3
	bl	factorial
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L6+16
	bl	printf
	bl	marker1
	mov	r0, #43
	bl	marker2
	ldr	r1, .L6+20
	ldr	r0, .L6+24
	bl	marker3
	ldr	r0, .L6+28
	bl	marker4
	mov	r0, #1
	bl	malloc
	ldr	r3, [fp, #-8]
	ldr	r2, .L6
	cmp	r3, r2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	12345
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	177601976
	.size	main, .-main
	.align	2
	.global	factorial
	.syntax unified
	.arm
	.fpu softvfp
	.type	factorial, %function
factorial:
	@ 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, #1
	ble	.L9
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	mov	r0, r3
	bl	factorial
	mov	r2, r0
	ldr	r3, [fp, #-8]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	factorial, .-factorial
	.align	2
	.global	multi_line_if_conditional
	.syntax unified
	.arm
	.fpu softvfp
	.type	multi_line_if_conditional, %function
multi_line_if_conditional:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L12
	mov	r3, #0
	b	.L13
.L12:
	mov	r3, #1
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	multi_line_if_conditional, .-multi_line_if_conditional
	.align	2
	.global	multi_line_while_conditional
	.syntax unified
	.arm
	.fpu softvfp
	.type	multi_line_while_conditional, %function
multi_line_while_conditional:
	@ 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]
	b	.L15
.L17:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L17
.L16:
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	multi_line_while_conditional, .-multi_line_while_conditional
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
