	.file	"108870.c"
	.intel_syntax noprefix
	.text
	.globl	f
	.data
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.long	6
	.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
	mov	edi, 0
	call	exit@PLT
.L3:
	mov	eax, 23
	jmp	.L4
.L2:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L5
	mov	eax, DWORD PTR f[rip]
	cmp	eax, 6
	jne	.L5
	mov	DWORD PTR f[rip], 5
	mov	eax, 24
	jmp	.L4
.L5:
	mov	eax, DWORD PTR f[rip]
	cmp	eax, 5
	jne	.L6
	mov	DWORD PTR f[rip], 4
	mov	eax, 25
	jmp	.L4
.L6:
	mov	eax, DWORD PTR f[rip]
	cmp	eax, 4
	jne	.L8
	mov	DWORD PTR f[rip], 3
.L8:
	cmp	DWORD PTR -4[rbp], 7
	jne	.L9
	mov	eax, -2
	jmp	.L4
.L9:
	mov	eax, -1
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	calculate_output, .-calculate_output
	.section	.rodata
.LC0:
	.string	"Invalid input: %d\n"
.LC1:
	.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	DWORD PTR -8[rbp], -1
.L13:
	call	__VERIFIER_nondet_int@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	calculate_output
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -2
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L13
.L11:
	cmp	DWORD PTR -8[rbp], -1
	je	.L13
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
	.cfi_endproc
.LFE1:
	.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	"108870.c"
	.text
	.global	f
	.data
	.align	2
	.type	f, %object
	.size	f, 4
f:
	.word	6
	.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, .L10
	ldr	r3, [r3]
	cmp	r3, #7
	bne	.L2
	ldr	r3, .L10
	mov	r2, #6
	str	r2, [r3]
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #6
	beq	.L3
	mov	r0, #0
	bl	exit
.L3:
	mov	r3, #23
	b	.L4
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L5
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #6
	bne	.L5
	ldr	r3, .L10
	mov	r2, #5
	str	r2, [r3]
	mov	r3, #24
	b	.L4
.L5:
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L6
	ldr	r3, .L10
	mov	r2, #4
	str	r2, [r3]
	mov	r3, #25
	b	.L4
.L6:
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L8
	ldr	r3, .L10
	mov	r2, #3
	str	r2, [r3]
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	bne	.L9
	mvn	r3, #1
	b	.L4
.L9:
	mvn	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	f
	.size	calculate_output, .-calculate_output
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Invalid input: %d\012\000"
	.align	2
.LC1:
	.ascii	"%d\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
	mvn	r3, #0
	str	r3, [fp, #-12]
.L15:
	bl	__VERIFIER_nondet_int
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	calculate_output
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #2
	bne	.L13
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L16+4
	mov	r0, r3
	bl	fprintf
	b	.L15
.L13:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L15
	ldr	r1, [fp, #-12]
	ldr	r0, .L16+8
	bl	printf
	b	.L15
.L17:
	.align	2
.L16:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
