	.file	"8146.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"*** ROCK PAPER SCISSORS ***"
	.align 8
.LC2:
	.string	"[#%3d] Player: [ROCK], Computer: "
.LC3:
	.string	"[ROCK], Draw!"
.LC4:
	.string	"[PAPER], Computer wins!"
.LC5:
	.string	"[SCISSORS], Player wins!"
	.align 8
.LC7:
	.string	"[#%3d] Player: [PAPER], Computer: "
.LC8:
	.string	"[PAPER], Draw!"
.LC9:
	.string	"[SCISSORS], Computer wins!"
.LC10:
	.string	"[ROCK], Player wins!"
	.align 8
.LC11:
	.string	"[#%3d] Player: [SCISSORS], Computer: "
.LC12:
	.string	"[SCISSORS], Draw!"
.LC13:
	.string	"[ROCK], Computer wins!"
.LC14:
	.string	"[PAPER], Player wins!"
.LC15:
	.string	"Exit the game!"
	.align 8
.LC17:
	.string	"Played: %3d, Win rate: %.2f%%\n"
.LC18:
	.string	"Wrong input!"
	.align 8
.LC19:
	.string	"r: Rock, p: Paper, s: Scissors, h: Help, e: Exit"
	.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, 32
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -20[rbp], 104
	mov	DWORD PTR -16[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
.L23:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L25
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 256
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	tolower@PLT
	mov	DWORD PTR -20[rbp], eax
.L4:
	cmp	DWORD PTR -20[rbp], 115
	je	.L5
	cmp	DWORD PTR -20[rbp], 115
	jg	.L6
	cmp	DWORD PTR -20[rbp], 114
	je	.L7
	cmp	DWORD PTR -20[rbp], 114
	jg	.L6
	cmp	DWORD PTR -20[rbp], 101
	je	.L8
	cmp	DWORD PTR -20[rbp], 112
	je	.L9
	jmp	.L6
.L7:
	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 -12[rbp], edx
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, ecx
	add	edx, edx
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -12[rbp], 0
	jne	.L10
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L13
.L10:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L12
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L13
.L12:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	movsd	xmm1, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR .LC6[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	jmp	.L13
.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 -12[rbp], edx
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, ecx
	add	edx, edx
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -12[rbp], 1
	jne	.L14
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L13
.L14:
	cmp	DWORD PTR -12[rbp], 2
	jne	.L16
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L13
.L16:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	movsd	xmm1, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR .LC6[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	jmp	.L13
.L5:
	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 -12[rbp], edx
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, ecx
	add	edx, edx
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -12[rbp], 2
	jne	.L17
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L13
.L17:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L19
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L13
.L19:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	movsd	xmm1, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR .LC6[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	jmp	.L13
.L8:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	cmp	DWORD PTR -16[rbp], 0
	je	.L26
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC16[rip]
	mulsd	xmm1, xmm0
	movq	rdx, xmm1
	mov	eax, DWORD PTR -16[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L26
.L6:
	cmp	DWORD PTR -20[rbp], 104
	je	.L21
	lea	rdi, .LC18[rip]
	call	puts@PLT
.L21:
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L13
.L26:
	nop
.L13:
	cmp	DWORD PTR -20[rbp], 101
	je	.L27
	jmp	.L3
.L25:
	nop
.L3:
	call	getchar@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L23
	jmp	.L22
.L27:
	nop
.L22:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC6:
	.long	0
	.long	1072693248
	.align 8
.LC16:
	.long	0
	.long	1079574528
	.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	"8146.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"*** ROCK PAPER SCISSORS ***\000"
	.align	2
.LC1:
	.ascii	"[#%3d] Player: [ROCK], Computer: \000"
	.align	2
.LC2:
	.ascii	"[ROCK], Draw!\000"
	.align	2
.LC3:
	.ascii	"[PAPER], Computer wins!\000"
	.align	2
.LC4:
	.ascii	"[SCISSORS], Player wins!\000"
	.global	__aeabi_dadd
	.align	2
.LC5:
	.ascii	"[#%3d] Player: [PAPER], Computer: \000"
	.align	2
.LC6:
	.ascii	"[PAPER], Draw!\000"
	.align	2
.LC7:
	.ascii	"[SCISSORS], Computer wins!\000"
	.align	2
.LC8:
	.ascii	"[ROCK], Player wins!\000"
	.align	2
.LC9:
	.ascii	"[#%3d] Player: [SCISSORS], Computer: \000"
	.align	2
.LC10:
	.ascii	"[SCISSORS], Draw!\000"
	.align	2
.LC11:
	.ascii	"[ROCK], Computer wins!\000"
	.align	2
.LC12:
	.ascii	"[PAPER], Player wins!\000"
	.align	2
.LC13:
	.ascii	"Exit the game!\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.align	2
.LC14:
	.ascii	"Played: %3d, Win rate: %.2f%%\012\000"
	.align	2
.LC15:
	.ascii	"Wrong input!\000"
	.align	2
.LC16:
	.ascii	"r: Rock, p: Paper, s: Scissors, h: Help, e: Exit\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r0, .L29
	bl	puts
	mov	r3, #104
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
.L24:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L26
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L4
	ldr	r0, [fp, #-24]
	bl	tolower
	str	r0, [fp, #-24]
.L4:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #101
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L9
	.word	.L5
	.word	.L8
	.word	.L6
.L8:
	bl	rand
	mov	r2, r0
	ldr	r3, .L29+4
	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, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+8
	bl	printf
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L29+12
	bl	puts
	b	.L14
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L13
	ldr	r0, .L29+16
	bl	puts
	b	.L14
.L13:
	ldr	r0, .L29+20
	bl	puts
	mov	r2, #0
	ldr	r3, .L29+24
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L14
.L9:
	bl	rand
	mov	r2, r0
	ldr	r3, .L29+4
	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, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+28
	bl	printf
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L15
	ldr	r0, .L29+32
	bl	puts
	b	.L14
.L15:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L17
	ldr	r0, .L29+36
	bl	puts
	b	.L14
.L17:
	ldr	r0, .L29+40
	bl	puts
	mov	r2, #0
	ldr	r3, .L29+24
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L14
.L6:
	bl	rand
	mov	r2, r0
	ldr	r3, .L29+4
	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, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+44
	bl	printf
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L18
	ldr	r0, .L29+48
	bl	puts
	b	.L14
.L18:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L29+52
	bl	puts
	b	.L14
.L20:
	ldr	r0, .L29+56
	bl	puts
	mov	r2, #0
	ldr	r3, .L29+24
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L14
.L10:
	ldr	r0, .L29+60
	bl	puts
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L27
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L29+64
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+68
	bl	printf
	b	.L27
.L5:
	ldr	r3, [fp, #-24]
	cmp	r3, #104
	beq	.L22
	ldr	r0, .L29+72
	bl	puts
.L22:
	ldr	r0, .L29+76
	bl	puts
	b	.L14
.L27:
	nop
.L14:
	ldr	r3, [fp, #-24]
	cmp	r3, #101
	beq	.L28
	b	.L3
.L26:
	nop
.L3:
	bl	getchar
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L24
	b	.L23
.L28:
	nop
.L23:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC0
	.word	1431655766
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1072693248
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	1079574528
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
