// File: /workspace/github_cpp_makefile_star2_O1/devinsmith[P]qvdreader/QvdField.cpp
// Function: QvdField::ParseXml(_xmlNode const*)
void QvdField::ParseXml(const xmlNode *node)
{
  for (const xmlNode *child = node->children; child; child = child->next) {
    if (child->type == XML_ELEMENT_NODE) {
      xmlChar *nodeContent = xmlNodeGetContent(child);
      if (nodeContent == NULL)
        continue;

      if (strlen((char *)nodeContent) == 0) {
        xmlFree(nodeContent);
        continue;
      }

      if (strcmp((char *)child->name, "FieldName") == 0) {
        FieldName = (char *)nodeContent;
      } else if (strcmp((char *)child->name, "BitOffset") == 0) {
        BitOffset = atoi((char *)nodeContent);
      } else if (strcmp((char *)child->name, "BitWidth") == 0) {
        BitWidth = atoi((char *)nodeContent);
      } else if (strcmp((char *)child->name, "Bias") == 0) {
        Bias = atoi((char *)nodeContent);
      } else if (strcmp((char *)child->name, "NoOfSymbols") == 0) {
        NoOfSymbols = atoi((char *)nodeContent);

        if (NoOfSymbols > 0) {
          Symbols.reserve(NoOfSymbols);
        }
      } else if (strcmp((char *)child->name, "Offset") == 0) {
        Offset = atoi((char *)nodeContent);
      } else if (strcmp((char *)child->name, "Length") == 0) {
        Length = atoi((char *)nodeContent);
      } else if (strcmp((char *)child->name, "NumberFormat") == 0) {
        ParseNumberFormat(child);
      } else {
        printf("Unprocessed QvdFieldHeader tag: %s\n", child->name);
      }
      xmlFree(nodeContent);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rsi), %r14
testq %r14, %r14
je 0x5038
movq %rdi, %rbx
leaq 0xa8(%rdi), %rax
movq %rax, (%rsp)
movq 0x814b(%rip), %r13      # 0xcfe0
leaq 0x520c(%rip), %r12      # 0xa0a8
cmpl $0x1, 0x8(%r14)
jne 0x502b
movq %r14, %rdi
callq 0x43b0
testq %rax, %rax
je 0x502b
movq %rax, %r15
cmpb $0x0, (%rax)
je 0x5024
movq 0x10(%r14), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x4470
testl %eax, %eax
je 0x4f92
movq %rbp, %rdi
leaq 0x51cd(%rip), %rsi      # 0xa0b2
callq 0x4470
testl %eax, %eax
je 0x4fb3
movq %rbp, %rdi
leaq 0x51c0(%rip), %rsi      # 0xa0bc
callq 0x4470
testl %eax, %eax
je 0x4fc0
movq %rbp, %rdi
leaq 0x51b2(%rip), %rsi      # 0xa0c5
callq 0x4470
testl %eax, %eax
je 0x4fcd
movq %rbp, %rdi
leaq 0x51a0(%rip), %rsi      # 0xa0ca
callq 0x4470
testl %eax, %eax
je 0x4fda
movq %rbp, %rdi
leaq 0x5174(%rip), %rsi      # 0xa0b5
callq 0x4470
testl %eax, %eax
je 0x4ff9
movq %rbp, %rdi
leaq 0x517e(%rip), %rsi      # 0xa0d6
callq 0x4470
testl %eax, %eax
je 0x5009
movq %rbp, %rdi
leaq 0x516e(%rip), %rsi      # 0xa0dd
callq 0x4470
testl %eax, %eax
je 0x5019
leaq 0x5167(%rip), %rdi      # 0xa0ea
movq %rbp, %rsi
xorl %eax, %eax
callq 0x4030
jmp 0x5024
movq 0x8(%rbx), %rbp
movq %r15, %rdi
callq 0x4130
movq %rbx, %rdi
xorl %esi, %esi
movq %rbp, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x44f0
jmp 0x5024
movq %r15, %rdi
callq 0x4500
movl %eax, 0x20(%rbx)
jmp 0x5024
movq %r15, %rdi
callq 0x4500
movl %eax, 0x24(%rbx)
jmp 0x5024
movq %r15, %rdi
callq 0x4500
movl %eax, 0x28(%rbx)
jmp 0x5024
movq %r15, %rdi
callq 0x4500
movl %eax, 0x98(%rbx)
testl %eax, %eax
je 0x5024
movl %eax, %esi
movq (%rsp), %rdi
callq 0x4210
jmp 0x5024
movq %r15, %rdi
callq 0x4500
movl %eax, 0x9c(%rbx)
jmp 0x5024
movq %r15, %rdi
callq 0x4500
movl %eax, 0xa0(%rbx)
jmp 0x5024
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4540
movq %r15, %rdi
callq *(%r13)
movq 0x30(%r14), %r14
testq %r14, %r14
jne 0x4e9c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop