// File: /workspace/github_c_makefile_star2_O0/mabdi[P]bunney/bunny-main.c
// Function: make_input
static _u8* make_input(_u8* prefix) {
  _u8 *curdir, tmp[MAXTOKEN];
  DIR* d;
  struct dirent* dent;
  static _u8 *newdir = 0;

  if (newdir) free(newdir);

  curdir = strdup(N(out_dir,".flow-out"));
  if (!curdir) fatal("out of memory");

  sprintf(tmp,"%s%03llu",prefix, input_cnt / 1000);
  mkdir(N(out_dir,tmp),0755);
  sprintf(tmp,"%s%03llu/%03llu",prefix, input_cnt / 1000, input_cnt % 1000);
  newdir = strdup(N(out_dir,tmp));
  if (!newdir) fatal("out of memory");

  input_cnt++;

  mkdir(newdir,0755);
  free_input(newdir,0);

  d = opendir(curdir);
  if (!d) pfatal("cannot open '%s' for reading",curdir);

  while ((dent = readdir(d))) {
    _u8 *odname;
    if (dent->d_name[0] == '.') continue;

    odname = strdup(N(curdir,dent->d_name));
    if (!odname) fatal("out of memory");

    if (link(odname, N(newdir,dent->d_name)))
      pfatal("cannot link '%s' to '%s/",odname,newdir);

    free(odname);

  }

  closedir(d);
  free(curdir);

  return newdir;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1040, %rsp           # imm = 0x1040
movq %rdi, -0x8(%rbp)
cmpq $0x0, 0x262a9(%rip)     # 0x323d0
je 0xc135
movq 0x262a0(%rip), %rdi     # 0x323d0
callq 0x2240
movq 0x61a4(%rip), %rdi      # 0x122e0
leaq 0x30e6(%rip), %rsi      # 0xf229
callq 0x7010
movq %rax, %rdi
callq 0x2380
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0xc1f4
jmp 0xc161
jmp 0xc163
leaq 0x23a2(%rip), %rdi      # 0xe50c
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x615f(%rip)      # 0x122d8
je 0xc190
movq 0x6156(%rip), %rdi      # 0x122d8
leaq 0x2383(%rip), %rsi      # 0xe50c
movb $0x0, %al
callq 0x22d0
jmp 0xc192
jmp 0xc194
leaq 0x2016(%rip), %rdi      # 0xe1b1
leaq 0x3ef2(%rip), %rsi      # 0x10094
leaq 0x2018(%rip), %rdx      # 0xe1c1
movl $0x357, %ecx            # imm = 0x357
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x611b(%rip)      # 0x122d8
je 0xc1e8
movq 0x6112(%rip), %rdi      # 0x122d8
leaq 0x1fe4(%rip), %rsi      # 0xe1b1
leaq 0x3ec0(%rip), %rdx      # 0x10094
leaq 0x1fe6(%rip), %rcx      # 0xe1c1
movl $0x357, %r8d            # imm = 0x357
movb $0x0, %al
callq 0x22d0
jmp 0xc1ea
movl $0x1, %edi
callq 0x2250
leaq -0x1010(%rbp), %rdi
movq -0x8(%rbp), %rax
movq %rax, -0x1038(%rbp)
movq 0x261cb(%rip), %rax     # 0x323d8
movl $0x3e8, %ecx            # imm = 0x3E8
xorl %edx, %edx
divq %rcx
movq -0x1038(%rbp), %rdx
movq %rax, %rcx
leaq 0x3e77(%rip), %rsi      # 0x1009f
movb $0x0, %al
callq 0x2060
movq 0x60aa(%rip), %rdi      # 0x122e0
leaq -0x1010(%rbp), %rsi
callq 0x7010
movq %rax, %rdi
movl $0x1ed, %esi            # imm = 0x1ED
callq 0x2100
leaq -0x1010(%rbp), %rdi
movq -0x8(%rbp), %rax
movq %rax, -0x1030(%rbp)
movq 0x26170(%rip), %rax     # 0x323d8
movl $0x3e8, %ecx            # imm = 0x3E8
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
movq 0x2615c(%rip), %rax     # 0x323d8
movl $0x3e8, %esi            # imm = 0x3E8
xorl %edx, %edx
divq %rsi
movq %rdx, %r8
movq -0x1030(%rbp), %rdx
leaq 0x3e11(%rip), %rsi      # 0x100a8
movb $0x0, %al
callq 0x2060
movq 0x603b(%rip), %rdi      # 0x122e0
leaq -0x1010(%rbp), %rsi
callq 0x7010
movq %rax, %rdi
callq 0x2380
movq %rax, 0x26110(%rip)     # 0x323d0
cmpq $0x0, 0x26108(%rip)     # 0x323d0
jne 0xc363
jmp 0xc2d0
jmp 0xc2d2
leaq 0x2233(%rip), %rdi      # 0xe50c
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x5ff0(%rip)      # 0x122d8
je 0xc2ff
movq 0x5fe7(%rip), %rdi      # 0x122d8
leaq 0x2214(%rip), %rsi      # 0xe50c
movb $0x0, %al
callq 0x22d0
jmp 0xc301
jmp 0xc303
leaq 0x1ea7(%rip), %rdi      # 0xe1b1
leaq 0x3d83(%rip), %rsi      # 0x10094
leaq 0x1ea9(%rip), %rdx      # 0xe1c1
movl $0x35d, %ecx            # imm = 0x35D
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x5fac(%rip)      # 0x122d8
je 0xc357
movq 0x5fa3(%rip), %rdi      # 0x122d8
leaq 0x1e75(%rip), %rsi      # 0xe1b1
leaq 0x3d51(%rip), %rdx      # 0x10094
leaq 0x1e77(%rip), %rcx      # 0xe1c1
movl $0x35d, %r8d            # imm = 0x35D
movb $0x0, %al
callq 0x22d0
jmp 0xc359
movl $0x1, %edi
callq 0x2250
movq 0x2606e(%rip), %rax     # 0x323d8
addq $0x1, %rax
movq %rax, 0x26063(%rip)     # 0x323d8
movq 0x26054(%rip), %rdi     # 0x323d0
movl $0x1ed, %esi            # imm = 0x1ED
callq 0x2100
movq 0x26043(%rip), %rdi     # 0x323d0
xorl %esi, %esi
callq 0xb300
movq -0x10(%rbp), %rdi
callq 0x2300
movq %rax, -0x1018(%rbp)
cmpq $0x0, -0x1018(%rbp)
jne 0xc45b
jmp 0xc3b4
jmp 0xc3b6
movq -0x10(%rbp), %rsi
leaq 0x3cf7(%rip), %rdi      # 0x100b8
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x5f08(%rip)      # 0x122d8
je 0xc3eb
movq 0x5eff(%rip), %rdi      # 0x122d8
movq -0x10(%rbp), %rdx
leaq 0x3cd4(%rip), %rsi      # 0x100b8
movb $0x0, %al
callq 0x22d0
jmp 0xc3ed
jmp 0xc3ef
leaq 0x1dbb(%rip), %rdi      # 0xe1b1
leaq 0x3c97(%rip), %rsi      # 0x10094
leaq 0x1dbd(%rip), %rdx      # 0xe1c1
movl $0x365, %ecx            # imm = 0x365
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x5ec0(%rip)      # 0x122d8
je 0xc443
movq 0x5eb7(%rip), %rdi      # 0x122d8
leaq 0x1d89(%rip), %rsi      # 0xe1b1
leaq 0x3c65(%rip), %rdx      # 0x10094
leaq 0x1d8b(%rip), %rcx      # 0xe1c1
movl $0x365, %r8d            # imm = 0x365
movb $0x0, %al
callq 0x22d0
jmp 0xc445
leaq 0x2b64(%rip), %rdi      # 0xefb0
callq 0x2190
movl $0x1, %edi
callq 0x2250
jmp 0xc45d
movq -0x1018(%rbp), %rdi
callq 0x2320
movq %rax, -0x1020(%rbp)
cmpq $0x0, %rax
je 0xc65d
movq -0x1020(%rbp), %rax
movsbl 0x13(%rax), %eax
cmpl $0x2e, %eax
jne 0xc48c
jmp 0xc45d
movq -0x10(%rbp), %rdi
movq -0x1020(%rbp), %rsi
addq $0x13, %rsi
callq 0x7010
movq %rax, %rdi
callq 0x2380
movq %rax, -0x1028(%rbp)
cmpq $0x0, -0x1028(%rbp)
jne 0xc552
jmp 0xc4bf
jmp 0xc4c1
leaq 0x2044(%rip), %rdi      # 0xe50c
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x5e01(%rip)      # 0x122d8
je 0xc4ee
movq 0x5df8(%rip), %rdi      # 0x122d8
leaq 0x2025(%rip), %rsi      # 0xe50c
movb $0x0, %al
callq 0x22d0
jmp 0xc4f0
jmp 0xc4f2
leaq 0x1cb8(%rip), %rdi      # 0xe1b1
leaq 0x3b94(%rip), %rsi      # 0x10094
leaq 0x1cba(%rip), %rdx      # 0xe1c1
movl $0x36c, %ecx            # imm = 0x36C
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x5dbd(%rip)      # 0x122d8
je 0xc546
movq 0x5db4(%rip), %rdi      # 0x122d8
leaq 0x1c86(%rip), %rsi      # 0xe1b1
leaq 0x3b62(%rip), %rdx      # 0x10094
leaq 0x1c88(%rip), %rcx      # 0xe1c1
movl $0x36c, %r8d            # imm = 0x36C
movb $0x0, %al
callq 0x22d0
jmp 0xc548
movl $0x1, %edi
callq 0x2250
movq -0x1028(%rbp), %rax
movq %rax, -0x1040(%rbp)
movq 0x25e69(%rip), %rdi     # 0x323d0
movq -0x1020(%rbp), %rsi
addq $0x13, %rsi
callq 0x7010
movq -0x1040(%rbp), %rdi
movq %rax, %rsi
callq 0x20b0
cmpl $0x0, %eax
je 0xc64c
jmp 0xc591
jmp 0xc593
movq -0x1028(%rbp), %rsi
movq 0x25e2f(%rip), %rdx     # 0x323d0
leaq 0x3b43(%rip), %rdi      # 0x100eb
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x5d21(%rip)      # 0x122d8
je 0xc5dc
movq 0x5d18(%rip), %rdi      # 0x122d8
movq -0x1028(%rbp), %rdx
movq 0x25e02(%rip), %rcx     # 0x323d0
leaq 0x3b16(%rip), %rsi      # 0x100eb
movb $0x0, %al
callq 0x22d0
jmp 0xc5de
jmp 0xc5e0
leaq 0x1bca(%rip), %rdi      # 0xe1b1
leaq 0x3aa6(%rip), %rsi      # 0x10094
leaq 0x1bcc(%rip), %rdx      # 0xe1c1
movl $0x36f, %ecx            # imm = 0x36F
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x5ccf(%rip)      # 0x122d8
je 0xc634
movq 0x5cc6(%rip), %rdi      # 0x122d8
leaq 0x1b98(%rip), %rsi      # 0xe1b1
leaq 0x3a74(%rip), %rdx      # 0x10094
leaq 0x1b9a(%rip), %rcx      # 0xe1c1
movl $0x36f, %r8d            # imm = 0x36F
movb $0x0, %al
callq 0x22d0
jmp 0xc636
leaq 0x2973(%rip), %rdi      # 0xefb0
callq 0x2190
movl $0x1, %edi
callq 0x2250
movq -0x1028(%rbp), %rdi
callq 0x2240
jmp 0xc45d
movq -0x1018(%rbp), %rdi
callq 0x2340
movq -0x10(%rbp), %rdi
callq 0x2240
movq 0x25d57(%rip), %rax     # 0x323d0
addq $0x1040, %rsp           # imm = 0x1040
popq %rbp
retq
nopw %cs:(%rax,%rax)