// File: Eronana[P]strawberry/src/parser.cpp
// Function: Parser::IfStatement()
AST_PTR Parser::IfStatement()
{
    if(!acceptEat("if"))PARSER_ERROR("excepted 'if'");
    if(!acceptEat(TOKEN_LEFT_PAREN))PARSER_ERROR("expected a '('");
    DEF_AST_RET(IfStatement);
    ret->expr=Expression();
    if(!acceptEat(TOKEN_RIGHT_PAREN))PARSER_ERROR("expected a ')'");
    ret->statement=Statement();
    if(acceptEat("else"))ret->elseStatement=Statement();
    RETURN_PTR;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0xd8(%rbp)
movq %rdi, %rax
movq %rax, -0xd0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
leaq 0x2b65c(%rip), %rsi     # 0x58a62
callq 0x32fe0
testb $0x1, %al
jne 0x2d4f7
movb $0x1, -0x42(%rbp)
movl $0x70, %edi
callq 0x7180
movq -0xc8(%rbp), %rdi
movq %rax, -0xe8(%rbp)
xorl %esi, %esi
callq 0x277f0
movq %rax, -0xe0(%rbp)
jmp 0x2d43f
leaq -0x41(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x75f0
movq -0xf0(%rbp), %rdx
leaq 0x2b608(%rip), %rsi     # 0x58a65
leaq -0x40(%rbp), %rdi
callq 0xf990
jmp 0x2d468
movq -0xe0(%rbp), %rsi
movq -0xe8(%rbp), %rdi
leaq -0x40(%rbp), %rdx
callq 0xac90
jmp 0x2d481
movq -0xe8(%rbp), %rdi
movb $0x0, -0x42(%rbp)
leaq 0x5b76d(%rip), %rsi     # 0x88c00
leaq -0xd1ba(%rip), %rdx     # 0x202e0
callq 0x75c0
jmp 0x2d88a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x2d4de
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x2d4d5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x71d0
leaq -0x41(%rbp), %rdi
callq 0x7310
testb $0x1, -0x42(%rbp)
jne 0x2d4e6
jmp 0x2d4f2
movq -0xe8(%rbp), %rdi
callq 0x7230
jmp 0x2d881
movq -0xc8(%rbp), %rdi
movl $0xe, -0x48(%rbp)
leaq -0x48(%rbp), %rsi
callq 0x31240
xorb $-0x1, %al
testb $0x1, %al
jne 0x2d519
jmp 0x2d5fd
movb $0x1, -0x6a(%rbp)
movl $0x70, %edi
callq 0x7180
movq -0xc8(%rbp), %rdi
movq %rax, -0x100(%rbp)
xorl %esi, %esi
callq 0x277f0
movq %rax, -0xf8(%rbp)
jmp 0x2d545
leaq -0x69(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x75f0
movq -0x108(%rbp), %rdx
leaq 0x2b510(%rip), %rsi     # 0x58a73
leaq -0x68(%rbp), %rdi
callq 0xf990
jmp 0x2d56e
movq -0xf8(%rbp), %rsi
movq -0x100(%rbp), %rdi
leaq -0x68(%rbp), %rdx
callq 0xac90
jmp 0x2d587
movq -0x100(%rbp), %rdi
movb $0x0, -0x6a(%rbp)
leaq 0x5b667(%rip), %rsi     # 0x88c00
leaq -0xd2c0(%rip), %rdx     # 0x202e0
callq 0x75c0
jmp 0x2d88a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x2d5e4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x2d5db
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x71d0
leaq -0x69(%rbp), %rdi
callq 0x7310
testb $0x1, -0x6a(%rbp)
jne 0x2d5ec
jmp 0x2d5f8
movq -0x100(%rbp), %rdi
callq 0x7230
jmp 0x2d881
movl $0x20, %edi
callq 0x72c0
movq %rax, %rdi
movq %rdi, -0x110(%rbp)
callq 0x330b0
movq -0x110(%rbp), %rsi
leaq -0x78(%rbp), %rdi
callq 0x33110
movq -0xc8(%rbp), %rsi
leaq -0x80(%rbp), %rdi
callq 0x2a9d0
jmp 0x2d638
leaq -0x78(%rbp), %rdi
callq 0x33140
movq %rax, %rdi
addq $0x8, %rdi
leaq -0x80(%rbp), %rsi
movq %rsi, -0x120(%rbp)
callq 0x8ee0
movq -0x120(%rbp), %rdi
callq 0x8f10
movq -0xc8(%rbp), %rdi
movl $0xf, -0x84(%rbp)
leaq -0x84(%rbp), %rsi
callq 0x31240
movb %al, -0x111(%rbp)
jmp 0x2d689
movb -0x111(%rbp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x2d69a
jmp 0x2d7a7
movb $0x1, -0xaa(%rbp)
movl $0x70, %edi
callq 0x7180
movq -0xc8(%rbp), %rdi
movq %rax, -0x130(%rbp)
xorl %esi, %esi
callq 0x277f0
movq %rax, -0x128(%rbp)
jmp 0x2d6c9
leaq -0xa9(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x75f0
movq -0x138(%rbp), %rdx
leaq 0x2b398(%rip), %rsi     # 0x58a82
leaq -0xa8(%rbp), %rdi
callq 0xf990
jmp 0x2d6f8
movq -0x128(%rbp), %rsi
movq -0x130(%rbp), %rdi
leaq -0xa8(%rbp), %rdx
callq 0xac90
jmp 0x2d714
movq -0x130(%rbp), %rdi
movb $0x0, -0xaa(%rbp)
leaq 0x5b4d7(%rip), %rsi     # 0x88c00
leaq -0xd450(%rip), %rdx     # 0x202e0
callq 0x75c0
jmp 0x2d88a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x2d878
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x2d78b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x2d77f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x71d0
leaq -0xa9(%rbp), %rdi
callq 0x7310
testb $0x1, -0xaa(%rbp)
jne 0x2d796
jmp 0x2d7a2
movq -0x130(%rbp), %rdi
callq 0x7230
jmp 0x2d878
movq -0xc8(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
callq 0x2c540
jmp 0x2d7bc
leaq -0x78(%rbp), %rdi
callq 0x33140
movq %rax, %rdi
addq $0x10, %rdi
leaq -0xb8(%rbp), %rsi
movq %rsi, -0x148(%rbp)
callq 0x8ee0
movq -0x148(%rbp), %rdi
callq 0x8f10
movq -0xc8(%rbp), %rdi
leaq 0x2b298(%rip), %rsi     # 0x58a91
callq 0x33160
movb %al, -0x139(%rbp)
jmp 0x2d806
movb -0x139(%rbp), %al
testb $0x1, %al
jne 0x2d812
jmp 0x2d84f
movq -0xc8(%rbp), %rsi
leaq -0xc0(%rbp), %rdi
callq 0x2c540
jmp 0x2d827
leaq -0x78(%rbp), %rdi
callq 0x33140
movq %rax, %rdi
addq $0x18, %rdi
leaq -0xc0(%rbp), %rsi
callq 0x8ee0
leaq -0xc0(%rbp), %rdi
callq 0x8f10
movq -0xd8(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x33230
leaq -0x78(%rbp), %rdi
callq 0x33280
movq -0xd0(%rbp), %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
leaq -0x78(%rbp), %rdi
callq 0x33280
movq -0x18(%rbp), %rdi
callq 0x75e0
nopw (%rax,%rax)