// File: /workspace/github_cpp_makefile_star2_O3/grisu48[P]geoJson/geoJson.cpp
// Function: processStream(std::istream&, std::ostream&)
static bool processStream(istream &in, ostream &out = cout) {
	out << setprecision(7);
	
    // Read stream to end
    stringstream buf;
    string text;
    while((getline(in, text)))
        buf << text << '\n';
    text = buf.str();
    
    
    // Parse GPX
    try {
        xml_document<> doc;                     // character type defaults to char
        doc.parse<0>((char*)text.c_str());      // 0 means default parse flags
        
        xml_node<> *node = doc.first_node("gpx");
        if(node == NULL) throw "No data";
        
        // Get GPX attributes
        map<string, string> attrs;              // GPX attributes
        for (xml_attribute<> *attr = node->first_attribute(); attr; attr = attr->next_attribute())
            attrs[attr->name()] = attr->value();

        vector<Coords> coords;

        // Read out tracks
        for (xml_node<> *child = node->first_node("trk"); child; child = child->next_sibling("trk"))
        {
            // Scan for track segments
            for (xml_node<> *seg = child->first_node("trkseg"); seg; seg = seg->next_sibling("trkseg")) {
                // And track points
                for (xml_node<> *pt = seg->first_node("trkpt"); pt; pt = pt->next_sibling("trkpt")) {
                    
                    Coords coord;
                    
                    for (xml_attribute<> *attr = pt->first_attribute(); attr; attr = attr->next_attribute()) {
                        string name = attr->name();
                        if(name == "lon")
                            coord.lon = ::atof(attr->value());
                        else if(name == "lat")
                            coord.lat = ::atof(attr->value());
                    }
                    for (xml_node<> *p = pt->first_node(); p; p = p->next_sibling()) {
                        string name = p->name();
                        if(name == "ele")
                            coord.ele = ::atof(p->value());
                        else if (name == "time")
                            coord.time = p->value();
                    }
                    
                    coords.push_back(coord);
                    
                }
            }
        }
        
        printGeoJson(out, coords);
        
    } catch (parse_error &e) {
        cerr << "Parse error: " << e.what() << endl;
        return false;
    } catch (const char* msg) {
        cerr << "Parse error: No GPX data" << endl;
        return false;
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x102f8, %rsp          # imm = 0x102F8
movq (%rsi), %rax
movq %rdi, %rbx
leaq 0xe8(%rsp), %rdi
movq %rsi, 0x8(%rsp)
movq -0x18(%rax), %rax
movq $0x7, 0x8(%rsi,%rax)
callq 0x2170
leaq 0x78(%rsp), %rax
leaq 0xf8(%rsp), %r14
leaq 0x68(%rsp), %r15
leaq 0x270(%rsp), %r12
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2330
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2d9c
movq 0x70(%rsp), %rdx
movq 0x68(%rsp), %rsi
movq %r14, %rdi
callq 0x2210
movb $0xa, 0x270(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2210
jmp 0x2d40
leaq 0x100(%rsp), %rsi
leaq 0x270(%rsp), %rdi
callq 0x22b0
leaq 0x270(%rsp), %rbx
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0x2220
movq (%rbx), %rdi
leaq 0x280(%rsp), %rax
cmpq %rax, %rdi
je 0x2ddb
callq 0x21c0
movq 0x68(%rsp), %rsi
leaq 0x2d0(%rsp), %rcx
vxorps %xmm0, %xmm0, %xmm0
xorl %eax, %eax
movq %rax, -0x40(%rcx)
vmovaps %xmm0, -0x60(%rcx)
movl $0x0, -0x38(%rcx)
movq %rax, -0x30(%rcx)
movq %rax, -0x20(%rcx)
leaq 0x102e8(%rsp), %rax
leaq 0x2e8(%rsp), %rcx
vmovups %xmm0, (%rax)
movq %rcx, -0x18(%rcx)
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
leaq 0x270(%rsp), %rdi
callq 0x3bae
leaq 0x344c(%rip), %rsi      # 0x6286
leaq 0x270(%rsp), %rdi
movl $0x1, %ecx
xorl %edx, %edx
callq 0x3cdc
testq %rax, %rax
je 0x3953
leaq 0xc0(%rsp), %rdx
xorl %ecx, %ecx
movq %rax, 0x18(%rsp)
movl $0x0, (%rdx)
movq %rcx, 0x8(%rdx)
movq %rdx, 0x10(%rdx)
movq %rdx, 0x18(%rdx)
movq %rcx, 0x20(%rdx)
movq 0x40(%rax), %r15
testq %r15, %r15
je 0x2f10
leaq 0x633a(%rip), %r12      # 0x91ca
leaq 0x20(%rsp), %r14
movq 0x8(%r15), %r13
movq (%r15), %rsi
testq %r13, %r13
cmoveq %r12, %r13
testq %rsi, %rsi
cmoveq %r12, %rsi
leaq 0x98(%rsp), %rdx
movq %r14, %rdi
callq 0x20e0
leaq 0xb8(%rsp), %rdi
movq %r14, %rsi
callq 0x3dc2
movq 0x8(%rax), %rbx
movq %r13, %rdi
movq %rax, %rbp
callq 0x2100
movq %rbp, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %r13, %rcx
movq %rax, %r8
callq 0x22a0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2f00
callq 0x21c0
cmpq $0x0, 0x20(%r15)
je 0x2f10
movq 0x30(%r15), %r15
testq %r15, %r15
jne 0x2e95
vxorps %xmm0, %xmm0, %xmm0
movq $0x0, 0x60(%rsp)
vmovaps %xmm0, 0x50(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x3363(%rip), %rsi      # 0x6292
movl $0x1, %ecx
xorl %edx, %edx
callq 0x3cdc
testq %rax, %rax
je 0x31ef
leaq 0x40(%rsp), %r15
leaq 0x627a(%rip), %rbp      # 0x91ca
leaq 0x98(%rsp), %rbx
leaq 0x17(%rsp), %r12
leaq 0x333f(%rip), %r13      # 0x62a3
leaq 0x332b(%rip), %rsi      # 0x6296
movl $0x1, %ecx
movq %rax, 0x88(%rsp)
movq %rax, %rdi
xorl %edx, %edx
callq 0x3cdc
movq %rax, %r14
testq %rax, %rax
je 0x31cb
leaq 0x3308(%rip), %rsi      # 0x629d
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x3cdc
movq %r14, 0x90(%rsp)
testq %rax, %rax
je 0x31a4
xorl %ecx, %ecx
movq %rcx, 0x20(%rsp)
movl $0x0, 0x28(%rsp)
movq %r15, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movb $0x0, 0x40(%rsp)
movq %rax, 0x18(%rsp)
movq 0x40(%rax), %r14
testq %r14, %r14
je 0x307c
movq (%r14), %rsi
testq %rsi, %rsi
cmoveq %rbp, %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0x20e0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x20b0
testl %eax, %eax
je 0x3038
leaq 0x3297(%rip), %rsi      # 0x62a7
movq %rbx, %rdi
callq 0x20b0
testl %eax, %eax
jne 0x3052
movq 0x8(%r14), %rdi
testq %rdi, %rdi
cmoveq %rbp, %rdi
callq 0x2230
vcvtsd2ss %xmm0, %xmm0, %xmm0
vmovss %xmm0, 0x24(%rsp)
jmp 0x3052
movq 0x8(%r14), %rdi
testq %rdi, %rdi
cmoveq %rbp, %rdi
callq 0x2230
vcvtsd2ss %xmm0, %xmm0, %xmm0
vmovss %xmm0, 0x20(%rsp)
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x306c
callq 0x21c0
cmpq $0x0, 0x20(%r14)
je 0x307c
movq 0x30(%r14), %r14
jmp 0x2fdc
movq 0x18(%rsp), %rax
leaq 0x3223(%rip), %r14      # 0x62ab
leaq 0x3220(%rip), %r15      # 0x62af
movq 0x30(%rax), %r13
testq %r13, %r13
je 0x3159
movq (%r13), %rsi
testq %rsi, %rsi
cmoveq %rbp, %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0x20e0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x20b0
testl %eax, %eax
je 0x310d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x20b0
testl %eax, %eax
jne 0x3127
movq 0x8(%r13), %r15
movq 0x38(%rsp), %r14
testq %r15, %r15
cmoveq %rbp, %r15
movq %r15, %rdi
callq 0x2100
leaq 0x30(%rsp), %rdi
movq %r14, %rdx
movq %r15, %rcx
xorl %esi, %esi
movq %rax, %r8
leaq 0x31ac(%rip), %r14      # 0x62ab
leaq 0x31a9(%rip), %r15      # 0x62af
callq 0x22a0
jmp 0x3127
movq 0x8(%r13), %rdi
testq %rdi, %rdi
cmoveq %rbp, %rdi
callq 0x2230
vcvtsd2ss %xmm0, %xmm0, %xmm0
vmovss %xmm0, 0x28(%rsp)
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x3141
callq 0x21c0
cmpq $0x0, 0x20(%r13)
je 0x3934
movq 0x58(%r13), %r13
testq %r13, %r13
jne 0x309c
leaq 0x50(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x3f24
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %r15
cmpq %r15, %rdi
je 0x317c
callq 0x21c0
movq 0x18(%rsp), %rdi
leaq 0x3115(%rip), %rsi      # 0x629d
movl $0x1, %ecx
xorl %edx, %edx
callq 0x3e3e
leaq 0x3108(%rip), %r13      # 0x62a3
testq %rax, %rax
jne 0x2fb5
movq 0x90(%rsp), %rdi
leaq 0x30e3(%rip), %rsi      # 0x6296
movl $0x1, %ecx
xorl %edx, %edx
callq 0x3e3e
movq %rax, %r14
testq %rax, %rax
jne 0x2f8e
movq 0x88(%rsp), %rdi
leaq 0x30b8(%rip), %rsi      # 0x6292
movl $0x1, %ecx
xorl %edx, %edx
callq 0x3e3e
testq %rax, %rax
jne 0x2f64
movq 0x8(%rsp), %rdi
leaq 0x33c0(%rip), %rsi      # 0x65bb
movl $0x1, %edx
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq 0x3346(%rip), %rsi      # 0x6580
movl $0x20, %edx
movq %rax, %rdi
movq %rax, %rbx
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq 0x3329(%rip), %rsi      # 0x65a1
movl $0x11, %edx
movq %rax, %rdi
movq %rax, %rbx
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq 0x32fd(%rip), %rsi      # 0x65b3
movl $0x9, %edx
movq %rax, %rdi
movq %rax, %rbx
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq 0x32c9(%rip), %rsi      # 0x65bd
movl $0x1e, %edx
movq %rax, %rdi
movq %rax, %rbx
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq 0x32aa(%rip), %rsi      # 0x65dc
movl $0x1b, %edx
movq %rax, %rdi
movq %rax, %rbx
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq 0x3288(%rip), %rsi      # 0x65f8
movl $0x1f, %edx
movq %rax, %rdi
movq %rax, %rbx
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x50(%rsp), %r15
cmpq 0x58(%rsp), %r15
je 0x341a
movb $0x1, %al
leaq 0x301d(%rip), %rbx      # 0x63d9
leaq 0x3255(%rip), %r14      # 0x6618
testb $0x1, %al
jne 0x33d9
movq 0x8(%rsp), %rdi
movl $0x2, %edx
movq %r14, %rsi
callq 0x2210
movq 0x8(%rsp), %rdi
movl $0x1, %edx
movq %rbx, %rsi
callq 0x2210
movq 0x18(%r15), %rdx
movq 0x10(%r15), %rsi
movq 0x8(%rsp), %rdi
callq 0x2210
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2210
addq $0x30, %r15
xorl %eax, %eax
cmpq 0x58(%rsp), %r15
jne 0x33c3
movq 0x8(%rsp), %rdi
leaq 0x32a8(%rip), %rsi      # 0x66ce
movl $0x1, %edx
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
leaq 0x31b1(%rip), %rsi      # 0x661b
movl $0xe, %edx
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
leaq 0x317c(%rip), %rsi      # 0x662a
movl $0x19, %edx
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
leaq 0x3152(%rip), %rsi      # 0x6644
movl $0x25, %edx
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
leaq 0x3134(%rip), %rsi      # 0x666a
movl $0x20, %edx
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x50(%rsp), %rbx
cmpq 0x58(%rsp), %rbx
je 0x3747
movb $0x1, %al
leaq 0x3104(%rip), %r15      # 0x668b
leaq 0x3113(%rip), %r12      # 0x66a1
leaq 0x3045(%rip), %r13      # 0x65da
leaq 0x311e(%rip), %rbp      # 0x66ba
testb $0x1, %al
jne 0x35e4
movq 0x8(%rsp), %rdi
movl $0x2, %edx
leaq 0x3067(%rip), %rsi      # 0x6618
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
movl $0x15, %edx
movq %r15, %rsi
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
movl $0x18, %edx
movq %r12, %rsi
callq 0x2210
vcvtss2sd (%rbx), %xmm1, %xmm0
movq 0x8(%rsp), %rdi
callq 0x22c0
movl $0x1, %edx
movq %rax, %r14
movq %rax, %rdi
movq %r13, %rsi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
movl $0x18, %edx
movq %r12, %rsi
callq 0x2210
vcvtss2sd 0x4(%rbx), %xmm1, %xmm0
movq 0x8(%rsp), %rdi
callq 0x22c0
movl $0x1, %edx
movq %rax, %r14
movq %rax, %rdi
movq %r13, %rsi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
movl $0x18, %edx
movq %r12, %rsi
callq 0x2210
vcvtss2sd 0x8(%rbx), %xmm1, %xmm0
movq 0x8(%rsp), %rdi
callq 0x22c0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
movl $0x15, %edx
movq %rbp, %rsi
callq 0x2210
addq $0x30, %rbx
xorl %eax, %eax
cmpq 0x58(%rsp), %rbx
jne 0x359c
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
leaq 0x2f3d(%rip), %rsi      # 0x66be
movl $0x11, %edx
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
leaq 0x2f0b(%rip), %rsi      # 0x66d0
movl $0xd, %edx
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
leaq 0x2ecb(%rip), %rsi      # 0x66d4
movl $0x9, %edx
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
leaq 0x2e7d(%rip), %rsi      # 0x66ca
movl $0x5, %edx
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq 0x8(%rsp), %rdi
leaq 0x2e4b(%rip), %rsi      # 0x66dc
movl $0x1, %edx
callq 0x2210
movq 0x8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x21d0
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq 0x50(%rsp), %rdi
callq 0x3f50
leaq 0xb8(%rsp), %rdi
callq 0x587e
leaq 0x2d0(%rsp), %rdi
callq 0x58d4
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x3901
callq 0x21c0
movq 0x5690(%rip), %rsi      # 0x8f98
leaq 0xe8(%rsp), %rdi
callq 0x2180
leaq 0x168(%rsp), %rdi
callq 0x20c0
addq $0x102f8, %rsp          # imm = 0x102F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2bba(%rip), %rdi      # 0x64f5
leaq 0x299e(%rip), %rsi      # 0x62e0
leaq 0x2bbb(%rip), %rcx      # 0x6504
movl $0x3ee, %edx            # imm = 0x3EE
callq 0x2140
movl $0x8, %edi
callq 0x2110
leaq 0x2926(%rip), %rcx      # 0x628a
movq %rcx, (%rax)
movq 0x563a(%rip), %rsi      # 0x8fa8
movq %rax, %rdi
xorl %edx, %edx
callq 0x22f0
jmp 0x3ba5
jmp 0x3a07
jmp 0x3986
jmp 0x39c5
movq %rdx, %r14
movq %rax, %rbx
jmp 0x3a6c
jmp 0x3a07
movq %rdx, %r14
movq %rax, %rbx
jmp 0x3a5f
movq 0x20(%rsp), %rdi
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq %rdx, %r14
cmpq %rax, %rdi
je 0x3a5f
callq 0x21c0
jmp 0x3a5f
jmp 0x3a07
jmp 0x3a07
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x39dc
callq 0x21c0
movq 0x55b5(%rip), %rsi      # 0x8f98
leaq 0xe8(%rsp), %rdi
callq 0x2180
leaq 0x168(%rsp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x2310
jmp 0x3a07
movq %rdx, %r14
movq %rax, %rbx
jmp 0x3a55
jmp 0x3a33
movq 0x98(%rsp), %rdi
movq %rax, %rbx
leaq 0xa8(%rsp), %rax
movq %rdx, %r14
cmpq %rax, %rdi
je 0x3a39
callq 0x21c0
jmp 0x3a39
movq %rdx, %r14
movq %rax, %rbx
leaq 0x40(%rsp), %r15
jmp 0x3a46
movq %rdx, %r14
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x3a55
callq 0x21c0
leaq 0x50(%rsp), %rdi
callq 0x3f50
leaq 0xb8(%rsp), %rdi
callq 0x587e
leaq 0x2d0(%rsp), %rdi
callq 0x58d4
cmpl $0x2, %r14d
jne 0x3ad6
movq %rbx, %rdi
callq 0x20f0
movq %rax, %r14
movq 0x555f(%rip), %rbx      # 0x8ff0
leaq 0x2835(%rip), %rsi      # 0x62cd
movl $0xd, %edx
movq %rbx, %rdi
callq 0x2210
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
testq %rax, %rax
je 0x3b38
movq %rax, %rdi
movq %rax, %r14
callq 0x2100
movq 0x5527(%rip), %rdi      # 0x8ff0
movq %r14, %rsi
movq %rax, %rdx
callq 0x2210
jmp 0x3b4f
cmpl $0x1, %r14d
jne 0x39c8
movq %rbx, %rdi
callq 0x20f0
movq 0x5501(%rip), %rbx      # 0x8ff0
leaq 0x27be(%rip), %rsi      # 0x62b4
movl $0x18, %edx
movq %rbx, %rdi
callq 0x2210
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movl $0xa, %esi
movq %rbx, %rdi
callq 0x21d0
movq 0x54d2(%rip), %rdi      # 0x8ff0
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
callq 0x22d0
jmp 0x38ed
movq (%rbx), %rax
movq -0x18(%rax), %rax
movl 0x20(%rbx,%rax), %esi
leaq (%rbx,%rax), %rdi
orl $0x1, %esi
callq 0x22e0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movl $0xa, %esi
movq %rbx, %rdi
callq 0x21d0
movq 0x5486(%rip), %rdi      # 0x8ff0
movsbl %al, %esi
callq 0x2040
movq %rax, %rdi
callq 0x2150
callq 0x22d0
jmp 0x38ed
jmp 0x39c5
jmp 0x3ba5
movq %rax, %rbx
callq 0x22d0
jmp 0x39c8
movq %rax, %rbx
callq 0x22d0
jmp 0x39c8
movq %rax, %rdi
callq 0x3fa1
nop