	.file	"36076285.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rock"
.LC1:
	.string	"paper"
.LC2:
	.string	"scissors"
	.align 8
.LC3:
	.string	"Welcome to Rock, Paper, Scissors! \nHow many rounds do you want to play?  "
.LC4:
	.string	"%d"
	.align 8
.LC5:
	.string	"Which do you choose? rock, paper, or scissors? "
.LC6:
	.string	"%s"
	.align 8
.LC7:
	.string	"invalid input- you must choose rock, paper, or scissors"
.LC8:
	.string	"AI chooses %s\n"
	.align 8
.LC9:
	.string	"AI score: %d, Player score: %d\n\n"
	.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, 96
	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	rax, .LC0[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -92[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	DWORD PTR -80[rbp], 0
	jmp	.L2
.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 -68[rbp], edx
	mov	ecx, DWORD PTR -68[rbp]
	mov	edx, ecx
	add	edx, edx
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -68[rbp], eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -17[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -17[rbp]
	mov	rdi, rax
	call	checkPlayerInput
	cmp	eax, 1
	jne	.L3
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L8
.L3:
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	choiceToWord
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -17[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	printOutcome
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	add	DWORD PTR -88[rbp], 1
	jmp	.L6
.L5:
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -17[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	add	DWORD PTR -84[rbp], 1
.L6:
	mov	edx, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -80[rbp], 1
.L2:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L7
	mov	edx, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, edx
	mov	edi, eax
	call	printWinner
	mov	eax, 0
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	checkPlayerInput
	.type	checkPlayerInput, @function
checkPlayerInput:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	imul	ebx, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	imul	eax, ebx
	test	eax, eax
	jne	.L11
	mov	eax, 0
	jmp	.L12
.L11:
	mov	eax, 1
.L12:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	checkPlayerInput, .-checkPlayerInput
	.section	.rodata
.LC10:
	.string	"invalid choice"
	.text
	.globl	choiceToWord
	.type	choiceToWord, @function
choiceToWord:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L15
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	jmp	.L16
.L15:
	add	DWORD PTR -4[rbp], 1
.L14:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L17
	lea	rax, .LC10[rip]
.L16:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	choiceToWord, .-choiceToWord
	.section	.rodata
.LC11:
	.string	"It's a tie!"
.LC12:
	.string	"tie"
.LC13:
	.string	"Paper covers rock"
.LC14:
	.string	"Rock bashes scissors"
.LC15:
	.string	"Scissors cut paper"
	.text
	.globl	printOutcome
	.type	printOutcome, @function
printOutcome:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L19
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rax, .LC12[rip]
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	strcmp@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	strcmp@PLT
	imul	eax, ebx
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	strcmp@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	strcmp@PLT
	imul	eax, ebx
	test	eax, eax
	jne	.L22
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rax, .LC1[rip]
	jmp	.L20
.L22:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rax, .LC0[rip]
	jmp	.L20
.L21:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rax, .LC2[rip]
.L20:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printOutcome, .-printOutcome
	.section	.rodata
.LC16:
	.string	"its a tie!"
.LC17:
	.string	"AI wins"
.LC18:
	.string	"You win!"
	.text
	.globl	printWinner
	.type	printWinner, @function
printWinner:
.LFB10:
	.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
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jne	.L24
	lea	rdi, .LC16[rip]
	call	puts@PLT
	jmp	.L27
.L24:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jle	.L26
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L27
.L26:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jge	.L27
	lea	rdi, .LC18[rip]
	call	puts@PLT
.L27:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	printWinner, .-printWinner
	.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	"36076285.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rock\000"
	.align	2
.LC1:
	.ascii	"paper\000"
	.align	2
.LC2:
	.ascii	"scissors\000"
	.text
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Welcome to Rock, Paper, Scissors! \012How many roun"
	.ascii	"ds do you want to play?  \000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"Which do you choose? rock, paper, or scissors? \000"
	.align	2
.LC8:
	.ascii	"%s\000"
	.align	2
.LC9:
	.ascii	"invalid input- you must choose rock, paper, or scis"
	.ascii	"sors\000"
	.align	2
.LC10:
	.ascii	"AI chooses %s\012\000"
	.align	2
.LC11:
	.ascii	"AI score: %d, Player score: %d\012\012\000"
	.align	2
.LC4:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.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 = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r2, .L10+4
	sub	r3, fp, #32
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r0, .L10+8
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L10+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L2
.L7:
	bl	rand
	mov	r2, r0
	ldr	r3, .L10+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, #-44]
	ldr	r0, .L10+20
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L10+24
	bl	__isoc99_scanf
	sub	r3, fp, #20
	mov	r0, r3
	bl	checkPlayerInput
	mov	r3, r0
	cmp	r3, #1
	bne	.L3
	ldr	r0, .L10+28
	bl	puts
	mov	r3, #0
	b	.L8
.L3:
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	choiceToWord
	str	r0, [fp, #-40]
	ldr	r1, [fp, #-40]
	ldr	r0, .L10+32
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	printOutcome
	str	r0, [fp, #-36]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	b	.L6
.L5:
	sub	r3, fp, #20
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L6:
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-64]
	ldr	r0, .L10+36
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L2:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L7
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-64]
	bl	printWinner
	mov	r3, #0
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC12
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	1431655766
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.align	2
	.global	checkPlayerInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkPlayerInput, %function
checkPlayerInput:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r1, .L15
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r4, r0
	ldr	r1, .L15+4
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	mul	r4, r3, r4
	ldr	r1, .L15+8
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	mul	r3, r4, r3
	cmp	r3, #0
	bne	.L13
	mov	r3, #0
	b	.L14
.L13:
	mov	r3, #1
.L14:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	checkPlayerInput, .-checkPlayerInput
	.section	.rodata
	.align	2
.LC13:
	.ascii	"invalid choice\000"
	.text
	.align	2
	.global	choiceToWord
	.syntax unified
	.arm
	.fpu softvfp
	.type	choiceToWord, %function
choiceToWord:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L21:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L19
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L20
.L19:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L21
	ldr	r3, .L22
.L20:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	.LC13
	.size	choiceToWord, .-choiceToWord
	.section	.rodata
	.align	2
.LC14:
	.ascii	"It's a tie!\000"
	.align	2
.LC15:
	.ascii	"tie\000"
	.align	2
.LC16:
	.ascii	"Paper covers rock\000"
	.align	2
.LC17:
	.ascii	"Rock bashes scissors\000"
	.align	2
.LC18:
	.ascii	"Scissors cut paper\000"
	.text
	.align	2
	.global	printOutcome
	.syntax unified
	.arm
	.fpu softvfp
	.type	printOutcome, %function
printOutcome:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	strcmp
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L29
	bl	puts
	ldr	r3, .L29+4
	b	.L26
.L25:
	ldr	r1, [fp, #-24]
	ldr	r0, .L29+8
	bl	strcmp
	mov	r4, r0
	ldr	r1, [fp, #-28]
	ldr	r0, .L29+8
	bl	strcmp
	mov	r3, r0
	mul	r3, r4, r3
	cmp	r3, #0
	bne	.L27
	ldr	r1, [fp, #-24]
	ldr	r0, .L29+12
	bl	strcmp
	mov	r4, r0
	ldr	r1, [fp, #-28]
	ldr	r0, .L29+12
	bl	strcmp
	mov	r3, r0
	mul	r3, r4, r3
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L29+16
	bl	puts
	ldr	r3, .L29+12
	b	.L26
.L28:
	ldr	r0, .L29+20
	bl	puts
	ldr	r3, .L29+8
	b	.L26
.L27:
	ldr	r0, .L29+24
	bl	puts
	ldr	r3, .L29+28
.L26:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC14
	.word	.LC15
	.word	.LC0
	.word	.LC1
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC2
	.size	printOutcome, .-printOutcome
	.section	.rodata
	.align	2
.LC19:
	.ascii	"its a tie!\000"
	.align	2
.LC20:
	.ascii	"AI wins\000"
	.align	2
.LC21:
	.ascii	"You win!\000"
	.text
	.align	2
	.global	printWinner
	.syntax unified
	.arm
	.fpu softvfp
	.type	printWinner, %function
printWinner:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L32
	ldr	r0, .L36
	bl	puts
	b	.L35
.L32:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L34
	ldr	r0, .L36+4
	bl	puts
	b	.L35
.L34:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L35
	ldr	r0, .L36+8
	bl	puts
.L35:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	printWinner, .-printWinner
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
