// File: /workspace/github_cpp_makefile_star2_O2/rofl0r[P]ascc/eval_if.c
// Function: evaluate_if_statement
int evaluate_if_statement(char *str) {
	struct tokenizer t;
	FILE *m = tokenizer_from_string(&t, str);
	int res, ret = evaluate_condition(&t, &res);
	fclose(m);
	return ret ? res : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2738, %rsp           # imm = 0x2738
movq %rdi, %rsi
leaq 0x428(%rsp), %r14
movq %r14, %rdi
callq 0x170b3
movq %rax, (%rsp)
leaq 0x20(%rsp), %r13
movb $0x0, (%r13)
xorl %eax, %eax
leaq 0x548(%rsp), %r15
leaq 0xc(%rsp), %r12
movabsq $0x64656e69666564, %rbx # imm = 0x64656E69666564
movl %eax, 0x8(%rsp)
xorl %ebp, %ebp
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x170f2
testl %eax, %eax
je 0x1708f
movl 0xc(%rsp), %eax
cmpl $0x1, %eax
je 0x16d59
cmpl $0x9, %eax
je 0x16e22
cmpl $0xe, %eax
je 0x16e5e
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x16c94
movq %rax, %r13
jmp 0x16d14
cmpq %rbx, 0x548(%rsp)
jne 0x16e07
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x170f2
movl %eax, %ebp
testl %eax, %eax
je 0x17068
cmpl $0x9, 0xc(%rsp)
jne 0x17068
cmpl $0x28, 0x18(%rsp)
jne 0x17068
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x170f2
movl %eax, %ebp
testl %eax, %eax
je 0x17071
cmpl $0x1, 0xc(%rsp)
jne 0x17071
movq %r15, %rdi
callq 0x15482
movl %eax, %ebp
movq %r13, %rdi
callq 0x3190
cmpl $0x1, %ebp
movw $0x31, %cx
sbbw $0x0, %cx
movw %cx, (%r13,%rax)
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x170f2
movl %eax, %ebp
testl %eax, %eax
je 0x1707a
cmpl $0x9, 0xc(%rsp)
jne 0x1707a
cmpl $0x29, 0x18(%rsp)
je 0x16e12
jmp 0x1707a
movq %r15, %rdi
movq %r13, %rsi
callq 0x15443
movq %r13, %rdi
callq 0x3190
addq %rax, %r13
jmp 0x16d14
movl 0x18(%rsp), %ecx
pushq $0x1
popq %rax
cmpl $0x5c, %ecx
je 0x16d10
cmpl $0xa, %ecx
jne 0x16e46
xorl %eax, %eax
cmpl $0x0, 0x8(%rsp)
jne 0x16d10
jmp 0x16e5e
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x16c94
movq %rax, %r13
xorl %eax, %eax
jmp 0x16d10
cmpb $0x0, 0x20(%rsp)
je 0x17083
leaq 0x15b0(%rsp), %r15
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x170b3
movq %rax, %r14
leaq 0x3b9e(%rip), %rdx      # 0x1aa26
movq %r15, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x15f0d
leaq 0x3b8d(%rip), %rdx      # 0x1aa29
movq %r15, %rdi
movl $0x3e9, %esi            # imm = 0x3E9
callq 0x15f0d
leaq 0x3b5b(%rip), %rdx      # 0x1aa0b
movq %r15, %rdi
movl $0x3ea, %esi            # imm = 0x3EA
callq 0x15f0d
leaq 0x3b4b(%rip), %rdx      # 0x1aa0f
movq %r15, %rdi
movl $0x3eb, %esi            # imm = 0x3EB
callq 0x15f0d
leaq 0x3b42(%rip), %rdx      # 0x1aa1a
movq %r15, %rdi
movl $0x3ec, %esi            # imm = 0x3EC
callq 0x15f0d
leaq 0x3b31(%rip), %rdx      # 0x1aa1d
movq %r15, %rdi
movl $0x3ed, %esi            # imm = 0x3ED
callq 0x15f0d
leaq 0x3b20(%rip), %rdx      # 0x1aa20
movq %r15, %rdi
movl $0x3ee, %esi            # imm = 0x3EE
callq 0x15f0d
leaq 0x3b0f(%rip), %rdx      # 0x1aa23
movq %r15, %rdi
movl $0x3ef, %esi            # imm = 0x3EF
callq 0x15f0d
leaq 0x3af3(%rip), %rdx      # 0x1aa1b
movq %r15, %rdi
movl $0x3f0, %esi            # imm = 0x3F0
callq 0x15f0d
leaq 0x3ae2(%rip), %rdx      # 0x1aa1e
movq %r15, %rdi
movl $0x3f1, %esi            # imm = 0x3F1
callq 0x15f0d
leaq 0x3ad7(%rip), %rdx      # 0x1aa27
movq %r15, %rdi
movl $0x3f2, %esi            # imm = 0x3F2
callq 0x15f0d
leaq 0x3ac6(%rip), %rdx      # 0x1aa2a
movq %r15, %rdi
movl $0x3f3, %esi            # imm = 0x3F3
callq 0x15f0d
leaq 0x3c28(%rip), %rdx      # 0x1aba0
movq %r15, %rdi
movl $0x3f4, %esi            # imm = 0x3F4
callq 0x15f0d
leaq 0x4926(%rip), %rdx      # 0x1b8b2
movq %r15, %rdi
movl $0x3f5, %esi            # imm = 0x3F5
callq 0x15f0d
leaq 0x3a73(%rip), %rdx      # 0x1aa13
movq %r15, %rdi
movl $0x3f6, %esi            # imm = 0x3F6
callq 0x15f0d
leaq 0x3a62(%rip), %rdx      # 0x1aa16
movq %r15, %rdi
movl $0x3f7, %esi            # imm = 0x3F7
callq 0x15f0d
leaq 0x202c(%rip), %rdx      # 0x18ff4
movq %r15, %rdi
movl $0x3f8, %esi            # imm = 0x3F8
callq 0x15f0d
leaq 0x42c6(%rip), %rdx      # 0x1b2a2
movq %r15, %rdi
movl $0x3f9, %esi            # imm = 0x3F9
callq 0x15f0d
leaq 0x3a28(%rip), %rdx      # 0x1aa18
movq %r15, %rdi
movl $0x3fa, %esi            # imm = 0x3FA
callq 0x15f0d
leaq 0x482e(%rip), %rdx      # 0x1b832
movq %r15, %rdi
movl $0x3fb, %esi            # imm = 0x3FB
callq 0x15f0d
leaq 0x238c(%rip), %rdx      # 0x193a4
movq %r15, %rdi
movl $0x3fc, %esi            # imm = 0x3FC
callq 0x15f0d
leaq 0x4860(%rip), %rdx      # 0x1b88c
movq %r15, %rdi
movl $0x3fd, %esi            # imm = 0x3FD
callq 0x15f0d
leaq 0x1c(%rsp), %r12
andl $0x0, (%r12)
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x17143
movl %eax, %r15d
xorl %ebp, %ebp
cmpl $0x0, (%r12)
sete %bpl
movq %r14, %rdi
callq 0x32e0
jmp 0x1708f
leaq 0x4789(%rip), %rdi      # 0x1b7f8
jmp 0x1708a
leaq 0x4799(%rip), %rdi      # 0x1b811
jmp 0x1708a
leaq 0x47b3(%rip), %rdi      # 0x1b834
jmp 0x1708a
leaq 0x47c6(%rip), %rdi      # 0x1b850
callq 0x15499
movq (%rsp), %rdi
callq 0x32e0
testl %ebp, %ebp
cmovel %ebp, %r15d
movl %r15d, %eax
addq $0x2738, %rsp           # imm = 0x2738
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq