// File: /workspace/github_cpp_makefile_star2_O2/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
callq 0x448c4
leaq 0x4d400(%rip), %rax     # 0x94ba0
movq %rax, (%rbx)
leaq 0x10(%rbx), %rdi
leaq 0x31722(%rip), %rsi     # 0x78ed0
callq 0x41850
testq %r14, %r14
je 0x477d2
leaq 0x4ced1(%rip), %rsi     # 0x94690
leaq 0x4d66a(%rip), %rdx     # 0x94e30
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x41480
jmp 0x477d4
xorl %eax, %eax
movq -0x30(%rbp), %r14
movq %rax, 0x40(%rbx)
testq %r13, %r13
je 0x47808
leaq 0x4cea8(%rip), %rsi     # 0x94690
leaq 0x4d251(%rip), %rdx     # 0x94a40
movq %r13, %rdi
xorl %ecx, %ecx
callq 0x41480
movq %rax, 0x48(%rbx)
testq %rax, %rax
je 0x4780d
movq %rbx, 0x30(%rax)
jmp 0x4780d
andq $0x0, 0x48(%rbx)
movq %r12, 0x50(%rbx)
testq %r12, %r12
je 0x4781b
movq %rbx, 0x30(%r12)
movq %r15, 0x58(%rbx)
testq %r15, %r15
je 0x47828
movq %rbx, 0x30(%r15)
leaq 0x10(%r14), %rdi
leaq 0x31524(%rip), %rsi     # 0x78d57
xorl %edx, %edx
callq 0x41880
cmpq $-0x1, %rax
je 0x478be
pushq $0x60
popq %rdi
callq 0x413f0
movq %rax, %r14
pushq $0x50
popq %rdi
callq 0x413f0
movq %rax, %r15
pushq $0x48
popq %rdi
callq 0x413f0
movq %rax, %r12
pushq $0x20
popq %rdi
callq 0x413f0
movq %rax, %r13
leaq 0x33048(%rip), %rsi     # 0x7a8bb
leaq -0x31(%rbp), %rdx
movq %rax, %rdi
callq 0x411c0
movq %r12, %rdi
movq %r13, %rsi
callq 0x44730
pushq $0x3
popq %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x46ba0
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq 0x46fa6
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 0x478e9
leaq 0x4cdc6(%rip), %rsi     # 0x94690
leaq 0x4d2a7(%rip), %rdx     # 0x94b78
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x41480
movq %rax, %r14
movq %rax, 0x60(%rbx)
testq %rax, %rax
jne 0x478ab
jmp 0x478af
andq $0x0, 0x60(%rbx)
jmp 0x478af
jmp 0x47920
jmp 0x47912
jmp 0x47904
movq %rax, -0x30(%rbp)
movq %r13, %rdi
callq 0x413a0
jmp 0x47908
movq %rax, -0x30(%rbp)
movq %r12, %rdi
callq 0x413a0
jmp 0x47916
movq %rax, -0x30(%rbp)
movq %r15, %rdi
callq 0x413a0
jmp 0x47924
movq %rax, -0x30(%rbp)
movq %r14, %rdi
callq 0x413a0
jmp 0x47932
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
callq 0x44900
movq -0x30(%rbp), %rdi
callq 0x41790
nop