// File: /workspace/github_cpp_makefile_star2_O3/eniac[P]Mantis/src/ast/ast_nodes_p4.cpp
// Function: P4ExprNode::P4ExprNode(AstNode*, AstNode*, AstNode*, AstNode*, AstNode*)
P4ExprNode::P4ExprNode(AstNode* keyword, AstNode* name1, AstNode* name2,
           AstNode* opts, AstNode* body) {
    nodeType_ = typeid(*this).name();
    keyword_ = dynamic_cast<KeywordNode*>(keyword);
    name1_ = dynamic_cast<NameNode*>(name1);
    if (name1_) name1_->parent_ = this;
    name2_ = name2;
    if (name2_) name2_->parent_ = this;
    opts_ = opts;
    if (opts_) opts_->parent_ = this;
    if(body->nodeType_.find("EmptyNode")!=string::npos) {
        body_ = new BodyNode(NULL, NULL, new BodyWordNode(BodyWordNode::STRING, new StrNode(new string(""))));
    } else {
        body_ = dynamic_cast<BodyNode*>(body);
    }    
    if (body_) body_->parent_ = this;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, -0x30(%rbp)
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
movb $0x1, 0x8(%rdi)
addq $0x10, %rdi
leaq 0x20(%rbx), %rax
movq %rax, -0x38(%rbp)
movq %rax, 0x10(%rbx)
movl $0x65736162, 0x20(%rbx) # imm = 0x65736162
movq $0x4, 0x18(%rbx)
xorl %eax, %eax
movb %al, 0x24(%rbx)
movq $0x0, 0x30(%rbx)
movb %al, 0x38(%rbx)
leaq 0x56b3e(%rip), %rax     # 0x8cbc0
movq %rax, (%rbx)
leaq 0x3fe64(%rip), %rcx     # 0x75ef0
movl $0x4, %edx
movl $0xc, %r8d
xorl %esi, %esi
callq 0x2e640
testq %r14, %r14
je 0x360bd
leaq 0x56606(%rip), %rsi     # 0x8c6b0
leaq 0x56d9f(%rip), %rdx     # 0x8ce50
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x2e430
jmp 0x360bf
xorl %eax, %eax
movq -0x30(%rbp), %r14
movq %rax, 0x40(%rbx)
testq %r13, %r13
je 0x360f3
leaq 0x565dd(%rip), %rsi     # 0x8c6b0
leaq 0x56986(%rip), %rdx     # 0x8ca60
movq %r13, %rdi
xorl %ecx, %ecx
callq 0x2e430
movq %rax, 0x48(%rbx)
testq %rax, %rax
je 0x360fb
movq %rbx, 0x30(%rax)
jmp 0x360fb
movq $0x0, 0x48(%rbx)
movq %r12, 0x50(%rbx)
testq %r12, %r12
je 0x36109
movq %rbx, 0x30(%r12)
movq %r15, 0x58(%rbx)
testq %r15, %r15
je 0x36116
movq %rbx, 0x30(%r15)
leaq 0x10(%r14), %rdi
leaq 0x3fc56(%rip), %rsi     # 0x75d77
movl $0x9, %ecx
xorl %edx, %edx
callq 0x2e710
cmpq $-0x1, %rax
je 0x361c6
movl $0x60, %edi
callq 0x2e3a0
movq %rax, %r14
movl $0x50, %edi
callq 0x2e3a0
movq %rax, %r15
movl $0x48, %edi
callq 0x2e3a0
movq %rax, %r13
movl $0x20, %edi
callq 0x2e3a0
movq %rax, %r12
addq $0x10, %rax
movq %rax, (%r12)
leaq 0x41761(%rip), %rdx     # 0x778db
movq %r12, %rdi
movq %rdx, %rsi
callq 0x32e40
movq %r13, %rdi
movq %r12, %rsi
callq 0x32870
movq %r15, %rdi
movl $0x3, %esi
movq %r13, %rdx
callq 0x34f1c
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0x35432
movq %r14, 0x60(%rbx)
movq %rbx, 0x30(%r14)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %r14, %r14
je 0x361f1
leaq 0x564de(%rip), %rsi     # 0x8c6b0
leaq 0x569bf(%rip), %rdx     # 0x8cb98
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x2e430
movq %rax, %r14
movq %rax, 0x60(%rbx)
testq %rax, %rax
jne 0x361b3
jmp 0x361b7
movq $0x0, 0x60(%rbx)
jmp 0x361b7
jmp 0x3622b
jmp 0x3621d
jmp 0x3620f
movq %rax, -0x30(%rbp)
movq %r12, %rdi
callq 0x2e360
jmp 0x36213
movq %rax, -0x30(%rbp)
movq %r13, %rdi
callq 0x2e360
jmp 0x36221
movq %rax, -0x30(%rbp)
movq %r15, %rdi
callq 0x2e360
jmp 0x3622f
movq %rax, -0x30(%rbp)
movq %r14, %rdi
callq 0x2e360
jmp 0x3623d
movq %rax, -0x30(%rbp)
leaq 0x567cc(%rip), %rax     # 0x8ca10
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
cmpq -0x38(%rbp), %rdi
je 0x36256
callq 0x2e360
movq -0x30(%rbp), %rdi
callq 0x2e730
nop