// File: /workspace/github_cpp_makefile_star2_O3/devinsmith[P]qvdreader/QvdTableHeader.cpp
// Function: QvdTableHeader::ParseXml(_xmlNode const*)
void QvdTableHeader::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, "QvBuildNo") == 0) {
        QvBuildNo = (char *)nodeContent;
      } else if (strcmp((char *)child->name, "CreatorDoc") == 0) {
        CreatorDoc = (char *)nodeContent;
      } else if (strcmp((char *)child->name, "CreateUtcTime") == 0) {
        CreateUtcTime = (char *)nodeContent;
      } else if (strcmp((char *)child->name, "TableName") == 0) {
        TableName = (char *)nodeContent;
      } else if (strcmp((char *)child->name, "SourceFileSize") == 0) {
        SourceFileSize = atoi((char *)nodeContent);
      } else if (strcmp((char *)child->name, "RecordByteSize") == 0) {
        RecordByteSize = atoi((char *)nodeContent);
      } else if (strcmp((char *)child->name, "NoOfRecords") == 0) {
        NoOfRecords = atoi((char *)nodeContent);
      } 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, "Lineage") == 0) {
        ParseLineage(child);
      } else if (strcmp((char *)child->name, "Fields") == 0) {
        ParseFields(child);
      } else {
        printf("Unprocessed QvdTableHeader tag: %s\n", child->name);
      }

      xmlFree(nodeContent);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x18(%rsi), %r14
testq %r14, %r14
je 0x8465
movq %rdi, %rbx
leaq 0x68(%rdi), %rax
movq %rax, (%rsp)
leaq 0x40(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0x20(%rdi), %rax
movq %rax, 0x10(%rsp)
movq 0x4d8d(%rip), %r15      # 0xcfe0
leaq 0x1feb(%rip), %rbp      # 0xa245
cmpl $0x1, 0x8(%r14)
jne 0x83ef
movq %r14, %rdi
callq 0x43a0
testq %rax, %rax
je 0x83ef
movq %rax, %r12
cmpb $0x0, (%rax)
je 0x83e9
movq 0x10(%r14), %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4460
testl %eax, %eax
je 0x8392
movq %r13, %rdi
leaq 0x1fac(%rip), %rsi      # 0xa24f
callq 0x4460
testl %eax, %eax
je 0x83a3
movq %r13, %rdi
leaq 0x1fa0(%rip), %rsi      # 0xa25a
callq 0x4460
testl %eax, %eax
je 0x83b6
movq %r13, %rdi
leaq 0x1f97(%rip), %rsi      # 0xa268
callq 0x4460
testl %eax, %eax
je 0x83c9
movq %r13, %rdi
leaq 0x1f8a(%rip), %rsi      # 0xa272
callq 0x4460
testl %eax, %eax
je 0x83fe
movq %r13, %rdi
leaq 0x1f82(%rip), %rsi      # 0xa281
callq 0x4460
testl %eax, %eax
je 0x840b
movq %r13, %rdi
leaq 0x1f7a(%rip), %rsi      # 0xa290
callq 0x4460
testl %eax, %eax
je 0x841b
movq %r13, %rdi
leaq 0x1d88(%rip), %rsi      # 0xa0b5
callq 0x4460
testl %eax, %eax
je 0x842b
movq %r13, %rdi
leaq 0x1d92(%rip), %rsi      # 0xa0d6
callq 0x4460
testl %eax, %eax
je 0x843b
movq %r13, %rdi
leaq 0x1f41(%rip), %rsi      # 0xa29c
callq 0x4460
testl %eax, %eax
je 0x844b
movq %r13, %rdi
leaq 0x1f32(%rip), %rsi      # 0xa2a4
callq 0x4460
testl %eax, %eax
je 0x8458
leaq 0x1f25(%rip), %rdi      # 0xa2ab
movq %r13, %rsi
xorl %eax, %eax
callq 0x4030
jmp 0x83e9
movq 0x8(%rbx), %r13
movq %r12, %rdi
callq 0x4120
movq %rbx, %rdi
jmp 0x83d9
movq 0x28(%rbx), %r13
movq %r12, %rdi
callq 0x4120
movq 0x10(%rsp), %rdi
jmp 0x83d9
movq 0x48(%rbx), %r13
movq %r12, %rdi
callq 0x4120
movq 0x8(%rsp), %rdi
jmp 0x83d9
movq 0x70(%rbx), %r13
movq %r12, %rdi
callq 0x4120
movq (%rsp), %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x44e0
movq %r12, %rdi
callq *(%r15)
movq 0x30(%r14), %r14
testq %r14, %r14
jne 0x825a
jmp 0x8465
movq %r12, %rdi
callq 0x44f0
movl %eax, 0x60(%rbx)
jmp 0x83e9
movq %r12, %rdi
callq 0x44f0
movl %eax, 0x88(%rbx)
jmp 0x83e9
movq %r12, %rdi
callq 0x44f0
movl %eax, 0x8c(%rbx)
jmp 0x83e9
movq %r12, %rdi
callq 0x44f0
movl %eax, 0x90(%rbx)
jmp 0x83e9
movq %r12, %rdi
callq 0x44f0
movl %eax, 0x94(%rbx)
jmp 0x83e9
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4420
jmp 0x83e9
movq %rbx, %rdi
movq %r14, %rsi
callq 0x42e0
jmp 0x83e9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq