// File: /workspace/github_c_makefile_star2_O0/mabdi[P]bunney/bunny-main.c
// Function: flow_savefile
static void flow_savefile(_u8* fname) {
  _u32 r;
  struct bunny_flowreq f;
  f.type = FLOW_SAVEFILE;
  f.p1   = strlen(fname);
  f.p2   = 0;
  f.p3   = 0;
  
  if (write(flow_pipe_cmd,&f,sizeof(struct bunny_flowreq)) != sizeof(struct bunny_flowreq))
    fatal("unable to communicate with the component (see bunny-flow.out)");

  if (write(flow_pipe_cmd,fname,f.p1) != f.p1)
    fatal("unable to communicate with the component (see bunny-flow.out)");
    
  if (read(flow_pipe_ret,&r,sizeof(_u32)) != sizeof(_u32))
    fatal("short response on FLOW_SAVEFILE (see bunny-flow.out)");
    
  if (r)
    fatal("NOK response on FLOW_SAVEFILE (see bunny-flow.out)");

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x3e9, -0x1c(%rbp)     # imm = 0x3E9
movq -0x8(%rbp), %rdi
callq 0x20f0
movl %eax, -0x18(%rbp)
movl $0x0, -0x14(%rbp)
movl $0x0, -0x10(%rbp)
movl 0x6df9(%rip), %edi      # 0x122ac
leaq -0x1c(%rbp), %rsi
movl $0x10, %edx
callq 0x20c0
cmpq $0x10, %rax
je 0xb560
jmp 0xb4cd
jmp 0xb4cf
leaq 0x3f57(%rip), %rdi      # 0xf42d
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x6df3(%rip)      # 0x122d8
je 0xb4fc
movq 0x6dea(%rip), %rdi      # 0x122d8
leaq 0x3f38(%rip), %rsi      # 0xf42d
movb $0x0, %al
callq 0x22d0
jmp 0xb4fe
jmp 0xb500
leaq 0x2caa(%rip), %rdi      # 0xe1b1
leaq 0x48d7(%rip), %rsi      # 0xfde5
leaq 0x2cac(%rip), %rdx      # 0xe1c1
movl $0x17b, %ecx            # imm = 0x17B
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x6daf(%rip)      # 0x122d8
je 0xb554
movq 0x6da6(%rip), %rdi      # 0x122d8
leaq 0x2c78(%rip), %rsi      # 0xe1b1
leaq 0x48a5(%rip), %rdx      # 0xfde5
leaq 0x2c7a(%rip), %rcx      # 0xe1c1
movl $0x17b, %r8d            # imm = 0x17B
movb $0x0, %al
callq 0x22d0
jmp 0xb556
movl $0x1, %edi
callq 0x2250
movl 0x6d46(%rip), %edi      # 0x122ac
movq -0x8(%rbp), %rsi
movl -0x18(%rbp), %eax
movl %eax, %edx
callq 0x20c0
movl -0x18(%rbp), %ecx
cmpq %rcx, %rax
je 0xb615
jmp 0xb582
jmp 0xb584
leaq 0x3ea2(%rip), %rdi      # 0xf42d
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x6d3e(%rip)      # 0x122d8
je 0xb5b1
movq 0x6d35(%rip), %rdi      # 0x122d8
leaq 0x3e83(%rip), %rsi      # 0xf42d
movb $0x0, %al
callq 0x22d0
jmp 0xb5b3
jmp 0xb5b5
leaq 0x2bf5(%rip), %rdi      # 0xe1b1
leaq 0x4822(%rip), %rsi      # 0xfde5
leaq 0x2bf7(%rip), %rdx      # 0xe1c1
movl $0x17e, %ecx            # imm = 0x17E
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x6cfa(%rip)      # 0x122d8
je 0xb609
movq 0x6cf1(%rip), %rdi      # 0x122d8
leaq 0x2bc3(%rip), %rsi      # 0xe1b1
leaq 0x47f0(%rip), %rdx      # 0xfde5
leaq 0x2bc5(%rip), %rcx      # 0xe1c1
movl $0x17e, %r8d            # imm = 0x17E
movb $0x0, %al
callq 0x22d0
jmp 0xb60b
movl $0x1, %edi
callq 0x2250
movl 0x6c95(%rip), %edi      # 0x122b0
leaq -0xc(%rbp), %rsi
movl $0x4, %edx
callq 0x22e0
cmpq $0x4, %rax
je 0xb6c8
jmp 0xb635
jmp 0xb637
leaq 0x47b5(%rip), %rdi      # 0xfdf3
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x6c8b(%rip)      # 0x122d8
je 0xb664
movq 0x6c82(%rip), %rdi      # 0x122d8
leaq 0x4796(%rip), %rsi      # 0xfdf3
movb $0x0, %al
callq 0x22d0
jmp 0xb666
jmp 0xb668
leaq 0x2b42(%rip), %rdi      # 0xe1b1
leaq 0x476f(%rip), %rsi      # 0xfde5
leaq 0x2b44(%rip), %rdx      # 0xe1c1
movl $0x181, %ecx            # imm = 0x181
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x6c47(%rip)      # 0x122d8
je 0xb6bc
movq 0x6c3e(%rip), %rdi      # 0x122d8
leaq 0x2b10(%rip), %rsi      # 0xe1b1
leaq 0x473d(%rip), %rdx      # 0xfde5
leaq 0x2b12(%rip), %rcx      # 0xe1c1
movl $0x181, %r8d            # imm = 0x181
movb $0x0, %al
callq 0x22d0
jmp 0xb6be
movl $0x1, %edi
callq 0x2250
cmpl $0x0, -0xc(%rbp)
je 0xb767
jmp 0xb6d4
jmp 0xb6d6
leaq 0x4762(%rip), %rdi      # 0xfe3f
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x6bec(%rip)      # 0x122d8
je 0xb703
movq 0x6be3(%rip), %rdi      # 0x122d8
leaq 0x4743(%rip), %rsi      # 0xfe3f
movb $0x0, %al
callq 0x22d0
jmp 0xb705
jmp 0xb707
leaq 0x2aa3(%rip), %rdi      # 0xe1b1
leaq 0x46d0(%rip), %rsi      # 0xfde5
leaq 0x2aa5(%rip), %rdx      # 0xe1c1
movl $0x184, %ecx            # imm = 0x184
movb $0x0, %al
callq 0x2030
cmpq $0x0, 0x6ba8(%rip)      # 0x122d8
je 0xb75b
movq 0x6b9f(%rip), %rdi      # 0x122d8
leaq 0x2a71(%rip), %rsi      # 0xe1b1
leaq 0x469e(%rip), %rdx      # 0xfde5
leaq 0x2a73(%rip), %rcx      # 0xe1c1
movl $0x184, %r8d            # imm = 0x184
movb $0x0, %al
callq 0x22d0
jmp 0xb75d
movl $0x1, %edi
callq 0x2250
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)