LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tools.c
// Function: create_file
FILE * create_file(char filename[]) {
    // http://stackoverflow.com/a/230581
    int fd = open(filename, O_CREAT | O_WRONLY | O_EXCL, S_IRUSR | S_IWUSR);
    if (fd < 0) errorf(1, "Could not write to %s", filename);
    // http://stackoverflow.com/a/1941472
    return fdopen(fd, "wb");
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0xc1, %esi
movl $0x180, %edx            # imm = 0x180
xorl %eax, %eax
callq 0x1100
testl %eax, %eax
js 0x1464
leaq 0x2be7(%rip), %rsi      # 0x4043
movl %eax, %edi
popq %rbx
jmp 0x10f0
leaq 0x2bc2(%rip), %rsi      # 0x402d
movl $0x1, %edi
movq %rbx, %rdx
callq 0x136c
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tools.c
// Function: read_key
void read_key(char filename[], unsigned char key[], int key_size) {
    FILE *f = fopen(filename, "rb");
    if (fread(key, 1, key_size, f) != key_size)
        errorf(1, "Could not read the key from <%s>", filename);
    fclose(f);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x2ba3(%rip), %rsi      # 0x4046
callq 0x1120
movq %rax, %r14
movslq %ebp, %r12
movl $0x1, %esi
movq %r15, %rdi
movq %r12, %rdx
movq %rax, %rcx
callq 0x1030
cmpq %r12, %rax
jne 0x14d6
movq %r14, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1040
leaq 0x2b6c(%rip), %rsi      # 0x4049
movl $0x1, %edi
movq %rbx, %rdx
callq 0x136c
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tools.c
// Function: read_file
Content read_file(char filename[]) {
    FILE *f = fopen(filename, "rb");
    Content c;
    if (f == 0) errorf(1, "Could not read <%s>", filename);
    fseek(f, 0, SEEK_END);
    long size = ftell(f);
    if (size < 0) errorf(1, "Could not read <%s>", filename);
    c.size = (size_t)size;
    fseek(f, 0, SEEK_SET);
    c.bytes = malloc(c.size);
    if (c.bytes == NULL) error(1, "Malloc failed!");
    fread(c.bytes, c.size, 1, f);
    fclose(f);
    return c;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x2b4d(%rip), %rsi      # 0x4046
callq 0x1120
testq %rax, %rax
je 0x1568
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x10e0
movq %rbx, %rdi
callq 0x10b0
testq %rax, %rax
js 0x1568
movq %rax, %r15
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10e0
movq %r15, %rdi
callq 0x10d0
testq %rax, %rax
je 0x157c
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq 0x1030
movq %rbx, %rdi
callq 0x1040
movq %r15, %rax
movq %r14, %rdx
popq %rbx
popq %r14
popq %r15
retq
leaq 0x2afb(%rip), %rsi      # 0x406a
movl $0x1, %edi
movq %r14, %rdx
callq 0x136c
leaq 0x2a96(%rip), %rsi      # 0x4019
movl $0x1, %edi
callq 0x1324
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: crypto_stream_salsa20_tweet_xor
int crypto_stream_salsa20_xor(u8 *c,const u8 *m,u64 b,const u8 *n,const u8 *k)
{
  u8 z[16],x[64];
  u32 u,i;
  if (!b) return 0;
  FOR(i,16) z[i] = 0;
  FOR(i,8) z[i] = n[i];
  while (b >= 64) {
    crypto_core_salsa20(x,z,k,sigma);
    FOR(i,64) c[i] = (m?m[i]:0) ^ x[i];
    u = 1;
    for (i = 8;i < 16;++i) {
      u += (u32) z[i];
      z[i] = u;
      u >>= 8;
    }
    b -= 64;
    c += 64;
    if (m) m += 64;
  }
  if (b) {
    crypto_core_salsa20(x,z,k,sigma);
    FOR(i,b) c[i] = (m?m[i]:0) ^ x[i];
  }
  return 0;
}

// Assembly:
testq %rdx, %rdx
je 0x191c
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq (%rcx), %rax
movq %rax, (%rsp)
cmpq $0x40, %rdx
jb 0x18ce
leaq 0x10(%rsp), %rbp
movq %rsp, %r13
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
leaq 0x2816(%rip), %rcx      # 0x4080
xorl %r8d, %r8d
callq 0x15e7
xorl %eax, %eax
testq %r14, %r14
je 0x187f
movb (%r14,%rax), %cl
jmp 0x1881
xorl %ecx, %ecx
xorb 0x10(%rsp,%rax), %cl
movb %cl, (%r15,%rax)
incq %rax
cmpq $0x40, %rax
jne 0x1874
movl $0x1, %ecx
xorl %eax, %eax
movzbl 0x8(%rsp,%rax), %edx
addq %rcx, %rdx
movb %dl, 0x8(%rsp,%rax)
shrq $0x8, %rdx
incq %rax
movq %rdx, %rcx
cmpq $0x8, %rax
jne 0x1899
addq $-0x40, %rbx
addq $0x40, %r15
leaq 0x40(%r14), %rax
testq %r14, %r14
cmovneq %rax, %r14
cmpq $0x3f, %rbx
ja 0x185a
testq %rbx, %rbx
je 0x190e
leaq 0x27a6(%rip), %rcx      # 0x4080
leaq 0x10(%rsp), %rdi
movq %rsp, %rsi
xorl %r13d, %r13d
movq %r12, %rdx
xorl %r8d, %r8d
callq 0x15e7
testq %r14, %r14
je 0x18fb
movb (%r14,%r13), %al
jmp 0x18fd
xorl %eax, %eax
xorb 0x10(%rsp,%r13), %al
movb %al, (%r15,%r13)
incq %r13
cmpq %r13, %rbx
jne 0x18f0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: crypto_secretbox_xsalsa20poly1305_tweet
int crypto_secretbox(u8 *c,const u8 *m,u64 d,const u8 *n,const u8 *k)
{
  int i;
  if (d < 32) return -1;
  crypto_stream_xor(c,m,d,n,k);
  crypto_onetimeauth(c + 16,c + 32,d - 32,c);
  FOR(i,16) c[i] = 0;
  return 0;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x20, %rdx
jb 0x1d83
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x2358(%rip), %rcx      # 0x4080
movq %rsp, %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r8, %rdx
movl $0x1, %r8d
callq 0x15e7
addq $0x10, %r15
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %rcx
movq %r13, %r8
callq 0x181b
leaq 0x10(%rbx), %rdi
leaq 0x20(%rbx), %rsi
addq $-0x20, %r14
movq %r14, %rdx
movq %rbx, %rcx
callq 0x19ed
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: crypto_secretbox_xsalsa20poly1305_tweet_open
int crypto_secretbox_open(u8 *m,const u8 *c,u64 d,const u8 *n,const u8 *k)
{
  int i;
  u8 x[32];
  if (d < 32) return -1;
  crypto_stream(x,32,n,k);
  if (crypto_onetimeauth_verify(c + 16,c + 32,d - 32,x) != 0) return -1;
  crypto_stream_xor(m,c,d,n,k);
  FOR(i,32) m[i] = 0;
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpq $0x20, %rdx
jb 0x1e52
movq %r8, %r12
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x8(%rsp)
leaq 0x22c7(%rip), %rcx      # 0x4080
leaq 0x10(%rsp), %rdi
movq %r13, %rsi
movq %r8, %rdx
movl $0x1, %r8d
callq 0x15e7
leaq 0x10(%r13), %rcx
leaq 0x30(%rsp), %rbx
movl $0x20, %edx
movq %rbx, %rdi
xorl %esi, %esi
movq %rcx, (%rsp)
leaq 0x10(%rsp), %r8
callq 0x181b
leaq 0x10(%r15), %rdi
leaq 0x20(%r15), %rsi
leaq -0x20(%r14), %rdx
movq %rbx, %rcx
callq 0x1cc3
testl %eax, %eax
jne 0x1e52
leaq 0x2271(%rip), %rcx      # 0x4080
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl $0x1, %r8d
callq 0x15e7
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq (%rsp), %rcx
movq %rbx, %r8
callq 0x181b
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r12)
movups %xmm0, (%r12)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: M
sv M(gf o,const gf a,const gf b)
{
  i64 i,j,t[31];
  FOR(i,31) t[i]=0;
  FOR(i,16) FOR(j,16) t[i+j]+=a[i]*b[j];
  FOR(i,15) t[i]+=38*t[i+16];
  FOR(i,16) o[i]=t[i];
  car25519(o);
  car25519(o);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsp, %r12
xorl %r13d, %r13d
movl $0xf8, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x1060
movq (%r15,%r13,8), %rax
xorl %ecx, %ecx
movq (%r14,%rcx,8), %rdx
imulq %rax, %rdx
addq %rdx, (%r12,%rcx,8)
incq %rcx
cmpq $0x10, %rcx
jne 0x22e1
incq %r13
addq $0x8, %r12
cmpq $0x10, %r13
jne 0x22db
xorl %eax, %eax
imulq $0x26, 0x80(%rsp,%rax,8), %rcx
addq %rcx, (%rsp,%rax,8)
incq %rax
cmpq $0xf, %rax
jne 0x2305
movq %rsp, %rsi
movl $0x10, %ecx
movq %rbx, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %rbx, %rdi
callq 0x361f
movq %rbx, %rdi
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x361f
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: inv25519
sv inv25519(gf o,const gf i)
{
  gf c;
  int a;
  FOR(a,16) c[a]=i[a];
  for(a=253;a>=0;a--) {
    S(c,c);
    if(a!=2&&a!=4) M(c,c,i);
  }
  FOR(a,16) o[a]=c[a];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r15
movl $0x10, %ecx
movq %r15, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl $0xfd, %ebp
movq %r15, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x22ad
cmpl $0x2, %ebp
je 0x2395
cmpl $0x4, %ebp
je 0x2395
movq %r15, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x22ad
addl $-0x1, %ebp
jb 0x236f
movq %rsp, %rsi
movl $0x10, %ecx
movq %rbx, %rdi
rep  movsq (%rsi), %es:(%rdi)
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: pack25519
sv pack25519(u8 *o,const gf n)
{
  int i,j,b;
  gf m,t;
  FOR(i,16) t[i]=n[i];
  car25519(t);
  car25519(t);
  car25519(t);
  FOR(j,2) {
    m[0]=t[0]-0xffed;
    for(i=1;i<15;i++) {
      m[i]=t[i]-0xffff-((m[i-1]>>16)&1);
      m[i-1]&=0xffff;
    }
    m[15]=t[15]-0x7fff-((m[14]>>16)&1);
    b=(m[15]>>16)&1;
    m[14]&=0xffff;
    sel25519(t,m,1-b);
  }
  FOR(i,16) {
    o[2*i]=t[i]&0xff;
    o[2*i+1]=t[i]>>8;
  }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %rbx
leaq 0x80(%rsp), %r14
movl $0x10, %ecx
movq %r14, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %r14, %rdi
callq 0x361f
movq %r14, %rdi
callq 0x361f
movq %r14, %rdi
callq 0x361f
xorl %ecx, %ecx
movq $-0xffed, %rax          # imm = 0xFFFF0013
movq 0x80(%rsp), %rsi
addq %rax, %rsi
movq %rsi, (%rsp)
movl $0x1, %edx
movq 0x80(%rsp,%rdx,8), %rdi
movzwl %si, %r8d
shlq $0x2f, %rsi
sarq $0x3f, %rsi
addq %rdi, %rsi
addq $-0xffff, %rsi          # imm = 0xFFFF0001
movq %rsi, (%rsp,%rdx,8)
movq %r8, -0x8(%rsp,%rdx,8)
incq %rdx
cmpq $0xf, %rdx
jne 0x240b
movq 0xf8(%rsp), %rdx
movq 0x70(%rsp), %rsi
movzwl %si, %edi
shlq $0x2f, %rsi
sarq $0x3f, %rsi
addq %rsi, %rdx
addq $-0x7fff, %rdx          # imm = 0x8001
movq %rdx, 0x78(%rsp)
movq %rdi, 0x70(%rsp)
btl $0x10, %edx
movl $0x0, %edx
adcl $-0x1, %edx
movslq %edx, %rdx
xorl %esi, %esi
movq 0x80(%rsp,%rsi,8), %rdi
movq (%rsp,%rsi,8), %r8
movq %r8, %r9
xorq %rdi, %r9
andq %rdx, %r9
xorq %r9, %rdi
movq %rdi, 0x80(%rsp,%rsi,8)
xorq %r8, %r9
movq %r9, (%rsp,%rsi,8)
incq %rsi
cmpq $0x10, %rsi
jne 0x2478
leal 0x1(%rcx), %edx
testl %ecx, %ecx
movl %edx, %ecx
je 0x23f7
xorl %eax, %eax
movzwl 0x80(%rsp,%rax,8), %ecx
movw %cx, (%rbx,%rax,2)
incq %rax
cmpq $0x10, %rax
jne 0x24b7
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: crypto_hash_sha512_tweet
int crypto_hash(u8 *out,const u8 *m,u64 n)
{
  u8 h[64],x[256];
  u64 i,b = n;

  FOR(i,64) h[i] = iv[i];

  crypto_hashblocks(h,m,n);
  m += n;
  n &= 127;
  m -= n;

  FOR(i,256) x[i] = 0;
  FOR(i,n) x[i] = m[i];
  x[n] = 128;

  n = 256-128*(n<112);
  x[n-9] = b >> 61;
  ts64(x+n-8,b<<3);
  crypto_hashblocks(h,x,n);

  FOR(i,64) out[i] = h[i];

  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x140, %rsp            # imm = 0x140
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movaps 0x1ae6(%rip), %xmm0     # 0x43b0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movaps 0x1ae9(%rip), %xmm0     # 0x43c0
movaps %xmm0, 0x10(%rdi)
movaps 0x1aee(%rip), %xmm0     # 0x43d0
movaps %xmm0, 0x20(%rdi)
movaps 0x1af3(%rip), %xmm0     # 0x43e0
movaps %xmm0, 0x30(%rdi)
callq 0x2650
leaq 0x40(%rsp), %r15
movl $0x100, %edx            # imm = 0x100
movq %r15, %rdi
xorl %esi, %esi
callq 0x1060
movq %r14, %r13
andq $0x7f, %r13
je 0x2929
addq %r14, %r12
subq %r13, %r12
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x10c0
movb $-0x80, 0x40(%rsp,%r13)
xorl %eax, %eax
cmpq $0x70, %r13
setae %al
shll $0x7, %eax
leaq 0x80(%rax), %rdx
movq %r14, %rcx
shrq $0x3d, %rcx
movb %cl, 0x77(%rax,%r15)
addq %rsp, %rax
addq $0xb8, %rax
shlq $0x3, %r14
movl $0x8, %ecx
movb %r14b, -0x1(%rax,%rcx)
shrq $0x8, %r14
decq %rcx
jne 0x2960
movq %rsp, %r14
leaq 0x40(%rsp), %rsi
movq %r14, %rdi
callq 0x2650
movaps (%r14), %xmm0
movaps 0x10(%r14), %xmm1
movaps 0x20(%r14), %xmm2
movaps 0x30(%r14), %xmm3
movups %xmm0, (%rbx)
movups %xmm1, 0x10(%rbx)
movups %xmm2, 0x20(%rbx)
movups %xmm3, 0x30(%rbx)
xorl %eax, %eax
addq $0x140, %rsp            # imm = 0x140
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: crypto_sign_ed25519_tweet_keypair
int crypto_sign_keypair(u8 *pk, u8 *sk)
{
  u8 d[64];
  gf p[4];
  int i;

  randombytes(sk, 32);
  crypto_hash(d, sk, 32);
  d[0] &= 248;
  d[31] &= 127;
  d[31] |= 64;

  scalarbase(p,d);
  pack(pk,p);

  FOR(i,32) sk[32 + i] = pk[i];
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x440, %rsp            # imm = 0x440
movq %rsi, %rbx
movq %rdi, %r14
movl $0x20, %esi
movq %rbx, %rdi
callq 0x126c
movq %rsp, %r15
movl $0x20, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x28aa
andb $-0x8, (%r15)
movb 0x1f(%r15), %al
andb $0x3f, %al
orb $0x40, %al
movb %al, 0x1f(%r15)
leaq 0x1a90(%rip), %rax      # 0x4490
leaq 0x40(%rsp), %r12
movl $0x10, %ecx
movq %r12, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0xc0(%rsp), %rdi
leaq 0x1aee(%rip), %rdx      # 0x4510
movl $0x10, %ecx
movq %rdx, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x140(%rsp), %rdi
leaq 0x1b54(%rip), %rsi      # 0x4590
movl $0x10, %ecx
rep  movsq (%rsi), %es:(%rdi)
leaq 0x1c0(%rsp), %rdi
movq %rax, %rsi
callq 0x22ad
leaq 0x240(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x32f0
movq %r14, %rdi
movq %r13, %rsi
callq 0x2a9b
xorl %eax, %eax
movb (%r14,%rax), %cl
movb %cl, 0x20(%rbx,%rax)
incq %rax
cmpq $0x20, %rax
jne 0x2a77
xorl %eax, %eax
addq $0x440, %rsp            # imm = 0x440
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: pack
sv pack(u8 *r,gf p[4])
{
  gf tx, ty, zi;
  inv25519(zi, p[2]); 
  M(tx, p[0], zi);
  M(ty, p[1], zi);
  pack25519(r, ty);
  r[31] ^= par25519(tx) << 7;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rsi, %r14
movq %rdi, %rbx
addq $0x100, %rsi            # imm = 0x100
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x2349
leaq 0x120(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x22ad
subq $-0x80, %r14
leaq 0xa0(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x22ad
movq %rbx, %rdi
movq %r13, %rsi
callq 0x23b6
movq %rsp, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x23b6
movb (%r14), %al
shlb $0x7, %al
xorb %al, 0x1f(%rbx)
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: modL
sv modL(u8 *r,i64 x[64])
{
  i64 carry,i,j;
  for (i = 63;i >= 32;--i) {
    carry = 0;
    for (j = i - 32;j < i - 12;++j) {
      x[j] += carry - 16 * x[i] * L[j - (i - 32)];
      carry = (x[j] + 128) >> 8;
      x[j] -= carry << 8;
    }
    x[j] += carry;
    x[i] = 0;
  }
  carry = 0;
  FOR(j,32) {
    x[j] += carry - (x[31] >> 4) * L[j];
    carry = x[j] >> 8;
    x[j] &= 255;
  }
  FOR(j,32) x[j] -= carry * L[j];
  FOR(i,32) {
    x[i+1] += x[i] >> 8;
    r[i] = x[i] & 255;
  }
}

// Assembly:
leaq 0xf8(%rsi), %rcx
movl $0x3f, %edx
leaq 0x188e(%rip), %rax      # 0x4610
xorl %r8d, %r8d
xorl %r9d, %r9d
movq (%rsi,%rdx,8), %r10
imulq (%r8,%rax), %r10
shlq $0x4, %r10
subq %r10, %r9
movq (%rcx,%r8), %r10
leaq (%r9,%r10), %r11
addq %r9, %r10
addq $0x80, %r10
movq %r10, %r9
sarq $0x8, %r9
andq $-0x100, %r10
subq %r10, %r11
movq %r11, (%rcx,%r8)
addq $0x8, %r8
cmpq $0xa0, %r8
jne 0x2d88
addq %r9, (%rcx,%r8)
movq $0x0, (%rsi,%rdx,8)
leaq -0x1(%rdx), %r8
addq $-0x8, %rcx
cmpq $0x20, %rdx
movq %r8, %rdx
ja 0x2d82
xorl %edx, %edx
xorl %ecx, %ecx
movq 0xf8(%rsi), %r8
sarq $0x4, %r8
imulq (%rdx,%rax), %r8
subq %r8, %rcx
addq (%rsi,%rdx), %rcx
movzbl %cl, %r8d
sarq $0x8, %rcx
movq %r8, (%rsi,%rdx)
addq $0x8, %rdx
cmpq $0x100, %rdx            # imm = 0x100
jne 0x2ded
xorl %edx, %edx
movq (%rdx,%rax), %r8
imulq %rcx, %r8
subq %r8, (%rsi,%rdx)
addq $0x8, %rdx
cmpq $0x100, %rdx            # imm = 0x100
jne 0x2e1f
xorl %eax, %eax
movq (%rsi,%rax,8), %rcx
movq %rcx, %rdx
sarq $0x8, %rdx
addq %rdx, 0x8(%rsi,%rax,8)
movb %cl, (%rdi,%rax)
leaq 0x1(%rax), %rcx
movq %rcx, %rax
cmpq $0x20, %rcx
jne 0x2e3a
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: scalarmult
sv scalarmult(gf p[4],gf q[4],const u8 *s)
{
  int i;
  set25519(p[0],gf0);
  set25519(p[1],gf1);
  set25519(p[2],gf1);
  set25519(p[3],gf0);
  for (i = 255;i >= 0;--i) {
    u8 b = (s[i/8]>>(i&7))&1;
    cswap(p,q,b);
    add(q,p);
    add(p,p);
    cswap(p,q,b);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x70(%rdi)
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
xorl %ecx, %ecx
leaq 0x1264(%rip), %rax      # 0x4590
movq (%rcx,%rax), %rdx
movq %rdx, 0x80(%r15,%rcx)
addq $0x8, %rcx
cmpq $0x80, %rcx
jne 0x332c
xorl %ecx, %ecx
movq (%rcx,%rax), %rdx
movq %rdx, 0x100(%r15,%rcx)
addq $0x8, %rcx
cmpq $0x80, %rcx
jne 0x3347
xorps %xmm0, %xmm0
movups %xmm0, 0x1f0(%r15)
movups %xmm0, 0x1e0(%r15)
movups %xmm0, 0x1d0(%r15)
movups %xmm0, 0x1c0(%r15)
movups %xmm0, 0x1b0(%r15)
movups %xmm0, 0x1a0(%r15)
movups %xmm0, 0x190(%r15)
movups %xmm0, 0x180(%r15)
movl $0xff, %r12d
movl %r12d, %eax
shrl $0x3, %eax
movzbl (%rbx,%rax), %eax
movl %r12d, %ecx
andl $0x7, %ecx
xorl %ebp, %ebp
btl %ecx, %eax
setb %bpl
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x36c7
movq %r14, %rdi
movq %r15, %rsi
callq 0x3401
movq %r15, %rdi
movq %r15, %rsi
callq 0x3401
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x36c7
addl $-0x1, %r12d
jb 0x33a9
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: add
sv add(gf p[4],gf q[4])
{
  gf a,b,c,d,t,e,f,g,h;
  
  Z(a, p[1], p[0]);
  Z(t, q[1], q[0]);
  M(a, a, t);
  A(b, p[0], p[1]);
  A(t, q[0], q[1]);
  M(b, b, t);
  M(c, p[3], q[3]);
  M(c, c, D2);
  M(d, p[2], q[2]);
  A(d, d, d);
  Z(e, b, a);
  Z(f, d, c);
  A(g, d, c);
  A(h, b, a);

  M(p[0], e, f);
  M(p[1], h, g);
  M(p[2], g, f);
  M(p[3], e, h);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x498, %rsp            # imm = 0x498
movq %rsi, %r12
movq %rdi, %r14
leaq 0x80(%rdi), %rax
movq %rax, 0x8(%rsp)
xorl %eax, %eax
movq 0x80(%r14,%rax,8), %rcx
subq (%r14,%rax,8), %rcx
movq %rcx, 0x190(%rsp,%rax,8)
incq %rax
cmpq $0x10, %rax
jne 0x3426
xorl %eax, %eax
movq 0x80(%r12,%rax,8), %rcx
subq (%r12,%rax,8), %rcx
movq %rcx, 0x10(%rsp,%rax,8)
incq %rax
cmpq $0x10, %rax
jne 0x3445
leaq 0x190(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movq %rdi, %rsi
callq 0x22ad
xorl %eax, %eax
movq 0x80(%r14,%rax,8), %rcx
addq (%r14,%rax,8), %rcx
movq %rcx, 0x110(%rsp,%rax,8)
incq %rax
cmpq $0x10, %rax
jne 0x3476
xorl %eax, %eax
movq 0x80(%r12,%rax,8), %rcx
addq (%r12,%rax,8), %rcx
movq %rcx, 0x10(%rsp,%rax,8)
incq %rax
cmpq $0x10, %rax
jne 0x3495
leaq 0x110(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movq %rdi, %rsi
callq 0x22ad
movl $0x180, %edx            # imm = 0x180
leaq (%r14,%rdx), %r15
addq %r12, %rdx
leaq 0x210(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x22ad
leaq 0x1326(%rip), %rdx      # 0x4810
movq %r13, %rdi
movq %r13, %rsi
callq 0x22ad
movl $0x100, %eax            # imm = 0x100
leaq (%r14,%rax), %r13
addq %rax, %r12
leaq 0x90(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x22ad
xorl %eax, %eax
shlq 0x90(%rsp,%rax,8)
incq %rax
cmpq $0x10, %rax
jne 0x3516
xorl %eax, %eax
movq 0x110(%rsp,%rax,8), %rcx
subq 0x190(%rsp,%rax,8), %rcx
movq %rcx, 0x410(%rsp,%rax,8)
incq %rax
cmpq $0x10, %rax
jne 0x3529
xorl %eax, %eax
movq 0x90(%rsp,%rax,8), %rcx
subq 0x210(%rsp,%rax,8), %rcx
movq %rcx, 0x390(%rsp,%rax,8)
incq %rax
cmpq $0x10, %rax
jne 0x354c
xorl %eax, %eax
movq 0x210(%rsp,%rax,8), %rcx
addq 0x90(%rsp,%rax,8), %rcx
movq %rcx, 0x310(%rsp,%rax,8)
incq %rax
cmpq $0x10, %rax
jne 0x356f
xorl %eax, %eax
movq 0x190(%rsp,%rax,8), %rcx
addq 0x110(%rsp,%rax,8), %rcx
movq %rcx, 0x290(%rsp,%rax,8)
incq %rax
cmpq $0x10, %rax
jne 0x3592
leaq 0x410(%rsp), %r12
leaq 0x390(%rsp), %rbp
movq %r14, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x22ad
leaq 0x290(%rsp), %r14
leaq 0x310(%rsp), %rbx
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x22ad
movq %r13, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x22ad
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x22ad
addq $0x498, %rsp            # imm = 0x498
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: car25519
sv car25519(gf o)
{
  int i;
  i64 c;
  FOR(i,16) {
    o[i]+=(1LL<<16);
    c=o[i]>>16;
    o[(i+1)*(i<15)]+=c-1+37*(c-1)*(i==15);
    o[i]-=c<<16;
  }
}

// Assembly:
xorl %eax, %eax
movl $0x10000, %ecx          # imm = 0x10000
xorl %edx, %edx
movq (%rdi,%rdx,8), %rsi
addq %rcx, %rsi
movq %rsi, (%rdi,%rdx,8)
movq %rsi, %r8
sarq $0x10, %r8
leaq -0x1(%r8), %r9
leaq (%r9,%r9,8), %r10
leaq (%r8,%r10,4), %r8
decq %r8
cmpq $0xf, %rdx
cmovneq %rax, %r8
leaq 0x1(%rdx), %r10
movq %r10, %r11
cmoveq %rax, %r11
addq (%rdi,%r11,8), %r9
addq %r8, %r9
movq %r9, (%rdi,%r11,8)
andq $-0x10000, %rsi         # imm = 0xFFFF0000
subq %rsi, (%rdi,%rdx,8)
movq %r10, %rdx
cmpq $0x10, %r10
jne 0x3628
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl.c
// Function: neq25519
static int neq25519(const gf a, const gf b)
{
  u8 c[32],d[32];
  pack25519(c,a);
  pack25519(d,b);
  return crypto_verify_32(c,d);
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movq %rsi, %rbx
movq %rdi, %rsi
leaq 0x20(%rsp), %rdi
callq 0x23b6
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x23b6
xorl %ecx, %ecx
xorl %eax, %eax
movb (%rsp,%rax), %dl
xorb 0x20(%rsp,%rax), %dl
movzbl %dl, %edx
orq %rdx, %rcx
incq %rax
cmpq $0x20, %rax
jne 0x36a0
decl %ecx
xorl %eax, %eax
btl $0x8, %ecx
adcl $-0x1, %eax
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl-sigpair.c
// Function: output_key
void output_key(char filename[], unsigned char key[], int key_size) {
    // http://stackoverflow.com/a/8004250
    if (strcmp(filename, "-") != 0) {
        FILE *out = create_file(filename);
        fwrite(key, key_size, 1, out);
        fclose(out);
    } else {
        fwrite(bytes_to_hex(key, key_size), key_size * 2, 1, stdout);
        fputs("\n", stdout);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1174(%rip), %rsi      # 0x4890
callq 0x1090
testl %eax, %eax
je 0x3750
movq %r15, %rdi
callq 0x143c
movq %rax, %r15
movslq %ebx, %rsi
movl $0x1, %edx
movq %r14, %rdi
movq %rax, %rcx
callq 0x1150
movq %r15, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1040
movq %r14, %rdi
movl %ebx, %esi
callq 0x13bf
addl %ebx, %ebx
movslq %ebx, %rsi
movq 0x3872(%rip), %rbx      # 0x6fd8
movq (%rbx), %rcx
movl $0x1, %edx
movq %rax, %rdi
callq 0x1150
movq (%rbx), %rsi
leaq 0x1112(%rip), %rdi      # 0x4892
popq %rbx
popq %r14
popq %r15
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O1/sbp[P]tweetnacl-tools/tweetnacl-sigpair.c
// Function: main
int main(int argc, char *argv[]) {
    if (argc != 3) error(2, "Expected 2 filenames as arguments");

    unsigned char public_key[crypto_sign_PUBLICKEYBYTES];
    unsigned char secret_key[crypto_sign_SECRETKEYBYTES];
    crypto_sign_keypair(public_key, secret_key);

    if (file_exists(argv[1])) errorf(1, "File <%s> exists", argv[1]);
    if (file_exists(argv[2])) errorf(1, "File <%s> exists", argv[2]);

    output_key(argv[1], public_key, crypto_sign_PUBLICKEYBYTES);
    output_key(argv[2], secret_key, crypto_sign_SECRETKEYBYTES);

    return 0;
}

// Assembly:
pushq %rbx
subq $0x60, %rsp
movq %rsi, %rbx
cmpl $0x3, %edi
je 0x37a8
leaq 0x10f6(%rip), %rsi      # 0x4894
movl $0x2, %edi
callq 0x1324
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
callq 0x29b3
movq 0x8(%rbx), %rdi
callq 0x1478
testl %eax, %eax
je 0x37d7
movq 0x8(%rbx), %rdx
leaq 0x10e9(%rip), %rsi      # 0x48b6
movl $0x1, %edi
callq 0x136c
movq 0x10(%rbx), %rdi
callq 0x1478
testl %eax, %eax
je 0x37f9
movq 0x10(%rbx), %rdx
leaq 0x10c7(%rip), %rsi      # 0x48b6
movl $0x1, %edi
callq 0x136c
movq 0x8(%rbx), %rdi
movq %rsp, %rsi
movl $0x20, %edx
callq 0x3708
movq 0x10(%rbx), %rdi
leaq 0x20(%rsp), %rsi
movl $0x40, %edx
callq 0x3708
xorl %eax, %eax
addq $0x60, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/bloques.c
// Function: bmount
int bmount (const char *camino) { 
	fichero = open(camino, O_RDWR|O_CREAT, 0666); 
	if(fichero < 0) printf("Error en la apertura del dispostivo\n");
	mutex = initSem();
	return fichero;
}

// Assembly:
pushq %rax
movl $0x42, %esi
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x1140
movl %eax, 0x5e44(%rip)      # 0x70d8
testl %eax, %eax
jns 0x12a4
leaq 0x2d65(%rip), %rdi      # 0x4004
callq 0x1060
xorl %eax, %eax
callq 0x3ddc
movq %rax, 0x5e2e(%rip)      # 0x70e0
movl 0x5e20(%rip), %eax      # 0x70d8
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/ficheros_basico.c
// Function: initSB
int initSB (unsigned int bloques, unsigned int inodos) { 
	struct superbloque sb; //Definimos la zona de memoria (variable de tipo superbloque)
	sb.posPrimerBloqueMB = posSB+1;
	sb.posUltimoBloqueMB = sb.posPrimerBloqueMB+tamMB(bloques)-1;
	sb.posPrimerBloqueAI = sb.posUltimoBloqueMB+1;
	sb.posUltimoBloqueAI = sb.posPrimerBloqueAI+tamAI(inodos)-1;
	sb.posPrimerBloqueDatos = sb.posUltimoBloqueAI+1;
	sb.posUltimoBloqueDatos = bloques-1;
	sb.posInodoRaiz = 0;
	sb.posPrimerInodoLibre = 0;
	sb.cantBloquesLibres = bloques;
	sb.cantInodosLibres = inodos;
	sb.totBloques = bloques;
	sb.totInodos = inodos;
	
	if(bwrite(posSB,&sb) < 0) return -1; //Error BWRITE	
	return 0;
}

// Assembly:
subq $0x408, %rsp            # imm = 0x408
movl %esi, %eax
leaq 0x8(%rsp), %rsi
movl $0x1, (%rsi)
movl %edi, %ecx
andl $0x1ff8, %ecx           # imm = 0x1FF8
movl %edi, %edx
shrl $0xd, %edx
cmpl $0x1, %ecx
sbbl $-0x1, %edx
movl %eax, %ecx
andl $0x7, %ecx
movl %eax, %r8d
shrl $0x3, %r8d
andl $0x3fffff, %r8d         # imm = 0x3FFFFF
cmpl $0x1, %ecx
leal 0x1(%rdx), %ecx
movl %edx, 0x4(%rsi)
sbbl $-0x1, %r8d
movl %ecx, 0x8(%rsi)
leal (%rdx,%r8), %ecx
incl %ecx
addl %edx, %r8d
movl %r8d, 0xc(%rsi)
movl %ecx, 0x10(%rsi)
leal -0x1(%rdi), %ecx
movl %ecx, 0x14(%rsi)
movq $0x0, 0x18(%rsi)
movl %edi, 0x20(%rsi)
movl %eax, 0x24(%rsi)
movl %edi, 0x28(%rsi)
movl %eax, 0x2c(%rsi)
xorl %edi, %edi
callq 0x12e5
sarl $0x1f, %eax
addq $0x408, %rsp            # imm = 0x408
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/ficheros_basico.c
// Function: initMB
int initMB (unsigned int bloques) { 
	struct superbloque sb;
	if(bread(posSB,&sb) < 0) return -1; //Leemos el superbloque para localizar el mapa de bits Error BREAD
	 
	unsigned char buf[tamBloque];
	memset(buf,0,tamBloque); //Definimos el array del tamanyo de un bloque con todos los bits a cero
	
	unsigned int bucle;
	for (bucle = sb.posPrimerBloqueMB; bucle <= sb.posUltimoBloqueMB; bucle++){
		if(bwrite(bucle,buf) < 0) return -2; //Error BWRITE
	}
	
	for(bucle = posSB; bucle <= sb.posUltimoBloqueAI; bucle++){
		if(escribir_bit(bucle,1) < 0) return -3; //Error ESCRIBIR_BIT
		sb.cantBloquesLibres--; //Restaremos los bloques (SB, MB, AI) de la cantidad de bloques libres
	} 
	
	if(bwrite(posSB,&sb) < 0) return -2; //Error BWRITE
	
	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x800, %rsp            # imm = 0x800
movq %rsp, %rsi
xorl %edi, %edi
callq 0x131d
testl %eax, %eax
js 0x14a4
leaq 0x400(%rsp), %rdi
xorl %ebx, %ebx
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x10b0
movl (%rsp), %ebp
cmpl 0x4(%rsp), %ebp
ja 0x1476
leaq 0x400(%rsp), %r14
movl %ebp, %edi
movq %r14, %rsi
callq 0x12e5
testl %eax, %eax
js 0x14b2
incl %ebp
cmpl 0x4(%rsp), %ebp
jbe 0x1460
movl %ebx, %edi
movl $0x1, %esi
callq 0x14c3
testl %eax, %eax
js 0x14ab
decl 0x20(%rsp)
incl %ebx
cmpl 0xc(%rsp), %ebx
jbe 0x1476
movq %rsp, %rsi
xorl %edi, %edi
callq 0x12e5
sarl $0x1f, %eax
andl $-0x2, %eax
jmp 0x14b7
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x14b7
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
jmp 0x14b7
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x800, %rsp            # imm = 0x800
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/ficheros_basico.c
// Function: escribir_bit
int escribir_bit (unsigned int bloque, unsigned int bit) { 
	struct superbloque sb; 
	if(bread(posSB,&sb) < 0) return -1; //Leemos el superbloque para localizar el mapa de bits Error BREADS
	
	int posbyte = bloque/8, posbit = bloque%8;
	int MB = (posbyte/tamBloque) + sb.posPrimerBloqueMB; //Bloque cuyo bit actualizaremos
	posbyte %= tamBloque; //Para que se ajuste a un bloque
		
	unsigned char mapaBits[tamBloque];
	if(bread(MB,mapaBits) < 0) return -2; // Error BREADMB
	
	unsigned char mascara = 128; //10000000
	mascara >>= posbit; //Desplazamiento de bits a la derecha
	if(bit == 0) {
		mapaBits[posbyte]&=~mascara; //AND y NOT para bits
	} else { //bit == 1
		mapaBits[posbyte]|=mascara; //OR para bits
	}
	if(bwrite(MB,mapaBits) < 0) return -3; //Error BWRITE;
	return 0;		
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x800, %rsp            # imm = 0x800
movl %esi, %ebx
movl %edi, %r14d
leaq 0x400(%rsp), %rsi
xorl %edi, %edi
callq 0x131d
testl %eax, %eax
js 0x154c
movl %r14d, %ebp
shrl $0xd, %ebp
addl 0x400(%rsp), %ebp
movq %rsp, %rsi
movl %ebp, %edi
callq 0x131d
testl %eax, %eax
js 0x1553
movl %r14d, %eax
shrl $0x3, %eax
andl $0x3ff, %eax            # imm = 0x3FF
movb (%rsp,%rax), %dl
andb $0x7, %r14b
movl $0x80, %esi
movl %r14d, %ecx
shrl %cl, %esi
movl $0xffffff7f, %edi       # imm = 0xFFFFFF7F
sarl %cl, %edi
orb %dl, %sil
andb %dl, %dil
testl %ebx, %ebx
movzbl %dil, %ecx
movzbl %sil, %edx
cmovel %ecx, %edx
movb %dl, (%rsp,%rax)
movq %rsp, %rsi
movl %ebp, %edi
callq 0x12e5
sarl $0x1f, %eax
andl $-0x3, %eax
jmp 0x1558
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x1558
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x800, %rsp            # imm = 0x800
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/ficheros_basico.c
// Function: initAI
int initAI (unsigned int inodos) { 
	struct superbloque sb;
	if(bread(posSB,&sb) < 0) return -1; //Leemos el superbloque para localizar el mapa de bits Error BREAD
	
	struct inodo in[tamBloque/tamInodo];
	unsigned int x, i, j;
	x = 1;
	for(i = sb.posPrimerBloqueAI; i <= sb.posUltimoBloqueAI; i++) {
		for(j = 0; j < tamBloque/tamInodo; j++) {
			in[j].tipo = 'l';
			if(x < inodos) {
				in[j].punterosDirectos[0] = x;
				x++;
			} else {
				in[j].punterosDirectos[0] = UINT_MAX;
				j = tamBloque/tamInodo;
			}
		}
		if(bwrite(i,&in) < 0) return -2; //Escribimos el array de inodos Error BWRITE
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x808, %rsp            # imm = 0x808
movl %edi, %ebx
xorl %r14d, %r14d
movq %rsp, %rsi
xorl %edi, %edi
callq 0x131d
testl %eax, %eax
js 0x15ed
movl 0x8(%rsp), %ebp
cmpl 0xc(%rsp), %ebp
ja 0x15fb
movl $0x1, %r15d
leaq 0x400(%rsp), %r14
xorl %eax, %eax
movl %eax, %ecx
shlq $0x7, %rcx
addq %rsp, %rcx
addq $0x400, %rcx            # imm = 0x400
movb $0x6c, (%rcx)
cmpl %ebx, %r15d
jae 0x15c1
movl %r15d, 0x2c(%rcx)
incl %r15d
incl %eax
jmp 0x15cd
movl $0xffffffff, 0x2c(%rcx) # imm = 0xFFFFFFFF
movl $0x9, %eax
cmpl $0x8, %eax
jb 0x159e
movl %ebp, %edi
movq %r14, %rsi
callq 0x12e5
testl %eax, %eax
js 0x15f5
incl %ebp
cmpl 0xc(%rsp), %ebp
jbe 0x159c
xorl %r14d, %r14d
jmp 0x15fb
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x15fb
movl $0xfffffffe, %r14d      # imm = 0xFFFFFFFE
movl %r14d, %eax
addq $0x808, %rsp            # imm = 0x808
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/ficheros_basico.c
// Function: leerSB
int leerSB (){
	struct superbloque sb;
	if(bread(posSB,&sb) < 0) return -1; //Leemos el superbloque para localizar el mapa de bits Error BREAD
	printf("--------Información SUPERBLOQUE---------\n");
	printf("Primer Bloque MB: %d\n", sb.posPrimerBloqueMB);
	printf("Ultimo Bloque MB: %d\n", sb.posUltimoBloqueMB);
	printf("Primer Bloque AI: %d\n", sb.posPrimerBloqueAI);
	printf("Ultimo Bloque AI: %d\n", sb.posUltimoBloqueAI);
	printf("Primer Bloque Datos: %d\n", sb.posPrimerBloqueDatos);
	printf("Ultimo Bloque Datos: %d\n", sb.posUltimoBloqueDatos);
	printf("Posición Inodo Raiz: %d\n", sb.posInodoRaiz);
	printf("Primer Inodo Libre: %d\n", sb.posPrimerInodoLibre);
	printf("Cantidad Bloques Libres: %d\n", sb.cantBloquesLibres);
	printf("Cantidad Inodos Libres: %d\n", sb.cantInodosLibres);
	printf("Cantidad Bloques Totales: %d\n", sb.totBloques);
	printf("Cantidad Inodos Totales: %d\n", sb.totInodos);
	return 0;
}

// Assembly:
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
xorl %ebx, %ebx
movq %rsp, %rsi
xorl %edi, %edi
callq 0x131d
testl %eax, %eax
js 0x170d
leaq 0x2bdc(%rip), %rdi      # 0x420b
callq 0x1060
movl (%rsp), %esi
leaq 0x2a0e(%rip), %rdi      # 0x404c
xorl %eax, %eax
callq 0x1090
movl 0x4(%rsp), %esi
leaq 0x2a12(%rip), %rdi      # 0x4062
xorl %eax, %eax
callq 0x1090
movl 0x8(%rsp), %esi
leaq 0x2a16(%rip), %rdi      # 0x4078
xorl %eax, %eax
callq 0x1090
movl 0xc(%rsp), %esi
leaq 0x2a1a(%rip), %rdi      # 0x408e
xorl %eax, %eax
callq 0x1090
movl 0x10(%rsp), %esi
leaq 0x2a1e(%rip), %rdi      # 0x40a4
xorl %eax, %eax
callq 0x1090
movl 0x14(%rsp), %esi
leaq 0x2a25(%rip), %rdi      # 0x40bd
xorl %eax, %eax
callq 0x1090
movl 0x18(%rsp), %esi
leaq 0x2a2c(%rip), %rdi      # 0x40d6
xorl %eax, %eax
callq 0x1090
movl 0x1c(%rsp), %esi
leaq 0x2a34(%rip), %rdi      # 0x40f0
xorl %eax, %eax
callq 0x1090
movl 0x20(%rsp), %esi
leaq 0x2a3a(%rip), %rdi      # 0x4108
xorl %eax, %eax
callq 0x1090
movl 0x24(%rsp), %esi
leaq 0x2a45(%rip), %rdi      # 0x4125
xorl %eax, %eax
callq 0x1090
movl 0x28(%rsp), %esi
leaq 0x2a4f(%rip), %rdi      # 0x4141
xorl %eax, %eax
callq 0x1090
movl 0x2c(%rsp), %esi
leaq 0x2a5b(%rip), %rdi      # 0x415f
xorl %eax, %eax
callq 0x1090
jmp 0x1712
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x400, %rsp            # imm = 0x400
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/ficheros_basico.c
// Function: leer_bit
unsigned char leer_bit (unsigned int bloque) {
	struct superbloque sb; 
	if(bread(posSB,&sb) < 0) return -1; //Leemos el superbloque para localizar el mapa de bits Error BREADS
	
	int posbyte = bloque/8, posbit = bloque%8;
	int MB = (posbyte/tamBloque) + sb.posPrimerBloqueMB; //Bloque cuyo bit actualizaremos
	posbyte %= tamBloque; //Para que se ajuste a un bloque
		
	unsigned char mapaBits[tamBloque];
	if(bread(MB,mapaBits) < 0) return -2; // Error BREADMB
	
	unsigned char mascara = 128; //10000000
	mascara >>= posbit; //Desplazamiento de bits a la derecha
	mascara &= mapaBits[posbyte]; //Operador AND para bits
	mascara >>= (7-posbit); //Desplazamiento de bits a la derecha
	return mascara; //0 o 1
}

// Assembly:
pushq %rbx
subq $0x800, %rsp            # imm = 0x800
movl %edi, %ebx
leaq 0x400(%rsp), %rsi
xorl %edi, %edi
callq 0x131d
testl %eax, %eax
js 0x1777
movl %ebx, %edi
shrl $0xd, %edi
addl 0x400(%rsp), %edi
movq %rsp, %rsi
callq 0x131d
testl %eax, %eax
js 0x177b
movl %ebx, %eax
shrl $0x3, %eax
andb $0x7, %bl
movl $0x80, %edx
movl %ebx, %ecx
shrl %cl, %edx
andl $0x3ff, %eax            # imm = 0x3FF
movzbl (%rsp,%rax), %eax
andl %edx, %eax
xorb $0x7, %bl
movl %ebx, %ecx
shrl %cl, %eax
jmp 0x177d
movb $-0x1, %al
jmp 0x177d
movb $-0x2, %al
addq $0x800, %rsp            # imm = 0x800
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/ficheros_basico.c
// Function: reservar_bloque
int reservar_bloque () { 
	struct superbloque sb; 
	if(bread(posSB,&sb) < 0) return -1; //Error BREADS
	if(sb.cantBloquesLibres <= 0) return -2; //Error NO_BLOQUES_LIBRES
	unsigned char bufferAux[tamBloque];
	memset(bufferAux,255,tamBloque);
	unsigned char mapaBits[tamBloque];
	int nMB = sb.posPrimerBloqueMB;
	
	if(bread(nMB, mapaBits) < 0) return -3; //Error BREADMB
	
	while(memcmp(bufferAux,mapaBits,tamBloque) == 0){   					
		nMB++;
		if(bread(nMB, mapaBits) < 0) return -3; //Error BREADMB    
	}
	
	unsigned char byte = 255;
	unsigned char mascara = 128;
	int posbyte = 0, posbit = 0, fin = 0;
	while(posbyte < tamBloque && !fin){ 
		byte = mapaBits[posbyte];
		if (byte < 255) { // hay bits a 0 en el byte
			while (byte & mascara) { // operador AND para bits
				byte <<= 1;	// desplazamiento de bits a la izquierda
				posbit++;
			}
            fin = 1;
		} else posbyte++; // si el byte no contiene 0s vamos al siguiente
	}
	int numbloque = ((nMB-sb.posPrimerBloqueMB)*tamBloque+posbyte)*8+posbit;
	if(escribir_bit(numbloque, 1) < 0) return -4; //Error ESCRIBIR_BIT
	sb.cantBloquesLibres--;
	if (bwrite(posSB, &sb) < 0) return -5; //Error BWRITE
		
	return numbloque; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xc00, %rsp            # imm = 0xC00
movq %rsp, %rsi
xorl %edi, %edi
callq 0x131d
testl %eax, %eax
js 0x1831
cmpl $0x0, 0x20(%rsp)
je 0x1838
leaq 0x800(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
movl $0xff, %esi
callq 0x10b0
movl (%rsp), %ebp
leaq 0x400(%rsp), %rsi
movl %ebp, %edi
callq 0x131d
movl $0xfffffffd, %ebx       # imm = 0xFFFFFFFD
testl %eax, %eax
js 0x18b1
movl %ebp, %r12d
shll $0xd, %r12d
incl %ebp
leaq 0x800(%rsp), %r14
leaq 0x400(%rsp), %r15
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
movq %r15, %rsi
callq 0x1130
testl %eax, %eax
jne 0x183f
movl %ebp, %edi
movq %r15, %rsi
callq 0x131d
addl $0x2000, %r12d          # imm = 0x2000
incl %ebp
testl %eax, %eax
jns 0x1801
jmp 0x18b1
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x18b1
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
jmp 0x18b1
xorl %edx, %edx
xorl %eax, %eax
xorl %ecx, %ecx
movslq %ecx, %rsi
movb 0x400(%rsp,%rsi), %sil
cmpb $-0x1, %sil
je 0x1867
movl $0x1, %edx
testb %sil, %sil
jns 0x1869
addb %sil, %sil
incl %eax
jmp 0x185b
incl %ecx
cmpl $0x3ff, %ecx            # imm = 0x3FF
jg 0x1875
testl %edx, %edx
je 0x1845
movl (%rsp), %edx
shll $0xd, %edx
subl %edx, %eax
leal (%rax,%rcx,8), %ebx
addl %r12d, %ebx
movl %ebx, %edi
movl $0x1, %esi
callq 0x14c3
testl %eax, %eax
js 0x18ac
movq %rsp, %rsi
decl 0x20(%rsi)
xorl %edi, %edi
callq 0x12e5
testl %eax, %eax
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
cmovsl %eax, %ebx
jmp 0x18b1
movl $0xfffffffc, %ebx       # imm = 0xFFFFFFFC
movl %ebx, %eax
addq $0xc00, %rsp            # imm = 0xC00
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/ficheros_basico.c
// Function: liberar_bloque
int liberar_bloque (unsigned int bloque) { 
	struct superbloque sb; 
	if(bread(posSB,&sb) < 0) return -1; //Error BREAD
	if(escribir_bit(bloque,0) < 0) return -2; //Error ESCRIBIR_BIT
	sb.cantBloquesLibres++;
	if(bwrite(posSB,&sb) < 0) return -3; //Error BWRITE
	return bloque;
}

// Assembly:
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
movl %edi, %ebx
movq %rsp, %rsi
xorl %edi, %edi
callq 0x131d
testl %eax, %eax
js 0x1901
movl %ebx, %edi
xorl %esi, %esi
callq 0x14c3
testl %eax, %eax
js 0x1908
movq %rsp, %rsi
incl 0x20(%rsi)
xorl %edi, %edi
callq 0x12e5
testl %eax, %eax
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
cmovsl %eax, %ebx
jmp 0x190d
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x190d
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
movl %ebx, %eax
addq $0x400, %rsp            # imm = 0x400
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/ficheros_basico.c
// Function: escribir_inodo
int escribir_inodo(struct inodo inodo, unsigned int ninodo) {
	struct superbloque sb; 
	if(bread(posSB,&sb) < 0) return -1; //Error BREAD
	int posIN = ((ninodo*tamInodo)/tamBloque)+sb.posPrimerBloqueAI;
	struct inodo inodos[tamBloque/tamInodo];
	if(bread(posIN,&inodos) < 0) return -1; //Leemos el array de inodos Error BREAD
	int final = ninodo%(tamBloque/tamInodo);
	inodos[final] = inodo; 
	if(bwrite(posIN,&inodos) < 0) return -2; //Error BWRITE
	return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x808, %rsp            # imm = 0x808
movl %edi, %ebx
leaq 0x408(%rsp), %rsi
xorl %edi, %edi
callq 0x131d
testl %eax, %eax
js 0x1982
movl %ebx, %ebp
shrl $0x3, %ebp
andl $0x3fffff, %ebp         # imm = 0x3FFFFF
addl 0x410(%rsp), %ebp
movq %rsp, %rsi
movl %ebp, %edi
callq 0x131d
testl %eax, %eax
js 0x1982
leaq 0x820(%rsp), %rsi
andl $0x7, %ebx
shll $0x7, %ebx
leaq (%rsp,%rbx), %rdi
movl $0x10, %ecx
rep  movsq (%rsi), %es:(%rdi)
movq %rsp, %rsi
movl %ebp, %edi
callq 0x12e5
sarl $0x1f, %eax
andl $-0x2, %eax
jmp 0x1987
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x808, %rsp            # imm = 0x808
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/ficheros_basico.c
// Function: leer_inodo
struct inodo leer_inodo(unsigned int inodo) {
	struct superbloque sb; 
	bread(posSB,&sb);
	int posIN = ((inodo*tamInodo)/tamBloque)+sb.posPrimerBloqueAI;
	struct inodo inodos[tamBloque/tamInodo];
	bread(posIN,&inodos); //Leemos el array de inodos
	return inodos[inodo%(tamBloque/tamInodo)];
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x800, %rsp            # imm = 0x800
movl %esi, %ebx
movq %rdi, %r14
leaq 0x400(%rsp), %r15
xorl %edi, %edi
movq %r15, %rsi
callq 0x131d
movl %ebx, %edi
shrl $0x3, %edi
andl $0x3fffff, %edi         # imm = 0x3FFFFF
addl 0x8(%r15), %edi
movq %rsp, %rsi
callq 0x131d
andl $0x7, %ebx
shll $0x7, %ebx
leaq (%rsp,%rbx), %rsi
movl $0x10, %ecx
movq %r14, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %r14, %rax
addq $0x800, %rsp            # imm = 0x800
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/ficheros_basico.c
// Function: reservar_inodo
int reservar_inodo (unsigned char tipo, unsigned char permisos) {
	struct superbloque sb; 
	if(bread(posSB,&sb) < 0) {
		puts("Error a la hora de leer el superbloque");
		return -1; //Error BREAD
	} 
	if(sb.cantInodosLibres == 0) {
		puts("No hay inodos libres");
		return -2; //Error NO_INODOS_LIBRES
	} 
	int posPIL = sb.posPrimerInodoLibre;
	
	struct inodo inodoR = leer_inodo(posPIL);
	
	//Modificamos el SuperBloque
	sb.posPrimerInodoLibre = inodoR.punterosDirectos[0];
	sb.cantInodosLibres--; //Al reservar un inodo, un inodo libre menos
	if(bwrite(posSB,&sb) < 0) {
		puts("Error a la hora de escribir en el superbloque");
		return -3; //Error BWRITE	
	}
	
	//Inicializamos el inodo
	inodoR.tipo = tipo;
	inodoR.permisos = permisos;
	inodoR.atime = time(NULL);
	inodoR.mtime = time(NULL);
	inodoR.ctime = time(NULL);
	inodoR.cantLinks = 1;
	inodoR.tamBytesLogicos = 0;
	inodoR.cantBloquesOcupados = 0;
	
	//Inicializamos los punteros
	int bucle;
	for(bucle = 0; bucle < puntD; bucle++) inodoR.punterosDirectos[bucle] = 0;
	for(bucle = 0; bucle < puntI; bucle++) inodoR.punterosIndirectos[bucle] = 0;
	if(escribir_inodo(inodoR,posPIL) < 0) {
		puts("Error a la hora de escribir el inodo");	
		return -4; //Escribimos el nuevo inodo Error ESCRIBIR_INODO
	}
	return posPIL; //Devolvemos le numero de inodo reservado
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x500, %rsp            # imm = 0x500
movl %esi, %ebp
movl %edi, %r14d
leaq 0x100(%rsp), %rsi
xorl %edi, %edi
callq 0x131d
testl %eax, %eax
js 0x1ae4
cmpl $0x0, 0x124(%rsp)
je 0x1af7
leaq 0x100(%rsp), %r15
movl 0x1c(%r15), %ebx
leaq 0x80(%rsp), %r12
movq %r12, %rdi
movl %ebx, %esi
callq 0x1991
movl 0x2c(%r12), %eax
movl %eax, 0x1c(%r15)
decl 0x24(%r15)
xorl %edi, %edi
movq %r15, %rsi
callq 0x12e5
testl %eax, %eax
js 0x1b0a
leaq 0x80(%rsp), %r15
movb %r14b, (%r15)
movb %bpl, 0x1(%r15)
xorl %edi, %edi
callq 0x1120
movq %rax, 0x8(%r15)
xorl %edi, %edi
callq 0x1120
movq %rax, 0x10(%r15)
xorl %edi, %edi
callq 0x1120
movq %rax, 0x18(%r15)
movl $0x1, 0x20(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x24(%r15)
movups %xmm0, 0x34(%r15)
movups %xmm0, 0x44(%r15)
movups %xmm0, 0x54(%r15)
movl $0x0, 0x64(%r15)
movl $0x10, %ecx
movq %rsp, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl %ebx, %edi
callq 0x1918
testl %eax, %eax
jns 0x1b1b
movl $0xfffffffc, %ebx       # imm = 0xFFFFFFFC
leaq 0x2704(%rip), %rdi      # 0x41e6
jmp 0x1b16
leaq 0x2691(%rip), %rdi      # 0x417c
callq 0x1060
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x1b1b
leaq 0x26a5(%rip), %rdi      # 0x41a3
callq 0x1060
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
jmp 0x1b1b
movl $0xfffffffd, %ebx       # imm = 0xFFFFFFFD
leaq 0x26a2(%rip), %rdi      # 0x41b8
callq 0x1060
movl %ebx, %eax
addq $0x500, %rsp            # imm = 0x500
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/carlitosmarin[P]Sistema-Ficheros-SOII/./src/ficheros_basico.c
// Function: liberar_inodo
int liberar_inodo (unsigned int inodo) {
	if(liberar_bloques_inodo(inodo,0) < 0) return -2;	//Llamar a la funcion auxiliar para liberar los bloques Error LBI
	struct inodo in;
	struct superbloque sb;
	
	if(bread(posSB,&sb) < 0) return -1; //Leer el superbloque Error BREAD
	in = leer_inodo(inodo);
	in.tipo = 'l'; //Marcar el inodo como tipo libre
	in.punterosDirectos[0] = sb.posPrimerInodoLibre; //Incluirlo en la lista de inodos libres
	sb.posPrimerInodoLibre = inodo; //Actualizar el superbloque
	sb.cantInodosLibres++; //Incrementar la cantidad de inodos libres
	if(bwrite(posSB,&sb) < 0) return -4; //Escribir el superbloque Error BWRITE
	if(escribir_inodo(in, inodo) < 0) return -5; //Escribir el inodo Error ESCRIBIR_INODO
	return inodo; //Devolver el num del inodo liberado	
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x508, %rsp            # imm = 0x508
movl %edi, %ebx
xorl %esi, %esi
callq 0x1bd1
testl %eax, %eax
js 0x1bb3
leaq 0x108(%rsp), %rsi
xorl %edi, %edi
callq 0x131d
testl %eax, %eax
js 0x1bba
leaq 0x88(%rsp), %r14
movq %r14, %rdi
movl %ebx, %esi
callq 0x1991
movb $0x6c, (%r14)
leaq 0x108(%rsp), %rsi
movl 0x1c(%rsi), %eax
movl %eax, 0x2c(%r14)
movl %ebx, 0x1c(%rsi)
incl 0x24(%rsi)
xorl %edi, %edi
callq 0x12e5
testl %eax, %eax
js 0x1bc1
leaq 0x88(%rsp), %rsi
movl $0x10, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl %ebx, %edi
callq 0x1918
testl %eax, %eax
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
cmovnsl %ebx, %eax
jmp 0x1bc6
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
jmp 0x1bc6
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x1bc6
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
addq $0x508, %rsp            # imm = 0x508
popq %rbx
popq %r14
retq