// File: /workspace/github_c_makefile_star2_O0/snej[P]zdelta/trees.c
// Function: zd_tr_stored_block
void zd_tr_stored_block(s, buf, stored_len, eof)
     deflate_state *s;
     charf *buf;       /* input block */
     ulg stored_len;   /* length of input block */
     int eof;          /* true if this is the last block for a file */
{
  send_bits(s, (STORED_BLOCK<<1)+eof, 3);  /* send block type */
#ifdef DEBUG
  s->compressed_len = (s->compressed_len + 3 + 7) & (ulg)~7L;
  s->compressed_len += (stored_len + 4) << 3;
#endif
  copy_block(s, buf, (unsigned)stored_len, 1); /* with header */


  /* zdelta: restore the pointers in the reference window
   * currently there is no explicity mechanism to way to provide the 
   * decompressor with the positions of these pointers; 
   * when a non-empty store block is emitted, we should restore the pointer
   * states before the start of that block - that is where the decompressor
   * will expect them to be!
   */
  if(stored_len){ 
    s->rwptr[0]  = s->rwptr_save[0];
    s->rwptr[1]  = s->rwptr_save[1];
    s->stable[0] = s->stable_save[0];
    s->stable[1] = s->stable_save[1];
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl $0x3, -0x20(%rbp)
movq -0x8(%rbp), %rax
movl 0x1a74(%rax), %eax
movl $0x10, %ecx
subl -0x20(%rbp), %ecx
cmpl %ecx, %eax
jle 0x74f7
movl -0x1c(%rbp), %eax
addl $0x0, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %edx
movq -0x8(%rbp), %rax
movl 0x1a74(%rax), %ecx
shll %cl, %edx
movq -0x8(%rbp), %rax
movzwl 0x1a70(%rax), %ecx
orl %edx, %ecx
movw %cx, 0x1a70(%rax)
movq -0x8(%rbp), %rax
movzwl 0x1a70(%rax), %eax
andl $0xff, %eax
movb %al, %dl
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rsi
movl 0x28(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, 0x28(%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movq -0x8(%rbp), %rax
movzwl 0x1a70(%rax), %eax
sarl $0x8, %eax
movb %al, %dl
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rsi
movl 0x28(%rsi), %ecx
movl %ecx, %edi
addl $0x1, %edi
movl %edi, 0x28(%rsi)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x24(%rbp), %eax
movzwl %ax, %eax
movq -0x8(%rbp), %rcx
movslq 0x1a74(%rcx), %rdx
movl $0x10, %ecx
subq %rdx, %rcx
sarl %cl, %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x1a70(%rax)
movslq -0x20(%rbp), %rdx
subq $0x10, %rdx
movq -0x8(%rbp), %rax
movslq 0x1a74(%rax), %rcx
addq %rdx, %rcx
movl %ecx, 0x1a74(%rax)
jmp 0x7530
movl -0x1c(%rbp), %edx
addl $0x0, %edx
movq -0x8(%rbp), %rax
movl 0x1a74(%rax), %ecx
shll %cl, %edx
movq -0x8(%rbp), %rax
movzwl 0x1a70(%rax), %ecx
orl %edx, %ecx
movw %cx, 0x1a70(%rax)
movl -0x20(%rbp), %ecx
movq -0x8(%rbp), %rax
addl 0x1a74(%rax), %ecx
movl %ecx, 0x1a74(%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rax
movl %eax, %edx
movl $0x1, %ecx
callq 0x75b0
cmpq $0x0, -0x18(%rbp)
je 0x75a3
movq -0x8(%rbp), %rax
movq 0x1a90(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x1a78(%rax)
movq -0x8(%rbp), %rax
movq 0x1a98(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x1a80(%rax)
movq -0x8(%rbp), %rax
movl 0x1aa0(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x1a88(%rax)
movq -0x8(%rbp), %rax
movl 0x1aa4(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x1a8c(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)