// File: /workspace/github_c_makefile_star2_O3/neosploit[P]compiler/libfort/lib/fort.c
// Function: ft_row_printf_impl_
static int ft_row_printf_impl_(ft_table_t *table, size_t row, const struct f_string_view *fmt, va_list *va)
{
    size_t i = 0;
    size_t new_cols = 0;

    if (table == NULL)
        return -1;

    f_row_t *new_row = create_row_from_fmt_string(fmt, va);

    if (new_row == NULL) {
        return -1;
    }

    f_row_t **cur_row_p = NULL;
    size_t sz = vector_size(table->rows);
    if (row >= sz) {
        size_t push_n = row - sz + 1;
        for (i = 0; i < push_n; ++i) {
            f_row_t *padding_row = create_row();
            if (padding_row == NULL)
                goto clear;

            if (FT_IS_ERROR(vector_push(table->rows, &padding_row))) {
                destroy_row(padding_row);
                goto clear;
            }
        }
    }
    /* todo: clearing pushed items in case of error ?? */

    new_cols = columns_in_row(new_row);
    cur_row_p = &VECTOR_AT(table->rows, row, f_row_t *);

    switch (table->properties->entire_table_properties.add_strategy) {
        case FT_STRATEGY_INSERT: {
            if (FT_IS_ERROR(insert_row(*cur_row_p, new_row, table->cur_col)))
                goto clear;
            break;
        }
        case FT_STRATEGY_REPLACE: {
            if (FT_IS_ERROR(swap_row(*cur_row_p, new_row, table->cur_col)))
                goto clear;
            break;
        }
        default:
            assert(0 && "Unexpected situation inside libfort");
            break;
    }

    table->cur_col += new_cols;
    destroy_row(new_row);
    return (int)new_cols;

clear:
    destroy_row(new_row);
    return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, -0x68(%rbp)
movq %rdi, %r15
movl 0x8(%rdx), %esi
movl $0x400, %edi            # imm = 0x400
callq 0x12c36
movq %rax, %r12
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %r12, %r12
je 0x1034b
movl 0x8(%rbx), %eax
cmpl $0x2, %eax
movq %r15, -0x40(%rbp)
je 0xfb63
cmpl $0x1, %eax
je 0xfb59
testl %eax, %eax
jne 0x1038c
movq (%rbx), %rdi
callq 0x12d31
jmp 0xfb6b
movq (%rbx), %rdi
callq 0x12d6b
jmp 0xfb6b
movq (%rbx), %rdi
callq 0x12da6
movq %rax, -0x30(%rbp)
leaq -0x60(%rbp), %r15
movq 0x10(%r14), %rax
movq %rax, -0x50(%rbp)
movups (%r14), %xmm0
movaps %xmm0, -0x60(%rbp)
movq %r12, %rdi
callq 0x12cc9
movl 0x10(%r12), %ecx
cmpl $0x2, %ecx
je 0xfba2
cmpl $0x1, %ecx
je 0xfbb6
testl %ecx, %ecx
jne 0x1036d
movq (%r12), %rdi
movq (%rbx), %rdx
movq %rax, %rsi
movq %r15, %rcx
callq 0x70a0
jmp 0xfbc8
movq (%r12), %rdi
movq (%rbx), %rdx
movq %rax, %rsi
movq %r15, %rcx
callq 0x7170
testl %eax, %eax
js 0xfc0a
movl %eax, %r13d
movq %r12, %rdi
callq 0x12cc9
cmpq %r13, %rax
ja 0xfc16
movq 0x8(%r12), %rdi
addq %rdi, %rdi
callq *0x107de(%rip)          # 0x203c8
testq %rax, %rax
je 0xfc0a
movq %rax, %r13
movq (%r12), %rdi
callq *0x1063c(%rip)          # 0x20238
movq %r13, (%r12)
shlq 0x8(%r12)
jmp 0xfb73
xorl %r13d, %r13d
movq -0x40(%rbp), %r15
jmp 0x10027
movl 0x10(%r12), %r14d
cmpl $0x2, %r14d
je 0xfc5f
cmpl $0x1, %r14d
movq -0x40(%rbp), %r15
je 0xfc42
testl %r14d, %r14d
jne 0x10465
movq (%r12), %rbx
movq %rbx, %rdi
callq 0x12d31
jmp 0xfc6f
movq (%r12), %rbx
movq %rbx, %rdi
callq 0x12d6b
movq -0x30(%rbp), %rcx
cmpq %rcx, %rax
movq %rcx, %rax
je 0xfc89
jmp 0xfd5d
movq (%r12), %rbx
movq %rbx, %rdi
callq 0x12da6
movq -0x40(%rbp), %r15
movq -0x30(%rbp), %rcx
cmpq %rcx, %rax
movq %rcx, %rax
jne 0xfd5d
cmpl $0x1, %r14d
jne 0xfdc2
xorl %r13d, %r13d
xorl %edi, %edi
callq 0x12b11
testq %rax, %rax
je 0x10027
movq %rax, %r14
testq %rbx, %rbx
je 0xfe8a
movq %rbx, %rdi
callq 0x12f49
movq %rax, %rbx
testq %rax, %rax
je 0x10013
cmpl $0x0, (%rbx)
movq %r14, -0x30(%rbp)
movq %rbx, -0x38(%rbp)
je 0xff13
xorl %r13d, %r13d
leaq -0x60(%rbp), %rax
movq %rbx, %r15
movq %rax, %rbx
movsbl 0x1055f(%rip), %esi     # 0x20240
movq %r15, %rdi
callq 0x7230
testq %rax, %rax
je 0xfd00
movq %rax, %r14
movl $0x0, (%rax)
addq $0x4, %r14
incq %r13
jmp 0xfd03
xorl %r14d, %r14d
callq 0x12e45
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0xff0a
movq (%rax), %rdi
movq %r15, %rsi
callq 0x12f81
testl %eax, %eax
js 0xfed7
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq %rbx, %rsi
callq 0xf2aa
testl %eax, %eax
js 0xfed7
testq %r14, %r14
je 0xfd4d
cmpl $0x0, (%r14)
movq %r14, %r15
jne 0xfcda
incq %r13
movq -0x40(%rbp), %r15
movq -0x30(%rbp), %r14
jmp 0xff19
cmpq $0x1, %rax
jne 0x10024
xorl %r13d, %r13d
xorl %edi, %edi
callq 0x12b11
testq %rax, %rax
je 0x10027
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x13004
testq %rax, %rax
je 0xfeca
movl 0x10(%r12), %ecx
cmpl $0x2, %ecx
je 0xfea9
cmpl $0x1, %ecx
je 0xfe92
testl %ecx, %ecx
jne 0x10484
movq (%r12), %rsi
movq %rax, %rdi
callq 0x12e15
jmp 0xfebe
xorl %r13d, %r13d
xorl %edi, %edi
callq 0x12b11
testq %rax, %rax
je 0x10027
movq %rax, %r14
testq %rbx, %rbx
je 0xfe8a
movq %rbx, %rdi
callq 0x12de0
movq %rax, %rbx
testq %rax, %rax
je 0x10013
cmpb $0x0, (%rbx)
movq %r14, -0x30(%rbp)
movq %rbx, -0x38(%rbp)
je 0xff77
xorl %r13d, %r13d
leaq -0x60(%rbp), %rax
movq %rbx, %r15
movq %rax, %rbx
movsbl 0x10426(%rip), %esi     # 0x20240
movq %r15, %rdi
callq 0x70e0
testq %rax, %rax
je 0xfe35
movq %rax, %r14
movb $0x0, (%rax)
incq %r14
incq %r13
jmp 0xfe38
xorl %r14d, %r14d
callq 0x12e45
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0xff0a
movq (%rax), %rdi
movq %r15, %rsi
callq 0x12ec6
testl %eax, %eax
js 0xfed7
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq %rbx, %rsi
callq 0xf2aa
testl %eax, %eax
js 0xfed7
testq %r14, %r14
je 0xfe7a
cmpb $0x0, (%r14)
movq %r14, %r15
jne 0xfe13
incq %r13
movq -0x40(%rbp), %r15
movq -0x30(%rbp), %r14
jmp 0xff7d
movq %r14, %r13
jmp 0x10027
movq (%r12), %rsi
testq %rsi, %rsi
je 0x104a3
movq (%rax), %rdi
callq 0x12f81
jmp 0xfebe
movq (%r12), %rsi
testq %rsi, %rsi
je 0x104c2
movq (%rax), %rdi
callq 0x130b1
testl %eax, %eax
js 0xfeca
movq %rbx, %r13
jmp 0x10027
movq %rbx, %rdi
callq 0xedfa
jmp 0x10024
movq -0x60(%rbp), %r15
testq %r15, %r15
je 0xff0a
movq (%r15), %r14
testq %r14, %r14
je 0xff01
movq (%r14), %rdi
callq *0x10347(%rip)          # 0x20238
movq $0x0, (%r14)
movq %r14, %rdi
callq *0x10337(%rip)          # 0x20238
movq %r15, %rdi
callq *0x1032e(%rip)          # 0x20238
movq -0x40(%rbp), %r15
jmp 0x1000b
movl $0x1, %r13d
movq (%r14), %rax
testq %rax, %rax
je 0x10138
leaq 0xb364(%rip), %r14      # 0x1b290
movq -0x30(%rbp), %rbx
cmpq %r13, (%rax)
jae 0x1035a
callq 0x12e45
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0x1000b
movq (%rax), %rdi
movq %r14, %rsi
callq 0x12f81
testl %eax, %eax
js 0xffd7
movq (%rbx), %rdi
leaq -0x60(%rbp), %rsi
callq 0xf2aa
testl %eax, %eax
js 0xffd7
movq (%rbx), %rax
testq %rax, %rax
jne 0xff30
jmp 0x10138
movl $0x1, %r13d
movq (%r14), %rax
testq %rax, %rax
je 0x10138
leaq 0x8e0c(%rip), %r14      # 0x18d9c
movq -0x30(%rbp), %rbx
cmpq %r13, (%rax)
jae 0x1035a
callq 0x12e45
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0x1000b
movq (%rax), %rdi
movq %r14, %rsi
callq 0x12ec6
testl %eax, %eax
js 0xffd7
movq (%rbx), %rdi
leaq -0x60(%rbp), %rsi
callq 0xf2aa
testl %eax, %eax
js 0xffd7
movq (%rbx), %rax
testq %rax, %rax
jne 0xff94
jmp 0x10138
movq -0x60(%rbp), %r13
testq %r13, %r13
je 0x1000b
movq (%r13), %r14
testq %r14, %r14
je 0x10002
movq (%r14), %rdi
callq *0x10246(%rip)          # 0x20238
movq $0x0, (%r14)
movq %r14, %rdi
callq *0x10236(%rip)          # 0x20238
movq %r13, %rdi
callq *0x1022d(%rip)          # 0x20238
movq -0x30(%rbp), %r14
movq -0x38(%rbp), %rbx
movq %r14, %rdi
callq 0xedfa
movq %rbx, %rdi
callq *0x10214(%rip)          # 0x20238
xorl %r13d, %r13d
movq (%r12), %rdi
callq *0x10207(%rip)          # 0x20238
movq $0x0, (%r12)
movq %r12, %rdi
callq *0x101f6(%rip)          # 0x20238
testq %r13, %r13
je 0x102fa
movq (%r15), %rax
testq %rax, %rax
je 0x10138
movq (%rax), %rax
movq -0x68(%rbp), %r12
cmpq %r12, %rax
movq %r13, -0x30(%rbp)
ja 0x100a9
leaq 0x1(%r12), %r14
subq %rax, %r14
je 0x100a9
cmpq $0x1, %r14
adcq $0x0, %r14
leaq -0x60(%rbp), %rbx
xorl %edi, %edi
callq 0x12b11
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0x102f1
movq (%r15), %rdi
movq %rbx, %rsi
callq 0xf2aa
testl %eax, %eax
js 0x102e8
decq %r14
jne 0x1007d
movq (%r13), %r14
testq %r14, %r14
je 0x100b7
movq (%r14), %rcx
jmp 0x100b9
xorl %ecx, %ecx
movq (%r15), %rax
cmpq %r12, (%rax)
jbe 0x100cc
imulq 0x18(%rax), %r12
addq 0x8(%rax), %r12
jmp 0x100cf
xorl %r12d, %r12d
movq 0x8(%r15), %rax
movl 0x178(%rax), %eax
testl %eax, %eax
movq %rcx, -0x38(%rbp)
je 0x10157
cmpl $0x1, %eax
jne 0x103ab
movq (%r12), %r12
testq %r12, %r12
je 0x103ca
movq (%r12), %rax
testq %rax, %rax
je 0x10138
movq 0x20(%r15), %rbx
leaq -0x60(%rbp), %r14
cmpq %rbx, (%rax)
jae 0x1025c
callq 0x12e45
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0x102f1
movq (%r12), %rdi
movq %r14, %rsi
callq 0xf2aa
movq (%r12), %rax
testq %rax, %rax
jne 0x10108
leaq 0xa60b(%rip), %rdi      # 0x1a74a
leaq 0x9930(%rip), %rsi      # 0x19a76
leaq 0xb083(%rip), %rcx      # 0x1b1d0
movl $0x1c74, %edx           # imm = 0x1C74
callq 0x7120
movq (%r12), %rax
testq %rax, %rax
je 0x103e9
movq (%rax), %rbx
testq %rbx, %rbx
je 0x10138
movq 0x20(%r15), %r13
movq (%rbx), %r15
movq %r15, %rcx
orq %r13, %rcx
je 0x102cc
testq %r14, %r14
je 0x10408
cmpq %r14, %rbx
je 0x10427
movq 0x18(%rbx), %rdx
cmpq 0x18(%r14), %rdx
jne 0x10446
movq (%r14), %rax
testq %rax, %rax
je 0x10334
leaq (%rax,%r13), %rsi
cmpq %rsi, 0x10(%rbx)
movq %rax, -0x68(%rbp)
jae 0x101dc
movq %rbx, %rdi
movq %rsi, %r12
callq 0x13134
cmpl $-0x1, %eax
je 0x102f1
movq %r12, %rsi
movq %r12, 0x10(%rbx)
movq 0x18(%rbx), %rdx
movq -0x68(%rbp), %rax
movq %rsi, -0x70(%rbp)
movq %rdx, %r12
imulq %r13, %r12
subq %r13, %r15
jbe 0x10301
cmpq %rax, %r15
cmovaeq %rax, %r15
imulq %r15, %rdx
movq %rdx, %rdi
callq *0x101c4(%rip)          # 0x203c8
testq %rax, %rax
je 0x102f1
movq 0x8(%rbx), %rsi
addq %r12, %rsi
movq 0x18(%rbx), %rdx
imulq %r15, %rdx
movq %rax, %r13
movq %rax, %rdi
callq 0x71e0
addq 0x8(%rbx), %r12
movq 0x8(%r14), %rsi
movq -0x68(%rbp), %rdx
imulq 0x18(%rbx), %rdx
movq %r12, %rdi
callq 0x71e0
movq 0x8(%r14), %rdi
movq 0x18(%rbx), %rdx
imulq %r15, %rdx
movq %r13, %rsi
callq 0x71e0
movq %r13, %rdi
jmp 0x1031a
movq (%r13), %rax
testq %rax, %rax
je 0x10138
movq (%rax), %r13
xorl %r14d, %r14d
cmpq %r13, %r14
jae 0x102d8
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rax
imulq %r14, %rax
movq (%rcx,%rax), %rax
movq %rax, -0x60(%rbp)
movq (%r12), %rdi
leaq (%r14,%rbx), %rdx
leaq -0x60(%rbp), %rsi
callq 0xf525
movl %eax, %r15d
testl %eax, %eax
js 0x102ac
incq %r14
jmp 0x102c5
testq %r14, %r14
je 0x102f1
movq (%r12), %rdi
movq %rbx, %rsi
callq 0xf9c9
decq %r14
jne 0x102b1
xorl %r14d, %r14d
testl %r15d, %r15d
jns 0x1026f
jmp 0x102f1
movq %r14, (%rax)
movq -0x30(%rbp), %rax
movq %rbx, (%rax)
jmp 0x10334
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq $0x0, (%rax)
jmp 0x10334
movq -0x60(%rbp), %rdi
callq 0xedfa
movq -0x30(%rbp), %rdi
callq 0xedfa
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x1034b
addq 0x8(%rbx), %r12
movq 0x8(%r14), %rsi
imulq %rax, %rdx
movq %r12, %rdi
callq 0x71e0
xorl %edi, %edi
xorl %r15d, %r15d
movq (%rbx), %rax
movq -0x70(%rbp), %rcx
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq %rcx, (%rbx)
movq %r15, (%r14)
callq *0xff04(%rip)           # 0x20238
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rbx
addq %rbx, 0x20(%rax)
movq -0x30(%rbp), %rdi
callq 0xedfa
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq *0xfed4(%rip)           # 0x20238
movq -0x30(%rbp), %r13
jmp 0x10027
leaq 0x9fc6(%rip), %rdi      # 0x1a33a
leaq 0x96fb(%rip), %rsi      # 0x19a76
leaq 0x9ffd(%rip), %rcx      # 0x1a37f
movl $0x1777, %edx           # imm = 0x1777
callq 0x7120
leaq 0x9fa7(%rip), %rdi      # 0x1a33a
leaq 0x96dc(%rip), %rsi      # 0x19a76
leaq 0x9f9b(%rip), %rcx      # 0x1a33c
movl $0xf7e, %edx            # imm = 0xF7E
callq 0x7120
leaq 0x96ef(%rip), %rdi      # 0x19aa1
leaq 0x96bd(%rip), %rsi      # 0x19a76
leaq 0x9f23(%rip), %rcx      # 0x1a2e3
movl $0xb78, %edx            # imm = 0xB78
callq 0x7120
leaq 0xa298(%rip), %rdi      # 0x1a669
leaq 0x969e(%rip), %rsi      # 0x19a76
leaq 0xa292(%rip), %rcx      # 0x1a671
movl $0x1577, %edx           # imm = 0x1577
callq 0x7120
leaq 0xa279(%rip), %rdi      # 0x1a669
leaq 0x967f(%rip), %rsi      # 0x19a76
leaq 0xa2a5(%rip), %rcx      # 0x1a6a3
movl $0x1565, %edx           # imm = 0x1565
callq 0x7120
leaq 0xa308(%rip), %rdi      # 0x1a717
leaq 0x9660(%rip), %rsi      # 0x19a76
leaq 0xa2b6(%rip), %rcx      # 0x1a6d3
movl $0x1ce0, %edx           # imm = 0x1CE0
callq 0x7120
leaq 0xa2de(%rip), %rdi      # 0x1a70c
leaq 0x9641(%rip), %rsi      # 0x19a76
leaq 0xa297(%rip), %rcx      # 0x1a6d3
movl $0x1ce1, %edx           # imm = 0x1CE1
callq 0x7120
leaq 0xa2d1(%rip), %rdi      # 0x1a71e
leaq 0x9622(%rip), %rsi      # 0x19a76
leaq 0xa278(%rip), %rcx      # 0x1a6d3
movl $0x1ce2, %edx           # imm = 0x1CE2
callq 0x7120
leaq 0x9ece(%rip), %rdi      # 0x1a33a
leaq 0x9603(%rip), %rsi      # 0x19a76
leaq 0x9fd8(%rip), %rcx      # 0x1a452
movl $0xf92, %edx            # imm = 0xF92
callq 0x7120
leaq 0x9eaf(%rip), %rdi      # 0x1a33a
leaq 0x95e4(%rip), %rsi      # 0x19a76
leaq 0xa109(%rip), %rcx      # 0x1a5a2
movl $0xa16, %edx            # imm = 0xA16
callq 0x7120
leaq 0x9fed(%rip), %rdi      # 0x1a497
leaq 0x95c5(%rip), %rsi      # 0x19a76
leaq 0xa065(%rip), %rcx      # 0x1a51d
movl $0x9ec, %edx            # imm = 0x9EC
callq 0x7120
leaq 0x9fce(%rip), %rdi      # 0x1a497
leaq 0x95a6(%rip), %rsi      # 0x19a76
leaq 0xa111(%rip), %rcx      # 0x1a5e8
movl $0x9f7, %edx            # imm = 0x9F7
callq 0x7120