// File: /workspace/github_cpp_makefile_star2_O2/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 %rsi, %rbx
movq %rdi, %r14
addq $0x18, %rbx
leaq 0xa8(%rdi), %rax
movq %rax, (%rsp)
movq 0x6083(%rip), %r13      # 0xbfe0
leaq 0x3144(%rip), %r12      # 0x90a8
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x60f9
cmpl $0x1, 0x8(%rbx)
jne 0x60f0
movq %rbx, %rdi
callq 0x54e0
testq %rax, %rax
je 0x60f0
movq %rax, %r15
cmpb $0x0, (%rax)
je 0x60e9
movq 0x10(%rbx), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x5620
testl %eax, %eax
je 0x6065
movq %rbp, %rdi
leaq 0x30fa(%rip), %rsi      # 0x90b2
callq 0x5620
testl %eax, %eax
je 0x6072
movq %rbp, %rdi
leaq 0x30ed(%rip), %rsi      # 0x90bc
callq 0x5620
testl %eax, %eax
je 0x6080
movq %rbp, %rdi
leaq 0x30df(%rip), %rsi      # 0x90c5
callq 0x5620
testl %eax, %eax
je 0x608e
movq %rbp, %rdi
leaq 0x30cd(%rip), %rsi      # 0x90ca
callq 0x5620
testl %eax, %eax
je 0x609c
movq %rbp, %rdi
leaq 0x30a1(%rip), %rsi      # 0x90b5
callq 0x5620
testl %eax, %eax
je 0x60bc
movq %rbp, %rdi
leaq 0x30ab(%rip), %rsi      # 0x90d6
callq 0x5620
testl %eax, %eax
je 0x60cd
movq %rbp, %rdi
leaq 0x309b(%rip), %rsi      # 0x90dd
callq 0x5620
testl %eax, %eax
je 0x60de
leaq 0x3094(%rip), %rdi      # 0x90ea
movq %rbp, %rsi
xorl %eax, %eax
callq 0x5050
jmp 0x60e9
movq %r14, %rdi
movq %r15, %rsi
callq 0x5820
jmp 0x60e9
movq %r15, %rdi
callq 0x56b0
movl %eax, 0x20(%r14)
jmp 0x60e9
movq %r15, %rdi
callq 0x56b0
movl %eax, 0x24(%r14)
jmp 0x60e9
movq %r15, %rdi
callq 0x56b0
movl %eax, 0x28(%r14)
jmp 0x60e9
movq %r15, %rdi
callq 0x56b0
movl %eax, 0x98(%r14)
testl %eax, %eax
je 0x60e9
movl %eax, %esi
movq (%rsp), %rdi
callq 0x52e0
jmp 0x60e9
movq %r15, %rdi
callq 0x56b0
movl %eax, 0x9c(%r14)
jmp 0x60e9
movq %r15, %rdi
callq 0x56b0
movl %eax, 0xa0(%r14)
jmp 0x60e9
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5700
movq %r15, %rdi
callq *(%r13)
addq $0x30, %rbx
jmp 0x5f64
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq