// File: /workspace/github_c_makefile_star2_O0/mabdi[P]bunney/bunny-flow.c
// Function: validate_dirs
static void validate_dirs(void) {
  struct stat s1, s2;

  if (!getcwd(workdir,MAXTOKEN)) pfatal("unable to get current dir");

  if (access(indir,R_OK | X_OK)  || stat(indir,&s1))  pfatal("unable to access '%s'",indir);
  if (access(outdir,W_OK | X_OK) || stat(outdir,&s2)) pfatal("unable to access '%s'",outdir);
  
  if (!S_ISDIR(s1.st_mode) || !S_ISDIR(s2.st_mode))
    fatal("parameter is not a directory");
    
  if (s1.st_dev == s2.st_dev && s1.st_ino == s2.st_ino)
    fatal("input and output dirs *really* have to be different");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
leaq 0x5c9e(%rip), %rdi      # 0x7190
movl $0x1000, %esi           # imm = 0x1000
callq 0x10b0
cmpq $0x0, %rax
jne 0x155e
jmp 0x1504
movq 0x5ad5(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x3bc9(%rip), %rsi      # 0x50de
movb $0x0, %al
callq 0x11b0
movq 0x5abd(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x3b0f(%rip), %rsi      # 0x503c
leaq 0x3bda(%rip), %rdx      # 0x510e
leaq 0x3b16(%rip), %rcx      # 0x5051
movl $0x320, %r8d            # imm = 0x320
movb $0x0, %al
callq 0x11b0
leaq 0x3bcd(%rip), %rdi      # 0x511c
callq 0x1100
movl $0x1, %edi
callq 0x1180
movq 0x5c1b(%rip), %rdi      # 0x7180
movl $0x5, %esi
callq 0x1260
cmpl $0x0, %eax
jne 0x158c
movq 0x5c05(%rip), %rdi      # 0x7180
leaq -0x90(%rbp), %rsi
callq 0x1110
cmpl $0x0, %eax
je 0x15ef
jmp 0x158e
movq 0x5a4b(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
movq 0x5be1(%rip), %rdx      # 0x7180
leaq 0x3b86(%rip), %rsi      # 0x512c
movb $0x0, %al
callq 0x11b0
movq 0x5a2c(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x3a7e(%rip), %rsi      # 0x503c
leaq 0x3b49(%rip), %rdx      # 0x510e
leaq 0x3a85(%rip), %rcx      # 0x5051
movl $0x322, %r8d            # imm = 0x322
movb $0x0, %al
callq 0x11b0
leaq 0x3b3c(%rip), %rdi      # 0x511c
callq 0x1100
movl $0x1, %edi
callq 0x1180
movq 0x5b92(%rip), %rdi      # 0x7188
movl $0x3, %esi
callq 0x1260
cmpl $0x0, %eax
jne 0x161d
movq 0x5b7c(%rip), %rdi      # 0x7188
leaq -0x120(%rbp), %rsi
callq 0x1110
cmpl $0x0, %eax
je 0x1680
jmp 0x161f
movq 0x59ba(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
movq 0x5b58(%rip), %rdx      # 0x7188
leaq 0x3af5(%rip), %rsi      # 0x512c
movb $0x0, %al
callq 0x11b0
movq 0x599b(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x39ed(%rip), %rsi      # 0x503c
leaq 0x3ab8(%rip), %rdx      # 0x510e
leaq 0x39f4(%rip), %rcx      # 0x5051
movl $0x323, %r8d            # imm = 0x323
movb $0x0, %al
callq 0x11b0
leaq 0x3aab(%rip), %rdi      # 0x511c
callq 0x1100
movl $0x1, %edi
callq 0x1180
movl -0x78(%rbp), %eax
andl $0xf000, %eax           # imm = 0xF000
cmpl $0x4000, %eax           # imm = 0x4000
jne 0x16a1
movl -0x108(%rbp), %eax
andl $0xf000, %eax           # imm = 0xF000
cmpl $0x4000, %eax           # imm = 0x4000
je 0x16f1
jmp 0x16a3
movq 0x5936(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x3aa4(%rip), %rsi      # 0x5158
movb $0x0, %al
callq 0x11b0
movq 0x591e(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x3970(%rip), %rsi      # 0x503c
leaq 0x3a3b(%rip), %rdx      # 0x510e
leaq 0x3977(%rip), %rcx      # 0x5051
movl $0x326, %r8d            # imm = 0x326
movb $0x0, %al
callq 0x11b0
movl $0x1, %edi
callq 0x1180
movq -0x90(%rbp), %rax
cmpq -0x120(%rbp), %rax
jne 0x1761
movq -0x88(%rbp), %rax
cmpq -0x118(%rbp), %rax
jne 0x1761
jmp 0x1713
movq 0x58c6(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x3a68(%rip), %rsi      # 0x518c
movb $0x0, %al
callq 0x11b0
movq 0x58ae(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x3900(%rip), %rsi      # 0x503c
leaq 0x39cb(%rip), %rdx      # 0x510e
leaq 0x3907(%rip), %rcx      # 0x5051
movl $0x329, %r8d            # imm = 0x329
movb $0x0, %al
callq 0x11b0
movl $0x1, %edi
callq 0x1180
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopw (%rax,%rax)