// File: /workspace/github_cpp_makefile_star2_O3/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 0x5028
movq %rdi, %rbx
leaq 0xa8(%rdi), %rax
movq %rax, (%rsp)
movq 0x815b(%rip), %r13      # 0xcfe0
leaq 0x521c(%rip), %r12      # 0xa0a8
cmpl $0x1, 0x8(%r14)
jne 0x501b
movq %r14, %rdi
callq 0x43a0
testq %rax, %rax
je 0x501b
movq %rax, %r15
cmpb $0x0, (%rax)
je 0x5014
movq 0x10(%r14), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x4460
testl %eax, %eax
je 0x4f82
movq %rbp, %rdi
leaq 0x51dd(%rip), %rsi      # 0xa0b2
callq 0x4460
testl %eax, %eax
je 0x4fa3
movq %rbp, %rdi
leaq 0x51d0(%rip), %rsi      # 0xa0bc
callq 0x4460
testl %eax, %eax
je 0x4fb0
movq %rbp, %rdi
leaq 0x51c2(%rip), %rsi      # 0xa0c5
callq 0x4460
testl %eax, %eax
je 0x4fbd
movq %rbp, %rdi
leaq 0x51b0(%rip), %rsi      # 0xa0ca
callq 0x4460
testl %eax, %eax
je 0x4fca
movq %rbp, %rdi
leaq 0x5184(%rip), %rsi      # 0xa0b5
callq 0x4460
testl %eax, %eax
je 0x4fe9
movq %rbp, %rdi
leaq 0x518e(%rip), %rsi      # 0xa0d6
callq 0x4460
testl %eax, %eax
je 0x4ff9
movq %rbp, %rdi
leaq 0x517e(%rip), %rsi      # 0xa0dd
callq 0x4460
testl %eax, %eax
je 0x5009
leaq 0x5177(%rip), %rdi      # 0xa0ea
movq %rbp, %rsi
xorl %eax, %eax
callq 0x4030
jmp 0x5014
movq 0x8(%rbx), %rbp
movq %r15, %rdi
callq 0x4120
movq %rbx, %rdi
xorl %esi, %esi
movq %rbp, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x44e0
jmp 0x5014
movq %r15, %rdi
callq 0x44f0
movl %eax, 0x20(%rbx)
jmp 0x5014
movq %r15, %rdi
callq 0x44f0
movl %eax, 0x24(%rbx)
jmp 0x5014
movq %r15, %rdi
callq 0x44f0
movl %eax, 0x28(%rbx)
jmp 0x5014
movq %r15, %rdi
callq 0x44f0
movl %eax, 0x98(%rbx)
testl %eax, %eax
je 0x5014
movl %eax, %esi
movq (%rsp), %rdi
callq 0x4200
jmp 0x5014
movq %r15, %rdi
callq 0x44f0
movl %eax, 0x9c(%rbx)
jmp 0x5014
movq %r15, %rdi
callq 0x44f0
movl %eax, 0xa0(%rbx)
jmp 0x5014
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4530
movq %r15, %rdi
callq *(%r13)
movq 0x30(%r14), %r14
testq %r14, %r14
jne 0x4e8c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop