	.file	"42990.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n1 - Vender passagem"
	.align 8
.LC1:
	.string	"2 - Mostrar quantidade de lugares livres"
	.align 8
.LC2:
	.string	"3 - Mostrar mapa de ocupacao do onibus"
.LC3:
	.string	"0 - Encerrar"
.LC4:
	.string	"Informe a opcao: "
.LC5:
	.string	"%d"
.LC6:
	.string	"\nOnibus lotado!"
	.align 8
.LC7:
	.string	"\nInforme o numero da poltrona desejada: "
.LC8:
	.string	"Venda efetivada!"
.LC9:
	.string	"Poltrona ocupada!"
	.align 8
.LC10:
	.string	"\nQuantidade de lugares livres: %d\n"
.LC11:
	.string	"\nLADO ESQUERDO\t\t\tLADO DIREITO"
	.align 8
.LC12:
	.string	"------------------------------------------------------------------------"
	.align 8
.LC13:
	.string	"JANELA\t\tCORREDOR\tCORREDOR\tJANELA"
.LC14:
	.string	"0%d-%s\t"
.LC15:
	.string	"%d-%s\t"
	.text
	.globl	main
	.type	main, @function
main:
.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, 240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -220[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	DWORD PTR -208[rbp+rax*4], 0
	add	DWORD PTR -220[rbp], 1
.L2:
	cmp	DWORD PTR -220[rbp], 47
	jle	.L3
.L24:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	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]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -228[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -228[rbp]
	cmp	eax, 3
	je	.L4
	cmp	eax, 3
	jg	.L5
	cmp	eax, 1
	je	.L6
	cmp	eax, 2
	je	.L7
	jmp	.L5
.L6:
	mov	DWORD PTR -216[rbp], 0
	mov	DWORD PTR -220[rbp], 0
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	eax, DWORD PTR -208[rbp+rax*4]
	cmp	eax, 1
	jne	.L9
	add	DWORD PTR -216[rbp], 1
.L9:
	add	DWORD PTR -220[rbp], 1
.L8:
	cmp	DWORD PTR -220[rbp], 47
	jle	.L10
	cmp	DWORD PTR -216[rbp], 48
	jne	.L11
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L5
.L11:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -224[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -208[rbp+rax*4]
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR -224[rbp]
	sub	eax, 1
	cdqe
	mov	DWORD PTR -208[rbp+rax*4], 1
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L5
.L13:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L5
.L7:
	mov	DWORD PTR -216[rbp], 0
	mov	DWORD PTR -220[rbp], 0
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	eax, DWORD PTR -208[rbp+rax*4]
	test	eax, eax
	jne	.L15
	add	DWORD PTR -216[rbp], 1
.L15:
	add	DWORD PTR -220[rbp], 1
.L14:
	cmp	DWORD PTR -220[rbp], 47
	jle	.L16
	mov	eax, DWORD PTR -216[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	DWORD PTR -212[rbp], 0
	mov	DWORD PTR -220[rbp], 0
	jmp	.L17
.L23:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	eax, DWORD PTR -208[rbp+rax*4]
	test	eax, eax
	jne	.L18
	lea	rax, -15[rbp]
	mov	DWORD PTR [rax], 1920362860
	mov	WORD PTR 4[rax], 101
	jmp	.L19
.L18:
	lea	rax, -15[rbp]
	movabs	rdx, 31354092076229487
	mov	QWORD PTR [rax], rdx
.L19:
	cmp	DWORD PTR -220[rbp], 8
	jg	.L20
	mov	eax, DWORD PTR -220[rbp]
	lea	ecx, 1[rax]
	lea	rax, -15[rbp]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L21
.L20:
	mov	eax, DWORD PTR -220[rbp]
	lea	ecx, 1[rax]
	lea	rax, -15[rbp]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	mov	eax, DWORD PTR -220[rbp]
	add	eax, 1
	and	eax, 3
	test	eax, eax
	jne	.L22
	mov	edi, 10
	call	putchar@PLT
.L22:
	add	DWORD PTR -220[rbp], 1
.L17:
	cmp	DWORD PTR -220[rbp], 47
	jle	.L23
.L5:
	mov	eax, DWORD PTR -228[rbp]
	test	eax, eax
	jne	.L24
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"42990.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\0121 - Vender passagem\000"
	.align	2
.LC1:
	.ascii	"2 - Mostrar quantidade de lugares livres\000"
	.align	2
.LC2:
	.ascii	"3 - Mostrar mapa de ocupacao do onibus\000"
	.align	2
.LC3:
	.ascii	"0 - Encerrar\000"
	.align	2
.LC4:
	.ascii	"Informe a opcao: \000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"\012Onibus lotado!\000"
	.align	2
.LC7:
	.ascii	"\012Informe o numero da poltrona desejada: \000"
	.align	2
.LC8:
	.ascii	"Venda efetivada!\000"
	.align	2
.LC9:
	.ascii	"Poltrona ocupada!\000"
	.align	2
.LC10:
	.ascii	"\012Quantidade de lugares livres: %d\012\000"
	.align	2
.LC11:
	.ascii	"\012LADO ESQUERDO\011\011\011LADO DIREITO\000"
	.align	2
.LC12:
	.ascii	"---------------------------------------------------"
	.ascii	"---------------------\000"
	.align	2
.LC13:
	.ascii	"JANELA\011\011CORREDOR\011CORREDOR\011JANELA\000"
	.align	2
.LC14:
	.ascii	"livre\000"
	.align	2
.LC15:
	.ascii	"ocupado\000"
	.align	2
.LC16:
	.ascii	"0%d-%s\011\000"
	.align	2
.LC17:
	.ascii	"%d-%s\011\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #224
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-220]
	b	.L2
.L3:
	ldr	r3, [fp, #-220]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-204]
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
.L2:
	ldr	r3, [fp, #-220]
	cmp	r3, #47
	ble	.L3
.L24:
	ldr	r0, .L27+4
	bl	puts
	ldr	r0, .L27+8
	bl	puts
	ldr	r0, .L27+12
	bl	puts
	ldr	r0, .L27+16
	bl	puts
	ldr	r0, .L27+20
	bl	printf
	sub	r3, fp, #228
	mov	r1, r3
	ldr	r0, .L27+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-228]
	cmp	r3, #3
	beq	.L4
	cmp	r3, #3
	bgt	.L5
	cmp	r3, #1
	beq	.L6
	cmp	r3, #2
	beq	.L7
	b	.L5
.L6:
	mov	r3, #0
	str	r3, [fp, #-216]
	mov	r3, #0
	str	r3, [fp, #-220]
	b	.L8
.L10:
	ldr	r3, [fp, #-220]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-204]
	cmp	r3, #1
	bne	.L9
	ldr	r3, [fp, #-216]
	add	r3, r3, #1
	str	r3, [fp, #-216]
.L9:
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
.L8:
	ldr	r3, [fp, #-220]
	cmp	r3, #47
	ble	.L10
	ldr	r3, [fp, #-216]
	cmp	r3, #48
	bne	.L11
	ldr	r0, .L27+28
	bl	puts
	b	.L5
.L11:
	ldr	r0, .L27+32
	bl	printf
	sub	r3, fp, #224
	mov	r1, r3
	ldr	r0, .L27+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-224]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-204]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-224]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-204]
	ldr	r0, .L27+36
	bl	puts
	b	.L5
.L13:
	ldr	r0, .L27+40
	bl	puts
	b	.L5
.L7:
	mov	r3, #0
	str	r3, [fp, #-216]
	mov	r3, #0
	str	r3, [fp, #-220]
	b	.L14
.L16:
	ldr	r3, [fp, #-220]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-204]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-216]
	add	r3, r3, #1
	str	r3, [fp, #-216]
.L15:
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
.L14:
	ldr	r3, [fp, #-220]
	cmp	r3, #47
	ble	.L16
	ldr	r1, [fp, #-216]
	ldr	r0, .L27+44
	bl	printf
	b	.L5
.L4:
	ldr	r0, .L27+48
	bl	puts
	ldr	r0, .L27+52
	bl	puts
	ldr	r0, .L27+56
	bl	puts
	ldr	r0, .L27+52
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-212]
	mov	r3, #0
	str	r3, [fp, #-220]
	b	.L17
.L23:
	ldr	r3, [fp, #-220]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-204]
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #16
	ldr	r2, .L27+60
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	b	.L19
.L18:
	sub	r3, fp, #16
	ldr	r2, .L27+64
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
.L19:
	ldr	r3, [fp, #-220]
	cmp	r3, #8
	bgt	.L20
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	sub	r2, fp, #16
	mov	r1, r3
	ldr	r0, .L27+68
	bl	printf
	b	.L21
.L20:
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	sub	r2, fp, #16
	mov	r1, r3
	ldr	r0, .L27+72
	bl	printf
.L21:
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L22
	mov	r0, #10
	bl	putchar
.L22:
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
.L17:
	ldr	r3, [fp, #-220]
	cmp	r3, #47
	ble	.L23
.L5:
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	bne	.L24
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC18
	.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
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
