	.file	"30721.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\nDigite a quantidade de ingressos disponivel:\t"
.LC1:
	.string	"%d"
	.text
	.globl	leValidaQuantidadeDisponivel
	.type	leValidaQuantidadeDisponivel, @function
leValidaQuantidadeDisponivel:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jle	.L2
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L4
.L2:
	mov	eax, 0
.L4:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	leValidaQuantidadeDisponivel, .-leValidaQuantidadeDisponivel
	.section	.rodata
	.align 8
.LC2:
	.string	"\nQuantidade desejada acima do permitido ou os ingressos esgotaram."
	.align 8
.LC3:
	.string	"\nValor total de %d ingressos: %.2f"
	.text
	.globl	processaVendaAceita
	.type	processaVendaAceita, @function
processaVendaAceita:
.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	movss	DWORD PTR -12[rbp], xmm0
	cmp	DWORD PTR -8[rbp], 15
	jg	.L7
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L8
.L7:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L8:
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -8[rbp]
	mulss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rdx, xmm1
	mov	eax, DWORD PTR -8[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	nop
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	processaVendaAceita, .-processaVendaAceita
	.section	.rodata
.LC4:
	.string	"\nIngressos esgotados"
	.align 8
.LC5:
	.string	"\nDigite o preco unitario do ingressos:\t"
.LC6:
	.string	"%f"
	.align 8
.LC7:
	.string	"\nDigite a quantidade de compradores:\t"
	.align 8
.LC8:
	.string	"\nDigite o numero de identificacao do comprador:\t"
	.align 8
.LC9:
	.string	"\nDigite a quantidade de ingressos desejada pelo cliente:\t"
.LC10:
	.string	"\nVenda nao processada"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	mov	eax, 0
	call	leValidaQuantidadeDisponivel
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jg	.L11
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L12
.L11:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L12:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L13
.L17:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -16[rbp]
	movd	xmm0, ecx
	mov	esi, edx
	mov	edi, eax
	call	processaVendaAceita
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 15
	jg	.L14
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jge	.L15
.L14:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -32[rbp]
	sub	DWORD PTR -16[rbp], eax
.L16:
	add	DWORD PTR -12[rbp], 1
.L13:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L17
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"30721.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Digite a quantidade de ingressos disponivel:\011"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	leValidaQuantidadeDisponivel
	.syntax unified
	.arm
	.fpu softvfp
	.type	leValidaQuantidadeDisponivel, %function
leValidaQuantidadeDisponivel:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L6+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [fp, #-12]
	b	.L4
.L2:
	mov	r3, #0
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	leValidaQuantidadeDisponivel, .-leValidaQuantidadeDisponivel
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012Quantidade desejada acima do permitido ou os in"
	.ascii	"gressos esgotaram.\000"
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.global	__aeabi_f2d
	.align	2
.LC4:
	.ascii	"\012Valor total de %d ingressos: %.2f\000"
	.text
	.align	2
	.global	processaVendaAceita
	.syntax unified
	.arm
	.fpu softvfp
	.type	processaVendaAceita, %function
processaVendaAceita:
	@ 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]	@ float
	ldr	r3, [fp, #-12]
	cmp	r3, #15
	bgt	.L9
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L10
.L9:
	ldr	r0, .L12
	bl	printf
	b	.L11
.L10:
	ldr	r0, [fp, #-12]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-12]
	ldr	r0, .L12+4
	bl	printf
	nop
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC4
	.size	processaVendaAceita, .-processaVendaAceita
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\012Ingressos esgotados\000"
	.align	2
.LC6:
	.ascii	"\012Digite o preco unitario do ingressos:\011\000"
	.align	2
.LC7:
	.ascii	"%f\000"
	.align	2
.LC8:
	.ascii	"\012Digite a quantidade de compradores:\011\000"
	.align	2
.LC9:
	.ascii	"\012Digite o numero de identificacao do comprador:\011"
	.ascii	"\000"
	.align	2
.LC10:
	.ascii	"\012Digite a quantidade de ingressos desejada pelo "
	.ascii	"cliente:\011\000"
	.align	2
.LC11:
	.ascii	"\012Venda nao processada\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	bl	leValidaQuantidadeDisponivel
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L15
	ldr	r0, .L24+4
	bl	puts
	b	.L16
.L15:
	ldr	r0, .L24+8
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L24+12
	bl	__isoc99_scanf
	ldr	r0, .L24+16
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L24+20
	bl	__isoc99_scanf
.L16:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L17
.L21:
	ldr	r0, .L24+24
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L24+20
	bl	__isoc99_scanf
	ldr	r0, .L24+28
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L24+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	processaVendaAceita
	ldr	r3, [fp, #-32]
	cmp	r3, #15
	bgt	.L18
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L19
.L18:
	ldr	r0, .L24+32
	bl	printf
	b	.L20
.L19:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
.L20:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L17:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L21
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC12
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC1
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
