// File: /workspace/github_cpp_makefile_star2_O1/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 0x402d8
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1c17c(%rip), %rcx     # 0x5c2c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x0, (%r12)
jne 0x4018e
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 0x40184
callq 0x2f370
cmpl $0x9, %ebp
jne 0x4018e
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 0x401ba
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 0x401eb
callq 0x2f6c0
movb (%r12), %bpl
cmpb $0x1, %bpl
jne 0x402b3
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x2f8c0
movq 0x8(%rsp), %rdi
callq 0x2f6e0
cmpl $0x9, %eax
setne %r15b
jmp 0x402b6
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 0x40244
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 0x40275
callq 0x2f6c0
movq 0x38(%r15), %rax
cmpq %rax, 0x40(%r15)
je 0x402d8
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 0x40284
jmp 0x402d8
xorl %r15d, %r15d
testb %bpl, %bpl
je 0x402ca
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x402ca
callq 0x2f370
testb %r15b, %r15b
je 0x402d8
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
jmp 0x4031d
jmp 0x40338
jmp 0x4031d
jmp 0x40338
movq %rdx, %r14
movq %rax, %rbx
leaq 0x28(%rsp), %rax
jmp 0x40307
movq %rdx, %r14
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4033e
callq 0x2f6c0
jmp 0x4033e
jmp 0x40338
jmp 0x40338
jmp 0x4031d
movq %rdx, %r14
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4033e
callq 0x2f370
jmp 0x4033e
jmp 0x40338
jmp 0x40338
movq %rdx, %r14
movq %rax, %rbx
cmpl $0x1, %r14d
jne 0x40399
movq %rbx, %rdi
callq 0x2e8b0
movq %rax, %rbx
movq 0x31b0a(%rip), %rdi     # 0x71e60
leaq 0x1c198(%rip), %rsi     # 0x5c4f5
movl $0x14, %edx
callq 0x2fb20
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq 0x31ae9(%rip), %rdi     # 0x71e60
movq %rax, %rsi
callq 0x2f800
movq %rax, %rdi
callq 0x2eab0
callq 0x30750
jmp 0x402d8
movq %rax, %rbx
callq 0x30750
movq %rbx, %rdi
callq 0x30a20
movq %rax, %rdi
callq 0x32108
nop