	.file	"703127.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"1 para trocar todas, 0 para manter todas: "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Digite o n\303\272mero de repeti\303\247\303\265es: "
	.align 8
.LC3:
	.string	"\n\n\n\tTrocando de porta todas as vezes: \n\n"
	.align 8
.LC4:
	.string	"\n\n\n\tMantendo a porta todas as vezes: \n\n"
.LC5:
	.string	"N\303\272mero de tentativas: %d\n"
	.align 8
.LC6:
	.string	"N\303\272mero de vit\303\263rias: %d, %f%% do total.\n"
	.align 8
.LC7:
	.string	"N\303\272mero de derrotas: %d, %f%% do total."
	.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -56[rbp], eax
.L9:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -44[rbp], edx
	mov	ecx, DWORD PTR -44[rbp]
	mov	edx, ecx
	add	edx, edx
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	DWORD PTR -32[rbp+rax*4], 1
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -48[rbp], edx
	mov	ecx, DWORD PTR -48[rbp]
	mov	edx, ecx
	add	edx, edx
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 1
	jne	.L2
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	cmp	eax, 1
	jne	.L3
	mov	DWORD PTR -52[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	cmp	eax, 1
	je	.L5
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	je	.L5
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -48[rbp], eax
	mov	DWORD PTR -52[rbp], 3
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
.L5:
	add	DWORD PTR -52[rbp], 1
.L4:
	cmp	DWORD PTR -52[rbp], 2
	jle	.L6
.L3:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
.L2:
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jne	.L8
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
.L7:
	sub	DWORD PTR -56[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	jg	.L9
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, DWORD PTR -64[rbp]
	cdq
	idiv	esi
	imul	eax, eax, 100
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -40[rbp], xmm0
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, DWORD PTR -64[rbp]
	cdq
	idiv	esi
	imul	eax, eax, 100
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -36[rbp], xmm0
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 1
	jne	.L10
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L10:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -40[rbp]
	movq	rdx, xmm1
	mov	eax, DWORD PTR -16[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -36[rbp]
	movq	rdx, xmm2
	mov	eax, DWORD PTR -12[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"703127.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1 para trocar todas, 0 para manter todas: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Digite o n\303\272mero de repeti\303\247\303\265es:"
	.ascii	" \000"
	.global	__aeabi_idiv
	.global	__aeabi_i2f
	.align	2
.LC3:
	.ascii	"\012\012\012\011Trocando de porta todas as vezes: \012"
	.ascii	"\012\000"
	.align	2
.LC4:
	.ascii	"\012\012\012\011Mantendo a porta todas as vezes: \012"
	.ascii	"\012\000"
	.align	2
.LC5:
	.ascii	"N\303\272mero de tentativas: %d\012\000"
	.global	__aeabi_f2d
	.align	2
.LC6:
	.ascii	"N\303\272mero de vit\303\263rias: %d, %f%% do total"
	.ascii	".\012\000"
	.align	2
.LC7:
	.ascii	"N\303\272mero de derrotas: %d, %f%% do total.\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, .L14+4
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	ldr	r0, .L14+12
	bl	printf
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-64]
.L9:
	bl	rand
	mov	r2, r0
	ldr	r3, .L14+16
	smull	r0, r1, r3, r2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-28]
	bl	rand
	mov	r2, r0
	ldr	r3, .L14+16
	smull	r0, r1, r3, r2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-68]
	cmp	r3, #1
	bne	.L2
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	cmp	r3, #1
	bne	.L3
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L4
.L6:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	cmp	r3, #1
	beq	.L5
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	beq	.L5
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r3, #3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L5:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L4:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	ble	.L6
.L3:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L7
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bne	.L8
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L7
.L8:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L7:
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bgt	.L9
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-72]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-48]	@ float
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-72]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-44]	@ float
	ldr	r3, [fp, #-68]
	cmp	r3, #1
	bne	.L10
	ldr	r0, .L14+20
	bl	printf
	b	.L11
.L10:
	ldr	r0, .L14+24
	bl	printf
.L11:
	ldr	r3, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L14+28
	bl	printf
	ldr	r4, [fp, #-24]
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L14+32
	bl	printf
	ldr	r4, [fp, #-20]
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L14+36
	bl	printf
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1431655766
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
