	.file	"308208.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Jogo da moeda "
.LC1:
	.string	"1- joga a moeda\n 0 - sair"
.LC2:
	.string	"%d"
.LC3:
	.string	"\n cara "
.LC4:
	.string	"\n coroa "
.LC5:
	.string	"saindo"
.LC6:
	.string	"opcao invalida"
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L7:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L2
	cmp	eax, 1
	jne	.L3
	mov	eax, 0
	call	coin_toss
	test	eax, eax
	je	.L4
	cmp	eax, 1
	je	.L5
	jmp	.L7
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L6
.L5:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	nop
.L6:
	jmp	.L7
.L2:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L9
.L3:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L9:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	coin_toss
	.type	coin_toss, @function
coin_toss:
.LFB7:
	.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
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC7[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC8[rip]
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L16
	mov	eax, 0
	jmp	.L14
.L16:
	mov	eax, 1
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	coin_toss, .-coin_toss
	.section	.rodata
	.align 8
.LC7:
	.long	-4194304
	.long	1105199103
	.align 8
.LC8:
	.long	0
	.long	1071644672
	.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	"308208.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Jogo da moeda \000"
	.align	2
.LC1:
	.ascii	"1- joga a moeda\012 0 - sair\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"\012 cara \000"
	.align	2
.LC4:
	.ascii	"\012 coroa \000"
	.align	2
.LC5:
	.ascii	"saindo\000"
	.align	2
.LC6:
	.ascii	"opcao invalida\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r0, .L11+4
	bl	puts
.L7:
	ldr	r0, .L11+8
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L11+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L2
	cmp	r3, #1
	bne	.L3
	bl	coin_toss
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	cmp	r3, #1
	beq	.L5
	b	.L7
.L4:
	ldr	r0, .L11+16
	bl	puts
	b	.L6
.L5:
	ldr	r0, .L11+20
	bl	puts
	nop
.L6:
	b	.L7
.L2:
	ldr	r0, .L11+24
	bl	printf
	mov	r3, #0
	b	.L9
.L3:
	ldr	r0, .L11+28
	bl	printf
	mov	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dcmplt
	.align	2
	.global	coin_toss
	.syntax unified
	.arm
	.fpu softvfp
	.type	coin_toss, %function
coin_toss:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L19
	ldr	r3, .L19+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r2, #0
	ldr	r3, .L19+8
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	mov	r3, #0
	b	.L16
.L18:
	mov	r3, #1
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	-4194304
	.word	1105199103
	.word	1071644672
	.size	coin_toss, .-coin_toss
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
