// File: /workspace/github_c_makefile_star2_O0/johsteffens[P]beth/lib/bcore/bcore_sources.c
// Function: bcore_source_stdin_s_parse_em_fv
er_t bcore_source_stdin_s_parse_em_fv( bcore_source_stdin_s* o, sc_t format, va_list args )
{
    if( !format ) return 0;
    if( format[ 0 ] == 0 ) return 0;
    if( format[ 0 ] == ' ' ) bcore_source_stdin_s_consume_whitechars_excluding_newline( o );
    if( o->buf_index == o->buf.size ) bcore_source_stdin_s_push_until_newline_or_eos( o );

    struct { er_t er; st_s* msg; } er_arg;
    er_arg.er = 0;
    er_arg.msg = NULL;
    sz_t index = st_s_parse_efv( &o->buf, o->buf_index, o->buf.size, stdin_s_parse_em_err, &er_arg, format, args );

    if( er_arg.er )
    {
        BLM_INIT();
        st_s* msg_main    = BLM_CREATE( st_s );
        st_s* msg_context = BLM_CREATE( st_s );
        if( er_arg.msg ) BLM_A_PUSH( er_arg.msg );

        msg_context = BLM_A_PUSH( st_s_show_line_context( &o->buf, o->buf_index ) );

        st_s_push_fa( msg_main, "error: #<sc_t>\n", er_arg.msg ? er_arg.msg->sc : "" );
        st_s_push_fa( msg_main, "#<sc_t>\n", msg_context->sc );

        bcore_error_push_sc( er_arg.er, msg_main->sc );
        BLM_DOWN();
    }
    o->buf_index = index;
    return er_arg.er;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0xcd2bb
movq $0x0, -0x8(%rbp)
jmp 0xcd4c7
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0xcd2d4
movq $0x0, -0x8(%rbp)
jmp 0xcd4c7
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0xcd2e9
movq -0x10(%rbp), %rdi
callq 0xcd200
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x30(%rcx), %rax
jne 0xcd304
movq -0x10(%rbp), %rdi
callq 0xcd1a0
movq $0x0, -0x30(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x10(%rbp), %rdi
addq $0x20, %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdx
movq -0x18(%rbp), %r9
movq -0x20(%rbp), %rax
leaq 0x1a5(%rip), %rcx       # 0xcd4e0
leaq -0x30(%rbp), %r8
movq %rax, (%rsp)
callq 0x101ef0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0xcd4b3
leaq 0xe4fd2(%rip), %rax     # 0x1b2330
movq (%rax), %rax
movq %rax, -0x40(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0xbfe80
movq -0x78(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x98(%rbp)
movb $0x0, %al
callq 0xff2e0
movq -0x98(%rbp), %rdi
movq %rax, %rdx
movabsq $-0x503db0e6e1c2e704, %rsi # imm = 0xAFC24F191E3D18FC
callq 0xc00e0
movq %rax, -0x80(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x90(%rbp)
movb $0x0, %al
callq 0xff2e0
movq -0x90(%rbp), %rdi
movq %rax, %rdx
movabsq $-0x503db0e6e1c2e704, %rsi # imm = 0xAFC24F191E3D18FC
callq 0xc00e0
movq %rax, -0x88(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0xcd3f7
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xc0460
movq -0x40(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x10(%rbp), %rdi
addq $0x20, %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x101d20
movq -0xa8(%rbp), %rdi
movq %rax, %rsi
callq 0xc0460
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0xcd450
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xb0(%rbp)
jmp 0xcd460
leaq 0x855cb(%rip), %rax     # 0x152a22
movq %rax, -0xb0(%rbp)
jmp 0xcd460
movq -0xa0(%rbp), %rdi
movq -0xb0(%rbp), %rdx
leaq 0x84ad2(%rip), %rsi     # 0x151f47
movb $0x0, %al
callq 0x100210
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rax
movq 0x8(%rax), %rdx
leaq 0x8b37f(%rip), %rsi     # 0x158811
movb $0x0, %al
callq 0x100210
movq -0x30(%rbp), %rdi
movq -0x80(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x9df70
leaq -0x78(%rbp), %rdi
callq 0xc06e0
movq -0x38(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)