// File: /workspace/github_cpp_makefile_star2_O1/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 $0x548, %rsp            # imm = 0x548
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x138efa(%rip), %rsi    # 0x15ecb3
callq 0x4510
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x25e15
movl %ebx, 0x30(%rsp)
movq 0x1711ed(%rip), %rbx    # 0x196fc0
leaq 0x12a27b(%rip), %rsi    # 0x150055
movl $0x13, %edx
movq %rbx, %rdi
callq 0x44e0
testq %r15, %r15
movq %r14, 0x8(%rsp)
movq %r15, 0xb0(%rsp)
je 0x25e6c
movq %r15, %rdi
callq 0x41e0
movq 0x1711b8(%rip), %rdi    # 0x196fc0
movq %r15, %rsi
movq %rax, %rdx
callq 0x44e0
jmp 0x25e83
movq 0x1711a4(%rip), %rbx    # 0x196fc0
leaq 0x12f70b(%rip), %rsi    # 0x15552e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
leaq 0x12a1fe(%rip), %rsi    # 0x150035
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x44e0
testq %r15, %r15
je 0x26705
movq %r15, %rdi
callq 0x41e0
movq 0x171164(%rip), %rdi    # 0x196fc0
movq %r15, %rsi
movq %rax, %rdx
callq 0x44e0
jmp 0x2671c
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x4710
movq 0x171136(%rip), %rdi    # 0x196fc0
leaq 0x12f69d(%rip), %rsi    # 0x15552e
movl $0x1, %edx
callq 0x44e0
xorl %r15d, %r15d
leaq 0x350(%rsp), %r14
leaq 0x12a1bc(%rip), %r12    # 0x150069
leaq 0xf0(%rsp), %r13
leaq 0x190(%rsp), %rbp
leaq 0x200(%rsp), %rbx
movq %r14, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq 0x10(%rsp), %rdx
callq 0x4690
testq %rax, %rax
je 0x266e4
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq %rbx, %r8
xorl %eax, %eax
callq 0x4430
cmpl $-0x1, %eax
je 0x25f67
movl 0xf0(%rsp), %eax
movl $0x414e4946, %ecx       # imm = 0x414E4946
xorl %ecx, %eax
movzwl 0xf4(%rsp), %ecx
xorl $0x4c, %ecx
orl %eax, %ecx
jne 0x25f67
movq 0x190(%rsp), %rax
movabsq $0x595254454d4f4547, %rcx # imm = 0x595254454D4F4547
xorq %rcx, %rax
movzbl 0x198(%rsp), %ecx
orq %rax, %rcx
jne 0x25f67
movq 0x200(%rsp), %rax
movabsq $0x44454e494154424f, %rcx # imm = 0x44454E494154424F
xorq %rcx, %rax
movzbl 0x208(%rsp), %ecx
orq %rax, %rcx
movzbl %r15b, %r15d
movl $0x1, %eax
cmovel %eax, %r15d
testb %r15b, %r15b
je 0x25ec5
leaq 0x350(%rsp), %rbx
leaq 0x270(%rsp), %r15
leaq 0x190(%rsp), %r12
leaq 0x28(%rsp), %r13
leaq 0x200(%rsp), %rbp
leaq 0x20(%rsp), %r14
movq %rbx, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq 0x10(%rsp), %rdx
callq 0x4690
testq %rax, %rax
je 0x266ed
movq %rbx, %rdi
leaq 0x12a0cb(%rip), %rsi    # 0x15008a
movq %r12, %rdx
movq %r13, %rcx
movq %rbp, %r8
movq %r14, %r9
xorl %eax, %eax
leaq 0x58(%rsp), %r10
pushq %r10
pushq %r15
leaq 0x28(%rsp), %r10
pushq %r10
leaq 0x2f8(%rsp), %r10
pushq %r10
callq 0x4430
addq $0x20, %rsp
cmpl $0x8, %eax
jne 0x25f9a
leaq 0xf0(%rsp), %rdi
callq 0x5162c
leaq 0x48(%rsp), %r15
movq 0x8(%rsp), %rax
addq $0x2f0, %rax            # imm = 0x2F0
movq %rax, 0xb8(%rsp)
leaq 0x190(%rsp), %r14
leaq 0x38(%rsp), %rbp
movzbl 0x30(%rsp), %eax
movl %eax, 0x30(%rsp)
xorl %ebx, %ebx
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0xf0(%rsp)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0xf8(%rsp)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x100(%rsp)
movq %r15, 0x38(%rsp)
movq %r14, %rdi
callq 0x41e0
leaq (%rsp,%rax), %rdx
addq $0x190, %rdx            # imm = 0x190
movq %rbp, %rdi
movq %r14, %rsi
callq 0x2263c
leaq 0x130(%rsp), %rdi
movq %rbp, %r12
movq %rbp, %rsi
callq 0x4540
movq 0x38(%rsp), %rdi
movq %r15, %rbp
cmpq %r15, %rdi
je 0x260af
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x70(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x130(%rsp), %rsi
movq 0x138(%rsp), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0xf32a
leaq 0x270(%rsp), %r15
leaq 0x60(%rsp), %rdi
movl 0x30(%rsp), %esi
callq 0x21e42
movsd %xmm0, 0x120(%rsp)
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x26111
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4470
movsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x178(%rsp)
movq 0xb8(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0xe936
leaq 0x350(%rsp), %r13
movq %r13, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq 0x10(%rsp), %rdx
callq 0x4690
testq %rax, %rax
je 0x26778
movq %r13, %rdi
leaq 0x129f28(%rip), %rsi    # 0x15008a
movq %r14, %rdx
leaq 0x28(%rsp), %rcx
leaq 0x200(%rsp), %r8
leaq 0x20(%rsp), %r9
xorl %eax, %eax
leaq 0x58(%rsp), %r10
pushq %r10
pushq %r15
leaq 0x28(%rsp), %r10
pushq %r10
leaq 0x2f8(%rsp), %r10
pushq %r10
callq 0x4430
addq $0x20, %rsp
incq %rbx
cmpl $0x8, %eax
movq %rbp, %r15
movq %r12, %rbp
je 0x26032
leaq 0x38(%rsp), %rdi
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
callq 0x85982
leaq 0x98(%rsp), %rdi
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
callq 0x85982
leaq 0x80(%rsp), %rdi
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
callq 0x85982
xorl %ebp, %ebp
leaq 0x350(%rsp), %r14
leaq 0x200(%rsp), %r13
leaq 0x20(%rsp), %r12
xorl %r15d, %r15d
cmpl $0x2, %r15d
je 0x2627a
cmpl $0x1, %r15d
je 0x2624b
testl %r15d, %r15d
jne 0x262ad
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x38(%rsp)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
jmp 0x262a7
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x98(%rsp)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
jmp 0x262a7
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x80(%rsp)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x88(%rsp)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x90(%rsp)
cmpl $0x2, %r15d
je 0x26314
movq %r14, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq 0x10(%rsp), %rdx
callq 0x4690
testq %rax, %rax
je 0x26314
subq $0x8, %rsp
movq %r14, %rdi
leaq 0x129dd4(%rip), %rsi    # 0x1500a6
leaq 0x198(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq %r13, %r8
movq %r12, %r9
xorl %eax, %eax
leaq 0x278(%rsp), %r10
pushq %r10
leaq 0x28(%rsp), %r10
pushq %r10
leaq 0x2f8(%rsp), %r10
pushq %r10
callq 0x4430
addq $0x20, %rsp
cmpl $0x7, %eax
jne 0x26792
cmpl $0x2, %r15d
leal 0x1(%r15), %eax
setae %bpl
movl %eax, %r15d
cmpl $0x3, %eax
jne 0x26210
movq 0x8(%rsp), %r12
movl %ebx, 0x110(%r12)
movq 0x10(%rsp), %rdi
callq 0x4450
movq 0x48(%rsp), %rax
movq %rax, 0x48(%r12)
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x38(%r12)
leaq 0x98(%rsp), %rdi
movups (%rdi), %xmm0
movups %xmm0, 0x50(%r12)
movq 0x10(%rdi), %rax
movq %rax, 0x60(%r12)
leaq 0x80(%rsp), %rsi
movupd (%rsi), %xmm0
movupd %xmm0, 0x68(%r12)
movq 0x10(%rsi), %rax
movq %rax, 0x78(%r12)
callq 0x85c30
movsd %xmm0, 0x10(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x85c30
movsd %xmm0, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x85c30
movsd 0x1296e5(%rip), %xmm1   # 0x14fab0
movsd 0x10(%rsp), %xmm3
mulsd %xmm1, %xmm3
movsd 0x1296db(%rip), %xmm2   # 0x14fab8
divsd %xmm2, %xmm3
movsd %xmm3, 0x20(%r12)
movsd 0x30(%rsp), %xmm3
mulsd %xmm1, %xmm3
divsd %xmm2, %xmm3
movsd %xmm3, 0x28(%r12)
mulsd %xmm1, %xmm0
divsd %xmm2, %xmm0
movsd %xmm0, 0x30(%r12)
leaq 0x38(%rsp), %rdi
callq 0x84e36
movsd %xmm0, 0x8(%r12)
leaq 0x98(%rsp), %rdi
callq 0x84e36
movsd %xmm0, 0x10(%r12)
leaq 0x80(%rsp), %rdi
callq 0x84e36
movsd %xmm0, 0x18(%r12)
movq %r12, %rdi
callq 0x52604
leaq 0x320(%r12), %r15
movq 0x328(%r12), %r14
movq 0xb0(%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)
xorl %r13d, %r13d
movabsq $-0x79435e50d79435e5, %r12 # imm = 0x86BCA1AF286BCA1B
leaq 0xc0(%rsp), %r15
xorl %r14d, %r14d
movq 0x8(%rsp), %rcx
movq 0x2f0(%rcx), %rax
movq 0x2f8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
cmpq %r14, %rdx
jbe 0x267ef
movsd (%rax,%r13), %xmm0
movsd 0x8(%rax,%r13), %xmm1
movsd 0x10(%rax,%r13), %xmm2
movq %r15, %rdi
movq 0x8(%rsp), %rsi
callq 0x531ea
movq %r15, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
callq 0x84e6b
movq 0x8(%rsp), %rcx
movq 0x2f0(%rcx), %rax
movq 0x2f8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
cmpq %r14, %rdx
jbe 0x267ef
movsd %xmm0, 0x18(%rax,%r13)
movq %r15, %rdi
movl $0x1, %esi
callq 0x85478
movsd (%rax), %xmm0
callq 0x84e6b
movq 0x8(%rsp), %rcx
movq 0x2f0(%rcx), %rax
movq 0x2f8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
cmpq %r14, %rdx
jbe 0x267ef
movsd %xmm0, 0x20(%rax,%r13)
movq %r15, %rdi
movl $0x2, %esi
callq 0x85478
movsd (%rax), %xmm0
callq 0x84e6b
movq 0x8(%rsp), %rcx
movq 0x2f0(%rcx), %rax
movq 0x2f8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
cmpq %r14, %rdx
jbe 0x267ef
movsd %xmm0, 0x28(%rax,%r13)
movsd 0x18(%rax,%r13), %xmm0
movsd 0x20(%rax,%r13), %xmm1
movsd 0x28(%rax,%r13), %xmm2
leaq 0xd8(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x53092
movq 0xe8(%rsp), %rax
movq %rax, 0xd0(%rsp)
movupd 0xd8(%rsp), %xmm0
movapd %xmm0, 0xc0(%rsp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x85478
movq 0x8(%rsp), %rdx
movq 0x2f0(%rdx), %rcx
movq 0x2f8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
cmpq %r14, %rdx
jbe 0x267ef
movsd (%rax), %xmm0
movsd %xmm0, (%rcx,%r13)
movq %r15, %rdi
movl $0x1, %esi
callq 0x85478
movq 0x8(%rsp), %rdx
movq 0x2f0(%rdx), %rcx
movq 0x2f8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
cmpq %r14, %rdx
jbe 0x267ef
movsd (%rax), %xmm0
movsd %xmm0, 0x8(%rcx,%r13)
movq %r15, %rdi
movl $0x2, %esi
callq 0x85478
movq 0x8(%rsp), %rdx
movq 0x2f0(%rdx), %rcx
movq 0x2f8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
cmpq %r14, %rdx
jbe 0x267ef
movsd (%rax), %xmm0
movsd %xmm0, 0x10(%rcx,%r13)
incq %r14
addq $0x98, %r13
decq %rbx
jne 0x264b9
jmp 0x267a8
leaq 0x12a297(%rip), %rdi    # 0x150982
jmp 0x266f4
leaq 0x12a242(%rip), %rdi    # 0x150936
callq 0x4660
movq 0x10(%rsp), %rdi
callq 0x4450
jmp 0x2675e
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x4710
movq 0x17089d(%rip), %rbx    # 0x196fc0
leaq 0x12ee04(%rip), %r14    # 0x15552e
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0x129402(%rip), %rsi    # 0x14fb43
movl $0xb, %edx
movq %rbx, %rdi
callq 0x44e0
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
xorl %ebp, %ebp
andb $0x1, %bpl
movl %ebp, %eax
addq $0x548, %rsp            # imm = 0x548
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x12a178(%rip), %rdi    # 0x1508f7
callq 0x4660
movq 0x10(%rsp), %rdi
callq 0x4450
xorl %ebp, %ebp
jmp 0x267a8
leaq 0x12a128(%rip), %rdi    # 0x1508c1
callq 0x4660
movq 0x10(%rsp), %rdi
callq 0x4450
leaq 0x160(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x267c9
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x26760
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x26760
leaq 0x128eaf(%rip), %rdi    # 0x14f6a5
movq %r14, %rsi
xorl %eax, %eax
callq 0x4630
jmp 0x26835
jmp 0x26835
jmp 0x26835
jmp 0x26835
jmp 0x26835
jmp 0x26835
jmp 0x26835
jmp 0x26835
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x26838
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x26838
jmp 0x26835
jmp 0x26835
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x2f814
movq %rbx, %rdi
callq 0x4780