	.file	"239273.c"
	.intel_syntax noprefix
	.text
	.globl	seed
	.bss
	.align 4
	.type	seed, @object
	.size	seed, 4
seed:
	.zero	4
	.globl	suite_str
	.section	.rodata
.LC0:
	.string	"Hearts"
.LC1:
	.string	"Spades"
.LC2:
	.string	"Diamonds"
.LC3:
	.string	"Clubs"
	.section	.data.rel.local,"aw"
	.align 32
	.type	suite_str, @object
	.size	suite_str, 32
suite_str:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.globl	player_name
	.section	.rodata
.LC4:
	.string	"Simo"
.LC5:
	.string	"Leo"
.LC6:
	.string	"Martin"
.LC7:
	.string	"Jesper"
	.section	.data.rel.local
	.align 32
	.type	player_name, @object
	.size	player_name, 32
player_name:
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.globl	face_str
	.section	.rodata
.LC8:
	.string	"two"
.LC9:
	.string	"three"
.LC10:
	.string	"four"
.LC11:
	.string	"five"
.LC12:
	.string	"six"
.LC13:
	.string	"seven"
.LC14:
	.string	"eight"
.LC15:
	.string	"nine"
.LC16:
	.string	"ten"
.LC17:
	.string	"Jack"
.LC18:
	.string	"Queen"
.LC19:
	.string	"King"
.LC20:
	.string	"Ace"
	.section	.data.rel.local
	.align 32
	.type	face_str, @object
	.size	face_str, 104
face_str:
	.quad	.LC8
	.quad	.LC9
	.quad	.LC10
	.quad	.LC11
	.quad	.LC12
	.quad	.LC13
	.quad	.LC14
	.quad	.LC15
	.quad	.LC16
	.quad	.LC17
	.quad	.LC18
	.quad	.LC19
	.quad	.LC20
	.text
	.globl	sleep_game
	.type	sleep_game, @function
sleep_game:
.LFB6:
	.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
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sleep_game, .-sleep_game
	.section	.rodata
.LC21:
	.string	"%s of %s\n"
	.text
	.globl	print_card
	.type	print_card, @function
print_card:
.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	QWORD PTR -8[rbp], rdi
	mov	eax, DWORD PTR -4[rbp]
	mov	eax, eax
	lea	rdx, 0[0+rax*8]
	lea	rax, suite_str[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	mov	eax, eax
	lea	rcx, 0[0+rax*8]
	lea	rax, face_str[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_card, .-print_card
	.globl	game_is_over
	.type	game_is_over, @function
game_is_over:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], 0
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 20[rbp+rax*2]
	cmp	ax, 99
	jbe	.L5
	mov	eax, 1
	jmp	.L6
.L5:
	add	QWORD PTR -8[rbp], 1
.L4:
	cmp	QWORD PTR -8[rbp], 3
	jbe	.L7
	mov	eax, 0
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	game_is_over, .-game_is_over
	.globl	shuffle
	.type	shuffle, @function
shuffle:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -100[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	jmp	.L9
.L11:
	call	rand@PLT
	mov	ecx, eax
	movsx	rax, ecx
	imul	rax, rax, 1321528399
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	sub	ecx, eax
	mov	edx, ecx
	mov	DWORD PTR -96[rbp], edx
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	DWORD PTR -92[rbp], eax
	mov	ecx, DWORD PTR -96[rbp]
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 64
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L10
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -100[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR [rdx], rax
	mov	ecx, DWORD PTR -96[rbp]
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 64
	mov	BYTE PTR [rax], 1
	mov	eax, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -80[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -80[rbp+rax*4], edx
.L9:
	cmp	DWORD PTR -100[rbp], 51
	jle	.L11
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	shuffle, .-shuffle
	.globl	deal_cards
	.type	deal_cards, @function
deal_cards:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -38[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L14
.L15:
	movzx	eax, WORD PTR -38[rbp]
	mov	edx, eax
	sar	dx, 15
	shr	dx, 14
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	cwde
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	cdqe
	mov	BYTE PTR 104[rdx+rax], 0
	movsx	rax, WORD PTR -38[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	lea	rdi, [rdx+rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	lea	ecx, 1[rax]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -32[rbp+rdx*4], ecx
	cdqe
	mov	rdx, QWORD PTR [rdi]
	mov	QWORD PTR [rsi+rax*8], rdx
	movzx	eax, WORD PTR -38[rbp]
	add	eax, 1
	mov	WORD PTR -38[rbp], ax
.L14:
	cmp	WORD PTR -38[rbp], 51
	jle	.L15
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	deal_cards, .-deal_cards
	.globl	starting_player
	.type	starting_player, @function
starting_player:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -24[rbp], 0
	jmp	.L18
.L23:
	mov	QWORD PTR -16[rbp], 0
	jmp	.L19
.L22:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -8[rbp]
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, 3
	jne	.L20
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L24
.L20:
	add	QWORD PTR -16[rbp], 1
.L19:
	cmp	QWORD PTR -16[rbp], 12
	jbe	.L22
	add	QWORD PTR -24[rbp], 1
.L18:
	cmp	QWORD PTR -24[rbp], 3
	jbe	.L23
	mov	eax, -1
.L24:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	starting_player, .-starting_player
	.globl	determine_cards_to_give
	.type	determine_cards_to_give, @function
determine_cards_to_give:
.LFB12:
	.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 -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	eax, DWORD PTR -52[rbp]
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	je	.L38
	mov	QWORD PTR -32[rbp], 0
	jmp	.L28
.L31:
	mov	QWORD PTR -24[rbp], 0
	jmp	.L29
.L30:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, [rdx+rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rsi+rdx*8]
	mov	QWORD PTR [rcx+rax*8], rdx
	add	QWORD PTR -24[rbp], 1
.L29:
	cmp	QWORD PTR -24[rbp], 2
	jbe	.L30
	add	QWORD PTR -32[rbp], 1
.L28:
	cmp	QWORD PTR -32[rbp], 3
	jbe	.L31
	mov	DWORD PTR -44[rbp], 1
	cmp	DWORD PTR -40[rbp], 2
	jne	.L32
	mov	DWORD PTR -44[rbp], 3
.L32:
	cmp	DWORD PTR -40[rbp], 3
	jne	.L33
	mov	DWORD PTR -44[rbp], 2
.L33:
	mov	QWORD PTR -16[rbp], 0
	jmp	.L34
.L37:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	and	eax, 3
	mov	DWORD PTR -36[rbp], eax
	mov	QWORD PTR -8[rbp], 0
	jmp	.L35
.L36:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rsi+rdx*8]
	mov	QWORD PTR [rcx+rax*8], rdx
	add	QWORD PTR -8[rbp], 1
.L35:
	cmp	QWORD PTR -8[rbp], 2
	jbe	.L36
	add	QWORD PTR -16[rbp], 1
.L34:
	cmp	QWORD PTR -16[rbp], 3
	jbe	.L37
	jmp	.L25
.L38:
	nop
.L25:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	determine_cards_to_give, .-determine_cards_to_give
	.section	.rodata
.LC22:
	.string	"%s starts the game with: "
	.align 8
.LC23:
	.string	"Starting player was %s, current player is %d, seed: %d\n"
.LC24:
	.string	"ERROR"
.LC25:
	.string	"%s played: "
	.text
	.globl	first_turn
	.type	first_turn, @function
first_turn:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	QWORD PTR -152[rbp], rdx
	mov	QWORD PTR -160[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -88[rbp], 0
	jmp	.L40
.L42:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -40[rbp]
	test	eax, eax
	jne	.L41
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, 3
	jne	.L41
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	add	rax, 104
	mov	BYTE PTR [rax], 1
.L41:
	mov	rax, QWORD PTR -160[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -160[rbp]
	mov	DWORD PTR 4[rax], 3
	add	QWORD PTR -88[rbp], 1
.L40:
	cmp	QWORD PTR -88[rbp], 12
	jbe	.L42
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, player_name[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, QWORD PTR [rax]
	call	print_card
	mov	edi, 1
	call	sleep_game
	mov	DWORD PTR -116[rbp], 1
	mov	QWORD PTR -80[rbp], 1
	jmp	.L43
.L58:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -132[rbp]
	add	eax, edx
	and	eax, 3
	mov	DWORD PTR -104[rbp], eax
	mov	BYTE PTR -118[rbp], 0
	mov	QWORD PTR -21[rbp], 0
	mov	DWORD PTR -13[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	jmp	.L44
.L46:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rdx+rax*8]
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 3
	jne	.L45
	mov	BYTE PTR -118[rbp], 1
	lea	rdx, -21[rbp]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
.L45:
	add	QWORD PTR -72[rbp], 1
.L44:
	cmp	QWORD PTR -72[rbp], 12
	jbe	.L46
	movzx	eax, BYTE PTR -118[rbp]
	xor	eax, 1
	test	al, al
	je	.L47
	mov	BYTE PTR -117[rbp], 1
	mov	QWORD PTR -64[rbp], 0
	jmp	.L48
.L51:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 4[rdx+rax*8]
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rdx+rax*8]
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -100[rbp], 1
	jne	.L49
	cmp	DWORD PTR -96[rbp], 10
	jne	.L49
	mov	BYTE PTR -117[rbp], 0
	jmp	.L50
.L49:
	cmp	DWORD PTR -100[rbp], 0
	je	.L50
	mov	BYTE PTR -117[rbp], 0
	lea	rdx, -21[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
.L50:
	add	QWORD PTR -64[rbp], 1
.L48:
	cmp	QWORD PTR -64[rbp], 12
	jbe	.L51
	cmp	BYTE PTR -117[rbp], 0
	je	.L47
	mov	QWORD PTR -56[rbp], 0
	jmp	.L52
.L53:
	lea	rdx, -21[rbp]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	add	QWORD PTR -56[rbp], 1
.L52:
	cmp	QWORD PTR -56[rbp], 12
	jbe	.L53
.L47:
	mov	DWORD PTR -112[rbp], 13
	mov	DWORD PTR -108[rbp], -1
	mov	QWORD PTR -48[rbp], 0
	jmp	.L54
.L56:
	lea	rdx, -21[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L55
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -112[rbp], eax
	jbe	.L55
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -112[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR -108[rbp], eax
.L55:
	add	QWORD PTR -48[rbp], 1
.L54:
	cmp	QWORD PTR -48[rbp], 12
	jbe	.L56
	cmp	DWORD PTR -108[rbp], -1
	jne	.L57
	mov	ecx, DWORD PTR seed[rip]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, player_name[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
.L57:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, player_name[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	print_card
	mov	edi, 1
	call	sleep_game
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	BYTE PTR 104[rdx+rax], 1
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR 4[rdx], eax
	add	DWORD PTR -116[rbp], 1
	add	QWORD PTR -80[rbp], 1
.L43:
	cmp	QWORD PTR -80[rbp], 3
	jbe	.L58
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 4[rax], edx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	first_turn, .-first_turn
	.globl	choose_first_card
	.type	choose_first_card, @function
choose_first_card:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	BYTE PTR -41[rbp], 1
	mov	QWORD PTR -32[rbp], 0
	jmp	.L61
.L64:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	add	rax, 104
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L79
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -4[rbp]
	test	eax, eax
	je	.L63
	mov	BYTE PTR -41[rbp], 0
	jmp	.L63
.L79:
	nop
.L63:
	add	QWORD PTR -32[rbp], 1
.L61:
	cmp	QWORD PTR -32[rbp], 12
	jbe	.L64
	mov	DWORD PTR -40[rbp], 13
	mov	DWORD PTR -36[rbp], -1
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L65
	cmp	BYTE PTR -41[rbp], 0
	je	.L66
.L65:
	mov	QWORD PTR -24[rbp], 0
	jmp	.L67
.L70:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	add	rax, 104
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L80
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -4[rbp]
	test	eax, eax
	jne	.L69
	mov	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jbe	.L69
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L69
.L80:
	nop
.L69:
	add	QWORD PTR -24[rbp], 1
.L67:
	cmp	QWORD PTR -24[rbp], 12
	jbe	.L70
	cmp	DWORD PTR -36[rbp], 0
	js	.L66
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	BYTE PTR 104[rdx+rax], 1
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	jmp	.L78
.L66:
	mov	QWORD PTR -16[rbp], 0
	jmp	.L72
.L76:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	add	rax, 104
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L81
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jbe	.L74
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L75
	mov	eax, DWORD PTR -4[rbp]
	test	eax, eax
	je	.L74
.L75:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L74
.L81:
	nop
.L74:
	add	QWORD PTR -16[rbp], 1
.L72:
	cmp	QWORD PTR -16[rbp], 12
	jbe	.L76
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, 10
	jne	.L77
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, 1
	jne	.L77
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax], 1
.L77:
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	BYTE PTR 104[rdx+rax], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
.L78:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	choose_first_card, .-choose_first_card
	.section	.rodata
.LC26:
	.string	"An opportunity arises.."
	.text
	.globl	choose_card_to_play
	.type	choose_card_to_play, @function
choose_card_to_play:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	DWORD PTR -116[rbp], edx
	mov	QWORD PTR -128[rbp], rcx
	mov	DWORD PTR -92[rbp], 13
	mov	DWORD PTR -88[rbp], -1
	mov	DWORD PTR -84[rbp], -1
	mov	DWORD PTR -80[rbp], -1
	mov	DWORD PTR -76[rbp], -1
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	BYTE PTR -94[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	jmp	.L83
.L89:
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	add	rax, 104
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L122
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jne	.L86
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 12
	jne	.L87
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR -80[rbp], eax
	jmp	.L86
.L87:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 11
	jne	.L88
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR -76[rbp], eax
	jmp	.L86
.L88:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 10
	jne	.L86
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR -84[rbp], eax
.L86:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cmp	edx, eax
	jne	.L85
	mov	BYTE PTR -94[rbp], 1
	jmp	.L85
.L122:
	nop
.L85:
	add	QWORD PTR -64[rbp], 1
.L83:
	cmp	QWORD PTR -64[rbp], 12
	jbe	.L89
	cmp	BYTE PTR -94[rbp], 0
	je	.L90
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, 1
	jne	.L91
	cmp	DWORD PTR -84[rbp], 0
	js	.L92
	mov	QWORD PTR -56[rbp], 0
	jmp	.L93
.L97:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 11
	je	.L94
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 12
	jne	.L95
.L94:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jne	.L95
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	edi, 2
	call	sleep_game
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	BYTE PTR 104[rdx+rax], 1
	mov	rax, QWORD PTR -128[rbp]
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	jmp	.L121
.L95:
	add	QWORD PTR -56[rbp], 1
.L93:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	cmp	QWORD PTR -56[rbp], rax
	jb	.L97
.L92:
	cmp	DWORD PTR -116[rbp], 3
	jne	.L91
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, 1
	jne	.L91
	mov	QWORD PTR -48[rbp], 0
	jmp	.L98
.L101:
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	add	rax, 104
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L123
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L100
.L123:
	nop
.L100:
	add	QWORD PTR -48[rbp], 1
.L98:
	cmp	QWORD PTR -48[rbp], 12
	jbe	.L101
	cmp	DWORD PTR -80[rbp], 0
	jns	.L102
	cmp	DWORD PTR -76[rbp], 0
	js	.L91
.L102:
	mov	BYTE PTR -93[rbp], 1
	mov	QWORD PTR -40[rbp], 0
	jmp	.L103
.L106:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 10
	jne	.L104
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jne	.L104
	mov	BYTE PTR -93[rbp], 0
	jmp	.L105
.L104:
	add	QWORD PTR -40[rbp], 1
.L103:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	cmp	QWORD PTR -40[rbp], rax
	jb	.L106
.L105:
	cmp	BYTE PTR -93[rbp], 0
	je	.L91
	cmp	DWORD PTR -80[rbp], 0
	js	.L107
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	BYTE PTR 104[rdx+rax], 1
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	jmp	.L121
.L107:
	cmp	DWORD PTR -76[rbp], 0
	js	.L91
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	BYTE PTR 104[rdx+rax], 1
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	jmp	.L121
.L91:
	mov	QWORD PTR -32[rbp], 0
	jmp	.L108
.L111:
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	add	rax, 104
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L124
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -16[rbp], rax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cmp	edx, eax
	jne	.L110
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -92[rbp], eax
	jbe	.L110
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -92[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR -88[rbp], eax
	jmp	.L110
.L124:
	nop
.L110:
	add	QWORD PTR -32[rbp], 1
.L108:
	cmp	QWORD PTR -32[rbp], 12
	jbe	.L111
	cmp	DWORD PTR -88[rbp], 0
	js	.L90
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	BYTE PTR 104[rdx+rax], 1
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	jmp	.L121
.L90:
	cmp	DWORD PTR -84[rbp], 0
	js	.L112
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	edi, 2
	call	sleep_game
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	BYTE PTR 104[rdx+rax], 1
	mov	rax, QWORD PTR -128[rbp]
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -84[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	jmp	.L121
.L112:
	cmp	DWORD PTR -80[rbp], 0
	js	.L113
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	BYTE PTR 104[rdx+rax], 1
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -80[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	jmp	.L121
.L113:
	cmp	DWORD PTR -76[rbp], 0
	js	.L114
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	BYTE PTR 104[rdx+rax], 1
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	jmp	.L121
.L114:
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 4
	mov	QWORD PTR -24[rbp], 0
	jmp	.L115
.L119:
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	add	rax, 104
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L125
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -72[rbp], eax
	jnb	.L118
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -68[rbp], eax
	jmp	.L117
.L118:
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -72[rbp], eax
	jne	.L117
	cmp	DWORD PTR -68[rbp], 0
	je	.L117
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jne	.L117
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -68[rbp], eax
	jmp	.L117
.L125:
	nop
.L117:
	add	QWORD PTR -24[rbp], 1
.L115:
	cmp	QWORD PTR -24[rbp], 12
	jbe	.L119
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jne	.L120
	mov	rax, QWORD PTR -128[rbp]
	mov	BYTE PTR [rax], 1
.L120:
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	BYTE PTR 104[rdx+rax], 1
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
.L121:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	choose_card_to_play, .-choose_card_to_play
	.section	.rodata
.LC27:
	.string	"%s starts trick with: "
.LC28:
	.string	"%s plays "
	.text
	.globl	regular_turn
	.type	regular_turn, @function
regular_turn:
.LFB16:
	.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, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	choose_first_card
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, player_name[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, QWORD PTR [rax]
	call	print_card
	mov	edi, 1
	call	sleep_game
	mov	QWORD PTR -24[rbp], 1
	jmp	.L127
.L128:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	and	eax, 3
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	lea	rbx, [rdx+rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, rdx
	mov	edx, esi
	mov	rsi, rax
	call	choose_card_to_play
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, player_name[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdi, QWORD PTR [rax]
	call	print_card
	mov	edi, 1
	call	sleep_game
	add	QWORD PTR -24[rbp], 1
.L127:
	cmp	QWORD PTR -24[rbp], 3
	jbe	.L128
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], edx
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	regular_turn, .-regular_turn
	.globl	determine_trick_winner
	.type	determine_trick_winner, @function
determine_trick_winner:
.LFB17:
	.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 -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	QWORD PTR -16[rbp], 1
	jmp	.L130
.L132:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L131
	mov	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jnb	.L131
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	and	eax, 3
	mov	DWORD PTR -24[rbp], eax
.L131:
	add	QWORD PTR -16[rbp], 1
.L130:
	cmp	QWORD PTR -16[rbp], 3
	jbe	.L132
	mov	eax, DWORD PTR -24[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	determine_trick_winner, .-determine_trick_winner
	.globl	calculate_trick_points
	.type	calculate_trick_points, @function
calculate_trick_points:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -20[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L135
.L138:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -4[rbp]
	test	eax, eax
	jne	.L136
	add	DWORD PTR -20[rbp], 1
	jmp	.L137
.L136:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, 10
	jne	.L137
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, 1
	jne	.L137
	add	DWORD PTR -20[rbp], 13
.L137:
	add	QWORD PTR -16[rbp], 1
.L135:
	cmp	QWORD PTR -16[rbp], 3
	jbe	.L138
	mov	eax, DWORD PTR -20[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	calculate_trick_points, .-calculate_trick_points
	.section	.rodata
	.align 8
.LC29:
	.string	"It would seem mistakes were made.."
	.text
	.globl	adjust_for_moonshot
	.type	adjust_for_moonshot, @function
adjust_for_moonshot:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -20[rbp], -1
	mov	QWORD PTR -16[rbp], 0
	jmp	.L141
.L143:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	movzx	eax, WORD PTR 12[rax+rdx*2]
	cmp	ax, 26
	jne	.L142
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	WORD PTR 12[rax+rdx*2], 0
.L142:
	add	QWORD PTR -16[rbp], 1
.L141:
	cmp	QWORD PTR -16[rbp], 3
	jbe	.L143
	cmp	DWORD PTR -20[rbp], 0
	js	.L148
	lea	rdi, .LC29[rip]
	call	puts@PLT
	mov	edi, 4
	call	sleep_game
	mov	QWORD PTR -8[rbp], 0
	jmp	.L145
.L147:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	je	.L146
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	WORD PTR 12[rax+rdx*2], 26
.L146:
	add	QWORD PTR -8[rbp], 1
.L145:
	cmp	QWORD PTR -8[rbp], 3
	jbe	.L147
.L148:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	adjust_for_moonshot, .-adjust_for_moonshot
	.section	.rodata
.LC30:
	.string	"Trick %d \n"
.LC31:
	.string	"%s won the trick.\n"
.LC32:
	.string	"Hearts opened this trick!!"
.LC33:
	.string	"--- ROUND %d over ---\n"
.LC34:
	.string	"--- round scores ---"
.LC35:
	.string	"%s, %d\n"
.LC36:
	.string	"\nTOTAL: %d\n\n"
.LC37:
	.string	"--- overall scores ---"
.LC38:
	.string	"Game over."
	.text
	.globl	play_game
	.type	play_game, @function
play_game:
.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, 288
	mov	QWORD PTR -280[rbp], rdi
	mov	QWORD PTR -288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	DWORD PTR -192[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	DWORD PTR -176[rbp], 1
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	QWORD PTR -164[rbp], rax
	mov	QWORD PTR -156[rbp], rdx
	mov	eax, DWORD PTR -192[rbp]
	mov	DWORD PTR -148[rbp], eax
	mov	DWORD PTR -256[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	lea	rdx, -112[rbp]
	mov	eax, 0
	mov	ecx, 12
	mov	rdi, rdx
	rep stosq
.L161:
	mov	BYTE PTR -208[rbp], 0
	mov	DWORD PTR -204[rbp], 0
	mov	BYTE PTR -265[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	jmp	.L150
.L151:
	mov	rax, QWORD PTR -248[rbp]
	mov	WORD PTR -196[rbp+rax*2], 0
	add	QWORD PTR -248[rbp], 1
.L150:
	cmp	QWORD PTR -248[rbp], 3
	jbe	.L151
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	shuffle
	mov	rdx, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	deal_cards
	mov	eax, DWORD PTR -176[rbp]
	lea	rdx, -112[rbp]
	mov	rcx, QWORD PTR -288[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	determine_cards_to_give
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	starting_player
	mov	DWORD PTR -264[rbp], eax
	mov	esi, 1
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -144[rbp]
	lea	rdx, -208[rbp]
	mov	rsi, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -264[rbp]
	mov	edi, eax
	call	first_turn
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -264[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	determine_trick_winner
	mov	DWORD PTR -252[rbp], eax
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, player_name[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	sleep_game
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	calculate_trick_points
	mov	edx, DWORD PTR -252[rbp]
	movsx	rdx, edx
	movzx	edx, WORD PTR -172[rbp+rdx*2]
	add	edx, eax
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	mov	WORD PTR -172[rbp+rax*2], dx
	mov	eax, DWORD PTR -252[rbp]
	mov	DWORD PTR -264[rbp], eax
	mov	QWORD PTR -240[rbp], 0
	jmp	.L152
.L154:
	mov	rax, QWORD PTR -240[rbp]
	add	rax, 2
	mov	rsi, rax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -144[rbp]
	lea	rdx, -208[rbp]
	mov	rsi, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -264[rbp]
	mov	edi, eax
	call	regular_turn
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -264[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	determine_trick_winner
	mov	DWORD PTR -252[rbp], eax
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, player_name[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -208[rbp]
	test	al, al
	je	.L153
	movzx	eax, BYTE PTR -265[rbp]
	xor	eax, 1
	test	al, al
	je	.L153
	lea	rdi, .LC32[rip]
	call	puts@PLT
	mov	BYTE PTR -265[rbp], 1
.L153:
	mov	edi, 3
	call	sleep_game
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	calculate_trick_points
	mov	edx, DWORD PTR -252[rbp]
	movsx	rdx, edx
	movzx	edx, WORD PTR -196[rbp+rdx*2]
	add	edx, eax
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	mov	WORD PTR -196[rbp+rax*2], dx
	mov	eax, DWORD PTR -252[rbp]
	mov	DWORD PTR -264[rbp], eax
	add	QWORD PTR -240[rbp], 1
.L152:
	cmp	QWORD PTR -240[rbp], 11
	jbe	.L154
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	adjust_for_moonshot
	mov	QWORD PTR -232[rbp], 0
	jmp	.L155
.L156:
	mov	rax, QWORD PTR -232[rbp]
	movzx	edx, WORD PTR -172[rbp+rax*2]
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, WORD PTR -196[rbp+rax*2]
	add	edx, eax
	mov	rax, QWORD PTR -232[rbp]
	mov	WORD PTR -172[rbp+rax*2], dx
	add	QWORD PTR -232[rbp], 1
.L155:
	cmp	QWORD PTR -232[rbp], 3
	jbe	.L156
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, eax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC34[rip]
	call	puts@PLT
	mov	DWORD PTR -260[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	jmp	.L157
.L158:
	mov	rax, QWORD PTR -224[rbp]
	movzx	eax, WORD PTR -196[rbp+rax*2]
	movzx	edx, ax
	mov	rax, QWORD PTR -224[rbp]
	lea	rcx, 0[0+rax*8]
	lea	rax, player_name[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -224[rbp]
	movzx	eax, WORD PTR -196[rbp+rax*2]
	movzx	eax, ax
	add	DWORD PTR -260[rbp], eax
	add	QWORD PTR -224[rbp], 1
.L157:
	cmp	QWORD PTR -224[rbp], 3
	jbe	.L158
	mov	eax, DWORD PTR -260[rbp]
	mov	esi, eax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	sleep_game
	lea	rdi, .LC37[rip]
	call	puts@PLT
	mov	QWORD PTR -216[rbp], 0
	jmp	.L159
.L160:
	mov	rax, QWORD PTR -216[rbp]
	movzx	eax, WORD PTR -172[rbp+rax*2]
	movzx	edx, ax
	mov	rax, QWORD PTR -216[rbp]
	lea	rcx, 0[0+rax*8]
	lea	rax, player_name[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -216[rbp], 1
.L159:
	cmp	QWORD PTR -216[rbp], 3
	jbe	.L160
	mov	eax, DWORD PTR -176[rbp]
	add	eax, 1
	mov	DWORD PTR -176[rbp], eax
	mov	edi, 2
	call	sleep_game
	push	QWORD PTR -152[rbp]
	push	QWORD PTR -160[rbp]
	push	QWORD PTR -168[rbp]
	push	QWORD PTR -176[rbp]
	call	game_is_over
	add	rsp, 32
	xor	eax, 1
	test	al, al
	jne	.L161
	lea	rdi, .LC38[rip]
	call	puts@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L163
	call	__stack_chk_fail@PLT
.L163:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	play_game, .-play_game
	.globl	main
	.type	main, @function
main:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 928
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -920[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	DWORD PTR seed[rip], eax
	mov	eax, DWORD PTR seed[rip]
	mov	edi, eax
	call	srand@PLT
	lea	rdx, -912[rbp]
	mov	eax, 0
	mov	ecx, 52
	mov	rdi, rdx
	rep stosq
	lea	rdx, -496[rbp]
	mov	eax, 0
	mov	ecx, 60
	mov	rdi, rdx
	rep stosq
	lea	rdx, -496[rbp]
	lea	rax, -912[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	play_game
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L166
	call	__stack_chk_fail@PLT
.L166:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.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	"239273.c"
	.text
	.comm	seed,4,4
	.global	suite_str
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hearts\000"
	.align	2
.LC1:
	.ascii	"Spades\000"
	.align	2
.LC2:
	.ascii	"Diamonds\000"
	.align	2
.LC3:
	.ascii	"Clubs\000"
	.data
	.align	2
	.type	suite_str, %object
	.size	suite_str, 16
suite_str:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.global	player_name
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Simo\000"
	.align	2
.LC5:
	.ascii	"Leo\000"
	.align	2
.LC6:
	.ascii	"Martin\000"
	.align	2
.LC7:
	.ascii	"Jesper\000"
	.data
	.align	2
	.type	player_name, %object
	.size	player_name, 16
player_name:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.global	face_str
	.section	.rodata
	.align	2
.LC8:
	.ascii	"two\000"
	.align	2
.LC9:
	.ascii	"three\000"
	.align	2
.LC10:
	.ascii	"four\000"
	.align	2
.LC11:
	.ascii	"five\000"
	.align	2
.LC12:
	.ascii	"six\000"
	.align	2
.LC13:
	.ascii	"seven\000"
	.align	2
.LC14:
	.ascii	"eight\000"
	.align	2
.LC15:
	.ascii	"nine\000"
	.align	2
.LC16:
	.ascii	"ten\000"
	.align	2
.LC17:
	.ascii	"Jack\000"
	.align	2
.LC18:
	.ascii	"Queen\000"
	.align	2
.LC19:
	.ascii	"King\000"
	.align	2
.LC20:
	.ascii	"Ace\000"
	.data
	.align	2
	.type	face_str, %object
	.size	face_str, 52
face_str:
	.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
	.text
	.align	2
	.global	sleep_game
	.syntax unified
	.arm
	.fpu softvfp
	.type	sleep_game, %function
sleep_game:
	@ 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]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sleep_game, .-sleep_game
	.section	.rodata
	.align	2
.LC21:
	.ascii	"%s of %s\012\000"
	.text
	.align	2
	.global	print_card
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_card, %function
print_card:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	sub	r3, fp, #12
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-12]
	ldr	r2, .L3
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	ldr	r2, .L3+4
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r0, .L3+8
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	face_str
	.word	suite_str
	.word	.LC21
	.size	print_card, .-print_card
	.align	2
	.global	game_is_over
	.syntax unified
	.arm
	.fpu softvfp
	.type	game_is_over, %function
game_is_over:
	@ args = 32, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #16
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L9:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, #4
	ldrh	r3, [r3]
	cmp	r3, #99
	bls	.L7
	mov	r3, #1
	b	.L8
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bls	.L9
	mov	r3, #0
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
	.size	game_is_over, .-game_is_over
	.section	.rodata
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	shuffle
	.syntax unified
	.arm
	.fpu softvfp
	.type	shuffle, %function
shuffle:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-96]
	sub	r3, fp, #60
	mov	r2, #52
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #76
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	b	.L11
.L13:
	bl	rand
	mov	r1, r0
	ldr	r3, .L15+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	str	r2, [fp, #-92]
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	str	r3, [fp, #-88]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	sub	r3, r3, #56
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	b	.L11
.L12:
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-96]
	add	r2, r3, #1
	str	r2, [fp, #-96]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #84
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	sub	r3, r3, #56
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-72]
	add	r2, r3, #1
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-72]
.L11:
	ldr	r3, [fp, #-96]
	cmp	r3, #51
	ble	.L13
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC22
	.word	1321528399
	.size	shuffle, .-shuffle
	.section	.rodata
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	deal_cards
	.syntax unified
	.arm
	.fpu softvfp
	.type	deal_cards, %function
deal_cards:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strh	r3, [fp, #-30]	@ movhi
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	b	.L18
.L19:
	ldrsh	r3, [fp, #-30]
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	lsl	r3, r3, #16
	asr	r3, r3, #16
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r2, r3, r2
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #104]
	ldrsh	r3, [fp, #-30]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	ip, r2, r3
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r1, r3, r2
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-20]
	add	r0, r2, #1
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	sub	lr, fp, #4
	add	r3, lr, r3
	str	r0, [r3, #-20]
	lsl	r3, r2, #3
	add	r3, r1, r3
	mov	r2, ip
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldrsh	r3, [fp, #-30]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-30]	@ movhi
.L18:
	ldrsh	r3, [fp, #-30]
	cmp	r3, #51
	ble	.L19
	nop
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC23
	.size	deal_cards, .-deal_cards
	.align	2
	.global	starting_player
	.syntax unified
	.arm
	.fpu softvfp
	.type	starting_player, %function
starting_player:
	@ 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
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L24
.L29:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L25
.L28:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r1, r3, r2
	ldr	r3, [fp, #-16]
	sub	r2, fp, #12
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bne	.L26
	ldr	r3, [fp, #-20]
	b	.L30
.L26:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L25:
	ldr	r3, [fp, #-16]
	cmp	r3, #12
	bls	.L28
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L24:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bls	.L29
	mvn	r3, #0
.L30:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	starting_player, .-starting_player
	.align	2
	.global	determine_cards_to_give
	.syntax unified
	.arm
	.fpu softvfp
	.type	determine_cards_to_give, %function
determine_cards_to_give:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #52
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L44
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L34
.L37:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L35
.L36:
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r1, r3, r2
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r0, r3, r2
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	lsl	r3, r3, #3
	add	r3, r0, r3
	lsl	r2, r2, #3
	add	r2, r1, r2
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L35:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	bls	.L36
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L34:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	bls	.L37
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L38
	mov	r3, #3
	str	r3, [fp, #-24]
.L38:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bne	.L39
	mov	r3, #2
	str	r3, [fp, #-24]
.L39:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L40
.L43:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	and	r3, r3, #3
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L41
.L42:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r1, r3, r2
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r0, r3, r2
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r0, r3
	lsl	r2, r2, #3
	add	r2, r1, r2
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L41:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bls	.L42
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L40:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bls	.L43
	b	.L31
.L44:
	nop
.L31:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	determine_cards_to_give, .-determine_cards_to_give
	.section	.rodata
	.align	2
.LC24:
	.ascii	"%s starts the game with: \000"
	.align	2
.LC25:
	.ascii	"Starting player was %s, current player is %d, seed:"
	.ascii	" %d\012\000"
	.align	2
.LC26:
	.ascii	"ERROR\000"
	.align	2
.LC27:
	.ascii	"%s played: \000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	first_turn
	.syntax unified
	.arm
	.fpu softvfp
	.type	first_turn, %function
first_turn:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	str	r2, [fp, #-112]
	str	r3, [fp, #-116]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L46
.L48:
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-108]
	add	r1, r3, r2
	ldr	r3, [fp, #-92]
	sub	r2, fp, #40
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L47
	ldr	r3, [fp, #-36]
	cmp	r3, #3
	bne	.L47
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-108]
	add	r2, r3, r2
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	add	r3, r3, #104
	mov	r2, #1
	strb	r2, [r3]
.L47:
	ldr	r3, [fp, #-116]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-116]
	mov	r2, #3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L46:
	ldr	r3, [fp, #-92]
	cmp	r3, #12
	bls	.L48
	ldr	r2, .L66+4
	ldr	r3, [fp, #-104]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L66+8
	bl	printf
	ldr	r3, [fp, #-116]
	ldm	r3, {r0, r1}
	bl	print_card
	mov	r0, #1
	bl	sleep_game
	mov	r3, #1
	str	r3, [fp, #-88]
	mov	r3, #1
	str	r3, [fp, #-84]
	b	.L49
.L64:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	and	r3, r3, #3
	str	r3, [fp, #-56]
	mov	r3, #0
	strb	r3, [fp, #-94]
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	strb	r2, [r3, #12]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L50
.L52:
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-108]
	add	r2, r3, r2
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	bne	.L51
	mov	r3, #1
	strb	r3, [fp, #-94]
	sub	r2, fp, #24
	ldr	r3, [fp, #-80]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
.L51:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L50:
	ldr	r3, [fp, #-80]
	cmp	r3, #12
	bls	.L52
	ldrb	r3, [fp, #-94]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L53
	mov	r3, #1
	strb	r3, [fp, #-93]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L54
.L57:
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-108]
	add	r2, r3, r2
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-108]
	add	r3, r3, r2
	ldr	r2, [fp, #-76]
	ldr	r3, [r3, r2, lsl #3]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	bne	.L55
	ldr	r3, [fp, #-48]
	cmp	r3, #10
	bne	.L55
	mov	r3, #0
	strb	r3, [fp, #-93]
	b	.L56
.L55:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L56
	mov	r3, #0
	strb	r3, [fp, #-93]
	sub	r2, fp, #24
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
.L56:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L54:
	ldr	r3, [fp, #-76]
	cmp	r3, #12
	bls	.L57
	ldrb	r3, [fp, #-93]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L53
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L58
.L59:
	sub	r2, fp, #24
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L58:
	ldr	r3, [fp, #-72]
	cmp	r3, #12
	bls	.L59
.L53:
	mov	r3, #13
	str	r3, [fp, #-68]
	mvn	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L60
.L62:
	sub	r2, fp, #24
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L61
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-108]
	add	r1, r3, r2
	ldr	r3, [fp, #-60]
	sub	r2, fp, #32
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	bls	.L61
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-64]
.L61:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L60:
	ldr	r3, [fp, #-60]
	cmp	r3, #12
	bls	.L62
	ldr	r3, [fp, #-64]
	cmn	r3, #1
	bne	.L63
	ldr	r2, .L66+4
	ldr	r3, [fp, #-104]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L66+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	ldr	r0, .L66+16
	bl	printf
	ldr	r0, .L66+20
	bl	puts
.L63:
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-108]
	add	r1, r3, r2
	ldr	r3, [fp, #-64]
	sub	r2, fp, #32
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r2, .L66+4
	ldr	r3, [fp, #-56]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L66+24
	bl	printf
	sub	r3, fp, #32
	ldm	r3, {r0, r1}
	bl	print_card
	mov	r0, #1
	bl	sleep_game
	ldr	r2, [fp, #-56]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-108]
	add	r2, r3, r2
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	add	r3, r3, #104
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L49:
	ldr	r3, [fp, #-84]
	cmp	r3, #3
	bls	.L64
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-112]
	str	r2, [r3, #4]
	nop
	ldr	r3, .L66
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L65
	bl	__stack_chk_fail
.L65:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC28
	.word	player_name
	.word	.LC24
	.word	seed
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	first_turn, .-first_turn
	.align	2
	.global	choose_first_card
	.syntax unified
	.arm
	.fpu softvfp
	.type	choose_first_card, %function
choose_first_card:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #52
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	mov	r3, #1
	strb	r3, [fp, #-33]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L69
.L72:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	add	r3, r3, #104
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L87
	ldr	r1, [fp, #-44]
	ldr	r3, [fp, #-32]
	sub	r2, fp, #12
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L71
	mov	r3, #0
	strb	r3, [fp, #-33]
	b	.L71
.L87:
	nop
.L71:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L69:
	ldr	r3, [fp, #-32]
	cmp	r3, #12
	bls	.L72
	mov	r3, #13
	str	r3, [fp, #-28]
	mvn	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L73
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L74
.L73:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L75
.L78:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #104
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L88
	ldr	r1, [fp, #-44]
	ldr	r3, [fp, #-20]
	sub	r2, fp, #12
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L77
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bls	.L77
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	b	.L77
.L88:
	nop
.L77:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L75:
	ldr	r3, [fp, #-20]
	cmp	r3, #12
	bls	.L78
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L74
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	add	r3, r3, #104
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r1, [fp, #-40]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	mov	ip, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r0, r1}
	stm	ip, {r0, r1}
	b	.L68
.L74:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L80
.L84:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	add	r3, r3, #104
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L89
	ldr	r1, [fp, #-44]
	ldr	r3, [fp, #-16]
	sub	r2, fp, #12
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bls	.L82
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L83
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L82
.L83:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	b	.L82
.L89:
	nop
.L82:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L80:
	ldr	r3, [fp, #-16]
	cmp	r3, #12
	bls	.L84
	ldr	r1, [fp, #-44]
	ldr	r3, [fp, #-24]
	sub	r2, fp, #12
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L85
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L85
	ldr	r3, [fp, #-48]
	mov	r2, #1
	strb	r2, [r3]
.L85:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	add	r3, r3, #104
	mov	r2, #1
	strb	r2, [r3]
	ldr	r1, [fp, #-40]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	mov	ip, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r0, r1}
	stm	ip, {r0, r1}
.L68:
	ldr	r0, [fp, #-40]
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	choose_first_card, .-choose_first_card
	.section	.rodata
	.align	2
.LC29:
	.ascii	"An opportunity arises..\000"
	.text
	.align	2
	.global	choose_card_to_play
	.syntax unified
	.arm
	.fpu softvfp
	.type	choose_card_to_play, %function
choose_card_to_play:
	@ args = 4, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	str	r3, [fp, #-92]
	mov	r3, #13
	str	r3, [fp, #-72]
	mvn	r3, #0
	str	r3, [fp, #-68]
	mvn	r3, #0
	str	r3, [fp, #-64]
	mvn	r3, #0
	str	r3, [fp, #-60]
	mvn	r3, #0
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-88]
	sub	r3, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	mov	r3, #0
	strb	r3, [fp, #-74]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L91
.L97:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	add	r3, r3, #104
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L130
	ldr	r1, [fp, #-84]
	ldr	r3, [fp, #-52]
	sub	r2, fp, #20
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L94
	ldr	r3, [fp, #-20]
	cmp	r3, #12
	bne	.L95
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-60]
	b	.L94
.L95:
	ldr	r3, [fp, #-20]
	cmp	r3, #11
	bne	.L96
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-56]
	b	.L94
.L96:
	ldr	r3, [fp, #-20]
	cmp	r3, #10
	bne	.L94
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-64]
.L94:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L93
	mov	r3, #1
	strb	r3, [fp, #-74]
	b	.L93
.L130:
	nop
.L93:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L91:
	ldr	r3, [fp, #-52]
	cmp	r3, #12
	bls	.L97
	ldrb	r3, [fp, #-74]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L99
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	blt	.L100
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L101
.L105:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-88]
	add	r2, r2, r3
	sub	r3, fp, #20
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-20]
	cmp	r3, #11
	beq	.L102
	ldr	r3, [fp, #-20]
	cmp	r3, #12
	bne	.L103
.L102:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L103
	ldr	r0, .L134
	bl	puts
	mov	r0, #2
	bl	sleep_game
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	add	r3, r3, #104
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #4]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-64]
	mov	ip, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r0, r1}
	stm	ip, {r0, r1}
	b	.L90
.L103:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L101:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bcc	.L105
.L100:
	ldr	r3, [fp, #-92]
	cmp	r3, #3
	bne	.L99
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L99
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L106
.L109:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	add	r3, r3, #104
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L131
	ldr	r1, [fp, #-84]
	ldr	r3, [fp, #-44]
	sub	r2, fp, #20
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	b	.L108
.L131:
	nop
.L108:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L106:
	ldr	r3, [fp, #-44]
	cmp	r3, #12
	bls	.L109
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bge	.L110
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	blt	.L99
.L110:
	mov	r3, #1
	strb	r3, [fp, #-73]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L111
.L114:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-88]
	add	r2, r2, r3
	sub	r3, fp, #20
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-20]
	cmp	r3, #10
	bne	.L112
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L112
	mov	r3, #0
	strb	r3, [fp, #-73]
	b	.L113
.L112:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L111:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bcc	.L114
.L113:
	ldrb	r3, [fp, #-73]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L99
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	blt	.L115
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	add	r3, r3, #104
	mov	r2, #1
	strb	r2, [r3]
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-60]
	mov	ip, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r0, r1}
	stm	ip, {r0, r1}
	b	.L90
.L115:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	blt	.L99
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	add	r3, r3, #104
	mov	r2, #1
	strb	r2, [r3]
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-56]
	mov	ip, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r0, r1}
	stm	ip, {r0, r1}
	b	.L90
.L99:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L116
.L119:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	add	r3, r3, #104
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L132
	ldr	r1, [fp, #-84]
	ldr	r3, [fp, #-36]
	sub	r2, fp, #20
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L118
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	bls	.L118
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-68]
	b	.L118
.L132:
	nop
.L118:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L116:
	ldr	r3, [fp, #-36]
	cmp	r3, #12
	bls	.L119
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	blt	.L98
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	add	r3, r3, #104
	mov	r2, #1
	strb	r2, [r3]
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-68]
	mov	ip, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r0, r1}
	stm	ip, {r0, r1}
	b	.L90
.L98:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	blt	.L120
	ldr	r0, .L134
	bl	puts
	mov	r0, #2
	bl	sleep_game
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	add	r3, r3, #104
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #4]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-64]
	mov	ip, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r0, r1}
	stm	ip, {r0, r1}
	b	.L90
.L120:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	blt	.L121
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	add	r3, r3, #104
	mov	r2, #1
	strb	r2, [r3]
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-60]
	mov	ip, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r0, r1}
	stm	ip, {r0, r1}
	b	.L90
.L121:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	blt	.L122
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	add	r3, r3, #104
	mov	r2, #1
	strb	r2, [r3]
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-56]
	mov	ip, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r0, r1}
	stm	ip, {r0, r1}
	b	.L90
.L122:
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #4
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L123
.L127:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	add	r3, r3, #104
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L133
	ldr	r1, [fp, #-84]
	ldr	r3, [fp, #-24]
	sub	r2, fp, #20
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bcs	.L126
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-28]
	b	.L125
.L126:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L125
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L125
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L125
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-28]
	b	.L125
.L133:
	nop
.L125:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L123:
	ldr	r3, [fp, #-24]
	cmp	r3, #12
	bls	.L127
	ldr	r1, [fp, #-84]
	ldr	r3, [fp, #-68]
	sub	r2, fp, #20
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L128
	ldr	r3, [fp, #4]
	mov	r2, #1
	strb	r2, [r3]
.L128:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	add	r3, r3, #104
	mov	r2, #1
	strb	r2, [r3]
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-68]
	mov	ip, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r0, r1}
	stm	ip, {r0, r1}
.L90:
	ldr	r0, [fp, #-80]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L135:
	.align	2
.L134:
	.word	.LC29
	.size	choose_card_to_play, .-choose_card_to_play
	.section	.rodata
	.align	2
.LC30:
	.ascii	"%s starts trick with: \000"
	.align	2
.LC31:
	.ascii	"%s plays \000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	regular_turn
	.syntax unified
	.arm
	.fpu softvfp
	.type	regular_turn, %function
regular_turn:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, .L140
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r1, r3, r2
	ldr	r4, [fp, #-44]
	sub	r3, fp, #52
	ldr	r2, [fp, #-40]
	mov	r0, r3
	bl	choose_first_card
	mov	r2, r4
	sub	r3, fp, #52
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r2, .L140+4
	ldr	r3, [fp, #-32]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L140+8
	bl	printf
	ldr	r3, [fp, #-44]
	ldm	r3, {r0, r1}
	bl	print_card
	mov	r0, #1
	bl	sleep_game
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L137
.L138:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	and	r3, r3, #3
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r1, r3, r2
	ldr	ip, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-44]
	add	r4, r2, r3
	sub	r0, fp, #52
	ldr	r3, [fp, #-40]
	str	r3, [sp]
	mov	r3, ip
	ldr	r2, [fp, #-44]
	bl	choose_card_to_play
	mov	r2, r4
	sub	r3, fp, #52
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r2, .L140+4
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L140+12
	bl	printf
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldm	r3, {r0, r1}
	bl	print_card
	mov	r0, #1
	bl	sleep_game
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L137:
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bls	.L138
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	nop
	ldr	r3, .L140
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L139
	bl	__stack_chk_fail
.L139:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L141:
	.align	2
.L140:
	.word	.LC32
	.word	player_name
	.word	.LC30
	.word	.LC31
	.size	regular_turn, .-regular_turn
	.align	2
	.global	determine_trick_winner
	.syntax unified
	.arm
	.fpu softvfp
	.type	determine_trick_winner, %function
determine_trick_winner:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L143
.L145:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	sub	r3, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L144
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bcs	.L144
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	and	r3, r3, #3
	str	r3, [fp, #-24]
.L144:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L143:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bls	.L145
	ldr	r3, [fp, #-24]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	determine_trick_winner, .-determine_trick_winner
	.align	2
	.global	calculate_trick_points
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_trick_points, %function
calculate_trick_points:
	@ 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
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L148
.L151:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	sub	r3, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L149
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L150
.L149:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L150
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L150
	ldr	r3, [fp, #-20]
	add	r3, r3, #13
	str	r3, [fp, #-20]
.L150:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L148:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bls	.L151
	ldr	r3, [fp, #-20]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	calculate_trick_points, .-calculate_trick_points
	.section	.rodata
	.align	2
.LC33:
	.ascii	"It would seem mistakes were made..\000"
	.text
	.align	2
	.global	adjust_for_moonshot
	.syntax unified
	.arm
	.fpu softvfp
	.type	adjust_for_moonshot, %function
adjust_for_moonshot:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L154
.L156:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	lsl	r3, r3, #1
	add	r3, r2, r3
	add	r3, r3, #4
	ldrh	r3, [r3]
	cmp	r3, #26
	bne	.L155
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	lsl	r3, r3, #1
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, #0
	strh	r2, [r3]	@ movhi
.L155:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L154:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bls	.L156
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L161
	ldr	r0, .L162
	bl	puts
	mov	r0, #4
	bl	sleep_game
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L158
.L160:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L159
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	lsl	r3, r3, #1
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, #26
	strh	r2, [r3]	@ movhi
.L159:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L158:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bls	.L160
.L161:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L163:
	.align	2
.L162:
	.word	.LC33
	.size	adjust_for_moonshot, .-adjust_for_moonshot
	.section	.rodata
	.align	2
.LC34:
	.ascii	"Trick %d \012\000"
	.align	2
.LC35:
	.ascii	"%s won the trick.\012\000"
	.align	2
.LC36:
	.ascii	"Hearts opened this trick!!\000"
	.align	2
.LC37:
	.ascii	"--- ROUND %d over ---\012\000"
	.align	2
.LC38:
	.ascii	"--- round scores ---\000"
	.align	2
.LC39:
	.ascii	"%s, %d\012\000"
	.align	2
.LC40:
	.ascii	"\012TOTAL: %d\012\012\000"
	.align	2
.LC41:
	.ascii	"--- overall scores ---\000"
	.align	2
.LC42:
	.ascii	"Game over.\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	play_game
	.syntax unified
	.arm
	.fpu softvfp
	.type	play_game, %function
play_game:
	@ args = 0, pretend = 0, frame = 232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #248
	str	r0, [fp, #-232]
	str	r1, [fp, #-236]
	ldr	r3, .L179
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #188
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	sub	r3, fp, #168
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-168]
	sub	ip, fp, #156
	sub	lr, fp, #188
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #0
	str	r3, [fp, #-196]
	sub	r3, fp, #136
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L176:
	mov	r3, #0
	strb	r3, [fp, #-188]
	mov	r3, #0
	str	r3, [fp, #-184]
	mov	r3, #0
	strb	r3, [fp, #-225]
	mov	r3, #0
	str	r3, [fp, #-220]
	b	.L165
.L166:
	ldr	r3, [fp, #-220]
	add	r3, r3, #4
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #180
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
.L165:
	ldr	r3, [fp, #-220]
	cmp	r3, #3
	bls	.L166
	ldr	r0, [fp, #-232]
	bl	shuffle
	ldr	r1, [fp, #-236]
	ldr	r0, [fp, #-232]
	bl	deal_cards
	ldr	r3, [fp, #-168]
	sub	r2, fp, #104
	ldr	r1, [fp, #-236]
	mov	r0, r3
	bl	determine_cards_to_give
	ldr	r0, [fp, #-236]
	bl	starting_player
	str	r0, [fp, #-224]
	mov	r1, #1
	ldr	r0, .L179+4
	bl	printf
	sub	r3, fp, #136
	sub	r2, fp, #188
	ldr	r1, [fp, #-236]
	ldr	r0, [fp, #-224]
	bl	first_turn
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, [fp, #-224]
	bl	determine_trick_winner
	str	r0, [fp, #-192]
	ldr	r2, .L179+8
	ldr	r3, [fp, #-192]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L179+12
	bl	printf
	mov	r0, #3
	bl	sleep_game
	sub	r3, fp, #136
	mov	r0, r3
	bl	calculate_trick_points
	mov	r1, r0
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #160
	ldrh	r2, [r3]
	lsl	r3, r1, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #1
	sub	r1, fp, #4
	add	r3, r1, r3
	sub	r3, r3, #160
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-192]
	str	r3, [fp, #-224]
	mov	r3, #0
	str	r3, [fp, #-216]
	b	.L167
.L169:
	ldr	r3, [fp, #-216]
	add	r3, r3, #2
	mov	r1, r3
	ldr	r0, .L179+4
	bl	printf
	sub	r3, fp, #136
	sub	r2, fp, #188
	ldr	r1, [fp, #-236]
	ldr	r0, [fp, #-224]
	bl	regular_turn
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, [fp, #-224]
	bl	determine_trick_winner
	str	r0, [fp, #-192]
	ldr	r2, .L179+8
	ldr	r3, [fp, #-192]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L179+12
	bl	printf
	ldrb	r3, [fp, #-188]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L168
	ldrb	r3, [fp, #-225]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L168
	ldr	r0, .L179+16
	bl	puts
	mov	r3, #1
	strb	r3, [fp, #-225]
.L168:
	mov	r0, #3
	bl	sleep_game
	sub	r3, fp, #136
	mov	r0, r3
	bl	calculate_trick_points
	mov	r1, r0
	ldr	r3, [fp, #-192]
	add	r3, r3, #4
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #180
	ldrh	r2, [r3]
	lsl	r3, r1, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-192]
	add	r3, r3, #4
	lsl	r3, r3, #1
	sub	r1, fp, #4
	add	r3, r1, r3
	sub	r3, r3, #180
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-192]
	str	r3, [fp, #-224]
	ldr	r3, [fp, #-216]
	add	r3, r3, #1
	str	r3, [fp, #-216]
.L167:
	ldr	r3, [fp, #-216]
	cmp	r3, #11
	bls	.L169
	sub	r3, fp, #188
	mov	r0, r3
	bl	adjust_for_moonshot
	mov	r3, #0
	str	r3, [fp, #-212]
	b	.L170
.L171:
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #160
	ldrh	r2, [r3]
	ldr	r3, [fp, #-212]
	add	r3, r3, #4
	lsl	r3, r3, #1
	sub	r1, fp, #4
	add	r3, r1, r3
	sub	r3, r3, #180
	ldrh	r3, [r3]
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #1
	sub	r1, fp, #4
	add	r3, r1, r3
	sub	r3, r3, #160
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-212]
	add	r3, r3, #1
	str	r3, [fp, #-212]
.L170:
	ldr	r3, [fp, #-212]
	cmp	r3, #3
	bls	.L171
	ldr	r3, [fp, #-168]
	mov	r1, r3
	ldr	r0, .L179+20
	bl	printf
	ldr	r0, .L179+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-208]
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L172
.L173:
	ldr	r2, .L179+8
	ldr	r3, [fp, #-204]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-204]
	add	r3, r3, #4
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #180
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r0, .L179+28
	bl	printf
	ldr	r3, [fp, #-204]
	add	r3, r3, #4
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #180
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-208]
	add	r3, r3, r2
	str	r3, [fp, #-208]
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L172:
	ldr	r3, [fp, #-204]
	cmp	r3, #3
	bls	.L173
	ldr	r1, [fp, #-208]
	ldr	r0, .L179+32
	bl	printf
	mov	r0, #3
	bl	sleep_game
	ldr	r0, .L179+36
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-200]
	b	.L174
.L175:
	ldr	r2, .L179+8
	ldr	r3, [fp, #-200]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-200]
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #160
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r0, .L179+28
	bl	printf
	ldr	r3, [fp, #-200]
	add	r3, r3, #1
	str	r3, [fp, #-200]
.L174:
	ldr	r3, [fp, #-200]
	cmp	r3, #3
	bls	.L175
	ldr	r3, [fp, #-168]
	add	r3, r3, #1
	str	r3, [fp, #-168]
	mov	r0, #2
	bl	sleep_game
	mov	ip, sp
	sub	r3, fp, #152
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #168
	ldm	r3, {r0, r1, r2, r3}
	bl	game_is_over
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L176
	ldr	r0, .L179+40
	bl	puts
	nop
	ldr	r3, .L179
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L178
	bl	__stack_chk_fail
.L178:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L180:
	.align	2
.L179:
	.word	.LC43
	.word	.LC34
	.word	player_name
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.size	play_game, .-play_game
	.section	.rodata
	.align	2
.LC44:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 904
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #904
	ldr	r3, .L184
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #908
	mov	r0, r3
	bl	time
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L184+4
	str	r2, [r3]
	ldr	r3, .L184+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	srand
	sub	r3, fp, #904
	mov	r2, #416
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #488
	mov	r2, #480
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #488
	sub	r3, fp, #904
	mov	r1, r2
	mov	r0, r3
	bl	play_game
	mov	r3, #0
	ldr	r2, .L184
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L183
	bl	__stack_chk_fail
.L183:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L185:
	.align	2
.L184:
	.word	.LC44
	.word	seed
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
