// File: /workspace/github_cpp_makefile_star2_O2/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 %rsi, %rbx
movq %rdi, %r14
addq $0x18, %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 0x48e7(%rip), %r13      # 0xbfe0
leaq 0x1b14(%rip), %rbp      # 0x9214
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x78de
cmpl $0x1, 0x8(%rbx)
jne 0x7869
movq %rbx, %rdi
callq 0x54e0
testq %rax, %rax
je 0x7869
movq %rax, %r12
cmpb $0x0, (%rax)
je 0x7862
movq 0x10(%rbx), %r15
movq %r15, %rdi
movq %rbp, %rsi
callq 0x5620
testl %eax, %eax
je 0x7843
movq %r15, %rdi
leaq 0x1aca(%rip), %rsi      # 0x921e
callq 0x5620
testl %eax, %eax
je 0x7848
movq %r15, %rdi
leaq 0x1abe(%rip), %rsi      # 0x9229
callq 0x5620
testl %eax, %eax
je 0x784f
movq %r15, %rdi
leaq 0x1ab5(%rip), %rsi      # 0x9237
callq 0x5620
testl %eax, %eax
je 0x7856
movq %r15, %rdi
leaq 0x1aa8(%rip), %rsi      # 0x9241
callq 0x5620
testl %eax, %eax
je 0x7872
movq %r15, %rdi
leaq 0x1aa0(%rip), %rsi      # 0x9250
callq 0x5620
testl %eax, %eax
je 0x7880
movq %r15, %rdi
leaq 0x1a98(%rip), %rsi      # 0x925f
callq 0x5620
testl %eax, %eax
je 0x7891
movq %r15, %rdi
leaq 0x18d7(%rip), %rsi      # 0x90b5
callq 0x5620
testl %eax, %eax
je 0x78a2
movq %r15, %rdi
leaq 0x18e1(%rip), %rsi      # 0x90d6
callq 0x5620
testl %eax, %eax
je 0x78b3
movq %r15, %rdi
leaq 0x1a5f(%rip), %rsi      # 0x926b
callq 0x5620
testl %eax, %eax
je 0x78c4
movq %r15, %rdi
leaq 0x1a50(%rip), %rsi      # 0x9273
callq 0x5620
testl %eax, %eax
je 0x78d1
leaq 0x1a43(%rip), %rdi      # 0x927a
movq %r15, %rsi
xorl %eax, %eax
callq 0x5050
jmp 0x7862
movq %r14, %rdi
jmp 0x785a
movq 0x10(%rsp), %rdi
jmp 0x785a
movq 0x8(%rsp), %rdi
jmp 0x785a
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x5820
movq %r12, %rdi
callq *(%r13)
addq $0x30, %rbx
jmp 0x7700
movq %r12, %rdi
callq 0x56b0
movl %eax, 0x60(%r14)
jmp 0x7862
movq %r12, %rdi
callq 0x56b0
movl %eax, 0x88(%r14)
jmp 0x7862
movq %r12, %rdi
callq 0x56b0
movl %eax, 0x8c(%r14)
jmp 0x7862
movq %r12, %rdi
callq 0x56b0
movl %eax, 0x90(%r14)
jmp 0x7862
movq %r12, %rdi
callq 0x56b0
movl %eax, 0x94(%r14)
jmp 0x7862
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5590
jmp 0x7862
movq %r14, %rdi
movq %rbx, %rsi
callq 0x53f0
jmp 0x7862
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop