// File: /workspace/github_cpp_makefile_star2_O2/xjrueda[P]fixprime/src/Node.cpp
// Function: fprime::Node::stringify(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool&, unsigned int&)
void Node::stringify(string& outputString, bool& isBody, unsigned int& bodyLength) {
        try {
            switch (_type) {
                case ROOT_NODE:
                case GROUP_INSTANCE:
                case REPEATING_GROUP:
                {
                    if (_type == REPEATING_GROUP) {
                        unsigned int id = this->getField()->getId();
                        this->addValuePair(outputString, id, this->getValue());
                    }
                    for (int i = 0; i < childsVector.size(); i++) {
                        childsVector[i]->stringify(outputString, isBody, bodyLength);
                    }
                    break;
                }
                case FIELD_NODE:
                {
                    if (!isBody) {
                        if (this->getField()->getId() == 9)
                            isBody = true;
                    }
                    int prelen = outputString.size();
                    unsigned int id = this->getField()->getId();
                    this->addValuePair(outputString, id, this->getValue());
                    if (isBody && this->getField()->getId() != 9)
                        bodyLength += (outputString.size() - prelen);
                    break;
                }
            }

        } catch (exception& e) {
            cout << "at Node.stringify : " << e.what() << endl;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl 0x8(%rdi), %eax
cmpq $0x3, %rax
ja 0x4febe
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
leaq 0x16546(%rip), %rcx     # 0x66340
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x0, (%r12)
jne 0x4fe37
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x406d0
movq 0x8(%rsp), %rdi
callq 0x40430
movl %eax, %ebp
leaq 0x10(%rsp), %rdi
callq 0x40650
cmpl $0x9, %ebp
jne 0x4fe37
movb $0x1, (%r12)
movq 0x8(%r14), %r13
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x406d0
movq 0x8(%rsp), %rdi
callq 0x40430
movl %eax, %ebp
leaq 0x10(%rsp), %rdi
callq 0x40650
movq 0x10(%r15), %rsi
movq (%rsi), %rax
leaq 0x18(%rsp), %rdi
callq *0x18(%rax)
leaq 0x18(%rsp), %rcx
movq %r14, %rsi
movl %ebp, %edx
callq 0x3ebe0
leaq 0x18(%rsp), %rdi
callq 0x3ef50
cmpb $0x1, (%r12)
jne 0x4febe
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x406d0
movq 0x8(%rsp), %rdi
callq 0x40430
movl %eax, %ebp
leaq 0x10(%rsp), %rdi
callq 0x40650
cmpl $0x9, %ebp
je 0x4febe
movl 0x8(%r14), %eax
subl %r13d, %eax
addl %eax, (%rbx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x406d0
movq 0x8(%rsp), %rdi
callq 0x40430
movl %eax, %ebp
leaq 0x10(%rsp), %rdi
callq 0x40650
movq 0x10(%r15), %rsi
movq (%rsi), %rax
leaq 0x38(%rsp), %rdi
callq *0x18(%rax)
leaq 0x38(%rsp), %rcx
movq %r14, %rsi
movl %ebp, %edx
callq 0x3ebe0
leaq 0x38(%rsp), %rdi
callq 0x3ef50
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x38(%r15), %rax
movq 0x40(%r15), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
cmpq %rbp, %rcx
jbe 0x4febe
movq (%rax,%r13), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x3e1d0
incq %rbp
addq $0x10, %r13
jmp 0x4ff1d
jmp 0x4ff79
jmp 0x4ff8f
jmp 0x4ff79
jmp 0x4ff8f
movq %rdx, %r14
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
jmp 0x4ff6c
movq %rdx, %r14
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x3ef50
jmp 0x4ff95
jmp 0x4ff8f
jmp 0x4ff8f
jmp 0x4ff79
movq %rdx, %r14
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x40650
jmp 0x4ff95
jmp 0x4ff8f
jmp 0x4ff8f
movq %rdx, %r14
movq %rax, %rbx
cmpl $0x1, %r14d
jne 0x4ffea
movq %rbx, %rdi
callq 0x3ed90
movq %rax, %rbx
movq 0x2eeab(%rip), %rdi     # 0x7ee58
leaq 0x165b9(%rip), %rsi     # 0x6656d
callq 0x405b0
movq %rax, %r14
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x405b0
movq %rax, %rdi
callq 0x3f0a0
callq 0x41d30
jmp 0x4febe
movq %rax, %rbx
callq 0x41d30
movq %rbx, %rdi
callq 0x42200
movq %rax, %rdi
callq 0x43915