	.file	"209915.c"
	.intel_syntax noprefix
	.text
	.globl	f
	.data
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.long	6
	.section	.rodata
.LC0:
	.string	"the_stack_data/209915.c"
.LC1:
	.string	"0"
	.text
	.globl	calculate_output
	.type	calculate_output, @function
calculate_output:
.LFB0:
	.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
	jne	.L2
	mov	eax, DWORD PTR f[rip]
	cmp	eax, 7
	jne	.L2
	mov	DWORD PTR f[rip], 6
	mov	eax, DWORD PTR f[rip]
	cmp	eax, 6
	je	.L3
	nop
.L4:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 13
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L3:
	mov	eax, 23
	jmp	.L5
.L2:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L6
	mov	eax, DWORD PTR f[rip]
	cmp	eax, 6
	jne	.L6
	mov	DWORD PTR f[rip], 5
	mov	eax, 24
	jmp	.L5
.L6:
	mov	eax, DWORD PTR f[rip]
	cmp	eax, 5
	jne	.L7
	mov	DWORD PTR f[rip], 4
	mov	eax, 25
	jmp	.L5
.L7:
	mov	eax, DWORD PTR f[rip]
	cmp	eax, 4
	jne	.L8
	mov	DWORD PTR f[rip], 3
	jmp	.L9
.L8:
	mov	eax, DWORD PTR f[rip]
	cmp	eax, 3
	jne	.L9
	nop
.L10:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 26
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L9:
	cmp	DWORD PTR -4[rbp], 7
	jne	.L11
	mov	eax, -2
	jmp	.L5
.L11:
	mov	eax, -1
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	calculate_output, .-calculate_output
	.section	.rodata
.LC2:
	.string	"%d"
.LC3:
	.string	"Invalid input: %d\n"
.LC4:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], -1
.L15:
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	calculate_output
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -2
	jne	.L13
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L15
.L13:
	cmp	DWORD PTR -12[rbp], -1
	je	.L15
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 17
__PRETTY_FUNCTION__.0:
	.string	"calculate_output"
	.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	"209915.c"
	.text
	.global	f
	.data
	.align	2
	.type	f, %object
	.size	f, 4
f:
	.word	6
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/209915.c\000"
	.align	2
.LC1:
	.ascii	"0\000"
	.text
	.align	2
	.global	calculate_output
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_output, %function
calculate_output:
	@ 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
	bne	.L2
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, #7
	bne	.L2
	ldr	r3, .L12
	mov	r2, #6
	str	r2, [r3]
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, #6
	beq	.L3
	nop
.L4:
	ldr	r3, .L12+4
	mov	r2, #13
	ldr	r1, .L12+8
	ldr	r0, .L12+12
	bl	__assert_fail
.L3:
	mov	r3, #23
	b	.L5
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L6
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, #6
	bne	.L6
	ldr	r3, .L12
	mov	r2, #5
	str	r2, [r3]
	mov	r3, #24
	b	.L5
.L6:
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L7
	ldr	r3, .L12
	mov	r2, #4
	str	r2, [r3]
	mov	r3, #25
	b	.L5
.L7:
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L8
	ldr	r3, .L12
	mov	r2, #3
	str	r2, [r3]
	b	.L9
.L8:
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L9
	nop
.L10:
	ldr	r3, .L12+4
	mov	r2, #26
	ldr	r1, .L12+8
	ldr	r0, .L12+12
	bl	__assert_fail
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	bne	.L11
	mvn	r3, #1
	b	.L5
.L11:
	mvn	r3, #0
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	f
	.word	__PRETTY_FUNCTION__.4617
	.word	.LC0
	.word	.LC1
	.size	calculate_output, .-calculate_output
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Invalid input: %d\012\000"
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-12]
.L17:
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L19+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	calculate_output
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #2
	bne	.L15
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L19+12
	mov	r0, r3
	bl	fprintf
	b	.L17
.L15:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L17
	ldr	r1, [fp, #-12]
	ldr	r0, .L19+16
	bl	printf
	b	.L17
.L20:
	.align	2
.L19:
	.word	.LC5
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4617, %object
	.size	__PRETTY_FUNCTION__.4617, 17
__PRETTY_FUNCTION__.4617:
	.ascii	"calculate_output\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
