// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/networkio.cc
// Function: readARCFile(char*, ATOM_NETWORK*, bool)
bool readARCFile(char *filename, ATOM_NETWORK *cell, bool radial){
  FILE * input;
  input = fopen(filename, "r");
  int numAtoms=0;

  if(input==NULL){
    cout << "\n" << "Failed to open .arc input file " << filename << "\n";
    cout << "Exiting ..." << "\n";
//    exit(1);
    return false;
  }
  else{
    cout << "Reading input file " << filename << "\n";

    // Parse down to the FINAL GEOMETRY OBTAINED line
    char this_line[500];
    char found_final = 0;
    while(found_final == 0) {
      if(fgets(this_line, 500, input)!=NULL) {
        char str1[100], str2[100], str3[100];
        int status = sscanf(this_line, "%s %s %s", str1, str2, str3);
        if(status!=-1) {
          if(strcmp(str1,"FINAL")==0 && strcmp(str2,"GEOMETRY")==0 && strcmp(str3,"OBTAINED")==0) {
            found_final = 1;
          }
        }
      } else {
        printf("ERROR: finished parsing ARC file before finding geometry section\n");
//        exit(EXIT_FAILURE);
        fclose(input);
        return false;
      }
    }

    // Now parse following lines, trying to extract atom info
    int found_atoms = 0;
    double x, y, z, charge;
    char element[100], str1[100], str2[100], str3[100];
    while(found_atoms==0) {
      if(fgets(this_line, 500, input)!=NULL) {
        int status = sscanf(this_line, "%s %lf %s %lf %s %lf %s %lf", element, &x, str1, &y, str2, &z, str3, &charge);
        if(status==8) { //i.e. exactly 8 fields are required to be read
          found_atoms = 1;
        }
      } else {
        printf("ERROR: finished parsing ARC file before finding individual atom information\n");
//        exit(EXIT_FAILURE);
        fclose(input);
        return false;
      }
    }

    // At this point, we have the first atom info in memory
    ATOM newAtom;
    while(found_atoms==1) {
      //save previously discovered atom data - just xyz data for now
      newAtom.x = x;
      newAtom.y = y;
      newAtom.z = z;
      newAtom.type = string(element);
      newAtom.radius = lookupRadius(newAtom.type, radial);
      newAtom.charge = charge;
      cell->atoms.push_back(newAtom);
      numAtoms++;
      //try to find next atom data
      if(fgets(this_line, 500, input)!=NULL) {
        int status = sscanf(this_line, "%s %lf %s %lf %s %lf %s %lf", element, &x, str1, &y, str2, &z, str3, &charge);
        if(status!=8) found_atoms = 0; //if we can't read all 8 fields, we have, presumably, reached the unit cell params
      } else {
        printf("ERROR: finished parsing ARC file before finding unit cell info\n");
//        exit(EXIT_FAILURE);
        fclose(input);
        return false;
      }
    }

    // Now we have read all the atoms, we read the unit cell vectors
    XYZ v_a, v_b, v_c;
    for(int i=0; i<3; i++) {
      if(i==0) {
        v_a.x = x; v_a.y = y; v_a.z = z;
      } else if(i==1) {
        v_b.x = x; v_b.y = y; v_b.z = z;
      } else if(i==2) {
        v_c.x = x; v_c.y = y; v_c.z = z;
      }
      if(i!=2) {
        if(fgets(this_line, 500, input)!=NULL) {
          int status = sscanf(this_line, "%s %lf %s %lf %s %lf %s", element, &x, str1, &y, str2, &z, str3);
          if(status!=7) { //didn't read exactly 7 fields
            printf("ERROR: could not read exactly three unit cell vectors\n");
//            exit(EXIT_FAILURE);
            fclose(input);
            return false;
          }
        }
      }
    }
    cell->numAtoms = numAtoms;
    fclose(input);

    // Set up cell
    cell->v_a = v_a;
    cell->v_b = v_b;
    cell->v_c = v_c;
    double alpha = v_b.angle_between(v_c);
    double beta = v_a.angle_between(v_c);
    double gamma = v_a.angle_between(v_b);
    cell->alpha = alpha*360.0/(2.0*PI);
    cell->beta = beta*360.0/(2.0*PI);
    cell->gamma = gamma*360.0/(2.0*PI); //required since it expects to store degrees
    cell->a = v_a.magnitude();
    cell->b = v_b.magnitude();
    cell->c = v_c.magnitude();
    cell->initMatrices();
    cell->name = filename;
    cell->name.erase(cell->name.end()-4, cell->name.end());

//   cout << "number of atoms read " << numAtoms << "\n";

    // Convert atom coords to abc and update the xyz values to be within the UC
    for(int i=0; i<numAtoms; i++) {
      Point newCoords = cell->xyz_to_abc(cell->atoms.at(i).x,cell->atoms.at(i).y,cell->atoms.at(i).z);
      cell->atoms.at(i).a_coord = trans_to_origuc(newCoords[0]); cell->atoms.at(i).b_coord = trans_to_origuc(newCoords[1]); cell->atoms.at(i).c_coord = trans_to_origuc(newCoords[2]);
      newCoords = cell->abc_to_xyz(cell->atoms.at(i).a_coord,cell->atoms.at(i).b_coord,cell->atoms.at(i).c_coord);
      cell->atoms.at(i).x = newCoords[0]; cell->atoms.at(i).y = newCoords[1]; cell->atoms.at(i).z = newCoords[2];
      //cout << i << "  " << cell->atoms.at(i).type << "  " << newCoords[0] << "  " << newCoords[1] << "  " << newCoords[2] <<"\n";
    }
  }
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x568, %rsp            # imm = 0x568
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x136f31(%rip), %rsi    # 0x15cb30
callq 0x4510
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x25c5b
movl %ebx, 0x60(%rsp)
movq 0x16f3a7(%rip), %rbx    # 0x194fc0
leaq 0x1284a5(%rip), %rsi    # 0x14e0c5
movl $0x13, %edx
movq %rbx, %rdi
callq 0x44e0
testq %r15, %r15
movq %r14, 0x8(%rsp)
movq %r15, 0xc0(%rsp)
je 0x25cb2
movq %r15, %rdi
callq 0x41e0
movq 0x16f372(%rip), %rdi    # 0x194fc0
movq %r15, %rsi
movq %rax, %rdx
callq 0x44e0
jmp 0x25cc9
movq 0x16f35e(%rip), %rbx    # 0x194fc0
leaq 0x12d9b5(%rip), %rsi    # 0x15361e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
leaq 0x128428(%rip), %rsi    # 0x14e0a5
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x44e0
testq %r15, %r15
je 0x25ddd
movq %r15, %rdi
callq 0x41e0
movq 0x16f31e(%rip), %rdi    # 0x194fc0
movq %r15, %rsi
movq %rax, %rdx
callq 0x44e0
jmp 0x25df4
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x4710
movq 0x16f2f0(%rip), %rdi    # 0x194fc0
leaq 0x12d947(%rip), %rsi    # 0x15361e
movl $0x1, %edx
callq 0x44e0
leaq 0x370(%rsp), %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq 0x20(%rsp), %rdx
callq 0x4690
testq %rax, %rax
je 0x25dc5
leaq 0x1283d1(%rip), %r12    # 0x14e0d9
leaq 0x370(%rsp), %r13
leaq 0x110(%rsp), %rbx
leaq 0x1b0(%rsp), %rbp
leaq 0x220(%rsp), %r14
movl $0x414e4946, %r15d      # imm = 0x414E4946
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %rbp, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x4430
cmpl $-0x1, %eax
je 0x25daa
movl 0x110(%rsp), %eax
xorl %r15d, %eax
movzwl 0x114(%rsp), %ecx
xorl $0x4c, %ecx
orl %eax, %ecx
jne 0x25daa
movq 0x1b0(%rsp), %rax
movabsq $0x595254454d4f4547, %rcx # imm = 0x595254454D4F4547
xorq %rcx, %rax
movzbl 0x1b8(%rsp), %ecx
orq %rax, %rcx
jne 0x25daa
movq 0x220(%rsp), %rax
movabsq $0x44454e494154424f, %rcx # imm = 0x44454E494154424F
xorq %rcx, %rax
movzbl 0x228(%rsp), %ecx
orq %rax, %rcx
je 0x25e4c
movq %r13, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq 0x20(%rsp), %rdx
callq 0x4690
testq %rax, %rax
jne 0x25d2e
leaq 0x128c26(%rip), %rdi    # 0x14e9f2
callq 0x4660
movq 0x20(%rsp), %rdi
callq 0x4450
jmp 0x25e36
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x4710
movq 0x16f1c5(%rip), %rbx    # 0x194fc0
leaq 0x12d81c(%rip), %r14    # 0x15361e
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0x127d9a(%rip), %rsi    # 0x14dbb3
movl $0xb, %edx
movq %rbx, %rdi
callq 0x44e0
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x568, %rsp            # imm = 0x568
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x370(%rsp), %rbx
leaq 0x300(%rsp), %r15
leaq 0x1b0(%rsp), %r12
leaq 0x30(%rsp), %r13
leaq 0x220(%rsp), %rbp
leaq 0x18(%rsp), %r14
movq %rbx, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq 0x20(%rsp), %rdx
callq 0x4690
testq %rax, %rax
je 0x261cd
movq %rbx, %rdi
leaq 0x12825f(%rip), %rsi    # 0x14e0fa
movq %r12, %rdx
movq %r13, %rcx
movq %rbp, %r8
movq %r14, %r9
xorl %eax, %eax
leaq 0x78(%rsp), %r10
pushq %r10
pushq %r15
leaq 0x20(%rsp), %r10
pushq %r10
leaq 0x2a8(%rsp), %r10
pushq %r10
callq 0x4430
addq $0x20, %rsp
cmpl $0x8, %eax
jne 0x25e76
leaq 0x110(%rsp), %rdi
callq 0x51264
leaq 0x50(%rsp), %r13
movq 0x8(%rsp), %rax
addq $0x2f0, %rax            # imm = 0x2F0
movq %rax, 0xb8(%rsp)
leaq 0x1b0(%rsp), %rbp
movzbl 0x60(%rsp), %eax
movl %eax, 0x3c(%rsp)
leaq 0x370(%rsp), %r14
xorl %ebx, %ebx
movq %rbx, 0x60(%rsp)
movq %r14, %r12
movq %r15, %r14
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x110(%rsp)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x118(%rsp)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x120(%rsp)
movq %r13, 0x40(%rsp)
movq %rbp, %rdi
callq 0x41e0
leaq (%rsp,%rax), %rdx
addq $0x1b0, %rdx            # imm = 0x1B0
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movq %rbp, %rbx
movq %rbp, %rsi
callq 0x22538
leaq 0x150(%rsp), %rdi
movq %r15, %rsi
callq 0x4540
movq 0x40(%rsp), %rdi
movq %r13, %rbp
cmpq %r13, %rdi
je 0x25f9e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x150(%rsp), %rsi
movq 0x158(%rsp), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %r13
movq %r13, %rdi
callq 0xf3ce
movq %r14, %r15
movq %r12, %r14
movq %r13, %rdi
movl 0x3c(%rsp), %esi
callq 0x21d5e
movsd %xmm0, 0x140(%rsp)
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x26011
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x4470
movsd 0x78(%rsp), %xmm0
movsd %xmm0, 0x198(%rsp)
movq 0xb8(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0xe9a8
movq %r14, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq 0x20(%rsp), %rdx
callq 0x4690
testq %rax, %rax
je 0x261d9
movq %r14, %rdi
leaq 0x1280a0(%rip), %rsi    # 0x14e0fa
movq %rbx, %r12
movq %rbx, %rdx
leaq 0x30(%rsp), %rcx
leaq 0x220(%rsp), %r8
leaq 0x18(%rsp), %r9
xorl %eax, %eax
leaq 0x78(%rsp), %r10
pushq %r10
pushq %r15
leaq 0x20(%rsp), %r10
pushq %r10
leaq 0x2a8(%rsp), %r10
pushq %r10
callq 0x4430
addq $0x20, %rsp
movq 0x60(%rsp), %rbx
incq %rbx
cmpl $0x8, %eax
movq %rbp, %r13
movq %r12, %rbp
je 0x25f11
leaq 0x40(%rsp), %rdi
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
callq 0x84364
leaq 0x80(%rsp), %rdi
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
callq 0x84364
leaq 0xc8(%rsp), %rdi
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
callq 0x84364
leaq 0x370(%rsp), %r12
leaq 0x220(%rsp), %rbp
leaq 0x18(%rsp), %r14
xorl %r13d, %r13d
movsd 0x30(%rsp), %xmm0
testl %r13d, %r13d
je 0x2614c
cmpl $0x1, %r13d
jne 0x261ff
movsd %xmm0, 0x80(%rsp)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x88(%rsp)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x90(%rsp)
jmp 0x2616a
movsd %xmm0, 0x40(%rsp)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movq %r12, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq 0x20(%rsp), %rdx
callq 0x4690
testq %rax, %rax
je 0x261c5
subq $0x8, %rsp
movq %r12, %rdi
leaq 0x127f87(%rip), %rsi    # 0x14e116
leaq 0x1b8(%rsp), %rdx
leaq 0x38(%rsp), %rcx
movq %rbp, %r8
movq %r14, %r9
xorl %eax, %eax
pushq %r15
leaq 0x20(%rsp), %r10
pushq %r10
leaq 0x2a8(%rsp), %r10
pushq %r10
callq 0x4430
addq $0x20, %rsp
cmpl $0x7, %eax
jne 0x261e2
incl %r13d
jmp 0x2610e
leaq 0x1287d2(%rip), %rdi    # 0x14e9a6
jmp 0x25dcc
leaq 0x128787(%rip), %rdi    # 0x14e967
jmp 0x261e9
leaq 0x128748(%rip), %rdi    # 0x14e931
callq 0x4660
movq 0x20(%rsp), %rdi
callq 0x4450
xorl %ebx, %ebx
jmp 0x265c5
leaq 0xc8(%rsp), %r14
movsd %xmm0, (%r14)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x8(%r14)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x10(%r14)
movq 0x8(%rsp), %r12
movl %ebx, 0x110(%r12)
movq 0x20(%rsp), %rdi
callq 0x4450
movq 0x50(%rsp), %rax
movq %rax, 0x48(%r12)
movups 0x40(%rsp), %xmm0
movups %xmm0, 0x38(%r12)
leaq 0x80(%rsp), %rdi
movups (%rdi), %xmm0
movups %xmm0, 0x50(%r12)
movq 0x10(%rdi), %rax
movq %rax, 0x60(%r12)
movupd (%r14), %xmm0
movupd %xmm0, 0x68(%r12)
movq 0x10(%r14), %rax
movq %rax, 0x78(%r12)
movq %r14, %rsi
callq 0x8450e
movapd %xmm0, 0x20(%rsp)
leaq 0x40(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x8450e
movapd %xmm0, 0x60(%rsp)
leaq 0x40(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x8450e
movapd 0x20(%rsp), %xmm1
unpcklpd 0x60(%rsp), %xmm1       # xmm1 = xmm1[0],mem[0]
mulpd 0x127865(%rip), %xmm1   # 0x14db30
divpd 0x12786d(%rip), %xmm1   # 0x14db40
mulsd 0x127825(%rip), %xmm0   # 0x14db00
movupd %xmm1, 0x20(%r12)
divsd 0x12781e(%rip), %xmm0   # 0x14db08
movsd %xmm0, 0x30(%r12)
leaq 0x40(%rsp), %rdi
callq 0x8398c
movsd %xmm0, 0x8(%r12)
leaq 0x80(%rsp), %rdi
callq 0x8398c
movsd %xmm0, 0x10(%r12)
leaq 0xc8(%rsp), %rdi
callq 0x8398c
movsd %xmm0, 0x18(%r12)
movq %r12, %rdi
callq 0x52330
leaq 0x320(%r12), %r15
movq 0x328(%r12), %r14
movq 0xc0(%rsp), %r13
movq %r13, %rdi
callq 0x41e0
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %r13, %rcx
movq %rax, %r8
callq 0x4670
movq 0x320(%r12), %rax
movq 0x328(%r12), %rcx
leaq -0x4(%rcx), %rdx
movq %rdx, 0x328(%r12)
movb $0x0, -0x4(%rax,%rcx)
movq 0x2f0(%r12), %rcx
movq 0x2f8(%r12), %rsi
xorl %r13d, %r13d
movabsq $-0x79435e50d79435e5, %rbp # imm = 0x86BCA1AF286BCA1B
leaq 0xe0(%rsp), %r15
leaq 0xf8(%rsp), %r12
xorl %r14d, %r14d
subq %rcx, %rsi
sarq $0x3, %rsi
imulq %rbp, %rsi
movq %rsi, %rdx
cmpq %r14, %rsi
jbe 0x26610
movsd (%rcx,%r13), %xmm0
movsd 0x8(%rcx,%r13), %xmm1
movsd 0x10(%rcx,%r13), %xmm2
movq %r15, %rdi
movq 0x8(%rsp), %rsi
callq 0x52eec
movq %r15, %rdi
xorl %esi, %esi
callq 0x83f9a
movsd (%rax), %xmm0
callq 0x839b6
movq 0x8(%rsp), %rcx
movq 0x2f0(%rcx), %rax
movq 0x2f8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
cmpq %r14, %rdx
jbe 0x26610
movsd %xmm0, 0x18(%rax,%r13)
movq %r15, %rdi
movl $0x1, %esi
callq 0x83f9a
movsd (%rax), %xmm0
callq 0x839b6
movq 0x8(%rsp), %rcx
movq 0x2f0(%rcx), %rax
movq 0x2f8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
cmpq %r14, %rdx
jbe 0x26610
movsd %xmm0, 0x20(%rax,%r13)
movq %r15, %rdi
movl $0x2, %esi
callq 0x83f9a
movsd (%rax), %xmm0
callq 0x839b6
movq 0x8(%rsp), %rcx
movq 0x2f0(%rcx), %rax
movq 0x2f8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
cmpq %r14, %rdx
jbe 0x26610
movapd %xmm0, %xmm2
movsd %xmm0, 0x28(%rax,%r13)
movsd 0x18(%rax,%r13), %xmm0
movsd 0x20(%rax,%r13), %xmm1
movq %r12, %rdi
movq 0x8(%rsp), %rsi
callq 0x52d94
movq 0x108(%rsp), %rax
movq %rax, 0xf0(%rsp)
movupd 0xf8(%rsp), %xmm0
movapd %xmm0, 0xe0(%rsp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x83f9a
movq 0x8(%rsp), %rdx
movq 0x2f0(%rdx), %rcx
movq 0x2f8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
cmpq %r14, %rdx
jbe 0x26610
movsd (%rax), %xmm0
movsd %xmm0, (%rcx,%r13)
movq %r15, %rdi
movl $0x1, %esi
callq 0x83f9a
movq 0x8(%rsp), %rdx
movq 0x2f0(%rdx), %rcx
movq 0x2f8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
cmpq %r14, %rdx
jbe 0x26610
movsd (%rax), %xmm0
movsd %xmm0, 0x8(%rcx,%r13)
movq %r15, %rdi
movl $0x2, %esi
callq 0x83f9a
movq 0x8(%rsp), %rdx
movq 0x2f0(%rdx), %rcx
movq 0x2f8(%rdx), %rsi
movq %rsi, %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %rbp, %rdx
cmpq %r14, %rdx
jbe 0x26610
movsd (%rax), %xmm0
movsd %xmm0, 0x10(%rcx,%r13)
incq %r14
addq $0x98, %r13
decq %rbx
jne 0x263b6
movb $0x1, %bl
leaq 0x180(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x265e6
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x160(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25e38
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x25e38
leaq 0x1270de(%rip), %rdi    # 0x14d6f5
movq %r14, %rsi
xorl %eax, %eax
callq 0x4630
jmp 0x2665f
jmp 0x2665f
jmp 0x2665f
jmp 0x2665f
jmp 0x2665f
jmp 0x2665f
jmp 0x2665f
jmp 0x2665f
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x26662
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x26662
jmp 0x2665f
jmp 0x2665f
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x2f5e8
movq %rbx, %rdi
callq 0x4780