	.file	"36075434.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Point is %d\n"
.LC1:
	.string	"Player wins"
.LC2:
	.string	"Player loses"
	.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, 16
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rollDice
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 12
	je	.L2
	cmp	DWORD PTR -4[rbp], 12
	jg	.L3
	cmp	DWORD PTR -4[rbp], 11
	je	.L4
	cmp	DWORD PTR -4[rbp], 11
	jg	.L3
	cmp	DWORD PTR -4[rbp], 3
	jg	.L5
	cmp	DWORD PTR -4[rbp], 2
	jge	.L2
	jmp	.L3
.L5:
	cmp	DWORD PTR -4[rbp], 7
	jne	.L3
.L4:
	mov	DWORD PTR -8[rbp], 1
	jmp	.L6
.L2:
	mov	DWORD PTR -8[rbp], 2
	jmp	.L6
.L3:
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L6:
	jmp	.L7
.L9:
	call	rollDice
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jne	.L8
	mov	DWORD PTR -8[rbp], 1
	jmp	.L7
.L8:
	cmp	DWORD PTR -4[rbp], 7
	jne	.L7
	mov	DWORD PTR -8[rbp], 2
.L7:
	cmp	DWORD PTR -8[rbp], 0
	je	.L9
	cmp	DWORD PTR -8[rbp], 1
	jne	.L10
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L11
.L10:
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L11:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"Player rolled %d + %d = %d\n"
	.text
	.globl	rollDice
	.type	rollDice, @function
rollDice:
.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
	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 -12[rbp], 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
	sub	edx, eax
	mov	ecx, edx
	lea	eax, 1[rcx]
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	rollDice, .-rollDice
	.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	"36075434.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Point is %d\012\000"
	.align	2
.LC1:
	.ascii	"Player wins\000"
	.align	2
.LC2:
	.ascii	"Player loses\000"
	.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
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rollDice
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #2
	cmp	r3, #10
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L3
	.word	.L3
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L5
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L5
	.word	.L3
.L5:
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L6
.L3:
	mov	r3, #2
	str	r3, [fp, #-12]
	b	.L6
.L2:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, .L13
	bl	printf
	nop
.L6:
	b	.L7
.L9:
	bl	rollDice
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L8
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	bne	.L7
	mov	r3, #2
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L10
	ldr	r0, .L13+4
	bl	puts
	b	.L11
.L10:
	ldr	r0, .L13+8
	bl	puts
.L11:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Player rolled %d + %d = %d\012\000"
	.text
	.align	2
	.global	rollDice
	.syntax unified
	.arm
	.fpu softvfp
	.type	rollDice, %function
rollDice:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	bl	rand
	mov	r1, r0
	ldr	r3, .L17
	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
	str	r3, [fp, #-16]
	bl	rand
	mov	r1, r0
	ldr	r3, .L17
	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
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L17+4
	bl	printf
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	715827883
	.word	.LC3
	.size	rollDice, .-rollDice
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
