	.file	"405724.c"
	.intel_syntax noprefix
	.text
	.globl	dice
	.bss
	.align 4
	.type	dice, @object
	.size	dice, 4
dice:
	.zero	4
	.globl	player_choice
	.align 4
	.type	player_choice, @object
	.size	player_choice, 4
player_choice:
	.zero	4
	.globl	player_round
	.align 4
	.type	player_round, @object
	.size	player_round, 4
player_round:
	.zero	4
	.globl	player_total
	.align 4
	.type	player_total, @object
	.size	player_total, 4
player_total:
	.zero	4
	.globl	comp_choice
	.align 4
	.type	comp_choice, @object
	.size	comp_choice, 4
comp_choice:
	.zero	4
	.globl	comp_continue
	.align 4
	.type	comp_continue, @object
	.size	comp_continue, 4
comp_continue:
	.zero	4
	.globl	comp_round
	.align 4
	.type	comp_round, @object
	.size	comp_round, 4
comp_round:
	.zero	4
	.globl	comp_total
	.align 4
	.type	comp_total, @object
	.size	comp_total, 4
comp_total:
	.zero	4
	.globl	comp_cycle
	.align 4
	.type	comp_cycle, @object
	.size	comp_cycle, 4
comp_cycle:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Player's turn: "
.LC1:
	.string	" [1] Roll \n [2] Hold "
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"Uh-oh, you rolled a 1. All current round points removed. "
.LC4:
	.string	"Player total: %d \n"
.LC5:
	.string	"You rolled a %d \n"
.LC6:
	.string	"Player round points: %d\n"
.LC7:
	.string	"You held."
.LC8:
	.string	"Player total: %d. \n"
.LC9:
	.string	"Player wins! "
	.align 8
.LC10:
	.string	"Invalid input, please enter a number that is 1 or 2."
	.text
	.globl	player
	.type	player, @function
player:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L8:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rsi, player_choice[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR player_choice[rip]
	cmp	eax, 1
	jne	.L2
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, edx
	sar	esi, 31
	mov	ecx, eax
	sub	ecx, esi
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	ecx, edx
	lea	eax, 1[rcx]
	mov	DWORD PTR dice[rip], eax
	mov	eax, DWORD PTR dice[rip]
	cmp	eax, 1
	jne	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR player_round[rip], 0
	mov	eax, DWORD PTR player_total[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L1
.L3:
	mov	eax, DWORD PTR dice[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR player_round[rip]
	mov	eax, DWORD PTR dice[rip]
	add	eax, edx
	mov	DWORD PTR player_round[rip], eax
	mov	eax, DWORD PTR player_round[rip]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L2:
	mov	eax, DWORD PTR player_choice[rip]
	cmp	eax, 2
	jne	.L6
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edx, DWORD PTR player_total[rip]
	mov	eax, DWORD PTR player_round[rip]
	add	eax, edx
	mov	DWORD PTR player_total[rip], eax
	mov	eax, DWORD PTR player_total[rip]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR player_total[rip]
	cmp	eax, 99
	jle	.L7
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L7:
	mov	DWORD PTR player_round[rip], 0
	jmp	.L1
.L6:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	nop
.L5:
	jmp	.L8
.L1:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	player, .-player
	.section	.rodata
	.align 8
.LC11:
	.string	"Computer rolled a 1 so it's original total remains."
.LC12:
	.string	"Computer's total is %d: \n"
.LC13:
	.string	"Computer rolled a %d \n"
.LC14:
	.string	"Computer wins!"
.LC15:
	.string	"The computer held. "
.LC16:
	.string	"Computer total: %d \n"
	.text
	.globl	computer
	.type	computer, @function
computer:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
.L15:
	call	rand@PLT
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	add	eax, 1
	mov	DWORD PTR comp_choice[rip], eax
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, edx
	sar	esi, 31
	mov	ecx, eax
	sub	ecx, esi
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	lea	eax, 1[rcx]
	mov	DWORD PTR dice[rip], eax
	mov	eax, DWORD PTR comp_cycle[rip]
	add	eax, 1
	mov	DWORD PTR comp_cycle[rip], eax
	mov	eax, DWORD PTR comp_choice[rip]
	cmp	eax, 1
	jne	.L15
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, edx
	sar	esi, 31
	mov	ecx, eax
	sub	ecx, esi
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	lea	eax, 1[rcx]
	mov	DWORD PTR dice[rip], eax
	mov	eax, DWORD PTR dice[rip]
	cmp	eax, 1
	jne	.L11
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	DWORD PTR comp_round[rip], 0
	mov	eax, DWORD PTR comp_total[rip]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L11:
	mov	edx, DWORD PTR comp_round[rip]
	mov	eax, DWORD PTR dice[rip]
	add	eax, edx
	mov	DWORD PTR comp_round[rip], eax
	mov	eax, DWORD PTR dice[rip]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR comp_total[rip]
	cmp	eax, 99
	jle	.L13
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L13:
	call	rand@PLT
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	add	eax, 1
	mov	DWORD PTR comp_continue[rip], eax
	nop
	mov	eax, DWORD PTR comp_continue[rip]
	cmp	eax, 1
	je	.L16
	mov	eax, DWORD PTR comp_continue[rip]
	cmp	eax, 2
	jne	.L15
	mov	eax, DWORD PTR comp_cycle[rip]
	cmp	eax, 1
	jle	.L15
	mov	edx, DWORD PTR comp_total[rip]
	mov	eax, DWORD PTR comp_round[rip]
	add	eax, edx
	mov	DWORD PTR comp_total[rip], eax
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	eax, DWORD PTR comp_total[rip]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR comp_round[rip], 0
	jmp	.L9
.L16:
	nop
	jmp	.L15
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	computer, .-computer
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
.L18:
	mov	eax, 0
	call	player
	mov	eax, 0
	call	computer
	jmp	.L18
	.cfi_endproc
.LFE8:
	.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	"405724.c"
	.text
	.comm	dice,4,4
	.comm	player_choice,4,4
	.comm	player_round,4,4
	.comm	player_total,4,4
	.comm	comp_choice,4,4
	.comm	comp_continue,4,4
	.comm	comp_round,4,4
	.comm	comp_total,4,4
	.comm	comp_cycle,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Player's turn: \000"
	.align	2
.LC1:
	.ascii	" [1] Roll \012 [2] Hold \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Uh-oh, you rolled a 1. All current round points rem"
	.ascii	"oved. \000"
	.align	2
.LC4:
	.ascii	"Player total: %d \012\000"
	.align	2
.LC5:
	.ascii	"You rolled a %d \012\000"
	.align	2
.LC6:
	.ascii	"Player round points: %d\012\000"
	.align	2
.LC7:
	.ascii	"You held.\000"
	.align	2
.LC8:
	.ascii	"Player total: %d. \012\000"
	.align	2
.LC9:
	.ascii	"Player wins! \000"
	.align	2
.LC10:
	.ascii	"Invalid input, please enter a number that is 1 or 2"
	.ascii	".\000"
	.text
	.align	2
	.global	player
	.syntax unified
	.arm
	.fpu softvfp
	.type	player, %function
player:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r0, .L9
	bl	puts
.L8:
	ldr	r0, .L9+4
	bl	puts
	ldr	r1, .L9+8
	ldr	r0, .L9+12
	bl	__isoc99_scanf
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L2
	bl	rand
	mov	r1, r0
	ldr	r3, .L9+16
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1
	ldr	r2, .L9+20
	str	r3, [r2]
	ldr	r3, .L9+20
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L3
	ldr	r0, .L9+24
	bl	puts
	ldr	r3, .L9+28
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L9+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+36
	bl	printf
	pop	{fp, pc}
.L3:
	ldr	r3, .L9+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+40
	bl	printf
	ldr	r3, .L9+28
	ldr	r2, [r3]
	ldr	r3, .L9+20
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L9+28
	str	r3, [r2]
	ldr	r3, .L9+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+44
	bl	printf
	b	.L5
.L2:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L6
	ldr	r0, .L9+48
	bl	puts
	ldr	r3, .L9+32
	ldr	r2, [r3]
	ldr	r3, .L9+28
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L9+32
	str	r3, [r2]
	ldr	r3, .L9+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+52
	bl	printf
	ldr	r3, .L9+32
	ldr	r3, [r3]
	cmp	r3, #99
	ble	.L7
	ldr	r0, .L9+56
	bl	puts
	mov	r0, #0
	bl	exit
.L7:
	ldr	r3, .L9+28
	mov	r2, #0
	str	r2, [r3]
	pop	{fp, pc}
.L6:
	ldr	r0, .L9+60
	bl	puts
	nop
.L5:
	b	.L8
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	player_choice
	.word	.LC2
	.word	715827883
	.word	dice
	.word	.LC3
	.word	player_round
	.word	player_total
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	player, .-player
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Computer rolled a 1 so it's original total remains."
	.ascii	"\000"
	.align	2
.LC12:
	.ascii	"Computer's total is %d: \012\000"
	.align	2
.LC13:
	.ascii	"Computer rolled a %d \012\000"
	.align	2
.LC14:
	.ascii	"Computer wins!\000"
	.align	2
.LC15:
	.ascii	"The computer held. \000"
	.align	2
.LC16:
	.ascii	"Computer total: %d \012\000"
	.text
	.align	2
	.global	computer
	.syntax unified
	.arm
	.fpu softvfp
	.type	computer, %function
computer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
.L17:
	bl	rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	add	r3, r3, #1
	ldr	r2, .L19
	str	r3, [r2]
	bl	rand
	mov	r1, r0
	ldr	r3, .L19+4
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1
	ldr	r2, .L19+8
	str	r3, [r2]
	ldr	r3, .L19+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19+12
	str	r3, [r2]
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L17
	bl	rand
	mov	r1, r0
	ldr	r3, .L19+4
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1
	ldr	r2, .L19+8
	str	r3, [r2]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L13
	ldr	r0, .L19+16
	bl	puts
	ldr	r3, .L19+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+28
	bl	printf
	pop	{fp, pc}
.L13:
	ldr	r3, .L19+20
	ldr	r2, [r3]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L19+20
	str	r3, [r2]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+32
	bl	printf
	ldr	r3, .L19+24
	ldr	r3, [r3]
	cmp	r3, #99
	ble	.L15
	ldr	r0, .L19+36
	bl	puts
	mov	r0, #0
	bl	exit
.L15:
	bl	rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	add	r3, r3, #1
	ldr	r2, .L19+40
	str	r3, [r2]
	nop
	ldr	r3, .L19+40
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L18
	ldr	r3, .L19+40
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L17
	ldr	r3, .L19+12
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L17
	ldr	r3, .L19+24
	ldr	r2, [r3]
	ldr	r3, .L19+20
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L19+24
	str	r3, [r2]
	ldr	r0, .L19+44
	bl	puts
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+48
	bl	printf
	ldr	r3, .L19+20
	mov	r2, #0
	str	r2, [r3]
	pop	{fp, pc}
.L18:
	nop
	b	.L17
.L20:
	.align	2
.L19:
	.word	comp_choice
	.word	715827883
	.word	dice
	.word	comp_cycle
	.word	.LC11
	.word	comp_round
	.word	comp_total
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	comp_continue
	.word	.LC15
	.word	.LC16
	.size	computer, .-computer
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
.L22:
	bl	player
	bl	computer
	b	.L22
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
