LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: cftbsub(int, double*, int*, int, double*)
void cftbsub(int n, double *a, int *ip, int nw, double *w) {
  void bitrv2conj(int n, int *ip, double *a);
  void bitrv216neg(double *a);
  void bitrv208neg(double *a);
  void cftb1st(int n, double *a, double *w);
  void cftrec4(int n, double *a, int nw, double *w);
  void cftleaf(int n, int isplt, double *a, int nw, double *w);
  void cftfx41(int n, double *a, int nw, double *w);
  void cftf161(double *a, double *w);
  void cftf081(double *a, double *w);
  void cftb040(double *a);
  void cftx020(double *a);

  if (n > 8) {
    if (n > 32) {
      cftb1st(n, a, &w[nw - (n >> 2)]);
      if (n > 512) {
        cftrec4(n, a, nw, w);
      } else if (n > 128) {
        cftleaf(n, 1, a, nw, w);
      } else {
        cftfx41(n, a, nw, w);
      }
      bitrv2conj(n, ip, a);
    } else if (n == 32) {
      cftf161(a, &w[nw - 8]);
      bitrv216neg(a);
    } else {
      cftf081(a, w);
      bitrv208neg(a);
    }
  } else if (n == 8) {
    cftb040(a);
  } else if (n == 4) {
    cftx020(a);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movl %edi, %ebp
cmpl $0x9, %edi
jl 0x83f0
movq %r8, %r15
movl %ecx, %r12d
cmpl $0x21, %ebp
jl 0x840a
movq %rdx, %r14
movl %ebp, %eax
shrl $0x2, %eax
movl %r12d, %ecx
subl %eax, %ecx
movslq %ecx, %rax
leaq (%r15,%rax,8), %rdx
movl %ebp, %edi
movq %rbx, %rsi
callq 0xaced
movl %ebp, %edi
cmpl $0x201, %ebp            # imm = 0x201
jl 0x847d
movq %rbx, %rsi
movl %r12d, %edx
movq %r15, %rcx
callq 0x936e
jmp 0x84c3
cmpl $0x4, %ebp
je 0x8436
cmpl $0x8, %ebp
jne 0x8474
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xc5bc
cmpl $0x20, %ebp
jne 0x849a
movslq %r12d, %rax
leaq (%r15,%rax,8), %rsi
addq $-0x40, %rsi
movq %rbx, %rdi
callq 0xa1d6
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xc4cc
movsd 0x10(%rbx), %xmm0
movsd (%rbx), %xmm1
movsd 0x8(%rbx), %xmm2
movapd %xmm1, %xmm3
subsd %xmm0, %xmm3
movsd 0x18(%rbx), %xmm4
movapd %xmm2, %xmm5
subsd %xmm4, %xmm5
addsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
addsd %xmm4, %xmm2
movsd %xmm2, 0x8(%rbx)
movsd %xmm3, 0x10(%rbx)
movsd %xmm5, 0x18(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x81, %ebp
jl 0x84b5
movl $0x1, %esi
movq %rbx, %rdx
movl %r12d, %ecx
movq %r15, %r8
callq 0x9480
jmp 0x84c3
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa987
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xc583
movq %rbx, %rsi
movl %r12d, %edx
movq %r15, %rcx
callq 0x97bb
movl %ebp, %edi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xb83c
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: rdft(int, int, double*, int*, double*)
void rdft(int n, int isgn, double *a, int *ip, double *w) {
  void cftfsub(int n, double *a, int *ip, int nw, double *w);
  void cftbsub(int n, double *a, int *ip, int nw, double *w);
  void rftfsub(int n, double *a, int nc, double *c);
  void rftbsub(int n, double *a, int nc, double *c);
  double xi;

  int nw = ip[0];
  int nc = ip[1];

  if (isgn >= 0) {
    if (n > 4) {
      cftfsub(n, a, ip, nw, w);
      rftfsub(n, a, nc, w + nw);
    } else if (n == 4) {
      cftfsub(n, a, ip, nw, w);
    }
    xi = a[0] - a[1];
    a[0] += a[1];
    a[1] = xi;
  } else {
    a[1] = 0.5 * (a[0] - a[1]);
    a[0] -= a[1];
    if (n > 4) {
      rftbsub(n, a, nc, w + nw);
      cftbsub(n, a, ip, nw, w);
    } else if (n == 4) {
      cftbsub(n, a, ip, nw, w);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %rbx
movl %edi, %ebp
movslq (%rcx), %r15
movl 0x4(%rcx), %r13d
testl %esi, %esi
js 0x852b
cmpl $0x5, %ebp
jl 0x8588
movl %ebp, %edi
movq %rbx, %rsi
movq %r12, %rdx
movl %r15d, %ecx
movq %r14, %r8
callq 0x8232
leaq (%r14,%r15,8), %rcx
movl %ebp, %edi
movq %rbx, %rsi
movl %r13d, %edx
callq 0x8634
jmp 0x85cb
movsd (%rbx), %xmm1
movapd %xmm1, %xmm0
subsd 0x8(%rbx), %xmm0
mulsd 0x6b48(%rip), %xmm0     # 0xf088
movsd %xmm0, 0x8(%rbx)
subsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
cmpl $0x5, %ebp
jl 0x85f8
leaq (%r14,%r15,8), %rcx
movl %ebp, %edi
movq %rbx, %rsi
movl %r13d, %edx
callq 0x8718
movl %ebp, %edi
movq %rbx, %rsi
movq %r12, %rdx
movl %r15d, %ecx
movq %r14, %r8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8394
cmpl $0x4, %ebp
jne 0x85cb
movsd 0x10(%rbx), %xmm0
movsd (%rbx), %xmm1
movsd 0x8(%rbx), %xmm2
movapd %xmm1, %xmm3
subsd %xmm0, %xmm3
movsd 0x18(%rbx), %xmm4
movapd %xmm2, %xmm5
subsd %xmm4, %xmm5
addsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
addsd %xmm4, %xmm2
movsd %xmm2, 0x8(%rbx)
movsd %xmm3, 0x10(%rbx)
movsd %xmm5, 0x18(%rbx)
movsd (%rbx), %xmm0
movsd 0x8(%rbx), %xmm1
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
addsd %xmm1, %xmm0
movsd %xmm0, (%rbx)
movsd %xmm2, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x4, %ebp
jne 0x85e9
movsd 0x10(%rbx), %xmm2
movsd 0x18(%rbx), %xmm3
movapd %xmm1, %xmm4
subsd %xmm2, %xmm4
movapd %xmm0, %xmm5
subsd %xmm3, %xmm5
addsd %xmm2, %xmm1
movsd %xmm1, (%rbx)
addsd %xmm3, %xmm0
movsd %xmm0, 0x8(%rbx)
movsd %xmm4, 0x10(%rbx)
movsd %xmm5, 0x18(%rbx)
jmp 0x85e9
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: rftfsub(int, double*, int, double*)
void rftfsub(int n, double *a, int nc, double *c) {
  int j, k, kk, ks, m;
  double wkr, wki, xr, xi, yr, yi;

  m = n >> 1;
  ks = 2 * nc / m;
  kk = 0;
  for (j = 2; j < m; j += 2) {
    k = n - j;
    kk += ks;
    wkr = 0.5 - c[nc - kk];
    wki = c[kk];
    xr = a[j] - a[k];
    xi = a[j + 1] + a[k + 1];
    yr = wkr * xr - wki * xi;
    yi = wkr * xi + wki * xr;
    a[j] -= yr;
    a[j + 1] -= yi;
    a[k] += yr;
    a[k + 1] -= yi;
  }
}

// Assembly:
movl %edi, %r9d
sarl %r9d
cmpl $0x3, %r9d
jl 0x8717
movl %edx, %r8d
leal (%r8,%r8), %eax
cltd
idivl %r9d
movslq %edi, %r10
movl %r9d, %edx
cltq
movslq %r8d, %rdi
leaq (%rcx,%rax,8), %r8
shlq $0x3, %rax
shlq $0x3, %rdi
subq %rax, %rdi
addq %rcx, %rdi
movq %rax, %rcx
negq %rcx
leaq (%rsi,%r10,8), %r9
addq $-0x8, %r9
movl $0x2, %r10d
movsd 0x6a00(%rip), %xmm0     # 0xf088
movapd %xmm0, %xmm1
subsd (%rdi), %xmm1
movsd (%r8), %xmm2
movsd (%rsi,%r10,8), %xmm3
movsd 0x8(%rsi,%r10,8), %xmm4
movapd %xmm3, %xmm5
subsd -0x8(%r9), %xmm5
movsd (%r9), %xmm6
addsd %xmm4, %xmm6
movapd %xmm6, %xmm7
mulsd %xmm2, %xmm7
mulsd %xmm1, %xmm6
mulsd %xmm5, %xmm1
subsd %xmm7, %xmm1
mulsd %xmm2, %xmm5
addsd %xmm5, %xmm6
subsd %xmm1, %xmm3
movsd %xmm3, (%rsi,%r10,8)
subsd %xmm6, %xmm4
movsd %xmm4, 0x8(%rsi,%r10,8)
addsd -0x8(%r9), %xmm1
movsd %xmm1, -0x8(%r9)
movsd (%r9), %xmm1
subsd %xmm6, %xmm1
movsd %xmm1, (%r9)
addq $0x2, %r10
addq %rax, %r8
addq %rcx, %rdi
addq $-0x10, %r9
cmpq %rdx, %r10
jb 0x8688
retq
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: makeipt(int, int*)
void makeipt(int nw, int *ip) {
  int j, l, m, m2, p, q;

  ip[2] = 0;
  ip[3] = 16;
  m = 2;
  for (l = nw; l > 32; l >>= 2) {
    m2 = m << 1;
    q = m2 << 3;
    for (j = m; j < m2; j++) {
      p = ip[j] << 2;
      ip[m + j] = p;
      ip[m2 + j] = p + q;
    }
    m = m2;
  }
}

// Assembly:
movabsq $0x1000000000, %rax     # imm = 0x1000000000
movq %rax, 0x8(%rsi)
cmpl $0x21, %edi
jl 0x8874
pushq %rbp
pushq %rbx
movl $0x2, %eax
leal (%rax,%rax), %ecx
cmpl %ecx, %eax
jge 0x8861
movslq %eax, %r11
shll $0x4, %eax
movslq %ecx, %rdx
leaq (%rsi,%r11,4), %r8
leaq (,%rdx,4), %r9
leaq (%r9,%r11,4), %r9
addq %rsi, %r9
leaq (%rsi,%r11,8), %r10
subq %r11, %rdx
xorl %r11d, %r11d
movl (%r8,%r11,4), %ebx
leal (,%rbx,4), %ebp
movl %ebp, (%r10,%r11,4)
leal (%rax,%rbx,4), %ebx
movl %ebx, (%r9,%r11,4)
incq %r11
cmpq %r11, %rdx
jne 0x8843
movl %edi, %edx
shrl $0x2, %edx
movl %ecx, %eax
cmpl $0x83, %edi
movl %edx, %edi
ja 0x8816
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: cftrec4(int, double*, int, double*)
void cftrec4(int n, double *a, int nw, double *w) {
  int cfttree(int n, int j, int k, double *a, int nw, double *w);
  void cftleaf(int n, int isplt, double *a, int nw, double *w);
  void cftmdl1(int n, double *a, double *w);
  int isplt, j, k, m;

  m = n;
  while (m > 512) {
    m >>= 2;
    cftmdl1(m, &a[n - m], &w[nw - (m >> 1)]);
  }
  cftleaf(m, 1, &a[n - m], nw, w);
  k = 0;
  for (j = n - m; j > 0; j -= m) {
    k++;
    isplt = cfttree(m, j, k, a, nw, w);
    cftleaf(m, isplt, &a[j - m], nw, w);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbp
movl %edx, %r14d
movq %rsi, %r13
movl %edi, %r15d
movl %edi, %r12d
cmpl $0x201, %edi            # imm = 0x201
jl 0x93db
movl %r15d, %ebx
movl %r15d, %r12d
shrl $0x2, %r12d
movl %r15d, %eax
subl %r12d, %eax
cltq
leaq (,%rax,8), %rsi
addq %r13, %rsi
movl %ebx, %eax
shrl $0x3, %eax
movl %r14d, %ecx
subl %eax, %ecx
movslq %ecx, %rax
leaq (,%rax,8), %rdx
addq %rbp, %rdx
movl %r12d, %edi
callq 0xc671
cmpl $0x803, %ebx            # imm = 0x803
movl %r12d, %ebx
ja 0x9399
movq %rbp, %r8
movq %r13, %rbp
movl %r15d, %r13d
subl %r12d, %r13d
movslq %r13d, %rax
movq %rax, 0x8(%rsp)
leaq (,%rax,8), %rdx
addq %rbp, %rdx
movl $0x1, %ebx
movl %r12d, %edi
movl $0x1, %esi
movl %r14d, %ecx
movq %r8, 0x10(%rsp)
callq 0x9480
cmpl $0x0, 0x8(%rsp)
jle 0x9471
subl %r12d, %r15d
subl %r12d, %r15d
movq %rbp, (%rsp)
movl %r12d, %edi
movl %r13d, %esi
movl %ebx, %edx
movq %rbp, %rcx
movl %r14d, %r8d
movl %r14d, %ebp
movq 0x10(%rsp), %r14
movq %r14, %r9
callq 0xcb54
subl %r12d, %r13d
movslq %r15d, %r15
movq (%rsp), %rcx
leaq (%rcx,%r15,8), %rdx
movl %r12d, %edi
movl %eax, %esi
movl %ebp, %ecx
movq %r14, %r8
movl %ebp, %r14d
movq (%rsp), %rbp
callq 0x9480
incl %ebx
subl %r12d, %r15d
testl %r13d, %r13d
jg 0x9425
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: cftfx41(int, double*, int, double*)
void cftfx41(int n, double *a, int nw, double *w) {
  void cftf161(double *a, double *w);
  void cftf162(double *a, double *w);
  void cftf081(double *a, double *w);
  void cftf082(double *a, double *w);

  if (n == 128) {
    cftf161(a, &w[nw - 8]);
    cftf162(&a[32], &w[nw - 32]);
    cftf161(&a[64], &w[nw - 8]);
    cftf161(&a[96], &w[nw - 8]);
  } else {
    cftf081(a, &w[nw - 8]);
    cftf082(&a[16], &w[nw - 8]);
    cftf081(&a[32], &w[nw - 8]);
    cftf081(&a[48], &w[nw - 8]);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movslq %edx, %rax
leaq (%rcx,%rax,8), %r14
addq $-0x40, %r14
cmpl $0x80, %edi
jne 0x9821
leaq (%rcx,%rax,8), %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa1d6
leaq 0x100(%rbx), %rdi
addq $-0x100, %r15
movq %r15, %rsi
callq 0xd2e9
leaq 0x200(%rbx), %rdi
movq %r14, %rsi
callq 0xa1d6
addq $0x300, %rbx            # imm = 0x300
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xa1d6
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa987
leaq 0x80(%rbx), %rdi
movq %r14, %rsi
callq 0xdc94
leaq 0x100(%rbx), %rdi
movq %r14, %rsi
callq 0xa987
addq $0x180, %rbx            # imm = 0x180
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xa987
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: cftf040(double*)
void cftf040(double *a) {
  double x0r, x0i, x1r, x1i, x2r, x2i, x3r, x3i;

  x0r = a[0] + a[4];
  x0i = a[1] + a[5];
  x1r = a[0] - a[4];
  x1i = a[1] - a[5];
  x2r = a[2] + a[6];
  x2i = a[3] + a[7];
  x3r = a[2] - a[6];
  x3i = a[3] - a[7];
  a[0] = x0r + x2r;
  a[1] = x0i + x2i;
  a[2] = x1r - x3i;
  a[3] = x1i + x3r;
  a[4] = x0r - x2r;
  a[5] = x0i - x2i;
  a[6] = x1r + x3i;
  a[7] = x1i - x3r;
}

// Assembly:
movsd 0x20(%rdi), %xmm4
movsd (%rdi), %xmm1
movsd 0x8(%rdi), %xmm0
movapd %xmm1, %xmm2
addsd %xmm4, %xmm2
movsd 0x28(%rdi), %xmm5
movapd %xmm0, %xmm3
addsd %xmm5, %xmm3
subsd %xmm4, %xmm1
subsd %xmm5, %xmm0
movsd 0x10(%rdi), %xmm4
movsd 0x30(%rdi), %xmm5
movapd %xmm4, %xmm6
addsd %xmm5, %xmm6
movsd 0x18(%rdi), %xmm7
movsd 0x38(%rdi), %xmm8
movapd %xmm7, %xmm9
addsd %xmm8, %xmm9
subsd %xmm5, %xmm4
subsd %xmm8, %xmm7
movapd %xmm2, %xmm5
addsd %xmm6, %xmm5
movsd %xmm5, (%rdi)
movapd %xmm3, %xmm5
addsd %xmm9, %xmm5
movsd %xmm5, 0x8(%rdi)
movapd %xmm1, %xmm5
subsd %xmm7, %xmm5
movsd %xmm5, 0x10(%rdi)
movapd %xmm0, %xmm5
addsd %xmm4, %xmm5
movsd %xmm5, 0x18(%rdi)
subsd %xmm6, %xmm2
movsd %xmm2, 0x20(%rdi)
subsd %xmm9, %xmm3
movsd %xmm3, 0x28(%rdi)
addsd %xmm1, %xmm7
movsd %xmm7, 0x30(%rdi)
subsd %xmm4, %xmm0
movsd %xmm0, 0x38(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: cftx020(double*)
void cftx020(double *a) {
  double x0r, x0i;

  x0r = a[0] - a[2];
  x0i = a[1] - a[3];
  a[0] += a[2];
  a[1] += a[3];
  a[2] = x0r;
  a[3] = x0i;
}

// Assembly:
movsd 0x10(%rdi), %xmm0
movsd (%rdi), %xmm1
movsd 0x8(%rdi), %xmm2
movapd %xmm1, %xmm3
subsd %xmm0, %xmm3
movsd 0x18(%rdi), %xmm4
movapd %xmm2, %xmm5
subsd %xmm4, %xmm5
addsd %xmm0, %xmm1
movsd %xmm1, (%rdi)
addsd %xmm4, %xmm2
movsd %xmm2, 0x8(%rdi)
movsd %xmm3, 0x10(%rdi)
movsd %xmm5, 0x18(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: cfttree(int, int, int, double*, int, double*)
int cfttree(int n, int j, int k, double *a, int nw, double *w) {
  void cftmdl1(int n, double *a, double *w);
  void cftmdl2(int n, double *a, double *w);
  int i, isplt, m;

  if ((k & 3) != 0) {
    isplt = k & 1;
    if (isplt != 0) {
      cftmdl1(n, &a[j - n], &w[nw - (n >> 1)]);
    } else {
      cftmdl2(n, &a[j - n], &w[nw - n]);
    }
  } else {
    m = n;
    for (i = k; (i & 3) == 0; i >>= 2) {
      m <<= 2;
    }
    isplt = i & 1;
    if (isplt != 0) {
      while (m > 128) {
        cftmdl1(m, &a[j - m], &w[nw - (m >> 1)]);
        m >>= 2;
      }
    } else {
      while (m > 128) {
        cftmdl2(m, &a[j - m], &w[nw - m]);
        m >>= 2;
      }
    }
  }
  return isplt;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %r13d
movl %edi, %ebp
testb $0x3, %bl
je 0xcb92
subl %ebp, %r13d
movslq %r13d, %rax
leaq (%rcx,%rax,8), %rsi
testb $0x1, %bl
jne 0xcbf4
subl %ebp, %r8d
movslq %r8d, %rax
leaq (%r9,%rax,8), %rdx
movl %ebp, %edi
callq 0xcc67
xorl %ebx, %ebx
jmp 0xcc56
movl %ebx, %eax
shll $0x2, %ebp
sarl $0x2, %ebx
testb $0xc, %al
je 0xcb92
andl $0x1, %ebx
movq %r9, (%rsp)
movq %rcx, %r15
movl %r8d, %r12d
jne 0xcc10
cmpl $0x81, %ebp
jl 0xcc56
movl %ebp, %r14d
movl %r13d, %eax
subl %ebp, %eax
cltq
leaq (%rcx,%rax,8), %rsi
movl %r8d, %eax
subl %ebp, %eax
cltq
leaq (%r9,%rax,8), %rdx
movl %ebp, %edi
callq 0xcc67
movl %r12d, %r8d
movq %r15, %rcx
movq (%rsp), %r9
shrl $0x2, %r14d
cmpl $0x203, %ebp            # imm = 0x203
movl %r14d, %ebp
ja 0xcbbc
jmp 0xcc56
movl %ebp, %eax
sarl %eax
subl %eax, %r8d
movslq %r8d, %rax
leaq (%r9,%rax,8), %rdx
movl %ebp, %edi
callq 0xc671
movl $0x1, %ebx
jmp 0xcc56
cmpl $0x81, %ebp
jl 0xcc56
movl %ebp, %r14d
movl %r13d, %eax
subl %ebp, %eax
cltq
leaq (%rcx,%rax,8), %rsi
movl %ebp, %eax
shrl %eax
movl %r8d, %ecx
subl %eax, %ecx
movslq %ecx, %rax
leaq (%r9,%rax,8), %rdx
movl %ebp, %edi
callq 0xc671
movl %r12d, %r8d
movq %r15, %rcx
movq (%rsp), %r9
shrl $0x2, %r14d
cmpl $0x203, %ebp            # imm = 0x203
movl %r14d, %ebp
ja 0xcc1b
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: dctsub(int, double*, int, double*)
void dctsub(int n, double *a, int nc, double *c) {
  int j, k, kk, ks, m;
  double wkr, wki, xr;

  m = n >> 1;
  ks = nc / n;
  kk = 0;
  for (j = 1; j < m; j++) {
    k = n - j;
    kk += ks;
    wkr = c[kk] - c[nc - kk];
    wki = c[kk] + c[nc - kk];
    xr = wki * a[j] - wkr * a[k];
    a[j] = wkr * a[j] + wki * a[k];
    a[k] = xr;
  }
  a[m] *= c[0];
}

// Assembly:
movl %edi, %r9d
sarl %r9d
cmpl $0x2, %r9d
jl 0xe06e
pushq %rbx
movl %edx, %r8d
movl %edx, %eax
cltd
idivl %edi
movslq %edi, %r11
movslq %eax, %r10
movslq %r8d, %rax
movl %r9d, %edx
shlq $0x3, %rax
leaq (,%r10,8), %rdi
subq %rdi, %rax
addq %rcx, %rax
movq %rdi, %r8
negq %r8
leaq (%rcx,%r10,8), %r10
leaq (%rsi,%r11,8), %r11
addq $-0x8, %r11
movl $0x1, %ebx
movsd (%r10), %xmm0
movsd (%rax), %xmm1
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
addsd %xmm1, %xmm0
movsd (%rsi,%rbx,8), %xmm1
movsd (%r11), %xmm3
movapd %xmm0, %xmm4
mulsd %xmm3, %xmm0
mulsd %xmm2, %xmm3
mulsd %xmm1, %xmm4
subsd %xmm3, %xmm4
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
movsd %xmm2, (%rsi,%rbx,8)
movsd %xmm4, (%r11)
incq %rbx
addq %r8, %rax
addq %rdi, %r10
addq $-0x8, %r11
cmpq %rbx, %rdx
jne 0xe016
popq %rbx
movsd (%rcx), %xmm0
movslq %r9d, %rax
mulsd (%rsi,%rax,8), %xmm0
movsd %xmm0, (%rsi,%rax,8)
retq
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/fft.cpp
// Function: dstsub(int, double*, int, double*)
void dstsub(int n, double *a, int nc, double *c) {
  int j, k, kk, ks, m;
  double wkr, wki, xr;

  m = n >> 1;
  ks = nc / n;
  kk = 0;
  for (j = 1; j < m; j++) {
    k = n - j;
    kk += ks;
    wkr = c[kk] - c[nc - kk];
    wki = c[kk] + c[nc - kk];
    xr = wki * a[k] - wkr * a[j];
    a[k] = wkr * a[k] + wki * a[j];
    a[j] = xr;
  }
  a[m] *= c[0];
}

// Assembly:
movl %edi, %r9d
sarl %r9d
cmpl $0x2, %r9d
jl 0xe126
pushq %rbx
movl %edx, %r8d
movl %edx, %eax
cltd
idivl %edi
movslq %edi, %r11
movslq %eax, %r10
movslq %r8d, %rax
movl %r9d, %edx
shlq $0x3, %rax
leaq (,%r10,8), %rdi
subq %rdi, %rax
addq %rcx, %rax
movq %rdi, %r8
negq %r8
leaq (%rcx,%r10,8), %r10
leaq (%rsi,%r11,8), %r11
addq $-0x8, %r11
movl $0x1, %ebx
movsd (%r10), %xmm0
movsd (%rax), %xmm1
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
addsd %xmm1, %xmm0
movsd (%r11), %xmm1
movsd (%rsi,%rbx,8), %xmm3
movapd %xmm0, %xmm4
mulsd %xmm3, %xmm0
mulsd %xmm2, %xmm3
mulsd %xmm1, %xmm4
subsd %xmm3, %xmm4
mulsd %xmm1, %xmm2
addsd %xmm0, %xmm2
movsd %xmm2, (%r11)
movsd %xmm4, (%rsi,%rbx,8)
incq %rbx
addq %r8, %rax
addq %rdi, %r10
addq $-0x8, %r11
cmpq %rbx, %rdx
jne 0xe0ce
popq %rbx
movsd (%rcx), %xmm0
movslq %r9d, %rax
mulsd (%rsi,%rax,8), %xmm0
movsd %xmm0, (%rsi,%rax,8)
retq
// File: /workspace/github_cpp_makefile_star2_O1/Sleepwalking[P]world-octave/test.cpp
// Function: timeGetTime()
DWORD timeGetTime() {
  struct timeval tv;
  gettimeofday(&tv, NULL);
  DWORD ret = static_cast<DWORD>(tv.tv_usec / 1000 + tv.tv_sec * 1000);
  return ret;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsp, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1160
movabsq $0x20c49ba5e353f7cf, %rax # imm = 0x20C49BA5E353F7CF
imulq 0x8(%rbx)
movq %rdx, %rcx
shrq $0x3f, %rcx
shrq $0x7, %rdx
addl %edx, %ecx
imull $0x3e8, (%rbx), %eax    # imm = 0x3E8
addl %ecx, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/main.cpp
// Function: main
int main( int argc, char ** argv) {
	Shell *shell;
	if (argc == 1) {
		//no filesystem given
		shell = new Shell(NULL);
		shell->prompt();
	} else if (argc == 2) {
		//filesystem given
		shell = new Shell(argv[1]);
		shell->prompt();
	} else {
		cout << "usage: os1shell [file-system-name]\n";
	}
	delete shell;
	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x2, %edi
je 0x25f3
cmpl $0x1, %edi
jne 0x2619
movl $0x20, %edi
callq 0x21e0
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0x5184
jmp 0x260f
movq %rsi, %r14
movl $0x20, %edi
callq 0x21e0
movq %rax, %rbx
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x5184
movq %rbx, %rdi
callq 0x5ccc
jmp 0x2631
movq 0x89b0(%rip), %rdi      # 0xafd0
leaq 0x59dd(%rip), %rsi      # 0x8004
movl $0x23, %edx
callq 0x2240
testq %rbx, %rbx
je 0x264b
movq %rbx, %rdi
callq 0x72b0
movl $0x20, %esi
movq %rbx, %rdi
callq 0x21f0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
jmp 0x2657
movq %rax, %r14
movl $0x20, %esi
movq %rbx, %rdi
callq 0x21f0
movq %r14, %rdi
callq 0x23b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::openFileSys(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int FileSys::openFileSys(string name) {
	int ret = -1;
	int i;
	file = fopen(name.c_str(), "r+");
	if (file != NULL) {
		boot = new BootRecord();
		readBootRecord(boot);

		if ((boot->clusterSize < (MIN_CLUSTER_SIZE * 1024) 
			|| boot->clusterSize > (MAX_CLUSTER_SIZE * 1024)
			|| boot->size < (MIN_FILE_SIZE * 1024 * 1024)
			|| boot->size > (MAX_FILE_SIZE * 1024 * 1024)
			|| boot->size < boot->clusterSize)) {
			ret = -1;
		} else {
			sysName = name;
			entriesPerTable = (boot->clusterSize)/DT_ENTRY_SIZE;
			numClusters = (boot->size)/(boot->clusterSize);
			fileAllocationTable = new int[numClusters];
			directoryTable.resize(entriesPerTable);

			readFAT(fileAllocationTable, boot->FAT);
			readDirectoryTable(&directoryTable, boot->rootDir);

			printInfo();
			ret = 0; 
		}
	}

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
leaq 0x59a8(%rip), %rsi      # 0x8030
callq 0x2250
movq %rax, 0x20(%rbx)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x2792
movq %rax, %r15
movl $0x10, %edi
callq 0x21e0
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq %rax, 0x58(%rbx)
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2220
movq 0x20(%rbx), %rcx
movl $0x10, %esi
movl $0x1, %edx
movq %r12, %rdi
callq 0x22e0
movq 0x58(%rbx), %rax
movl $0xffffbfff, %ecx       # imm = 0xFFFFBFFF
addl (%rax), %ecx
cmpl $0xffffdfff, %ecx       # imm = 0xFFFFDFFF
jb 0x2792
movl $0xfcdfffff, %ecx       # imm = 0xFCDFFFFF
addl 0x4(%rax), %ecx
cmpl $0xfd2fffff, %ecx       # imm = 0xFD2FFFFF
jb 0x2792
movq %rbx, %rdi
movq %r14, %rsi
callq 0x20f0
movq 0x58(%rbx), %rax
movl (%rax), %ecx
movl %ecx, %r14d
shrl $0x7, %r14d
movl %r14d, 0x2c(%rbx)
movl 0x4(%rax), %eax
xorl %ebp, %ebp
xorl %edx, %edx
divl %ecx
movl %eax, 0x30(%rbx)
cltq
leaq (,%rax,4), %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x2040
movq %rax, 0x38(%rbx)
leaq 0x40(%rbx), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x4dbe
movq 0x38(%rbx), %rsi
movq 0x58(%rbx), %rax
movl 0xc(%rax), %edx
movq %rbx, %rdi
callq 0x27d2
movq 0x58(%rbx), %rax
movl 0x8(%rax), %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2818
movq %rbx, %rdi
movl $0x6, %esi
movq %r15, %rdx
callq 0x498e
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::readFAT(int*, int)
void FileSys::readFAT(int *fat, int cluster) {
	int offset =  boot->clusterSize * cluster;
	if (offset < boot->size) {
		fseek(file, offset, SEEK_SET);
		fread(fat, numClusters * sizeof(int), 1, file);
	}
}

// Assembly:
movq 0x58(%rdi), %rax
imull (%rax), %edx
cmpl 0x4(%rax), %edx
jae 0x2816
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rdi
movslq %edx, %rsi
xorl %edx, %edx
callq 0x2220
movslq 0x30(%r14), %rsi
shlq $0x2, %rsi
movq 0x20(%r14), %rcx
movl $0x1, %edx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x22e0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::readDirectoryTable(std::vector<DirectoryTableEntry, std::allocator<DirectoryTableEntry>>*, int)
int FileSys::readDirectoryTable(vector<DirectoryTableEntry> *table, int cluster) {
	int offset;
	int i = 0;
	int j = 0;
	int clusterSize = boot->clusterSize;

	do {
		table->resize((i + 1)*entriesPerTable);
		offset =  clusterSize * cluster;
		fseek(file, offset, SEEK_SET);
		fread(&((*table)[i * entriesPerTable]), 128, entriesPerTable, file);
		cluster = fileAllocationTable[cluster];
		i++;
	} while(cluster  != 0xFFFF);
	return table->size();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x58(%rdi), %rax
movslq (%rax), %r15
xorl %r13d, %r13d
leal 0x1(%r13), %r12d
movslq 0x2c(%r14), %rax
movslq %r12d, %rsi
imulq %rax, %rsi
movq %rbx, %rdi
callq 0x4dbe
movslq %ebp, %rbp
movq %rbp, %rsi
imulq %r15, %rsi
movq 0x20(%r14), %rdi
xorl %edx, %edx
callq 0x2220
movslq 0x2c(%r14), %rdx
movslq %r13d, %rdi
imulq %rdx, %rdi
shlq $0x7, %rdi
addq (%rbx), %rdi
movq 0x20(%r14), %rcx
movl $0x80, %esi
callq 0x22e0
movq 0x38(%r14), %rax
movl (%rax,%rbp,4), %ebp
movl %r12d, %r13d
cmpl $0xffff, %ebp           # imm = 0xFFFF
jne 0x2835
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x7, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::writeFAT(int*, int)
void FileSys::writeFAT(int *fat, int cluster) {
	int offset =  boot->clusterSize * cluster;
	if (offset < boot->size) {
		fseek(file, offset, SEEK_SET);
		fwrite(fat, numClusters * sizeof(int), 1, file);
	}
}

// Assembly:
movq 0x58(%rdi), %rax
imull (%rax), %edx
cmpl 0x4(%rax), %edx
jae 0x2b64
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rdi
movslq %edx, %rsi
xorl %edx, %edx
callq 0x2220
movslq 0x30(%r14), %rsi
shlq $0x2, %rsi
movq 0x20(%r14), %rcx
movl $0x1, %edx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2410
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::writeDirectoryTable(std::vector<DirectoryTableEntry, std::allocator<DirectoryTableEntry>>*, int)
void FileSys::writeDirectoryTable(vector<DirectoryTableEntry> *table, int cluster) {
	int offset;
	int i = 0;
	int j = 0;
	int clusterSize = boot->clusterSize;

	do {
		offset =  clusterSize * cluster;
		fseek(file, offset, SEEK_SET);

		fwrite(&((*table)[i * entriesPerTable]), 128, entriesPerTable, file);
		cluster = fileAllocationTable[cluster];
		i++;
	} while(cluster != 0xFFFF);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x58(%rdi), %rax
movslq (%rax), %r15
xorl %r12d, %r12d
movslq %edx, %r13
movq %r13, %rsi
imulq %r15, %rsi
movq 0x20(%r14), %rdi
xorl %edx, %edx
callq 0x2220
movslq 0x2c(%r14), %rdx
movslq %r12d, %r12
movq %rdx, %rdi
imulq %r12, %rdi
shlq $0x7, %rdi
addq (%rbx), %rdi
movq 0x20(%r14), %rcx
movl $0x80, %esi
callq 0x2410
movq 0x38(%r14), %rax
movl (%rax,%r13,4), %edx
incl %r12d
cmpl $0xffff, %edx           # imm = 0xFFFF
jne 0x2b7f
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::findUsedClusterCount()
int FileSys::findUsedClusterCount() {
	int i;
	usedClusters = 0;

	for (i = 0; i < numClusters; i++) {
		if (fileAllocationTable[i] != 0x0000) {
			usedClusters++;
		}
	}

	return usedClusters;
}

// Assembly:
movl $0x0, 0x28(%rdi)
movslq 0x30(%rdi), %rax
testq %rax, %rax
jle 0x2c00
movl 0x28(%rdi), %ecx
movq 0x38(%rdi), %rdx
xorl %esi, %esi
cmpl $0x0, (%rdx,%rsi,4)
je 0x2bf8
incl %ecx
movl %ecx, 0x28(%rdi)
incq %rsi
cmpq %rsi, %rax
jne 0x2bed
movl 0x28(%rdi), %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::getDirectoryFileCount(std::vector<DirectoryTableEntry, std::allocator<DirectoryTableEntry>>)
int FileSys::getDirectoryFileCount(vector<DirectoryTableEntry> table) {
	int ret = 0;
	int i;
	for (i = 0; i < table.size(); i++) {
		if (table[i].name[0] != (char)0x00 && table[i].name[0] != (char)0xFF) {
			ret++;
		}
	}

	return ret;
}

// Assembly:
movq (%rsi), %rcx
movq 0x8(%rsi), %rdx
subq %rcx, %rdx
je 0x3123
sarq $0x7, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %eax, %eax
movb (%rcx), %sil
decb %sil
cmpb $-0x2, %sil
adcl $0x0, %eax
subq $-0x80, %rcx
decq %rdx
jne 0x310c
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::findNextFreeCluster()
int FileSys::findNextFreeCluster() {
	int i;
	int ret = 0xFFFF;

	for (i = 1; i < numClusters && ret == 0xFFFF; i++) {
		if (fileAllocationTable[i] == 0x0000) {
			ret = i;
		}
	}

	return ret;
}

// Assembly:
movslq 0x30(%rdi), %rcx
movl $0xffff, %eax           # imm = 0xFFFF
cmpq $0x2, %rcx
jl 0x315a
movq 0x38(%rdi), %rdx
movl $0x1, %esi
cmpl $0x0, (%rdx,%rsi,4)
movl %esi, %eax
je 0x314b
movl $0xffff, %eax           # imm = 0xFFFF
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x315a
incq %rsi
cmpq %rcx, %rsi
jb 0x313e
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::findIndexForFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int FileSys::findIndexForFile(string name) {
	int i;
	int index = -1;
	for (i = 0; i < directoryTable.size() && index == -1; i++) {
		if (directoryTable[i].name == name) {
			index = i;
		}
	}
	return index;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq 0x40(%rdi), %rsi
cmpq %rsi, 0x48(%rdi)
je 0x31bc
movq %rdi, %r14
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x1, %r15d
xorl %r12d, %r12d
addq %r12, %rsi
movq %rbx, %rdi
callq 0x2070
incl %ebp
testl %eax, %eax
je 0x31b2
movq 0x40(%r14), %rsi
movq 0x48(%r14), %rcx
subq %rsi, %rcx
sarq $0x7, %rcx
subq $-0x80, %r12
leaq 0x1(%r15), %rdx
cmpq %r15, %rcx
movq %rdx, %r15
ja 0x3182
xorl %ecx, %ecx
negl %eax
sbbl %ecx, %ecx
orl %ebp, %ecx
jmp 0x31c1
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl %ecx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::removeFile(int)
int FileSys::removeFile(int index) {
	int ret = -1;
	int cluster;
	int oldCluster;
	if (index != -1) {
		directoryTable[index].name[0] = 0xFF;

		cluster = directoryTable[index].index;
		do {
			oldCluster = cluster;
			cluster = fileAllocationTable[oldCluster];
			fileAllocationTable[oldCluster] = 0x0000;
		} while(cluster != 0xFFFF);

		directoryTable.erase(directoryTable.begin() + index);
		writeFAT(fileAllocationTable, boot->FAT);
		writeDirectoryTable(&directoryTable, boot->rootDir);
		ret = 0;
	}

	return ret;
}

// Assembly:
cmpl $-0x1, %esi
je 0x4254
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x40(%rdi), %r14
movslq %esi, %rcx
movq 0x40(%rdi), %rax
shlq $0x7, %rcx
movb $-0x1, (%rax,%rcx)
movq 0x38(%rdi), %rax
movq 0x40(%rdi), %rdx
leaq (%rdx,%rcx), %rdi
movl 0x70(%rdx,%rcx), %ecx
movslq %ecx, %rdx
movl (%rax,%rdx,4), %ecx
movl $0x0, (%rax,%rdx,4)
cmpl $0xffff, %ecx           # imm = 0xFFFF
jne 0x41f3
leaq 0x80(%rdi), %rsi
movq 0x48(%rbx), %rdx
cmpq %rdx, %rsi
je 0x4220
subq %rsi, %rdx
callq 0x2360
addq $-0x80, 0x48(%rbx)
movq 0x38(%rbx), %rsi
movq 0x58(%rbx), %rax
movl 0xc(%rax), %edx
movq %rbx, %rdi
callq 0x2b20
movq 0x58(%rbx), %rax
movl 0x8(%rax), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2b66
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::moveFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, bool)
int FileSys::moveFile(string source, string dest, 
						bool sourceInFileSys, bool destInFileSys) {
	int ret = -1;
	if (source != dest) {
		ret = copyFile(source, dest, sourceInFileSys, destInFileSys);
		if (ret >= 0) {
			if (sourceInFileSys) {
				ret = removeFile(source);
			} else {
				ret = remove(source.c_str());
			}
		}
	}

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %r8d, 0x4(%rsp)
movl %ecx, %r12d
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbp
movq 0x8(%rsi), %rbx
cmpq 0x8(%rdx), %rbx
jne 0x42a9
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testq %rbx, %rbx
je 0x4390
movq (%r13), %rsi
movq (%r14), %rdi
movq %rbx, %rdx
callq 0x2200
testl %eax, %eax
je 0x4390
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r14), %rsi
addq %rsi, %rbx
leaq 0x8(%rsp), %rdi
movq %rbx, %rdx
callq 0x4e76
leaq 0x38(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x4e76
movzbl %r12b, %ecx
movzbl 0x4(%rsp), %r8d
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %rbp, %rdi
callq 0x346a
movl %eax, %r15d
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4319
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4335
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
testl %r15d, %r15d
js 0x4390
testb %r12b, %r12b
je 0x4385
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0x4e76
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x4110
movq (%rbx), %rdi
xorl %r15d, %r15d
cmpq %r12, %rdi
je 0x4390
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x4390
movq (%r14), %rdi
callq 0x23d0
movl %eax, %r15d
movl %r15d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x43c1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x43c1
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x43dd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %r14, %rdi
callq 0x23b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::printFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int FileSys::printFile(string name) {
	int ret = -1;
	int index;
	int cluster;
	int leftOver;
	int offset;
	int clusterSize = boot->clusterSize;
	void *clusterData;

	index = findIndexForFile(name);
	if (index != -1) {
		clusterData = malloc(clusterSize);
		cluster = directoryTable[index].index;
		leftOver = directoryTable[index].size % clusterSize;

		while (fileAllocationTable[cluster] != 0xFFFF) {
			offset = clusterSize * cluster;
			fseek(file, offset, SEEK_SET);
			fread(clusterData, clusterSize, 1, file);
			cout << (char*)clusterData;
			cluster = fileAllocationTable[cluster];
		}
		offset = clusterSize * cluster;
		fseek(file, offset, SEEK_SET);
		while (leftOver > 0) {
			cout << (char)fgetc(file);
			leftOver--;
		}

		free(clusterData);
		ret = 0;
	}

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x58(%rdi), %rax
movslq (%rax), %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x4e76
movq %rbx, %rdi
movq %r15, %rsi
callq 0x315c
movl %eax, %ebp
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x4444
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
cmpl $-0x1, %ebp
je 0x4553
movq %r14, %rdi
callq 0x22b0
movq %rax, %r15
movslq %ebp, %rax
movq 0x38(%rbx), %rsi
movq 0x40(%rbx), %rdx
shlq $0x7, %rax
movl 0x70(%rdx,%rax), %ecx
movl 0x74(%rdx,%rax), %eax
xorl %edx, %edx
divl %r14d
movl %edx, %r12d
movslq %ecx, %rbp
cmpl $0xffff, (%rsi,%rbp,4)  # imm = 0xFFFF
je 0x44f9
movq 0x6b46(%rip), %r13      # 0xafd0
movslq %ecx, %rsi
imulq %r14, %rsi
movq 0x20(%rbx), %rdi
xorl %edx, %edx
callq 0x2220
movq 0x20(%rbx), %rcx
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x22e0
testq %r15, %r15
je 0x44cd
movq %r15, %rdi
callq 0x20b0
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2240
jmp 0x44e6
movq (%r13), %rax
movq -0x18(%rax), %rax
leaq (%rax,%r13), %rdi
movl 0x20(%r13,%rax), %esi
orl $0x1, %esi
callq 0x2380
movq 0x38(%rbx), %rax
movl (%rax,%rbp,4), %ecx
movslq %ecx, %rbp
cmpl $0xffff, (%rax,%rbp,4)  # imm = 0xFFFF
jne 0x448a
imull %ecx, %r14d
movq 0x20(%rbx), %rdi
movslq %r14d, %rsi
xorl %ebp, %ebp
xorl %edx, %edx
callq 0x2220
testl %r12d, %r12d
jle 0x4549
movq 0x6ab7(%rip), %r14      # 0xafd0
leaq 0x7(%rsp), %r13
movq 0x20(%rbx), %rdi
callq 0x2350
movb %al, 0x7(%rsp)
movl $0x1, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x2240
leal -0x1(%r12), %eax
cmpl $0x1, %r12d
movl %eax, %r12d
jg 0x451e
movq %r15, %rdi
callq 0x2260
jmp 0x4558
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::printInfo(int, std::vector<DirectoryTableEntry, std::allocator<DirectoryTableEntry>>*)
void FileSys::printInfo(int width, vector<DirectoryTableEntry> *table) {
	printFAT(width);
	showStructure();
	if (table != NULL) {
		printDirectoryTable(*table);
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rdi, %r14
callq 0x4a02
movq %r14, %rdi
callq 0x456a
testq %rbx, %rbx
je 0x49d9
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4df2
movq %r14, %rsi
callq 0x2c04
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x49d9
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21f0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x49fa
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/Shell.cpp
// Function: Shell::prompt()
void Shell::prompt() {
	char input[256];
	do {
		cout << "os1shell->";
		cin.getline(input, 256);
		runCommand(input);
		
	} while (!cin.eof());
	cout << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %r14
leaq 0x10(%rsp), %rbx
movq 0x52e4(%rip), %r15      # 0xafd0
movq 0x52ed(%rip), %r12      # 0xafe0
leaq 0x20(%rsp), %r13
movq %rsp, %rbp
movl $0xa, %edx
movq %r15, %rdi
leaq 0x24f1(%rip), %rsi      # 0x81fb
callq 0x2240
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %ecx
movl $0x100, %edx            # imm = 0x100
movq %r12, %rdi
movq %r13, %rsi
callq 0x2400
movq %rbx, (%rsp)
movq %r13, %rdi
callq 0x20b0
leaq (%rsp,%rax), %rdx
addq $0x20, %rdx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x50f4
movq %r14, %rdi
movq %rbp, %rsi
callq 0x5de6
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x5d77
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
movq (%r12), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x20(%r12,%rax)
je 0x5cfb
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x2120
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x5ddd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %r14, %rdi
callq 0x23b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/Shell.cpp
// Function: Shell::getTokens(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
void Shell::getTokens(string orig, string delims, string tokens[]) {
	int i;
	int j;
	int lastPos;
	int c;
	string origDup;
	string token;

	origDup = orig;
	j = 0;
	lastPos = 0;
	i = 0;

	while ( ( j = origDup.find_first_of(delims, lastPos) ) != -1 ) {
		token = origDup.substr(lastPos, j-lastPos);
		if (!token.empty()) {
			tokens[i] = token;
			i++;
		}
		lastPos = j + 1;
	}
	token = origDup.substr(lastPos);
	tokens[i] = token;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, (%rsp)
movq %rdx, %r14
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
xorl %eax, %eax
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x28(%rsp), %rdi
callq 0x20f0
movq (%r14), %rsi
movq 0x8(%r14), %rcx
xorl %ebp, %ebp
leaq 0x28(%rsp), %rdi
xorl %edx, %edx
callq 0x2300
movq %rax, %r13
movl $0x0, %ebx
cmpl $-0x1, %r13d
je 0x645e
leaq 0x28(%rsp), %r12
xorl %ebx, %ebx
xorl %r15d, %r15d
movl %r13d, %eax
subl %r15d, %eax
movslq %eax, %rcx
leaq 0x48(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x2210
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x2280
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x640a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21f0
cmpq $0x0, 0x10(%rsp)
je 0x6429
movslq %ebp, %rdi
shlq $0x5, %rdi
addq (%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x20f0
incl %ebp
movl %r13d, %r15d
incl %r15d
movslq %r15d, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %r12, %rdi
movq %rbx, %rdx
callq 0x2300
movq %rax, %r13
cmpl $-0x1, %r13d
jne 0x63c5
movslq %ebp, %rbp
leaq 0x38(%rsp), %r15
leaq 0x18(%rsp), %r12
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %rbx, %rdx
movq $-0x1, %rcx
callq 0x2210
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rbx
movq %rbx, %rsi
callq 0x2280
movq (%rbx), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x64a3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21f0
shlq $0x5, %rbp
movq (%rsp), %rdi
addq %rbp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x20f0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x64cf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x64e6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21f0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x64fb
jmp 0x64fb
jmp 0x64fb
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x651a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6536
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/Shell.cpp
// Function: Shell::isCommandSupported(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Shell::isCommandSupported(string cmd) {
	string cmds[] = {"ls", "touch", "cp", "mv", "rm", "df", "cat"};
	int i;
	bool ret = false;
	for (i = 0; i < 7 && ret == false; i++) {
		if (cmd == cmds[i]) {
			ret = true;
		}
	}

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rsi, 0x8(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1866(%rip), %rsi      # 0x8036
leaq 0x1861(%rip), %rdx      # 0x8038
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x50f4
leaq 0x30(%rsp), %r14
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1a4e(%rip), %rsi      # 0x8247
leaq 0x1a4c(%rip), %rdx      # 0x824c
movq %r14, %rdi
callq 0x50f4
leaq 0x50(%rsp), %r14
leaq 0x60(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1a30(%rip), %rsi      # 0x824d
leaq 0x1a2b(%rip), %rdx      # 0x824f
movq %r14, %rdi
callq 0x50f4
leaq 0x70(%rsp), %r14
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1a0c(%rip), %rsi      # 0x8250
leaq 0x1a07(%rip), %rdx      # 0x8252
movq %r14, %rdi
callq 0x50f4
leaq 0x90(%rsp), %r14
leaq 0xa0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x19e5(%rip), %rsi      # 0x8253
leaq 0x19e0(%rip), %rdx      # 0x8255
movq %r14, %rdi
callq 0x50f4
leaq 0xb0(%rsp), %r14
leaq 0xc0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x19be(%rip), %rsi      # 0x8256
leaq 0x19b9(%rip), %rdx      # 0x8258
movq %r14, %rdi
callq 0x50f4
leaq 0xd0(%rsp), %r14
leaq 0xe0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1996(%rip), %rsi      # 0x8259
leaq 0x1992(%rip), %rdx      # 0x825c
movq %r14, %rdi
callq 0x50f4
movq 0x8(%rsp), %rax
movq 0x8(%rax), %r14
leaq 0x18(%rsp), %r15
xorl %r13d, %r13d
movl $0x1, %ebx
xorl %eax, %eax
testq %r14, %r14
sete %cl
cmpq (%r15), %r14
setne %dl
movzbl %al, %ebp
movl $0x1, %eax
cmovnel %ebp, %eax
orb %cl, %dl
jne 0x6920
movq -0x8(%r15), %rsi
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movq %r14, %rdx
callq 0x2200
testl %eax, %eax
cmovel %ebx, %ebp
movl %ebp, %eax
movl %eax, %ebp
andb $0x1, %bpl
cmpq $0x5, %r13
ja 0x6938
incq %r13
addq $0x20, %r15
testb %bpl, %bpl
je 0x68ea
movq $-0xe0, %rbx
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x6955
movq (%r12), %rsi
incq %rsi
callq 0x21f0
addq $-0x20, %r12
addq $0x20, %rbx
jne 0x693f
movl %ebp, %eax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x697d
jmp 0x697d
jmp 0x697d
jmp 0x697d
jmp 0x697d
movq %rax, %rbx
cmpq %r14, %r15
je 0x69b2
addq $-0x10, %r14
leaq 0x10(%rsp), %r15
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x69a2
movq (%r14), %rsi
incq %rsi
callq 0x21f0
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %r15, %r14
movq %rax, %r14
jne 0x698e
movq %rbx, %rdi
callq 0x23b0
movq %rax, %rbx
movq %r15, %r14
jmp 0x6980
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/Shell.cpp
// Function: Shell::runRealCommand(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
int Shell::runRealCommand(string tokens[]) {
	int ret = -1;
	int i;
	char* args[256];
	cout << "Command: ";
	i = 0;
	while (!tokens[i].empty()) {
		args[i] = (char*)malloc(sizeof(char)*tokens[i].length());
		strcpy(args[i], tokens[i].c_str());
		cout << args[i] << " ";
		i++;
	}
	args[i] = NULL;
	cout << endl;

	pid_t pID = fork();
	if (pID == 0) {
		//success,  Child stuffs
		execvp(*args, args);
		cout << "Not a valid command" << endl;
		exit(0);
	} else if (pID < 0) {
		//failure :(
		exit(-1);
	} else {
		//parent stuffs
		int status;
		pid_t tpid;
		do {
			tpid = wait(&status);
		} while (tpid != pID);

		while (i>0) {
			free(args[i]);
			i--;
		}

		ret = 0;
	}

	return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x810, %rsp            # imm = 0x810
movq %rsi, %r14
movq 0x3e88(%rip), %rbx      # 0xafd0
leaq 0x110e(%rip), %rsi      # 0x825d
movl $0x9, %edx
movq %rbx, %rdi
callq 0x2240
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x71e0
xorl %r13d, %r13d
leaq 0x102f(%rip), %r15      # 0x819e
callq 0x22b0
movq %rax, %r12
movq %rax, 0x10(%rsp,%r13,8)
movq (%r14), %rsi
movq %rax, %rdi
callq 0x21a0
testq %r12, %r12
je 0x71a4
movq %r12, %rdi
callq 0x20b0
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2240
jmp 0x71bb
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x2380
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2240
incq %r13
movq 0x28(%r14), %rdi
addq $0x20, %r14
testq %rdi, %rdi
jne 0x716f
movl %r13d, %r15d
jmp 0x71e6
xorl %r15d, %r15d
xorl %r13d, %r13d
movq $0x0, 0x10(%rsp,%r13,8)
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x2120
callq 0x2060
testl %eax, %eax
je 0x7265
js 0x7294
movl %eax, %ebx
leaq 0xc(%rsp), %r14
movq %r14, %rdi
callq 0x2290
cmpl %ebx, %eax
jne 0x7228
testl %r15d, %r15d
jle 0x7252
movl %r15d, %ebx
incq %rbx
movq 0x8(%rsp,%rbx,8), %rdi
callq 0x2260
decq %rbx
cmpq $0x1, %rbx
jg 0x723f
xorl %eax, %eax
addq $0x810, %rsp            # imm = 0x810
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x10(%rsp), %rsi
movq (%rsi), %rdi
callq 0x2140
movq 0x3d57(%rip), %rdi      # 0xafd0
leaq 0xfe7(%rip), %rsi       # 0x8267
callq 0x21c0
movq %rax, %rdi
callq 0x20c0
xorl %edi, %edi
callq 0x2270
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O1/emr4378[P]FAT-File-System/Shell.cpp
// Function: Shell::checkIfDirExists(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Shell::checkIfDirExists(string path) {
	bool ret = false;
	if (opendir(path.c_str()) != NULL) {
		ret = true;
	}
	return ret;
}

// Assembly:
pushq %rax
movq (%rsi), %rdi
callq 0x22f0
testq %rax, %rax
setne %al
popq %rcx
retq
nop