// File: /workspace/github_c_makefile_star2_O0/mabdi[P]bunney/bunny-flow.c
// Function: load_data
static void load_data(_u32 rec) {
  _s32 fd;

  if (infile[rec].data) return;
  
  if (chdir(indir)) pfatal("cannot enter '%s'",indir);
  if (rec >= infcount) fatal("rec out of range");

  fd = open(infile[rec].fname,O_RDONLY);
    
  if (fd < 0)
    pfatal("unable to access '%s/%s'",indir,infile[rec].fname);
        
  infile[rec].dirty = 0;
  infile[rec].data  = malloc(infile[rec].orig_len);
  if (!infile[rec].data) fatal("out of memory");
    
  if (infile[rec].orig_len)
    if (read(fd,infile[rec].data,infile[rec].orig_len) != infile[rec].orig_len)
      fatal("short read from '%s/%s'",indir,infile[rec].fname);

  close(fd);

  if (chdir(workdir)) pfatal("unable to go back to work directory");

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movq 0x4686(%rip), %rax      # 0x8198
movl -0x4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
cmpq $0x0, 0x8(%rax)
je 0x3b28
jmp 0x3e8d
movq 0x3651(%rip), %rdi      # 0x7180
callq 0x11e0
cmpl $0x0, %eax
je 0x3b9c
jmp 0x3b3b
movq 0x349e(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
movq 0x3634(%rip), %rdx      # 0x7180
leaq 0x1986(%rip), %rsi      # 0x54d9
movb $0x0, %al
callq 0x11b0
movq 0x347f(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x14d1(%rip), %rsi      # 0x503c
leaq 0x198f(%rip), %rdx      # 0x5501
leaq 0x14d8(%rip), %rcx      # 0x5051
movl $0xa4, %r8d
movb $0x0, %al
callq 0x11b0
leaq 0x158f(%rip), %rdi      # 0x511c
callq 0x1100
movl $0x1, %edi
callq 0x1180
movl -0x4(%rbp), %eax
cmpl 0x45eb(%rip), %eax      # 0x8190
jb 0x3bf7
jmp 0x3ba9
movq 0x3430(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x1951(%rip), %rsi      # 0x550b
movb $0x0, %al
callq 0x11b0
movq 0x3418(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x146a(%rip), %rsi      # 0x503c
leaq 0x1928(%rip), %rdx      # 0x5501
leaq 0x1471(%rip), %rcx      # 0x5051
movl $0xa5, %r8d
movb $0x0, %al
callq 0x11b0
movl $0x1, %edi
callq 0x1180
movq 0x459a(%rip), %rax      # 0x8198
movl -0x4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rdi
xorl %esi, %esi
movb $0x0, %al
callq 0x10d0
movl %eax, -0x8(%rbp)
cmpl $0x0, -0x8(%rbp)
jge 0x3c94
jmp 0x3c1f
movq 0x33ba(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
movq 0x3550(%rip), %rdx      # 0x7180
movq 0x4561(%rip), %rax      # 0x8198
movl -0x4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rcx
leaq 0x15fa(%rip), %rsi      # 0x5245
movb $0x0, %al
callq 0x11b0
movq 0x3387(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x13d9(%rip), %rsi      # 0x503c
leaq 0x1897(%rip), %rdx      # 0x5501
leaq 0x13e0(%rip), %rcx      # 0x5051
movl $0xaa, %r8d
movb $0x0, %al
callq 0x11b0
leaq 0x1497(%rip), %rdi      # 0x511c
callq 0x1100
movl $0x1, %edi
callq 0x1180
movq 0x44fd(%rip), %rax      # 0x8198
movl -0x4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movb $0x0, 0x1c(%rax)
movq 0x44e8(%rip), %rax      # 0x8198
movl -0x4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movl %eax, %edi
callq 0x1190
movq %rax, %rcx
movq 0x44ca(%rip), %rax      # 0x8198
movl -0x4(%rbp), %edx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq 0x44b5(%rip), %rax      # 0x8198
movl -0x4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
cmpq $0x0, 0x8(%rax)
jne 0x3d44
jmp 0x3cf6
movq 0x32e3(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x1513(%rip), %rsi      # 0x521a
movb $0x0, %al
callq 0x11b0
movq 0x32cb(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x131d(%rip), %rsi      # 0x503c
leaq 0x17db(%rip), %rdx      # 0x5501
leaq 0x1324(%rip), %rcx      # 0x5051
movl $0xae, %r8d
movb $0x0, %al
callq 0x11b0
movl $0x1, %edi
callq 0x1180
movq 0x444d(%rip), %rax      # 0x8198
movl -0x4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
cmpl $0x0, 0x14(%rax)
je 0x3e18
movl -0x8(%rbp), %edi
movq 0x442f(%rip), %rax      # 0x8198
movl -0x4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rsi
movq 0x441a(%rip), %rax      # 0x8198
movl -0x4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movl %eax, %edx
callq 0x11c0
movq 0x43ff(%rip), %rcx      # 0x8198
movl -0x4(%rbp), %edx
shlq $0x5, %rdx
addq %rdx, %rcx
movl 0x14(%rcx), %ecx
cmpq %rcx, %rax
je 0x3e16
jmp 0x3dad
movq 0x322c(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
movq 0x33c2(%rip), %rdx      # 0x7180
movq 0x43d3(%rip), %rax      # 0x8198
movl -0x4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq (%rax), %rcx
leaq 0x175a(%rip), %rsi      # 0x5533
movb $0x0, %al
callq 0x11b0
movq 0x31f9(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x124b(%rip), %rsi      # 0x503c
leaq 0x1709(%rip), %rdx      # 0x5501
leaq 0x1252(%rip), %rcx      # 0x5051
movl $0xb2, %r8d
movb $0x0, %al
callq 0x11b0
movl $0x1, %edi
callq 0x1180
jmp 0x3e18
movl -0x8(%rbp), %edi
callq 0x12a0
leaq 0x3369(%rip), %rdi      # 0x7190
callq 0x11e0
cmpl $0x0, %eax
je 0x3e8d
jmp 0x3e33
movq 0x31a6(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x14dd(%rip), %rsi      # 0x5321
movb $0x0, %al
callq 0x11b0
movq 0x318e(%rip), %rax      # 0x6fe0
movq (%rax), %rdi
leaq 0x11e0(%rip), %rsi      # 0x503c
leaq 0x169e(%rip), %rdx      # 0x5501
leaq 0x11e7(%rip), %rcx      # 0x5051
movl $0xb6, %r8d
movb $0x0, %al
callq 0x11b0
leaq 0x129e(%rip), %rdi      # 0x511c
callq 0x1100
movl $0x1, %edi
callq 0x1180
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)