// File: /workspace/github_cpp_makefile_star2_O1/joao18araujo[P]pierluigi/src/ly_parser.cpp
// Function: LyParser::read_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
Song LyParser::read_file(string file_path, bool print){
  std::fstream file(file_path);
  string line, s_note;
  Note prev, note;
  int absolute_time = 0;

  if(!file.is_open()){
    std::cerr << "Error: File not found\n";
    exit(-1);
  }

  getline(file, line);
  Scale scale = SongReader::string_to_scale(line);
  if(print) printf("Key: %s %s\n", scale.base_note.note.c_str(), scale.mode.c_str());

  getline(file, line);
  CompassTime compass_time = SongReader::string_to_compass_time(line);
  if(print) printf("Time: %d/%d\n", compass_time.times, compass_time.base_note);

  Song song(scale, compass_time);

  while(file >> s_note){
    note = SongReader::string_to_note(prev, s_note);
    if(!note.valid) continue;

    note.absolute_time = absolute_time;
    absolute_time += note.duration;

    if(print) std::cout << "[" << s_note << "] ";
    if(print) std::cout << note.description();

    if(prev.valid){
      Interval interval(prev, note);
      Interval new_int(interval.description(), interval.direction);
      Note expected = Interval::interval_to_note(prev,interval);
      if(print){
        std::cout << " | " << interval.full_description() << "," << new_int.full_description() << " | ";
        if(expected.valid) std::cout << expected.description();
        else std::cout << "nullptr";
      }
    }
    if(print) std::cout << std::endl;
    prev = note;
    song.notes.push_back(note);
  }

  file.close();
  return song;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x778, %rsp            # imm = 0x778
movl %edx, (%rsp)
movq %rdi, 0x8(%rsp)
leaq 0x568(%rsp), %rbx
movq %rbx, %rdi
movl $0x18, %edx
callq 0x5580
leaq 0x40(%rsp), %rbp
movq %rbp, -0x10(%rbp)
xorl %eax, %eax
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x250(%rsp), %rdi
callq 0x1aa88
leaq 0x1c8(%rsp), %rdi
callq 0x1aa88
leaq 0x5e8(%rsp), %rdi
callq 0x50d0
testb %al, %al
je 0x16b5a
movq 0x568(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x5320
movsbl %al, %edx
leaq 0x568(%rsp), %rbx
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x5610
leaq 0x1b8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1a8(%rsp), %rdi
callq 0xb544
leaq 0x408(%rsp), %rdi
leaq 0x1a8(%rsp), %rsi
callq 0x24c22
movq 0x1a8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1614b
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x5360
cmpb $0x0, (%rsp)
je 0x1616f
movq 0x448(%rsp), %rsi
movq 0x498(%rsp), %rdx
leaq 0x25078(%rip), %rdi     # 0x3b1e0
xorl %eax, %eax
callq 0x5070
movq 0x568(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x5320
movsbl %al, %edx
leaq 0x568(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x5610
leaq 0x198(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x188(%rsp), %rdi
callq 0xb544
leaq 0x188(%rsp), %rdi
callq 0x2515e
movq %rax, %rbx
movq 0x188(%rsp), %rdi
cmpq %r14, %rdi
je 0x161f0
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x5360
cmpb $0x0, (%rsp)
je 0x1620d
movq %rbx, %rdx
shrq $0x20, %rdx
leaq 0x24fe8(%rip), %rdi     # 0x3b1ec
movl %ebx, %esi
xorl %eax, %eax
callq 0x5070
xorl %eax, %eax
leaq 0x4b8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x408(%rsp), %rsi
movq 0x8(%rsi), %rcx
movq 0x18(%rsi), %rdx
movq %rcx, 0x8(%rdi)
movq %rax, 0x10(%rdi)
movq %rdx, 0x18(%rdi)
movups 0x20(%rsi), %xmm0
movups %xmm0, 0x20(%rdi)
movq %rax, 0x30(%rdi)
leaq 0x70(%rsp), %rdx
movq %rdi, (%rdx)
callq 0xb2d2
leaq 0x4f0(%rsp), %r14
leaq 0x440(%rsp), %rsi
movq %r14, %rdi
callq 0x1a9c6
leaq 0x548(%rsp), %rdi
leaq 0x558(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x498(%rsp), %rsi
movq 0x4a0(%rsp), %rdx
addq %rsi, %rdx
callq 0xb544
leaq 0x4b8(%rsp), %rsi
movq 0x8(%rsp), %rdi
movq %rbx, %rdx
callq 0xf9e8
movq 0x548(%rsp), %rdi
cmpq %r15, %rdi
je 0x162c5
movq 0x558(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x528(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x162e6
movq 0x528(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x508(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16307
movq 0x508(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x4b8(%rsp), %rdi
callq 0xb51e
leaq 0x178(%rsp), %r12
leaq 0x1d0(%rsp), %r14
leaq 0x78(%rsp), %r15
movl $0x0, 0x4(%rsp)
leaq 0x3b0(%rsp), %r13
leaq 0x168(%rsp), %rbx
leaq 0x568(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x5450
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x16a02
movq %r13, %rdi
leaq 0x250(%rsp), %rsi
callq 0x1a9c6
movq %r12, 0x168(%rsp)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xb544
leaq 0x70(%rsp), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x24344
movq 0x70(%rsp), %rax
movq %rax, 0x1c8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x51e0
leaq 0x1f0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x51e0
movq 0x40(%r15), %rax
movq 0x46(%r15), %rcx
movq %rcx, 0x46(%r14)
movq %rax, 0x40(%r14)
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x16404
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x16426
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x168(%rsp), %rdi
cmpq %r12, %rdi
je 0x16443
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x3d8(%rsp), %rdi
leaq 0x3e8(%rsp), %rax
cmpq %rax, %rdi
je 0x16468
movq 0x3e8(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x3b8(%rsp), %rdi
leaq 0x3c8(%rsp), %rax
cmpq %rax, %rdi
je 0x1648d
movq 0x3c8(%rsp), %rsi
incq %rsi
callq 0x5360
cmpb $0x0, 0x21c(%rsp)
je 0x16341
movl 0x4(%rsp), %eax
movl %eax, 0x1cc(%rsp)
addl 0x1c8(%rsp), %eax
movl %eax, 0x4(%rsp)
cmpb $0x0, (%rsp)
je 0x1654d
movl $0x1, %edx
movq 0x32ae9(%rip), %rdi     # 0x48fb0
leaq 0x24d2b(%rip), %rsi     # 0x3b1f9
callq 0x53d0
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x32acc(%rip), %rdi     # 0x48fb0
callq 0x53d0
movl $0x2, %edx
movq %rax, %rdi
leaq 0x24d03(%rip), %rsi     # 0x3b1fb
callq 0x53d0
cmpb $0x0, (%rsp)
je 0x1654d
leaq 0x70(%rsp), %rdi
leaq 0x1c8(%rsp), %rsi
callq 0x1b090
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq 0x32a8a(%rip), %rdi     # 0x48fb0
callq 0x53d0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x1654d
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5360
cmpb $0x1, 0x2a4(%rsp)
jne 0x16966
leaq 0x300(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0x1a9c6
leaq 0x358(%rsp), %rbp
movq %rbp, %rdi
leaq 0x1c8(%rsp), %rsi
callq 0x1a9c6
leaq 0xc8(%rsp), %rdi
leaq 0x300(%rsp), %rsi
movq %rbp, %rdx
callq 0x15216
movq 0x380(%rsp), %rdi
leaq 0x390(%rsp), %rax
cmpq %rax, %rdi
je 0x165c5
movq 0x390(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x360(%rsp), %rdi
leaq 0x370(%rsp), %rax
cmpq %rax, %rdi
je 0x165ea
movq 0x370(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x328(%rsp), %rdi
leaq 0x338(%rsp), %rax
cmpq %rax, %rdi
je 0x1660f
movq 0x338(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x308(%rsp), %rdi
leaq 0x318(%rsp), %rax
cmpq %rax, %rdi
je 0x16634
movq 0x318(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x148(%rsp), %rbp
movq %rbp, %rdi
leaq 0xc8(%rsp), %rsi
callq 0x1539c
xorl %edx, %edx
cmpw $0x0, 0xf4(%rsp)
setne %dl
leaq 0x220(%rsp), %rdi
movq %rbp, %rsi
callq 0x14f5c
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x1668f
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x2a8(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0x1a9c6
movl 0xc8(%rsp), %eax
movl %eax, 0x118(%rsp)
leaq 0x130(%rsp), %rax
movq %rax, 0x120(%rsp)
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x120(%rsp), %rbp
movq %rbp, %rdi
callq 0xb544
leaq 0xf0(%rsp), %rcx
movzwl 0x4(%rcx), %eax
movw %ax, 0x24(%rbp)
movl (%rcx), %eax
movl %eax, 0x20(%rbp)
leaq 0x70(%rsp), %rdi
leaq 0x2a8(%rsp), %rsi
leaq 0x118(%rsp), %rdx
callq 0x15a46
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
leaq 0x40(%rsp), %rbp
je 0x1673e
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x2d0(%rsp), %rdi
leaq 0x2e0(%rsp), %rax
cmpq %rax, %rdi
je 0x16763
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x2b0(%rsp), %rdi
leaq 0x2c0(%rsp), %rax
cmpq %rax, %rdi
je 0x16788
movq 0x2c0(%rsp), %rsi
incq %rsi
callq 0x5360
cmpb $0x0, (%rsp)
je 0x168d5
movl $0x3, %edx
movq 0x32812(%rip), %rdi     # 0x48fb0
leaq 0x24a59(%rip), %rsi     # 0x3b1fe
callq 0x53d0
leaq 0x10(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x15610
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x327e3(%rip), %rdi     # 0x48fb0
callq 0x53d0
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x24a1e(%rip), %rsi     # 0x3b202
callq 0x53d0
leaq 0xf8(%rsp), %rdi
leaq 0x220(%rsp), %rsi
callq 0x15610
movq 0xf8(%rsp), %rsi
movq 0x100(%rsp), %rdx
movq %rbp, %rdi
callq 0x53d0
movl $0x3, %edx
movq %rax, %rdi
leaq 0x249d9(%rip), %rsi     # 0x3b1fe
callq 0x53d0
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
leaq 0x40(%rsp), %rbp
je 0x16854
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x16870
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5360
cmpb $0x1, 0xc4(%rsp)
jne 0x168bd
leaq 0x10(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x1b090
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x32716(%rip), %rdi     # 0x48fb0
callq 0x53d0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x168d5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x168d5
movl $0x7, %edx
movq 0x326e7(%rip), %rdi     # 0x48fb0
leaq 0x24934(%rip), %rsi     # 0x3b204
callq 0x53d0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x168fa
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x1691c
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rax
cmpq %rax, %rdi
je 0x16941
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x16966
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x5360
cmpb $0x0, (%rsp)
je 0x1699e
movq 0x3263d(%rip), %rcx     # 0x48fb0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x5320
movsbl %al, %esi
movq 0x3261f(%rip), %rdi     # 0x48fb0
callq 0x5040
movq %rax, %rdi
callq 0x5250
movq 0x1c8(%rsp), %rax
movq %rax, 0x250(%rsp)
leaq 0x258(%rsp), %rdi
movq %r14, %rsi
callq 0x51e0
leaq 0x278(%rsp), %rdi
leaq 0x1f0(%rsp), %rsi
callq 0x51e0
movq 0x40(%r14), %rax
movq 0x46(%r14), %rcx
leaq 0x258(%rsp), %rdx
movq %rcx, 0x46(%rdx)
movq %rax, 0x40(%rdx)
movq 0x8(%rsp), %rdi
leaq 0x1c8(%rsp), %rsi
callq 0xb14e
jmp 0x16341
leaq 0x568(%rsp), %rdi
callq 0x5080
leaq 0x4a8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16a30
movq 0x4a8(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x478(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16a51
movq 0x478(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x458(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16a72
movq 0x458(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x408(%rsp), %rdi
callq 0xb51e
leaq 0x200(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16aa0
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x1e0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16ac1
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x288(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16ae2
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x268(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x16b03
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x16b1f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x16b36
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x568(%rsp), %rdi
callq 0x50c0
movq 0x8(%rsp), %rax
addq $0x778, %rsp            # imm = 0x778
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x32487(%rip), %rdi     # 0x48fe8
leaq 0x24661(%rip), %rsi     # 0x3b1c9
callq 0x5340
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x5410
jmp 0x16bba
jmp 0x16bb2
jmp 0x16bba
jmp 0x16bb2
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x16df3
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x16df3
jmp 0x16db7
movq %rax, %rbx
jmp 0x16c66
movq %rax, %rbx
jmp 0x16c4a
movq %rax, %rbx
jmp 0x16ca7
movq %rax, %rbx
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x16ccc
movq 0x158(%rsp), %rsi
jmp 0x16cc4
movq %rax, %rbx
jmp 0x16ccc
movq %rax, %rbx
leaq 0x358(%rsp), %rdi
callq 0xb116
jmp 0x16c10
movq %rax, %rbx
leaq 0x300(%rsp), %rdi
callq 0xb116
jmp 0x16cf1
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x16c4a
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x16c66
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x70(%rsp), %rdi
jmp 0x16ca2
movq %rax, %rbx
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0x16c9a
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x16c9a
movq %rax, %rbx
leaq 0x2a8(%rsp), %rdi
callq 0xb116
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rax
cmpq %rax, %rdi
je 0x16ccc
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x16cf1
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x40(%rsp), %rbp
jmp 0x16df3
movq %rax, %rbx
jmp 0x16cf1
jmp 0x16db7
movq %rax, %rbx
leaq 0x4b8(%rsp), %rdi
callq 0xb206
jmp 0x16dfd
movq %rax, %rbx
movq %r14, %rdi
callq 0xb116
jmp 0x16d2a
movq %rax, %rbx
leaq 0x4b8(%rsp), %rdi
callq 0xb51e
jmp 0x16dfd
movq %rax, %rbx
movq 0x188(%rsp), %rdi
cmpq %r14, %rdi
je 0x16dfd
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x16dfd
movq %rax, %rbx
movq 0x1a8(%rsp), %rdi
cmpq %r14, %rdi
je 0x16e0a
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x16e0a
jmp 0x16da4
movq %rax, %rbx
jmp 0x16e17
movq %rax, %rbx
jmp 0x16e24
jmp 0x16d9f
movq %rax, %rbx
jmp 0x16dfd
movq %rax, %rbx
jmp 0x16e0a
jmp 0x16db7
movq %rax, %rbx
jmp 0x16dc9
movq %rax, %rbx
jmp 0x16de6
jmp 0x16db7
movq %rax, %rbx
jmp 0x16df3
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xb116
movq 0x168(%rsp), %rdi
cmpq %r12, %rdi
je 0x16de6
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x3b0(%rsp), %rdi
callq 0xb116
movq 0x8(%rsp), %rdi
callq 0xfb08
leaq 0x408(%rsp), %rdi
callq 0xb206
leaq 0x1c8(%rsp), %rdi
callq 0xb116
leaq 0x250(%rsp), %rdi
callq 0xb116
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x16e40
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x16e57
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x568(%rsp), %rdi
callq 0x50c0
movq %rbx, %rdi
callq 0x55e0