// File: afinit[P]afin/gzip.cpp
// Function: Gzip::zerr()
void Gzip::zerr(){
  char log_buff[1000];

  switch (status) {
    case Z_ERRNO:
      fprintf( stderr, "zlib: error reading file: %s\n", filename.c_str() );
      sprintf( log_buff, "zlib: error reading file: %s", filename.c_str() );
      Log::Inst()->log_it( log_buff );
      break;
    case Z_STREAM_ERROR:
      fprintf( stderr, "zlib: invalid compression level: %s\n", filename.c_str() );
      sprintf( log_buff, "zlib: invalid compression level: %s", filename.c_str() );
      Log::Inst()->log_it( log_buff );
      break;
    case Z_DATA_ERROR:
      fprintf( stderr, "zlib: invalid or incomplete deflate data: %s\n", filename.c_str() );
      sprintf( log_buff, "zlib: invalid or incomplete deflate data: %s", filename.c_str() );
      Log::Inst()->log_it( log_buff );
      break;
    case Z_MEM_ERROR:
      fprintf( stderr, "zlib: out of memory: %s\n", filename.c_str() );
      sprintf( log_buff, "zlib: out of memory: %s", filename.c_str() );
      Log::Inst()->log_it( log_buff );
      break;
    case Z_VERSION_ERROR:
      fprintf( stderr, "zlib: version mismatch: %s\n", filename.c_str() );
      sprintf( log_buff, "zlib: version mismatch: %s", filename.c_str() );
      Log::Inst()->log_it( log_buff );
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x5d0, %rsp            # imm = 0x5D0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x4d8(%rbp)
movl 0xc(%rax), %eax
addl $0x6, %eax
movl %eax, %ecx
movq %rcx, -0x4d0(%rbp)
subl $0x5, %eax
ja 0x10ea9
movq -0x4d0(%rbp), %rax
leaq 0x1b8a8(%rip), %rcx     # 0x2c1c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x4d8(%rbp), %rdi
movq 0x2d691(%rip), %rax     # 0x3dfc8
movq (%rax), %rax
movq %rax, -0x508(%rbp)
addq $0xa8, %rdi
movq %rdi, -0x500(%rbp)
callq 0x41a0
movq -0x508(%rbp), %rdi
movq %rax, %rdx
leaq 0x1b898(%rip), %rsi     # 0x2c1fd
xorl %eax, %eax
movb %al, -0x4f1(%rbp)
callq 0x4580
movq -0x500(%rbp), %rdi
callq 0x41a0
movq %rax, %rdx
movb -0x4f1(%rbp), %al
leaq 0x1b88d(%rip), %rsi     # 0x2c21b
leaq -0x3f0(%rbp), %rdi
movq %rdi, -0x4e8(%rbp)
callq 0x40b0
callq 0x100d0
movq %rax, -0x4f0(%rbp)
leaq -0x411(%rbp), %rdi
movq %rdi, -0x4e0(%rbp)
callq 0x46e0
movq -0x4e8(%rbp), %rsi
movq -0x4e0(%rbp), %rdx
leaq -0x410(%rbp), %rdi
callq 0x4530
jmp 0x109dc
movq -0x4f0(%rbp), %rdi
leaq -0x410(%rbp), %rsi
callq 0x10460
jmp 0x109f1
leaq -0x410(%rbp), %rdi
callq 0x4270
leaq -0x411(%rbp), %rdi
callq 0x4420
jmp 0x10ea9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x420(%rbp)
movl %eax, -0x424(%rbp)
jmp 0x10a40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x420(%rbp)
movl %eax, -0x424(%rbp)
leaq -0x410(%rbp), %rdi
callq 0x4270
leaq -0x411(%rbp), %rdi
callq 0x4420
jmp 0x10ef0
movq -0x4d8(%rbp), %rdi
movq 0x2d569(%rip), %rax     # 0x3dfc8
movq (%rax), %rax
movq %rax, -0x538(%rbp)
addq $0xa8, %rdi
movq %rdi, -0x530(%rbp)
callq 0x41a0
movq -0x538(%rbp), %rdi
movq %rax, %rdx
leaq 0x1b7ab(%rip), %rsi     # 0x2c238
xorl %eax, %eax
movb %al, -0x521(%rbp)
callq 0x4580
movq -0x530(%rbp), %rdi
callq 0x41a0
movq %rax, %rdx
movb -0x521(%rbp), %al
leaq 0x1b7a7(%rip), %rsi     # 0x2c25d
leaq -0x3f0(%rbp), %rdi
movq %rdi, -0x518(%rbp)
callq 0x40b0
callq 0x100d0
movq %rax, -0x520(%rbp)
leaq -0x449(%rbp), %rdi
movq %rdi, -0x510(%rbp)
callq 0x46e0
movq -0x518(%rbp), %rsi
movq -0x510(%rbp), %rdx
leaq -0x448(%rbp), %rdi
callq 0x4530
jmp 0x10b04
movq -0x520(%rbp), %rdi
leaq -0x448(%rbp), %rsi
callq 0x10460
jmp 0x10b19
leaq -0x448(%rbp), %rdi
callq 0x4270
leaq -0x449(%rbp), %rdi
callq 0x4420
jmp 0x10ea9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x420(%rbp)
movl %eax, -0x424(%rbp)
jmp 0x10b68
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x420(%rbp)
movl %eax, -0x424(%rbp)
leaq -0x448(%rbp), %rdi
callq 0x4270
leaq -0x449(%rbp), %rdi
callq 0x4420
jmp 0x10ef0
movq -0x4d8(%rbp), %rdi
movq 0x2d441(%rip), %rax     # 0x3dfc8
movq (%rax), %rax
movq %rax, -0x568(%rbp)
addq $0xa8, %rdi
movq %rdi, -0x560(%rbp)
callq 0x41a0
movq -0x568(%rbp), %rdi
movq %rax, %rdx
leaq 0x1b6cc(%rip), %rsi     # 0x2c281
xorl %eax, %eax
movb %al, -0x551(%rbp)
callq 0x4580
movq -0x560(%rbp), %rdi
callq 0x41a0
movq %rax, %rdx
movb -0x551(%rbp), %al
leaq 0x1b6d1(%rip), %rsi     # 0x2c2af
leaq -0x3f0(%rbp), %rdi
movq %rdi, -0x548(%rbp)
callq 0x40b0
callq 0x100d0
movq %rax, -0x550(%rbp)
leaq -0x471(%rbp), %rdi
movq %rdi, -0x540(%rbp)
callq 0x46e0
movq -0x548(%rbp), %rsi
movq -0x540(%rbp), %rdx
leaq -0x470(%rbp), %rdi
callq 0x4530
jmp 0x10c2c
movq -0x550(%rbp), %rdi
leaq -0x470(%rbp), %rsi
callq 0x10460
jmp 0x10c41
leaq -0x470(%rbp), %rdi
callq 0x4270
leaq -0x471(%rbp), %rdi
callq 0x4420
jmp 0x10ea9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x420(%rbp)
movl %eax, -0x424(%rbp)
jmp 0x10c90
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x420(%rbp)
movl %eax, -0x424(%rbp)
leaq -0x470(%rbp), %rdi
callq 0x4270
leaq -0x471(%rbp), %rdi
callq 0x4420
jmp 0x10ef0
movq -0x4d8(%rbp), %rdi
movq 0x2d319(%rip), %rax     # 0x3dfc8
movq (%rax), %rax
movq %rax, -0x598(%rbp)
addq $0xa8, %rdi
movq %rdi, -0x590(%rbp)
callq 0x41a0
movq -0x598(%rbp), %rdi
movq %rax, %rdx
leaq 0x1b5ff(%rip), %rsi     # 0x2c2dc
xorl %eax, %eax
movb %al, -0x581(%rbp)
callq 0x4580
movq -0x590(%rbp), %rdi
callq 0x41a0
movq %rax, %rdx
movb -0x581(%rbp), %al
leaq 0x1b5ef(%rip), %rsi     # 0x2c2f5
leaq -0x3f0(%rbp), %rdi
movq %rdi, -0x578(%rbp)
callq 0x40b0
callq 0x100d0
movq %rax, -0x580(%rbp)
leaq -0x499(%rbp), %rdi
movq %rdi, -0x570(%rbp)
callq 0x46e0
movq -0x578(%rbp), %rsi
movq -0x570(%rbp), %rdx
leaq -0x498(%rbp), %rdi
callq 0x4530
jmp 0x10d54
movq -0x580(%rbp), %rdi
leaq -0x498(%rbp), %rsi
callq 0x10460
jmp 0x10d69
leaq -0x498(%rbp), %rdi
callq 0x4270
leaq -0x499(%rbp), %rdi
callq 0x4420
jmp 0x10ea9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x420(%rbp)
movl %eax, -0x424(%rbp)
jmp 0x10db8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x420(%rbp)
movl %eax, -0x424(%rbp)
leaq -0x498(%rbp), %rdi
callq 0x4270
leaq -0x499(%rbp), %rdi
callq 0x4420
jmp 0x10ef0
movq -0x4d8(%rbp), %rdi
movq 0x2d1f1(%rip), %rax     # 0x3dfc8
movq (%rax), %rax
movq %rax, -0x5c8(%rbp)
addq $0xa8, %rdi
movq %rdi, -0x5c0(%rbp)
callq 0x41a0
movq -0x5c8(%rbp), %rdi
movq %rax, %rdx
leaq 0x1b508(%rip), %rsi     # 0x2c30d
xorl %eax, %eax
movb %al, -0x5b1(%rbp)
callq 0x4580
movq -0x5c0(%rbp), %rdi
callq 0x41a0
movq %rax, %rdx
movb -0x5b1(%rbp), %al
leaq 0x1b4fb(%rip), %rsi     # 0x2c329
leaq -0x3f0(%rbp), %rdi
movq %rdi, -0x5a8(%rbp)
callq 0x40b0
callq 0x100d0
movq %rax, -0x5b0(%rbp)
leaq -0x4c1(%rbp), %rdi
movq %rdi, -0x5a0(%rbp)
callq 0x46e0
movq -0x5a8(%rbp), %rsi
movq -0x5a0(%rbp), %rdx
leaq -0x4c0(%rbp), %rdi
callq 0x4530
jmp 0x10e7c
movq -0x5b0(%rbp), %rdi
leaq -0x4c0(%rbp), %rsi
callq 0x10460
jmp 0x10e91
leaq -0x4c0(%rbp), %rdi
callq 0x4270
leaq -0x4c1(%rbp), %rdi
callq 0x4420
addq $0x5d0, %rsp            # imm = 0x5D0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x420(%rbp)
movl %eax, -0x424(%rbp)
jmp 0x10ee4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x420(%rbp)
movl %eax, -0x424(%rbp)
leaq -0x4c0(%rbp), %rdi
callq 0x4270
leaq -0x4c1(%rbp), %rdi
callq 0x4420
movq -0x420(%rbp), %rdi
callq 0x46c0
nopl (%rax)