	.file	"193297.c"
	.intel_syntax noprefix
	.text
	.globl	game
	.bss
	.align 32
	.type	game, @object
	.size	game, 288
game:
	.zero	288
	.globl	symbol
	.data
	.type	symbol, @object
	.size	symbol, 6
symbol:
	.ascii	"BDESAP"
	.globl	symbol2
	.type	symbol2, @object
	.size	symbol2, 6
symbol2:
	.ascii	"$#*!^+"
	.globl	winningCharArray
	.align 8
	.type	winningCharArray, @object
	.size	winningCharArray, 12
winningCharArray:
	.ascii	"BDE"
	.ascii	"BDS"
	.ascii	"BDP"
	.ascii	"BDA"
	.globl	winningSymboleArray
	.align 16
	.type	winningSymboleArray, @object
	.size	winningSymboleArray, 18
winningSymboleArray:
	.ascii	"$$$"
	.ascii	"###"
	.ascii	"!!!"
	.ascii	"^^^"
	.ascii	"***"
	.ascii	"+++"
	.globl	winningProfitArray
	.align 16
	.type	winningProfitArray, @object
	.size	winningProfitArray, 16
winningProfitArray:
	.long	200
	.long	100
	.long	50
	.long	25
	.globl	winningProfitArray2
	.align 16
	.type	winningProfitArray2, @object
	.size	winningProfitArray2, 24
winningProfitArray2:
	.long	200
	.long	100
	.long	50
	.long	25
	.long	10
	.long	5
	.section	.rodata
.LC0:
	.string	"clear"
	.text
	.globl	clearScreen
	.type	clearScreen, @function
clearScreen:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	system@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	clearScreen, .-clearScreen
	.section	.rodata
	.align 8
.LC1:
	.string	"\t \t /$$$$$$$        /$$$$$$$        /$$$$$$$$                "
	.align 8
.LC2:
	.string	"\t\t| $$__  $$      | $$__  $$      | $$_____/                "
	.align 8
.LC3:
	.string	"\t        | $$  \\ $$      | $$  \\ $$      | $$                      "
	.align 8
.LC4:
	.string	"\t        | $$$$$$$       | $$  | $$      | $$$$$                   "
	.align 8
.LC5:
	.string	"\t        | $$__  $$      | $$  | $$      | $$__/                   "
	.align 8
.LC6:
	.string	"\t        | $$  \\ $$      | $$  | $$      | $$                      "
	.align 8
.LC7:
	.string	"\t        | $$$$$$$/      | $$$$$$$/      | $$$$$$$$                "
	.align 8
.LC8:
	.string	"\t        |_______/       |_______/       |________/                "
	.align 8
.LC9:
	.string	"\t                                                                  "
	.align 8
.LC10:
	.string	"    /$$$$$  /$$$$$$   /$$$$$$  /$$   /$$ /$$$$$$$   /$$$$$$  /$$$$$$$$"
	.align 8
.LC11:
	.string	"   |__  $$ /$$__  $$ /$$__  $$| $$  /$$/| $$__  $$ /$$__  $$|__  $$__/"
	.align 8
.LC12:
	.string	"      | $$| $$  \\ $$| $$  \\__/| $$ /$$/ | $$  \\ $$| $$  \\ $$   | $$   "
	.align 8
.LC13:
	.string	"      | $$| $$$$$$$$| $$      | $$$$$/  | $$$$$$$/| $$  | $$   | $$   "
	.align 8
.LC14:
	.string	" /$$  | $$| $$__  $$| $$      | $$  $$  | $$____/ | $$  | $$   | $$   "
	.align 8
.LC15:
	.string	"| $$  | $$| $$  | $$| $$    $$| $$\\  $$ | $$      | $$  | $$   | $$   "
	.align 8
.LC16:
	.string	"|  $$$$$$/| $$  | $$|  $$$$$$/| $$ \\  $$| $$      |  $$$$$$/   | $$   "
	.align 8
.LC17:
	.string	" \\______/ |__/  |__/ \\______/ |__/  \\__/|__/       \\______/    |__/   "
	.align 8
.LC18:
	.string	"                /$$             /$$             /$$   "
	.align 8
.LC19:
	.string	"              /$$$$$$         /$$$$$$         /$$$$$$ "
	.align 8
.LC20:
	.string	"             /$$__  $$       /$$__  $$       /$$__  $$"
	.align 8
.LC21:
	.string	"            | $$  \\__/      | $$  \\__/      | $$  \\__/"
	.align 8
.LC22:
	.string	"            |  $$$$$$       |  $$$$$$       |  $$$$$$ "
	.align 8
.LC23:
	.string	"             \\____  $$       \\____  $$       \\____  $$"
	.align 8
.LC24:
	.string	"             /$$  \\ $$       /$$  \\ $$       /$$  \\ $$"
	.align 8
.LC25:
	.string	"            |  $$$$$$/      |  $$$$$$/      |  $$$$$$/"
	.align 8
.LC26:
	.string	"             \\_  $$_/        \\_  $$_/        \\_  $$_/ "
	.align 8
.LC27:
	.string	"               \\__/            \\__/            \\__/   "
	.text
	.globl	printJackpot
	.type	printJackpot, @function
printJackpot:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	clearScreen
	mov	eax, DWORD PTR game[rip+280]
	cmp	eax, 1
	jne	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L5
.L3:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
	lea	rdi, .LC25[rip]
	call	puts@PLT
	lea	rdi, .LC26[rip]
	call	puts@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 10
	call	putchar@PLT
.L5:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printJackpot, .-printJackpot
	.globl	printBlinkingJackpotFor
	.type	printBlinkingJackpotFor, @function
printBlinkingJackpotFor:
.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L8:
	mov	eax, 0
	call	clearScreen
	mov	edi, 1
	call	sleep@PLT
	mov	eax, 0
	call	printJackpot
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -4[rbp], eax
	jl	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printBlinkingJackpotFor, .-printBlinkingJackpotFor
	.globl	clearInputBuffer
	.type	clearInputBuffer, @function
clearInputBuffer:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
.L10:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L10
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	clearInputBuffer, .-clearInputBuffer
	.globl	resetGame
	.type	resetGame, @function
resetGame:
.LFB10:
	.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 game[rip+272], 0
	mov	DWORD PTR game[rip+268], 0
	mov	DWORD PTR game[rip+284], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	resetGame, .-resetGame
	.section	.rodata
.LC28:
	.string	"Result: %c %c %c\n\n"
.LC29:
	.string	"You bet: %d\n\n"
	.align 8
.LC30:
	.string	"You win %d, Congratulations !\nYour new balance is %d\n"
	.align 8
.LC31:
	.string	"Sorry, you lost the game bitch ! Your balance is %d\n"
	.text
	.globl	printResult
	.type	printResult, @function
printResult:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR game[rip+276]
	cmp	eax, 1
	je	.L13
	movzx	eax, BYTE PTR game[rip+2]
	movsx	ecx, al
	movzx	eax, BYTE PTR game[rip+1]
	movsx	edx, al
	movzx	eax, BYTE PTR game[rip]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	eax, DWORD PTR game[rip+268]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR game[rip+272]
	test	eax, eax
	jle	.L14
	mov	eax, DWORD PTR game[rip+284]
	cmp	eax, 1
	je	.L15
	mov	eax, DWORD PTR game[rip+276]
	cmp	eax, 1
	jne	.L16
.L15:
	mov	edi, 6
	call	printBlinkingJackpotFor
.L16:
	mov	edx, DWORD PTR game[rip+4]
	mov	eax, DWORD PTR game[rip+272]
	mov	esi, eax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L14:
	mov	eax, DWORD PTR game[rip+4]
	mov	esi, eax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	printResult, .-printResult
	.section	.rodata
	.align 8
.LC32:
	.string	"\nDo you want to continue ? (y/n)"
.LC33:
	.string	"%c"
	.align 8
.LC34:
	.string	"Sorry dude, your out of money !"
	.text
	.globl	replay
	.type	replay, @function
replay:
.LFB12:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC32[rip]
	call	puts@PLT
	lea	rax, -9[rbp]
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 110
	jne	.L20
	mov	WORD PTR game[rip+264], 0
	jmp	.L21
.L20:
	mov	eax, DWORD PTR game[rip+4]
	test	eax, eax
	jg	.L21
	lea	rdi, .LC34[rip]
	call	puts@PLT
	mov	WORD PTR game[rip+264], 0
.L21:
	mov	eax, 0
	call	resetGame
	mov	eax, 0
	call	clearScreen
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	replay, .-replay
	.globl	updatePlayerBalance
	.type	updatePlayerBalance, @function
updatePlayerBalance:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, DWORD PTR game[rip+4]
	mov	eax, DWORD PTR game[rip+272]
	add	eax, edx
	mov	DWORD PTR game[rip+4], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	updatePlayerBalance, .-updatePlayerBalance
	.globl	getProfitFromResult
	.type	getProfitFromResult, @function
getProfitFromResult:
.LFB14:
	.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L25
	mov	DWORD PTR game[rip+284], 0
.L25:
	cmp	DWORD PTR -4[rbp], 0
	js	.L26
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, winningProfitArray[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR game[rip+268]
	imul	eax, edx
	jmp	.L27
.L26:
	mov	eax, 0
.L27:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	getProfitFromResult, .-getProfitFromResult
	.globl	getResult
	.type	getResult, @function
getResult:
.LFB15:
	.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 -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR game[rip+280]
	cmp	eax, 1
	jne	.L29
	mov	DWORD PTR -16[rbp], 0
	jmp	.L30
.L38:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L31
	mov	DWORD PTR -12[rbp], 0
	jmp	.L32
.L34:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, winningCharArray[rip]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, game[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	jne	.L33
	add	DWORD PTR -20[rbp], 1
.L33:
	add	DWORD PTR -12[rbp], 1
.L32:
	cmp	DWORD PTR -12[rbp], 2
	jle	.L34
	cmp	DWORD PTR -20[rbp], 3
	jne	.L35
	mov	DWORD PTR -24[rbp], 1
.L35:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L48
.L31:
	mov	eax, DWORD PTR -16[rbp]
	jmp	.L37
.L48:
	add	DWORD PTR -16[rbp], 1
.L30:
	cmp	DWORD PTR -16[rbp], 3
	jle	.L38
	jmp	.L39
.L29:
	mov	eax, DWORD PTR game[rip+280]
	cmp	eax, 2
	jne	.L39
	mov	DWORD PTR -8[rbp], 0
	jmp	.L40
.L47:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L41
	mov	DWORD PTR -4[rbp], 0
	jmp	.L42
.L44:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, winningSymboleArray[rip]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, game[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	jne	.L43
	add	DWORD PTR -20[rbp], 1
.L43:
	add	DWORD PTR -4[rbp], 1
.L42:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L44
	cmp	DWORD PTR -20[rbp], 3
	jne	.L45
	mov	DWORD PTR -24[rbp], 1
.L45:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L49
.L41:
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L37
.L49:
	add	DWORD PTR -8[rbp], 1
.L40:
	cmp	DWORD PTR -8[rbp], 5
	jle	.L47
.L39:
	mov	eax, -1
.L37:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	getResult, .-getResult
	.globl	getRandChar
	.type	getRandChar, @function
getRandChar:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR game[rip+280]
	cmp	eax, 1
	jne	.L51
	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
	movsx	rax, ecx
	lea	rdx, symbol[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	jmp	.L52
.L51:
	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
	movsx	rax, ecx
	lea	rdx, symbol2[rip]
	movzx	eax, BYTE PTR [rax+rdx]
.L52:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	getRandChar, .-getRandChar
	.globl	getRandArray
	.type	getRandArray, @function
getRandArray:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	getRandChar
	mov	BYTE PTR game[rip], al
	mov	eax, 0
	call	getRandChar
	mov	BYTE PTR game[rip+1], al
	mov	eax, 0
	call	getRandChar
	mov	BYTE PTR game[rip+2], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	getRandArray, .-getRandArray
	.globl	launchGambling
	.type	launchGambling, @function
launchGambling:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	getRandArray
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	launchGambling, .-launchGambling
	.section	.rodata
.LC35:
	.string	"%d"
	.align 8
.LC36:
	.string	"Please enter a number between 1 & %d\n"
	.text
	.globl	getIntegerLesserThan
	.type	getIntegerLesserThan, @function
getIntegerLesserThan:
.LFB19:
	.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	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
.L58:
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L56
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jg	.L57
.L56:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
.L57:
	mov	eax, 0
	call	clearInputBuffer
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L58
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jle	.L58
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	getIntegerLesserThan, .-getIntegerLesserThan
	.section	.rodata
.LC37:
	.string	"Bet: "
	.align 8
.LC38:
	.string	"Sorry you don't have enought money, your balance is %d\n"
	.text
	.globl	betting
	.type	betting, @function
betting:
.LFB20:
	.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], 0
	jmp	.L62
.L64:
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	getIntegerLesserThan
	mov	DWORD PTR game[rip+268], eax
	mov	edx, DWORD PTR game[rip+268]
	mov	eax, DWORD PTR game[rip+4]
	cmp	edx, eax
	jle	.L63
	mov	eax, DWORD PTR game[rip+4]
	mov	esi, eax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L62
.L63:
	mov	DWORD PTR -4[rbp], 1
.L62:
	cmp	DWORD PTR -4[rbp], 0
	je	.L64
	mov	eax, DWORD PTR game[rip+4]
	mov	edx, DWORD PTR game[rip+268]
	sub	eax, edx
	mov	DWORD PTR game[rip+4], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	betting, .-betting
	.section	.rodata
	.align 8
.LC39:
	.string	"Create your player !\nEnter your name: "
.LC40:
	.string	"%s"
.LC41:
	.string	"Enter your starting balance: "
	.align 8
.LC42:
	.string	"Welcome %s, your balance is %d\n"
	.text
	.globl	newPlayer
	.type	newPlayer, @function
newPlayer:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, game[rip+8]
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, game[rip+4]
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	clearScreen
	mov	eax, DWORD PTR game[rip+4]
	mov	edx, eax
	lea	rsi, game[rip+8]
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR game[rip+272], 0
	mov	WORD PTR game[rip+264], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	newPlayer, .-newPlayer
	.section	.rodata
	.align 8
.LC43:
	.string	"Choose your game mode :\n1 - Chararacter mode\n2 - Symbole mode"
	.text
	.globl	newGame
	.type	newGame, @function
newGame:
.LFB22:
	.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 game[rip+284], 0
	lea	rdi, .LC43[rip]
	call	puts@PLT
	mov	edi, 2
	call	getIntegerLesserThan
	mov	DWORD PTR game[rip+280], eax
	mov	eax, 0
	call	clearScreen
	mov	eax, 0
	call	newPlayer
	jmp	.L67
.L70:
	mov	eax, 0
	call	betting
	mov	eax, 0
	call	clearScreen
	mov	eax, DWORD PTR game[rip+276]
	cmp	eax, 1
	jne	.L68
	mov	edi, 0
	call	getProfitFromResult
	mov	DWORD PTR game[rip+272], eax
	jmp	.L69
.L68:
	mov	eax, 0
	call	launchGambling
	mov	eax, 0
	call	getResult
	mov	edi, eax
	call	getProfitFromResult
	mov	DWORD PTR game[rip+272], eax
.L69:
	mov	eax, 0
	call	updatePlayerBalance
	mov	eax, 0
	call	printResult
	mov	eax, 0
	call	replay
.L67:
	movzx	eax, WORD PTR game[rip+264]
	cmp	ax, 1
	je	.L70
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	newGame, .-newGame
	.section	.rodata
.LC44:
	.string	"god_mode"
.LC45:
	.string	"God Mode activated !"
	.text
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	QWORD PTR -16[rbp], rsi
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, 0
	call	clearScreen
	cmp	DWORD PTR -4[rbp], 1
	jle	.L72
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC44[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L73
	lea	rdi, .LC45[rip]
	call	puts@PLT
	mov	DWORD PTR game[rip+276], 1
	jmp	.L72
.L73:
	mov	DWORD PTR game[rip+276], 0
.L72:
	mov	eax, 0
	call	newGame
	mov	eax, 42
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.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	"193297.c"
	.text
	.comm	game,288,4
	.global	symbol
	.data
	.align	2
	.type	symbol, %object
	.size	symbol, 6
symbol:
	.ascii	"BDESAP"
	.global	symbol2
	.align	2
	.type	symbol2, %object
	.size	symbol2, 6
symbol2:
	.ascii	"$#*!^+"
	.global	winningCharArray
	.align	2
	.type	winningCharArray, %object
	.size	winningCharArray, 12
winningCharArray:
	.ascii	"BDE"
	.ascii	"BDS"
	.ascii	"BDP"
	.ascii	"BDA"
	.global	winningSymboleArray
	.align	2
	.type	winningSymboleArray, %object
	.size	winningSymboleArray, 18
winningSymboleArray:
	.ascii	"$$$"
	.ascii	"###"
	.ascii	"!!!"
	.ascii	"^^^"
	.ascii	"***"
	.ascii	"+++"
	.global	winningProfitArray
	.align	2
	.type	winningProfitArray, %object
	.size	winningProfitArray, 16
winningProfitArray:
	.word	200
	.word	100
	.word	50
	.word	25
	.global	winningProfitArray2
	.align	2
	.type	winningProfitArray2, %object
	.size	winningProfitArray2, 24
winningProfitArray2:
	.word	200
	.word	100
	.word	50
	.word	25
	.word	10
	.word	5
	.section	.rodata
	.align	2
.LC0:
	.ascii	"clear\000"
	.text
	.align	2
	.global	clearScreen
	.syntax unified
	.arm
	.fpu softvfp
	.type	clearScreen, %function
clearScreen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	system
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	clearScreen, .-clearScreen
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\011 \011 /$$$$$$$        /$$$$$$$        /$$$$$$$$"
	.ascii	"                \000"
	.align	2
.LC2:
	.ascii	"\011\011| $$__  $$      | $$__  $$      | $$_____/ "
	.ascii	"               \000"
	.align	2
.LC3:
	.ascii	"\011        | $$  \\ $$      | $$  \\ $$      | $$ "
	.ascii	"                     \000"
	.align	2
.LC4:
	.ascii	"\011        | $$$$$$$       | $$  | $$      | $$$$$"
	.ascii	"                   \000"
	.align	2
.LC5:
	.ascii	"\011        | $$__  $$      | $$  | $$      | $$__/"
	.ascii	"                   \000"
	.align	2
.LC6:
	.ascii	"\011        | $$  \\ $$      | $$  | $$      | $$  "
	.ascii	"                    \000"
	.align	2
.LC7:
	.ascii	"\011        | $$$$$$$/      | $$$$$$$/      | $$$$$"
	.ascii	"$$$                \000"
	.align	2
.LC8:
	.ascii	"\011        |_______/       |_______/       |______"
	.ascii	"__/                \000"
	.align	2
.LC9:
	.ascii	"\011                                               "
	.ascii	"                   \000"
	.align	2
.LC10:
	.ascii	"    /$$$$$  /$$$$$$   /$$$$$$  /$$   /$$ /$$$$$$$  "
	.ascii	" /$$$$$$  /$$$$$$$$\000"
	.align	2
.LC11:
	.ascii	"   |__  $$ /$$__  $$ /$$__  $$| $$  /$$/| $$__  $$ "
	.ascii	"/$$__  $$|__  $$__/\000"
	.align	2
.LC12:
	.ascii	"      | $$| $$  \\ $$| $$  \\__/| $$ /$$/ | $$  \\ "
	.ascii	"$$| $$  \\ $$   | $$   \000"
	.align	2
.LC13:
	.ascii	"      | $$| $$$$$$$$| $$      | $$$$$/  | $$$$$$$/|"
	.ascii	" $$  | $$   | $$   \000"
	.align	2
.LC14:
	.ascii	" /$$  | $$| $$__  $$| $$      | $$  $$  | $$____/ |"
	.ascii	" $$  | $$   | $$   \000"
	.align	2
.LC15:
	.ascii	"| $$  | $$| $$  | $$| $$    $$| $$\\  $$ | $$      "
	.ascii	"| $$  | $$   | $$   \000"
	.align	2
.LC16:
	.ascii	"|  $$$$$$/| $$  | $$|  $$$$$$/| $$ \\  $$| $$      "
	.ascii	"|  $$$$$$/   | $$   \000"
	.align	2
.LC17:
	.ascii	" \\______/ |__/  |__/ \\______/ |__/  \\__/|__/    "
	.ascii	"   \\______/    |__/   \000"
	.align	2
.LC18:
	.ascii	"                /$$             /$$             /$$"
	.ascii	"   \000"
	.align	2
.LC19:
	.ascii	"              /$$$$$$         /$$$$$$         /$$$$"
	.ascii	"$$ \000"
	.align	2
.LC20:
	.ascii	"             /$$__  $$       /$$__  $$       /$$__ "
	.ascii	" $$\000"
	.align	2
.LC21:
	.ascii	"            | $$  \\__/      | $$  \\__/      | $$ "
	.ascii	" \\__/\000"
	.align	2
.LC22:
	.ascii	"            |  $$$$$$       |  $$$$$$       |  $$$$"
	.ascii	"$$ \000"
	.align	2
.LC23:
	.ascii	"             \\____  $$       \\____  $$       \\__"
	.ascii	"__  $$\000"
	.align	2
.LC24:
	.ascii	"             /$$  \\ $$       /$$  \\ $$       /$$ "
	.ascii	" \\ $$\000"
	.align	2
.LC25:
	.ascii	"            |  $$$$$$/      |  $$$$$$/      |  $$$$"
	.ascii	"$$/\000"
	.align	2
.LC26:
	.ascii	"             \\_  $$_/        \\_  $$_/        \\_ "
	.ascii	" $$_/ \000"
	.align	2
.LC27:
	.ascii	"               \\__/            \\__/            \\"
	.ascii	"__/   \000"
	.text
	.align	2
	.global	printJackpot
	.syntax unified
	.arm
	.fpu softvfp
	.type	printJackpot, %function
printJackpot:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	clearScreen
	ldr	r3, .L8
	ldr	r3, [r3, #280]
	cmp	r3, #1
	bne	.L5
	ldr	r0, .L8+4
	bl	puts
	ldr	r0, .L8+8
	bl	puts
	ldr	r0, .L8+12
	bl	puts
	ldr	r0, .L8+16
	bl	puts
	ldr	r0, .L8+20
	bl	puts
	ldr	r0, .L8+24
	bl	puts
	ldr	r0, .L8+28
	bl	puts
	ldr	r0, .L8+32
	bl	puts
	ldr	r0, .L8+36
	bl	puts
	ldr	r0, .L8+36
	bl	puts
	ldr	r0, .L8+36
	bl	puts
	ldr	r0, .L8+40
	bl	puts
	ldr	r0, .L8+44
	bl	puts
	ldr	r0, .L8+48
	bl	puts
	ldr	r0, .L8+52
	bl	puts
	ldr	r0, .L8+56
	bl	puts
	ldr	r0, .L8+60
	bl	puts
	ldr	r0, .L8+64
	bl	puts
	ldr	r0, .L8+68
	bl	puts
	mov	r0, #10
	bl	putchar
	mov	r0, #10
	bl	putchar
	b	.L7
.L5:
	ldr	r0, .L8+72
	bl	puts
	ldr	r0, .L8+76
	bl	puts
	ldr	r0, .L8+80
	bl	puts
	ldr	r0, .L8+84
	bl	puts
	ldr	r0, .L8+88
	bl	puts
	ldr	r0, .L8+92
	bl	puts
	ldr	r0, .L8+96
	bl	puts
	ldr	r0, .L8+100
	bl	puts
	ldr	r0, .L8+104
	bl	puts
	ldr	r0, .L8+108
	bl	puts
	ldr	r0, .L8+36
	bl	puts
	ldr	r0, .L8+36
	bl	puts
	ldr	r0, .L8+36
	bl	puts
	ldr	r0, .L8+40
	bl	puts
	ldr	r0, .L8+44
	bl	puts
	ldr	r0, .L8+48
	bl	puts
	ldr	r0, .L8+52
	bl	puts
	ldr	r0, .L8+56
	bl	puts
	ldr	r0, .L8+60
	bl	puts
	ldr	r0, .L8+64
	bl	puts
	ldr	r0, .L8+68
	bl	puts
	mov	r0, #10
	bl	putchar
	mov	r0, #10
	bl	putchar
.L7:
	nop
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	game
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	printJackpot, .-printJackpot
	.align	2
	.global	printBlinkingJackpotFor
	.syntax unified
	.arm
	.fpu softvfp
	.type	printBlinkingJackpotFor, %function
printBlinkingJackpotFor:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L11
.L12:
	bl	clearScreen
	mov	r0, #1
	bl	sleep
	bl	printJackpot
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L11:
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	blt	.L12
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	printBlinkingJackpotFor, .-printBlinkingJackpotFor
	.align	2
	.global	clearInputBuffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	clearInputBuffer, %function
clearInputBuffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	nop
.L14:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L14
	nop
	nop
	pop	{fp, pc}
	.size	clearInputBuffer, .-clearInputBuffer
	.align	2
	.global	resetGame
	.syntax unified
	.arm
	.fpu softvfp
	.type	resetGame, %function
resetGame:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L16
	mov	r2, #0
	str	r2, [r3, #272]
	ldr	r3, .L16
	mov	r2, #0
	str	r2, [r3, #268]
	ldr	r3, .L16
	mov	r2, #0
	str	r2, [r3, #284]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	game
	.size	resetGame, .-resetGame
	.section	.rodata
	.align	2
.LC28:
	.ascii	"Result: %c %c %c\012\012\000"
	.align	2
.LC29:
	.ascii	"You bet: %d\012\012\000"
	.align	2
.LC30:
	.ascii	"You win %d, Congratulations !\012Your new balance i"
	.ascii	"s %d\012\000"
	.align	2
.LC31:
	.ascii	"Sorry, you lost the game bitch ! Your balance is %d"
	.ascii	"\012\000"
	.text
	.align	2
	.global	printResult
	.syntax unified
	.arm
	.fpu softvfp
	.type	printResult, %function
printResult:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L25
	ldr	r3, [r3, #276]
	cmp	r3, #1
	beq	.L19
	ldr	r3, .L25
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, .L25
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L25
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	ldr	r0, .L25+4
	bl	printf
.L19:
	ldr	r3, .L25
	ldr	r3, [r3, #268]
	mov	r1, r3
	ldr	r0, .L25+8
	bl	printf
	ldr	r3, .L25
	ldr	r3, [r3, #272]
	cmp	r3, #0
	ble	.L20
	ldr	r3, .L25
	ldr	r3, [r3, #284]
	cmp	r3, #1
	beq	.L21
	ldr	r3, .L25
	ldr	r3, [r3, #276]
	cmp	r3, #1
	bne	.L22
.L21:
	mov	r0, #6
	bl	printBlinkingJackpotFor
.L22:
	ldr	r3, .L25
	ldr	r3, [r3, #272]
	ldr	r2, .L25
	ldr	r2, [r2, #4]
	mov	r1, r3
	ldr	r0, .L25+12
	bl	printf
	b	.L24
.L20:
	ldr	r3, .L25
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L25+16
	bl	printf
.L24:
	nop
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	game
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.size	printResult, .-printResult
	.section	.rodata
	.align	2
.LC32:
	.ascii	"\012Do you want to continue ? (y/n)\000"
	.align	2
.LC33:
	.ascii	"%c\000"
	.align	2
.LC34:
	.ascii	"Sorry dude, your out of money !\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	replay
	.syntax unified
	.arm
	.fpu softvfp
	.type	replay, %function
replay:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L31+4
	bl	puts
	sub	r3, fp, #9
	mov	r1, r3
	ldr	r0, .L31+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L28
	ldr	r3, .L31+12
	add	r3, r3, #264
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	b	.L29
.L28:
	ldr	r3, .L31+12
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bgt	.L29
	ldr	r0, .L31+16
	bl	puts
	ldr	r3, .L31+12
	add	r3, r3, #264
	mov	r2, #0
	strh	r2, [r3]	@ movhi
.L29:
	bl	resetGame
	bl	clearScreen
	nop
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC35
	.word	.LC32
	.word	.LC33
	.word	game
	.word	.LC34
	.size	replay, .-replay
	.align	2
	.global	updatePlayerBalance
	.syntax unified
	.arm
	.fpu softvfp
	.type	updatePlayerBalance, %function
updatePlayerBalance:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L34
	ldr	r2, [r3, #4]
	ldr	r3, .L34
	ldr	r3, [r3, #272]
	add	r3, r2, r3
	ldr	r2, .L34
	str	r3, [r2, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L35:
	.align	2
.L34:
	.word	game
	.size	updatePlayerBalance, .-updatePlayerBalance
	.align	2
	.global	getProfitFromResult
	.syntax unified
	.arm
	.fpu softvfp
	.type	getProfitFromResult, %function
getProfitFromResult:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L37
	ldr	r3, .L40
	mov	r2, #0
	str	r2, [r3, #284]
.L37:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L38
	ldr	r2, .L40+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L40
	ldr	r2, [r2, #268]
	mul	r3, r2, r3
	b	.L39
.L38:
	mov	r3, #0
.L39:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L41:
	.align	2
.L40:
	.word	game
	.word	winningProfitArray
	.size	getProfitFromResult, .-getProfitFromResult
	.align	2
	.global	getResult
	.syntax unified
	.arm
	.fpu softvfp
	.type	getResult, %function
getResult:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L64
	ldr	r3, [r3, #280]
	cmp	r3, #1
	bne	.L43
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L44
.L52:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L45
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L46
.L48:
	ldr	r1, .L64+4
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, .L64
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L47
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L47:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L46:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L48
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bne	.L49
	mov	r3, #1
	str	r3, [fp, #-28]
.L49:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L62
.L45:
	ldr	r3, [fp, #-20]
	b	.L51
.L62:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L44:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ble	.L52
	b	.L53
.L43:
	ldr	r3, .L64
	ldr	r3, [r3, #280]
	cmp	r3, #2
	bne	.L53
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L54
.L61:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L55
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L56
.L58:
	ldr	r1, .L64+8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, .L64
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L57
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L57:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L56:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L58
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bne	.L59
	mov	r3, #1
	str	r3, [fp, #-28]
.L59:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L63
.L55:
	ldr	r3, [fp, #-12]
	b	.L51
.L63:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L54:
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	ble	.L61
.L53:
	mvn	r3, #0
.L51:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L65:
	.align	2
.L64:
	.word	game
	.word	winningCharArray
	.word	winningSymboleArray
	.size	getResult, .-getResult
	.align	2
	.global	getRandChar
	.syntax unified
	.arm
	.fpu softvfp
	.type	getRandChar, %function
getRandChar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L69
	ldr	r3, [r3, #280]
	cmp	r3, #1
	bne	.L67
	bl	rand
	mov	r1, r0
	ldr	r3, .L69+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
	ldr	r3, .L69+8
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	b	.L68
.L67:
	bl	rand
	mov	r1, r0
	ldr	r3, .L69+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
	ldr	r3, .L69+12
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
.L68:
	mov	r0, r3
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	game
	.word	715827883
	.word	symbol
	.word	symbol2
	.size	getRandChar, .-getRandChar
	.align	2
	.global	getRandArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	getRandArray, %function
getRandArray:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	getRandChar
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L72
	strb	r2, [r3]
	bl	getRandChar
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L72
	strb	r2, [r3, #1]
	bl	getRandChar
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L72
	strb	r2, [r3, #2]
	nop
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	game
	.size	getRandArray, .-getRandArray
	.align	2
	.global	launchGambling
	.syntax unified
	.arm
	.fpu softvfp
	.type	launchGambling, %function
launchGambling:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	getRandArray
	nop
	pop	{fp, pc}
	.size	launchGambling, .-launchGambling
	.section	.rodata
	.align	2
.LC36:
	.ascii	"%d\000"
	.align	2
.LC37:
	.ascii	"Please enter a number between 1 & %d\012\000"
	.align	2
.LC38:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getIntegerLesserThan
	.syntax unified
	.arm
	.fpu softvfp
	.type	getIntegerLesserThan, %function
getIntegerLesserThan:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L81
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
.L78:
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L81+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L76
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L77
.L76:
	ldr	r1, [fp, #-16]
	ldr	r0, .L81+8
	bl	printf
.L77:
	bl	clearInputBuffer
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L78
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L78
	ldr	r3, [fp, #-12]
	ldr	r2, .L81
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L80
	bl	__stack_chk_fail
.L80:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L82:
	.align	2
.L81:
	.word	.LC38
	.word	.LC36
	.word	.LC37
	.size	getIntegerLesserThan, .-getIntegerLesserThan
	.section	.rodata
	.align	2
.LC39:
	.ascii	"Bet: \000"
	.align	2
.LC40:
	.ascii	"Sorry you don't have enought money, your balance is"
	.ascii	" %d\012\000"
	.text
	.align	2
	.global	betting
	.syntax unified
	.arm
	.fpu softvfp
	.type	betting, %function
betting:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L84
.L86:
	ldr	r0, .L87
	bl	printf
	mov	r0, #3
	bl	getIntegerLesserThan
	mov	r3, r0
	ldr	r2, .L87+4
	str	r3, [r2, #268]
	ldr	r3, .L87+4
	ldr	r2, [r3, #268]
	ldr	r3, .L87+4
	ldr	r3, [r3, #4]
	cmp	r2, r3
	ble	.L85
	ldr	r3, .L87+4
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L87+8
	bl	printf
	b	.L84
.L85:
	mov	r3, #1
	str	r3, [fp, #-8]
.L84:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L86
	ldr	r3, .L87+4
	ldr	r2, [r3, #4]
	ldr	r3, .L87+4
	ldr	r3, [r3, #268]
	sub	r3, r2, r3
	ldr	r2, .L87+4
	str	r3, [r2, #4]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	.LC39
	.word	game
	.word	.LC40
	.size	betting, .-betting
	.section	.rodata
	.align	2
.LC41:
	.ascii	"Create your player !\012Enter your name: \000"
	.align	2
.LC42:
	.ascii	"%s\000"
	.align	2
.LC43:
	.ascii	"Enter your starting balance: \000"
	.align	2
.LC44:
	.ascii	"Welcome %s, your balance is %d\012\000"
	.text
	.align	2
	.global	newPlayer
	.syntax unified
	.arm
	.fpu softvfp
	.type	newPlayer, %function
newPlayer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L90
	bl	printf
	ldr	r1, .L90+4
	ldr	r0, .L90+8
	bl	__isoc99_scanf
	ldr	r0, .L90+12
	bl	printf
	ldr	r1, .L90+16
	ldr	r0, .L90+20
	bl	__isoc99_scanf
	bl	clearScreen
	ldr	r3, .L90+24
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, .L90+4
	ldr	r0, .L90+28
	bl	printf
	ldr	r3, .L90+24
	mov	r2, #0
	str	r2, [r3, #272]
	ldr	r3, .L90+24
	add	r3, r3, #264
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	nop
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	.LC41
	.word	game+8
	.word	.LC42
	.word	.LC43
	.word	game+4
	.word	.LC36
	.word	game
	.word	.LC44
	.size	newPlayer, .-newPlayer
	.section	.rodata
	.align	2
.LC45:
	.ascii	"Choose your game mode :\0121 - Chararacter mode\012"
	.ascii	"2 - Symbole mode\000"
	.text
	.align	2
	.global	newGame
	.syntax unified
	.arm
	.fpu softvfp
	.type	newGame, %function
newGame:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L97
	mov	r2, #0
	str	r2, [r3, #284]
	ldr	r0, .L97+4
	bl	puts
	mov	r0, #2
	bl	getIntegerLesserThan
	mov	r3, r0
	ldr	r2, .L97
	str	r3, [r2, #280]
	bl	clearScreen
	bl	newPlayer
	b	.L93
.L96:
	bl	betting
	bl	clearScreen
	ldr	r3, .L97
	ldr	r3, [r3, #276]
	cmp	r3, #1
	bne	.L94
	mov	r0, #0
	bl	getProfitFromResult
	mov	r3, r0
	ldr	r2, .L97
	str	r3, [r2, #272]
	b	.L95
.L94:
	bl	launchGambling
	bl	getResult
	mov	r3, r0
	mov	r0, r3
	bl	getProfitFromResult
	mov	r3, r0
	ldr	r2, .L97
	str	r3, [r2, #272]
.L95:
	bl	updatePlayerBalance
	bl	printResult
	bl	replay
.L93:
	ldr	r3, .L97
	add	r3, r3, #264
	ldrsh	r3, [r3]
	cmp	r3, #1
	beq	.L96
	nop
	nop
	pop	{fp, pc}
.L98:
	.align	2
.L97:
	.word	game
	.word	.LC45
	.size	newGame, .-newGame
	.section	.rodata
	.align	2
.LC46:
	.ascii	"god_mode\000"
	.align	2
.LC47:
	.ascii	"God Mode activated !\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	clearScreen
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	ble	.L100
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L103
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L101
	ldr	r0, .L103+4
	bl	puts
	ldr	r3, .L103+8
	mov	r2, #1
	str	r2, [r3, #276]
	b	.L100
.L101:
	ldr	r3, .L103+8
	mov	r2, #0
	str	r2, [r3, #276]
.L100:
	bl	newGame
	mov	r3, #42
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L104:
	.align	2
.L103:
	.word	.LC46
	.word	.LC47
	.word	game
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
