// File: /workspace/github_cpp_makefile_star2_O1/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 0x849d
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 0x4d55(%rip), %r15      # 0xcfe0
leaq 0x1fb3(%rip), %rbp      # 0xa245
cmpl $0x1, 0x8(%r14)
jne 0x8427
movq %r14, %rdi
callq 0x43b0
testq %rax, %rax
je 0x8427
movq %rax, %r12
cmpb $0x0, (%rax)
je 0x8421
movq 0x10(%r14), %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4470
testl %eax, %eax
je 0x83ca
movq %r13, %rdi
leaq 0x1f74(%rip), %rsi      # 0xa24f
callq 0x4470
testl %eax, %eax
je 0x83db
movq %r13, %rdi
leaq 0x1f68(%rip), %rsi      # 0xa25a
callq 0x4470
testl %eax, %eax
je 0x83ee
movq %r13, %rdi
leaq 0x1f5f(%rip), %rsi      # 0xa268
callq 0x4470
testl %eax, %eax
je 0x8401
movq %r13, %rdi
leaq 0x1f52(%rip), %rsi      # 0xa272
callq 0x4470
testl %eax, %eax
je 0x8436
movq %r13, %rdi
leaq 0x1f4a(%rip), %rsi      # 0xa281
callq 0x4470
testl %eax, %eax
je 0x8443
movq %r13, %rdi
leaq 0x1f42(%rip), %rsi      # 0xa290
callq 0x4470
testl %eax, %eax
je 0x8453
movq %r13, %rdi
leaq 0x1d50(%rip), %rsi      # 0xa0b5
callq 0x4470
testl %eax, %eax
je 0x8463
movq %r13, %rdi
leaq 0x1d5a(%rip), %rsi      # 0xa0d6
callq 0x4470
testl %eax, %eax
je 0x8473
movq %r13, %rdi
leaq 0x1f09(%rip), %rsi      # 0xa29c
callq 0x4470
testl %eax, %eax
je 0x8483
movq %r13, %rdi
leaq 0x1efa(%rip), %rsi      # 0xa2a4
callq 0x4470
testl %eax, %eax
je 0x8490
leaq 0x1eed(%rip), %rdi      # 0xa2ab
movq %r13, %rsi
xorl %eax, %eax
callq 0x4030
jmp 0x8421
movq 0x8(%rbx), %r13
movq %r12, %rdi
callq 0x4130
movq %rbx, %rdi
jmp 0x8411
movq 0x28(%rbx), %r13
movq %r12, %rdi
callq 0x4130
movq 0x10(%rsp), %rdi
jmp 0x8411
movq 0x48(%rbx), %r13
movq %r12, %rdi
callq 0x4130
movq 0x8(%rsp), %rdi
jmp 0x8411
movq 0x70(%rbx), %r13
movq %r12, %rdi
callq 0x4130
movq (%rsp), %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x44f0
movq %r12, %rdi
callq *(%r15)
movq 0x30(%r14), %r14
testq %r14, %r14
jne 0x8292
jmp 0x849d
movq %r12, %rdi
callq 0x4500
movl %eax, 0x60(%rbx)
jmp 0x8421
movq %r12, %rdi
callq 0x4500
movl %eax, 0x88(%rbx)
jmp 0x8421
movq %r12, %rdi
callq 0x4500
movl %eax, 0x8c(%rbx)
jmp 0x8421
movq %r12, %rdi
callq 0x4500
movl %eax, 0x90(%rbx)
jmp 0x8421
movq %r12, %rdi
callq 0x4500
movl %eax, 0x94(%rbx)
jmp 0x8421
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4430
jmp 0x8421
movq %rbx, %rdi
movq %r14, %rsi
callq 0x42f0
jmp 0x8421
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq