// File: /workspace/github_c_makefile_star2_O2/rafa9811[P]theIndiependenceGame/theindiependencegame.c
// Function: play
void *_play(void * xq) {
Interact *interact;
Interface *interface;
time_t clk, ini, iniDanger, clkDanger;
double remaining,remainingDanger;
State currentState=NOTHING;
inDanger=0;
interact=interact_load(PATH);
interface=interface_ini();
interface_start(interact,interface);
ini = time(&ini);
while(inDanger==0) {
    noDangerPlay: clk = time(&clk);
    remaining= TIME - difftime(clk,ini);
		currentState=interact_play(currentState,interact);
		if(currentState==QUIT2 || remaining<=0){
			end = 1;
			GetEnd(interact);
		}
		inDanger=interact_getDanger(interact);
		interface_play(interact,interface,currentState);
		interact_updateClk(remaining,interact);
	}
	if(inDanger==1){
		iniDanger = time(&iniDanger);

		while(inDanger==1){
			clkDanger = time(&clkDanger);
			remainingDanger = DANGERTIME - difftime(clkDanger,iniDanger);
			currentState=interact_play(currentState,interact);
			if(currentState==QUIT2 || remainingDanger<=0) {
				if(remainingDanger<=0) end = 2;
				else end = 1;
				GetEnd(interact);
			}
			inDanger=interact_getDanger(interact);
			interface_play(interact,interface,currentState);
			interact_updateClk(remaining,interact);
		}

		goto noDangerPlay;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
andw $0x0, 0x852c(%rip)      # 0xa140
leaq 0x44eb(%rip), %rdi      # 0x6106
callq 0x4000
movq %rax, %rbx
xorl %eax, %eax
callq 0x4bcc
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x54c5
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x1110
movq %rax, (%r15)
pushq $0x2
popq %rbp
leaq 0x18(%rsp), %r15
leaq 0x20(%rsp), %r12
leaq 0x30(%rsp), %r13
movzwl 0x84df(%rip), %eax      # 0xa140
cmpl $0x1, %eax
je 0x1cf8
testl %eax, %eax
jne 0x1d80
movq %r13, %rdi
callq 0x1110
movq %rax, 0x30(%rsp)
movq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x10b0
movsd %xmm0, 0x8(%rsp)
movl %ebp, %edi
movq %rbx, %rsi
callq 0x439f
cmpl $0x1, %eax
je 0x1dae
movsd 0x4363(%rip), %xmm1     # 0x6010
subsd 0x8(%rsp), %xmm1
xorpd %xmm0, %xmm0
movsd %xmm1, 0x10(%rsp)
ucomisd %xmm1, %xmm0
jae 0x1dae
movl %eax, %ebp
movq %rbx, %rdi
callq 0x42a8
movw %ax, 0x8468(%rip)       # 0xa140
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x5511
movsd 0x10(%rsp), %xmm0
movq %rbx, %rdi
callq 0x431a
jmp 0x1c5a
movq %r15, %rdi
callq 0x1110
movq %rax, 0x18(%rsp)
cmpw $0x1, 0x8433(%rip)      # 0xa140
jne 0x1c72
movq %r12, %rdi
callq 0x1110
movq %rax, 0x20(%rsp)
movq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0x10b0
movsd %xmm0, 0x8(%rsp)
movl %ebp, %edi
movq %rbx, %rsi
callq 0x439f
movsd 0x8(%rsp), %xmm0
cmpl $0x1, %eax
je 0x1d8f
ucomisd 0x42b8(%rip), %xmm0     # 0x6008
jae 0x1d8f
movl %eax, %ebp
movq %rbx, %rdi
callq 0x42a8
movw %ax, 0x83dd(%rip)       # 0xa140
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x5511
movsd 0x10(%rsp), %xmm0
movq %rbx, %rdi
callq 0x431a
jmp 0x1d05
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
ucomisd 0x4271(%rip), %xmm0     # 0x6008
movw $0x1, %ax
sbbw $-0x1, %ax
movw %ax, 0x839c(%rip)       # 0xa142
movq %rbx, %rdi
callq 0x172e
movw $0x1, 0x838b(%rip)      # 0xa142
jmp 0x1da6