// File: /workspace/github_cpp_makefile_star2_O3/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 0x3fffc
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1b44a(%rip), %rcx     # 0x5b2c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x0, (%r12)
jne 0x3fec0
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x2f8c0
movq 0x8(%rsp), %rdi
callq 0x2f6e0
movl %eax, %ebp
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3feb6
callq 0x2f370
cmpl $0x9, %ebp
jne 0x3fec0
movb $0x1, (%r12)
movq 0x8(%r14), %r13
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x2f8c0
movq 0x8(%rsp), %rdi
callq 0x2f6e0
movl %eax, %ebp
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3feec
callq 0x2f370
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 0x2e770
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ff1d
callq 0x2f6c0
cmpb $0x1, (%r12)
jne 0x3fffc
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x2f8c0
movq 0x8(%rsp), %rdi
callq 0x2f6e0
movl %eax, %ebp
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3ff50
callq 0x2f370
cmpl $0x9, %ebp
je 0x3fffc
movl 0x8(%r14), %eax
subl %r13d, %eax
addl %eax, (%rbx)
jmp 0x3fffc
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x2f8c0
movq 0x8(%rsp), %rdi
callq 0x2f6e0
movl %eax, %ebp
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3ff8f
callq 0x2f370
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 0x2e770
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ffc0
callq 0x2f6c0
movq 0x38(%r15), %rax
cmpq %rax, 0x40(%r15)
je 0x3fffc
xorl %r13d, %r13d
xorl %ebp, %ebp
movq (%rax,%r13), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x2e120
incq %rbp
movq 0x38(%r15), %rax
movq 0x40(%r15), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
addq $0x10, %r13
cmpq %rbp, %rcx
ja 0x3ffcf
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x40041
jmp 0x4005c
jmp 0x40041
jmp 0x4005c
movq %rdx, %r14
movq %rax, %rbx
leaq 0x28(%rsp), %rax
jmp 0x4002b
movq %rdx, %r14
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40062
callq 0x2f6c0
jmp 0x40062
jmp 0x4005c
jmp 0x4005c
jmp 0x40041
movq %rdx, %r14
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x40062
callq 0x2f370
jmp 0x40062
jmp 0x4005c
jmp 0x4005c
movq %rdx, %r14
movq %rax, %rbx
cmpl $0x1, %r14d
jne 0x400bd
movq %rbx, %rdi
callq 0x2e8b0
movq %rax, %rbx
movq 0x30de6(%rip), %rdi     # 0x70e60
leaq 0x1b474(%rip), %rsi     # 0x5b4f5
movl $0x14, %edx
callq 0x2fb10
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq 0x30dc5(%rip), %rdi     # 0x70e60
movq %rax, %rsi
callq 0x2f800
movq %rax, %rdi
callq 0x2eab0
callq 0x30740
jmp 0x3fffc
movq %rax, %rbx
callq 0x30740
movq %rbx, %rdi
callq 0x30a10
movq %rax, %rdi
callq 0x320e8
nop