// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/cram/cram_io.c
// Function: ltf8_put_blk
int ltf8_put_blk(cram_block *blk, int64_t val) {
    char buf[9];
    int sz;

    sz = ltf8_put(buf, val);
    BLOCK_APPEND(blk, buf, sz);
    return sz;

 block_err:
    return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rax
movq %rdi, %rbx
cmpq $0x80, %rsi
jae 0x4c15e
movl $0x1, %ebp
leaq 0xf(%rsp), %rcx
jmp 0x4c328
cmpq $0x3fff, %rax           # imm = 0x3FFF
ja 0x4c180
movl %eax, %edx
shrl $0x8, %edx
orb $-0x80, %dl
leaq 0x10(%rsp), %rcx
movb %dl, -0x1(%rcx)
movl $0x2, %ebp
jmp 0x4c328
cmpq $0x1fffff, %rax         # imm = 0x1FFFFF
ja 0x4c1a6
movl %eax, %edx
shrl $0x10, %edx
orb $-0x40, %dl
leaq 0x11(%rsp), %rcx
movb %dl, -0x2(%rcx)
movb %ah, 0x10(%rsp)
movl $0x3, %ebp
jmp 0x4c328
cmpq $0xfffffff, %rax        # imm = 0xFFFFFFF
ja 0x4c1d4
movl %eax, %edx
shrl $0x18, %edx
orb $-0x20, %dl
leaq 0x12(%rsp), %rcx
movb %dl, -0x3(%rcx)
movl %eax, %edx
shrl $0x10, %edx
movb %dl, -0x2(%rcx)
movb %ah, 0x11(%rsp)
movl $0x4, %ebp
jmp 0x4c328
movq %rax, %rcx
shrq $0x23, %rcx
jne 0x4c20d
movq %rax, %rdx
shrq $0x20, %rdx
orb $-0x10, %dl
leaq 0x13(%rsp), %rcx
movb %dl, -0x4(%rcx)
movl %eax, %edx
shrl $0x18, %edx
movb %dl, -0x3(%rcx)
movl %eax, %edx
shrl $0x10, %edx
movb %dl, -0x2(%rcx)
movb %ah, 0x12(%rsp)
movl $0x5, %ebp
jmp 0x4c328
movq %rax, %rcx
shrq $0x2a, %rcx
jne 0x4c250
movq %rax, %rdx
shrq $0x28, %rdx
orb $-0x8, %dl
leaq 0x14(%rsp), %rcx
movb %dl, -0x5(%rcx)
movq %rax, %rdx
shrq $0x20, %rdx
movb %dl, -0x4(%rcx)
movl %eax, %edx
shrl $0x18, %edx
movb %dl, -0x3(%rcx)
movl %eax, %edx
shrl $0x10, %edx
movb %dl, -0x2(%rcx)
movb %ah, 0x13(%rsp)
movl $0x6, %ebp
jmp 0x4c328
movq %rax, %rcx
movq %rax, %rdx
shrq $0x31, %rcx
jne 0x4c29d
shrq $0x30, %rdx
orb $-0x4, %dl
leaq 0x15(%rsp), %rcx
movb %dl, -0x6(%rcx)
movq %rax, %rdx
shrq $0x28, %rdx
movb %dl, -0x5(%rcx)
movq %rax, %rdx
shrq $0x20, %rdx
movb %dl, -0x4(%rcx)
movl %eax, %edx
shrl $0x18, %edx
movb %dl, -0x3(%rcx)
movl %eax, %edx
shrl $0x10, %edx
movb %dl, -0x2(%rcx)
movb %ah, 0x14(%rsp)
movl $0x7, %ebp
jmp 0x4c328
shrq $0x38, %rdx
jne 0x4c2e5
leaq 0x16(%rsp), %rcx
movb $-0x2, -0x7(%rcx)
movq %rax, %rdx
shrq $0x30, %rdx
movb %dl, -0x6(%rcx)
movq %rax, %rdx
shrq $0x28, %rdx
movb %dl, -0x5(%rcx)
movq %rax, %rdx
shrq $0x20, %rdx
movb %dl, -0x4(%rcx)
movl %eax, %edx
shrl $0x18, %edx
movb %dl, -0x3(%rcx)
movl %eax, %edx
shrl $0x10, %edx
movb %dl, -0x2(%rcx)
movb %ah, 0x15(%rsp)
movl $0x8, %ebp
jmp 0x4c328
leaq 0x17(%rsp), %rcx
movb $-0x1, -0x8(%rcx)
movb %dl, -0x7(%rcx)
movq %rax, %rdx
shrq $0x30, %rdx
movb %dl, -0x6(%rcx)
movq %rax, %rdx
shrq $0x28, %rdx
movb %dl, -0x5(%rcx)
movq %rax, %rdx
shrq $0x20, %rdx
movb %dl, -0x4(%rcx)
movl %eax, %edx
shrl $0x18, %edx
movb %dl, -0x3(%rcx)
movl %eax, %edx
shrl $0x10, %edx
movb %dl, -0x2(%rcx)
movb %ah, 0x16(%rsp)
movl $0x9, %ebp
movb %al, (%rcx)
movl %ebp, %r14d
movq 0x28(%rbx), %rax
movq 0x30(%rbx), %rdi
leaq (%rdi,%r14), %r15
cmpq %r15, %rax
jbe 0x4c344
movq 0x20(%rbx), %rax
jmp 0x4c37c
leaq 0x320(%rax), %rcx
shrq $0x2, %rcx
addq %rcx, %rax
addq $0x320, %rax            # imm = 0x320
cmpq %r15, %rax
cmovaq %rax, %r15
movq 0x20(%rbx), %rdi
movq %r15, %rsi
callq 0x4840
testq %rax, %rax
je 0x4c39d
movq %r15, 0x28(%rbx)
movq %rax, 0x20(%rbx)
movq 0x30(%rbx), %rdi
addq %rax, %rdi
leaq 0xf(%rsp), %rsi
movq %r14, %rdx
callq 0x43c0
addq %r14, 0x30(%rbx)
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x4c390