// File: /workspace/github_cpp_makefile_star2_O3/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 0x8c14
xorl %esi, %esi
jmp 0x8c22
movq (%rbx), %rsi
addq %rax, %rsi
addq $0x20, %rax
movq %rax, 0x10(%rbx)
leaq 0x20(%rsi), %rdx
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x8fc8
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
xorl %eax, %eax
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq %rax, -0x8(%r13)
movb $0x0, (%r13)
movq (%r14), %rcx
movq 0x8(%r14), %r8
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3230
movq 0x28(%rsp), %rbp
cmpb $0x0, (%rbp)
je 0x8cde
movb $0x1, %al
movq %rsp, %r14
leaq 0x20(%rsp), %r15
testb $0x1, %al
jne 0x8c92
movb $0x0, (%rbp)
incq %rbp
movq %rbp, %rax
movq %rbp, 0x20(%rsp)
decq %rbp
movzbl 0x1(%rbp), %ecx
incq %rbp
testb $-0x21, %cl
jne 0x8c9d
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x8cc0
movq %rax, (%rsi)
addq $0x8, 0x8(%rsp)
jmp 0x8ccb
movq %r14, %rdi
movq %r15, %rdx
callq 0x4f00
xorl %eax, %eax
cmpb $0x0, (%rbp)
jne 0x8c87
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
jmp 0x8ce2
xorl %eax, %eax
xorl %ecx, %ecx
subq %rax, %rcx
cmpq $0x28, %rcx
je 0x8d0e
movq 0x48(%rsp), %rcx
leaq 0x2921(%rip), %rdi      # 0xb618
leaq 0x2a42(%rip), %rdx      # 0xb740
movl $0x70, %esi
xorl %eax, %eax
callq 0xa594
movq (%rsp), %rax
movq (%rax), %rdx
leaq 0x2a3f(%rip), %rsi      # 0xb757
leaq 0x2a40(%rip), %rcx      # 0xb75f
movq %rbx, %rdi
callq 0x8f7c
movq (%rsp), %rax
movq 0x8(%rax), %rdx
leaq 0x2a30(%rip), %rsi      # 0xb766
leaq 0x2a31(%rip), %rcx      # 0xb76e
movq %rbx, %rdi
callq 0x8f7c
movq (%rsp), %rax
movq 0x10(%rax), %rdx
leaq 0x2a23(%rip), %rsi      # 0xb777
leaq 0x2a24(%rip), %rcx      # 0xb77f
movq %rbx, %rdi
callq 0x8f7c
movq (%rsp), %rax
movq 0x18(%rax), %rdx
leaq 0x2a12(%rip), %rsi      # 0xb784
leaq 0x2589(%rip), %rcx      # 0xb302
movq %rbx, %rdi
callq 0x8f7c
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8d8f
callq 0x31d0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x8d9e
callq 0x31d0
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x8dad
callq 0x31d0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8dbe
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8dcf
callq 0x31d0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x8dde
callq 0x31d0
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x8ded
callq 0x31d0
movq %rbx, %rdi
callq 0x3350
nop