// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movl $0x2, -0x54(%rbp)
movw $0x0, 0xb15c(%rip)      # 0xd138
leaq 0x711b(%rip), %rdi      # 0x90fe
callq 0x6440
movq %rax, -0x18(%rbp)
movb $0x0, %al
callq 0x77b0
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x8610
leaq -0x30(%rbp), %rdi
callq 0x1110
movq %rax, -0x30(%rbp)
movswl 0xb120(%rip), %eax      # 0xd138
cmpl $0x0, %eax
jne 0x20b5
jmp 0x2023
leaq -0x28(%rbp), %rdi
callq 0x1110
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x10a0
movaps %xmm0, %xmm1
movsd 0x6fc8(%rip), %xmm0     # 0x9010
subsd %xmm1, %xmm0
movsd %xmm0, -0x48(%rbp)
movl -0x54(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x6a90
movl %eax, -0x54(%rbp)
cmpl $0x1, -0x54(%rbp)
je 0x2070
xorps %xmm0, %xmm0
ucomisd -0x48(%rbp), %xmm0
jb 0x2082
movw $0x1, 0xb0c1(%rip)      # 0xd13a
movq -0x18(%rbp), %rdi
callq 0x1910
movq -0x18(%rbp), %rdi
callq 0x6850
movw %ax, 0xb0a6(%rip)       # 0xd138
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x54(%rbp), %edx
callq 0x8680
movsd -0x48(%rbp), %xmm0
movq -0x18(%rbp), %rdi
callq 0x69d0
jmp 0x2011
movswl 0xb07c(%rip), %eax      # 0xd138
cmpl $0x1, %eax
jne 0x218e
leaq -0x38(%rbp), %rdi
callq 0x1110
movq %rax, -0x38(%rbp)
movswl 0xb05f(%rip), %eax      # 0xd138
cmpl $0x1, %eax
jne 0x2189
leaq -0x40(%rbp), %rdi
callq 0x1110
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x10a0
movaps %xmm0, %xmm1
movsd 0x6f01(%rip), %xmm0     # 0x9008
subsd %xmm1, %xmm0
movsd %xmm0, -0x50(%rbp)
movl -0x54(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x6a90
movl %eax, -0x54(%rbp)
cmpl $0x1, -0x54(%rbp)
je 0x212f
xorps %xmm0, %xmm0
ucomisd -0x50(%rbp), %xmm0
jb 0x2156
xorps %xmm0, %xmm0
ucomisd -0x50(%rbp), %xmm0
jb 0x2144
movw $0x2, 0xaff8(%rip)      # 0xd13a
jmp 0x214d
movw $0x1, 0xafed(%rip)      # 0xd13a
movq -0x18(%rbp), %rdi
callq 0x1910
movq -0x18(%rbp), %rdi
callq 0x6850
movw %ax, 0xafd2(%rip)       # 0xd138
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x54(%rbp), %edx
callq 0x8680
movsd -0x48(%rbp), %xmm0
movq -0x18(%rbp), %rdi
callq 0x69d0
jmp 0x20d2
jmp 0x2023
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)