// File: /workspace/github_cpp_makefile_star2_O1/loadzero[P]geoloc/geoloc/query.hpp
// Function: GeoData::read_header()
void read_header()
    {
        const char* raw = (const char*) mem_file_.get_mem(32);

        std::string header(raw, raw + 32);
        std::string scratch;
        std::vector<char*> toks;

        char_split(header, scratch, toks, ' ');

        if (toks.size() != 5)
        {
            FATAL_ERROR("header is corrupt - %s", header.c_str());
        }

        check_header_value("header1", toks[0], "geoloc");
        check_header_value("header2", toks[1], "loadzero");
        check_header_value("version", toks[2], "v001");
        check_header_value("endian", toks[3], get_endian());
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rax
subq %rax, %rcx
cmpq $0x20, %rcx
jae 0x8b7a
xorl %esi, %esi
jmp 0x8b88
movq (%rbx), %rsi
addq %rax, %rsi
addq $0x20, %rax
movq %rax, 0x10(%rbx)
leaq 0x20(%rsi), %rdx
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x28(%rsp), %rdi
callq 0x8f40
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
xorl %eax, %eax
movq %rax, -0x8(%r13)
movb $0x0, (%r13)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq %rax, 0x10(%rsp)
cmpq %rax, 0x8(%rsp)
je 0x8bd0
movq $0x0, 0x8(%rsp)
leaq 0x48(%rsp), %rdi
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
xorl %esi, %esi
xorl %edx, %edx
callq 0x3230
movq 0x48(%rsp), %rbp
cmpb $0x0, (%rbp)
je 0x8c55
movb $0x1, %al
movq %rsp, %r14
leaq 0x20(%rsp), %r15
testb $0x1, %al
jne 0x8c14
movb $0x0, (%rbp)
incq %rbp
movq %rbp, %rax
movq %rbp, 0x20(%rsp)
decq %rbp
movzbl 0x1(%rbp), %ecx
incq %rbp
testb $-0x21, %cl
jne 0x8c1f
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x8c42
movq %rax, (%rsi)
addq $0x8, 0x8(%rsp)
jmp 0x8c4d
movq %r14, %rdi
movq %r15, %rdx
callq 0x4e6c
xorl %eax, %eax
cmpb $0x0, (%rbp)
jne 0x8c09
movq 0x8(%rsp), %rax
subq (%rsp), %rax
cmpq $0x28, %rax
je 0x8c83
movq 0x28(%rsp), %rcx
leaq 0x29a8(%rip), %rdi      # 0xb618
leaq 0x2ac9(%rip), %rdx      # 0xb740
movl $0x70, %esi
xorl %eax, %eax
callq 0xa50c
movq (%rsp), %rax
movq (%rax), %rdx
leaq 0x2ac6(%rip), %rsi      # 0xb757
leaq 0x2ac7(%rip), %rcx      # 0xb75f
movq %rbx, %rdi
callq 0x8ef4
movq (%rsp), %rax
movq 0x8(%rax), %rdx
leaq 0x2ab7(%rip), %rsi      # 0xb766
leaq 0x2ab8(%rip), %rcx      # 0xb76e
movq %rbx, %rdi
callq 0x8ef4
movq (%rsp), %rax
movq 0x10(%rax), %rdx
leaq 0x2aaa(%rip), %rsi      # 0xb777
leaq 0x2aab(%rip), %rcx      # 0xb77f
movq %rbx, %rdi
callq 0x8ef4
movq (%rsp), %rax
movq 0x18(%rax), %rdx
leaq 0x2a99(%rip), %rsi      # 0xb784
leaq 0x2610(%rip), %rcx      # 0xb302
movq %rbx, %rdi
callq 0x8ef4
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8d08
callq 0x31d0
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x8d17
callq 0x31d0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x8d26
callq 0x31d0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8d37
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8d48
callq 0x31d0
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x8d57
callq 0x31d0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x8d66
callq 0x31d0
movq %rbx, %rdi
callq 0x3350