	.file	"556685.c"
	.intel_syntax noprefix
	.text
	.globl	roll_dice
	.type	roll_dice, @function
roll_dice:
.LFB6:
	.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, 8
	.cfi_offset 3, -24
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	mov	ebx, eax
	sub	ebx, ecx
	mov	eax, ebx
	add	eax, eax
	add	eax, ebx
	add	eax, eax
	sub	edx, eax
	mov	ebx, edx
	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, [rbx+rcx]
	add	eax, 2
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	roll_dice, .-roll_dice
	.section	.rodata
.LC0:
	.string	"You rolled: %d\n"
.LC1:
	.string	"Your point is %d\n"
	.text
	.globl	play_game
	.type	play_game, @function
play_game:
.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
	mov	eax, 0
	call	roll_dice
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -8[rbp], 7
	je	.L4
	cmp	DWORD PTR -8[rbp], 11
	jne	.L5
.L4:
	mov	eax, 1
	jmp	.L6
.L5:
	cmp	DWORD PTR -8[rbp], 2
	je	.L7
	cmp	DWORD PTR -8[rbp], 3
	je	.L7
	cmp	DWORD PTR -8[rbp], 12
	jne	.L8
.L7:
	mov	eax, 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	mov	eax, 0
	call	roll_dice
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -8[rbp], 7
	jne	.L9
	mov	eax, 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	je	.L14
	jmp	.L12
.L14:
	nop
	mov	eax, 1
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	play_game, .-play_game
	.section	.rodata
.LC2:
	.string	"You win!"
.LC3:
	.string	"You lose!"
.LC4:
	.string	""
.LC5:
	.string	"Play again? "
.LC6:
	.string	" %c"
.LC7:
	.string	"Wins: %d  Losses: %d\n"
	.text
	.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
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
.L20:
	mov	eax, 0
	call	play_game
	test	al, al
	je	.L16
	lea	rdi, .LC2[rip]
	call	puts@PLT
	add	DWORD PTR -16[rbp], 1
	jmp	.L17
.L16:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	add	DWORD PTR -12[rbp], 1
.L17:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	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
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 121
	je	.L20
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 89
	jne	.L19
	jmp	.L20
.L19:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"556685.c"
	.text
	.align	2
	.global	roll_dice
	.syntax unified
	.arm
	.fpu softvfp
	.type	roll_dice, %function
roll_dice:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	bl	rand
	mov	r2, r0
	ldr	r3, .L3
	smull	r0, r1, r3, r2
	asr	r3, r2, #31
	sub	r4, r1, r3
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r3, r4
	lsl	r3, r3, #1
	sub	r4, r2, r3
	bl	rand
	mov	r1, r0
	ldr	r3, .L3
	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, r4, r2
	add	r3, r3, #2
	mov	r0, r3
	pop	{r4, r5, fp, pc}
.L4:
	.align	2
.L3:
	.word	715827883
	.size	roll_dice, .-roll_dice
	.section	.rodata
	.align	2
.LC0:
	.ascii	"You rolled: %d\012\000"
	.align	2
.LC1:
	.ascii	"Your point is %d\012\000"
	.text
	.align	2
	.global	play_game
	.syntax unified
	.arm
	.fpu softvfp
	.type	play_game, %function
play_game:
	@ 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	roll_dice
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L17
	bl	printf
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	beq	.L6
	ldr	r3, [fp, #-12]
	cmp	r3, #11
	bne	.L7
.L6:
	mov	r3, #1
	b	.L8
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	beq	.L9
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	beq	.L9
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	bne	.L10
.L9:
	mov	r3, #0
	b	.L8
.L10:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L17+4
	bl	printf
.L14:
	bl	roll_dice
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L17
	bl	printf
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	bne	.L11
	mov	r3, #0
	b	.L8
.L11:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	beq	.L16
	b	.L14
.L16:
	nop
	mov	r3, #1
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.size	play_game, .-play_game
	.section	.rodata
	.align	2
.LC2:
	.ascii	"You win!\000"
	.align	2
.LC3:
	.ascii	"You lose!\000"
	.align	2
.LC4:
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"Play again? \000"
	.align	2
.LC6:
	.ascii	" %c\000"
	.align	2
.LC7:
	.ascii	"Wins: %d  Losses: %d\012\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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
.L24:
	bl	play_game
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r0, .L27+4
	bl	puts
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L21
.L20:
	ldr	r0, .L27+8
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r0, .L27+12
	bl	puts
	ldr	r0, .L27+16
	bl	printf
	sub	r3, fp, #17
	mov	r1, r3
	ldr	r0, .L27+20
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L24
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #89
	bne	.L23
	b	.L24
.L23:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L27+24
	bl	printf
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC8
	.word	.LC2
	.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
