	.file	"595787.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"----------"
	.align 8
.LC1:
	.string	"What class of seat would you like?"
.LC2:
	.string	"Enter 1 for first class."
.LC3:
	.string	"Enter 2 for economy."
.LC4:
	.string	"Enter 3 to end."
.LC5:
	.string	"%d"
	.align 8
.LC6:
	.string	"Sorry, there are no first class seats free."
	.align 8
.LC7:
	.string	"Would you like to take an economy class seat?"
.LC8:
	.string	"Enter 1 for no."
.LC9:
	.string	"Enter 2 for yes."
.LC10:
	.string	"Enter 3 to quit."
	.align 8
.LC11:
	.string	"Next flight leaves in 3 hours."
	.align 8
.LC12:
	.string	"Sorry, there are no economy seats free."
	.align 8
.LC13:
	.string	"Would you like to take a first class seat?"
.LC14:
	.string	"Enter 1 for yes."
.LC15:
	.string	"Enter 2 for no."
.LC16:
	.string	"Class:\tFirst class"
.LC17:
	.string	"Class:\tEconomy"
.LC18:
	.string	"Seat:\t1, %d\n"
.LC19:
	.string	"Seat:\t2, %d\n"
	.align 8
.LC20:
	.string	"There are no more seats availible."
.LC21:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -92[rbp], 1
	mov	DWORD PTR -88[rbp], 1
	mov	DWORD PTR -84[rbp], 1
	mov	DWORD PTR -80[rbp], 1
	mov	DWORD PTR -68[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L2
.L27:
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -72[rbp], 1
	mov	DWORD PTR -80[rbp], 1
	jmp	.L3
.L14:
	cmp	DWORD PTR -68[rbp], 0
	jne	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L4:
	mov	DWORD PTR -68[rbp], 0
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 1
	jne	.L5
	cmp	DWORD PTR -92[rbp], 5
	jg	.L6
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cdqe
	mov	DWORD PTR -64[rbp+rax*4], 1
	add	DWORD PTR -92[rbp], 1
	mov	DWORD PTR -80[rbp], 0
	jmp	.L3
.L6:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 2
	mov	eax, 0
	call	sleep@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 1
	jne	.L7
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, 2
	mov	eax, 0
	call	sleep@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L3
.L7:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 2
	jne	.L8
	mov	DWORD PTR -68[rbp], 1
	jmp	.L3
.L8:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 3
	jne	.L3
	mov	DWORD PTR -68[rbp], 1
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 2
	jne	.L9
	cmp	DWORD PTR -88[rbp], 5
	jg	.L10
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 1
	cdqe
	mov	DWORD PTR -32[rbp+rax*4], 1
	add	DWORD PTR -88[rbp], 1
	mov	DWORD PTR -80[rbp], 0
	jmp	.L3
.L10:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 2
	mov	eax, 0
	call	sleep@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 1
	jne	.L11
	mov	DWORD PTR -68[rbp], 1
	jmp	.L3
.L11:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 2
	jne	.L12
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, 2
	mov	eax, 0
	call	sleep@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L3
.L12:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 3
	jne	.L3
	mov	DWORD PTR -68[rbp], 1
	jmp	.L3
.L9:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 3
	jne	.L3
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -84[rbp], 0
.L3:
	cmp	DWORD PTR -80[rbp], 1
	jne	.L13
	cmp	DWORD PTR -92[rbp], 5
	jle	.L14
	cmp	DWORD PTR -88[rbp], 5
	jle	.L14
.L13:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 1
	je	.L15
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 2
	jne	.L16
.L15:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 1
	jne	.L17
	lea	rdi, .LC16[rip]
	call	puts@PLT
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 2
	jne	.L18
	lea	rdi, .LC17[rip]
	call	puts@PLT
.L18:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 1
	jne	.L19
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L19:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 2
	jne	.L16
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 1
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	cmp	DWORD PTR -92[rbp], 5
	jle	.L20
	cmp	DWORD PTR -88[rbp], 5
	jle	.L20
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 2
	mov	eax, 0
	call	sleep@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -84[rbp], 0
.L20:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 2
	mov	eax, 0
	call	sleep@PLT
	jmp	.L21
.L25:
	cmp	DWORD PTR -72[rbp], 1
	jne	.L23
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L23:
	cmp	DWORD PTR -72[rbp], 2
	jne	.L24
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	add	DWORD PTR -76[rbp], 1
.L22:
	cmp	DWORD PTR -76[rbp], 4
	jle	.L25
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -72[rbp], 1
	mov	DWORD PTR -76[rbp], 0
.L21:
	cmp	DWORD PTR -72[rbp], 2
	jle	.L22
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L2:
	cmp	DWORD PTR -84[rbp], 1
	je	.L27
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"595787.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"----------\000"
	.align	2
.LC1:
	.ascii	"What class of seat would you like?\000"
	.align	2
.LC2:
	.ascii	"Enter 1 for first class.\000"
	.align	2
.LC3:
	.ascii	"Enter 2 for economy.\000"
	.align	2
.LC4:
	.ascii	"Enter 3 to end.\000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"Sorry, there are no first class seats free.\000"
	.align	2
.LC7:
	.ascii	"Would you like to take an economy class seat?\000"
	.align	2
.LC8:
	.ascii	"Enter 1 for no.\000"
	.align	2
.LC9:
	.ascii	"Enter 2 for yes.\000"
	.align	2
.LC10:
	.ascii	"Enter 3 to quit.\000"
	.align	2
.LC11:
	.ascii	"Next flight leaves in 3 hours.\000"
	.align	2
.LC12:
	.ascii	"Sorry, there are no economy seats free.\000"
	.align	2
.LC13:
	.ascii	"Would you like to take a first class seat?\000"
	.align	2
.LC14:
	.ascii	"Enter 1 for yes.\000"
	.align	2
.LC15:
	.ascii	"Enter 2 for no.\000"
	.align	2
.LC16:
	.ascii	"Class:\011First class\000"
	.align	2
.LC17:
	.ascii	"Class:\011Economy\000"
	.align	2
.LC18:
	.ascii	"Seat:\0111, %d\012\000"
	.align	2
.LC19:
	.ascii	"Seat:\0112, %d\012\000"
	.align	2
.LC20:
	.ascii	"There are no more seats availible.\000"
	.align	2
.LC21:
	.ascii	"%d \000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #48
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	sub	r3, fp, #28
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	mov	r3, #1
	str	r3, [fp, #-76]
	mov	r3, #1
	str	r3, [fp, #-72]
	mov	r3, #1
	str	r3, [fp, #-68]
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r0, .L29+4
	bl	puts
	b	.L2
.L27:
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #1
	str	r3, [fp, #-56]
	mov	r3, #1
	str	r3, [fp, #-64]
	b	.L3
.L14:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L29+8
	bl	puts
	ldr	r0, .L29+12
	bl	puts
	ldr	r0, .L29+16
	bl	puts
	ldr	r0, .L29+20
	bl	puts
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L29+24
	bl	__isoc99_scanf
.L4:
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	bne	.L5
	ldr	r3, [fp, #-76]
	cmp	r3, #5
	bgt	.L6
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L3
.L6:
	ldr	r0, .L29+4
	bl	puts
	ldr	r0, .L29+28
	bl	puts
	mov	r0, #2
	bl	sleep
	ldr	r0, .L29+4
	bl	puts
	ldr	r0, .L29+32
	bl	puts
	ldr	r0, .L29+36
	bl	puts
	ldr	r0, .L29+40
	bl	puts
	ldr	r0, .L29+44
	bl	puts
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L29+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	bne	.L7
	ldr	r0, .L29+4
	bl	puts
	ldr	r0, .L29+48
	bl	puts
	mov	r0, #2
	bl	sleep
	ldr	r0, .L29+4
	bl	puts
	b	.L3
.L7:
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	bne	.L8
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L3
.L8:
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L3
.L5:
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	bne	.L9
	ldr	r3, [fp, #-72]
	cmp	r3, #5
	bgt	.L10
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-24]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L3
.L10:
	ldr	r0, .L29+4
	bl	puts
	ldr	r0, .L29+52
	bl	puts
	mov	r0, #2
	bl	sleep
	ldr	r0, .L29+4
	bl	puts
	ldr	r0, .L29+56
	bl	puts
	ldr	r0, .L29+60
	bl	puts
	ldr	r0, .L29+64
	bl	puts
	ldr	r0, .L29+44
	bl	puts
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L29+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	bne	.L11
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L3
.L11:
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	bne	.L12
	ldr	r0, .L29+4
	bl	puts
	ldr	r0, .L29+48
	bl	puts
	mov	r0, #2
	bl	sleep
	ldr	r0, .L29+4
	bl	puts
	b	.L3
.L12:
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L3
.L9:
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	bne	.L3
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-68]
.L3:
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	bne	.L13
	ldr	r3, [fp, #-76]
	cmp	r3, #5
	ble	.L14
	ldr	r3, [fp, #-72]
	cmp	r3, #5
	ble	.L14
.L13:
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	beq	.L15
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	bne	.L16
.L15:
	ldr	r0, .L29+4
	bl	puts
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	bne	.L17
	ldr	r0, .L29+68
	bl	puts
	b	.L18
.L17:
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	bne	.L18
	ldr	r0, .L29+72
	bl	puts
.L18:
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	bne	.L19
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L29+76
	bl	printf
	b	.L16
.L19:
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	bne	.L16
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L29+80
	bl	printf
.L16:
	ldr	r3, [fp, #-76]
	cmp	r3, #5
	ble	.L20
	ldr	r3, [fp, #-72]
	cmp	r3, #5
	ble	.L20
	ldr	r0, .L29+4
	bl	puts
	mov	r0, #2
	bl	sleep
	ldr	r0, .L29+84
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-68]
.L20:
	ldr	r0, .L29+4
	bl	puts
	mov	r0, #2
	bl	sleep
	b	.L21
.L25:
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bne	.L23
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, r3
	ldr	r0, .L29+88
	bl	printf
	b	.L24
.L23:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	bne	.L24
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-24]
	mov	r1, r3
	ldr	r0, .L29+88
	bl	printf
.L24:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L22:
	ldr	r3, [fp, #-60]
	cmp	r3, #4
	ble	.L25
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-60]
.L21:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L22
	ldr	r0, .L29+4
	bl	puts
.L2:
	ldr	r3, [fp, #-68]
	cmp	r3, #1
	beq	.L27
	nop
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC22
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
