// File: /workspace/github_c_makefile_star2_O0/johsteffens[P]beth/lib/bcore/bcore_st.c
// Function: flow_snk
static uz_t flow_snk( vd_t o, vc_t data, uz_t size )
{
    if( *( aware_t*)o != TYPEOF_st_s ) ERR( "object 'o' of type %u ('%s') must be st_s", *( aware_t*)o, ifnameof( *( aware_t*)o ) );
    st_s* s = o;
    if( s->space == 0 ) st_s_make_strong( s );
    if( s->space == 0 )
    {
        s->data = bcore_bn_alloc( NULL, 0, size < 7 ? 8 : size + 1, &s->space );
    }
    else if( s->space < s->size + size + 1 )
    {
        s->data = bcore_bn_alloc( s->data, s->space, ( s->space * 2 < s->size + size + 1 ) ? s->size + size + 1 : s->space * 2, &s->space );
    }
    bcore_memcpy( s->data + s->size, data, size );

    s->size += size;
    s->data[ s->size ] = 0;
    return size;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movabsq $-0x503db0e6e1c2e704, %rcx # imm = 0xAFC24F191E3D18FC
cmpq %rcx, (%rax)
je 0x106f46
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0xff220
movq -0x28(%rbp), %r8
movq %rax, %r9
leaq 0x4aaa0(%rip), %rdi     # 0x1519cc
leaq 0x4f705(%rip), %rsi     # 0x156638
movl $0x897, %edx            # imm = 0x897
leaq 0x4fc5e(%rip), %rcx     # 0x156b9d
movb $0x0, %al
callq 0x9cf40
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x106f62
movq -0x20(%rbp), %rdi
callq 0xff830
movq -0x20(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x106fb3
cmpq $0x7, -0x18(%rbp)
jae 0x106f7f
movl $0x8, %eax
movq %rax, -0x30(%rbp)
jmp 0x106f8b
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdx
movq -0x20(%rbp), %rcx
addq $0x18, %rcx
xorl %eax, %eax
movl %eax, %esi
movq %rsi, %rdi
callq 0x9d2f0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x107057
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rcx
addq -0x18(%rbp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jae 0x107055
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
shlq %rax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rcx
addq -0x18(%rbp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jae 0x107022
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
addq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x107031
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
shlq %rax
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rdx
movq -0x20(%rbp), %rcx
addq $0x18, %rcx
callq 0x9d2f0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x107057
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x20(%rbp), %rax
addq 0x10(%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x9d5e0
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rax
addq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)