// File: /workspace/github_c_makefile_star2_O2/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 $0x58, %rsp
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, -0x30(%rbp)
movq %rdi, -0x60(%rbp)
movl 0x8(%rdx), %esi
movl $0x400, %edi            # imm = 0x400
callq 0x12080
movq %rax, %r13
pushq $-0x1
popq %rax
testq %r13, %r13
je 0xfa56
movl 0x8(%r12), %eax
cmpl $0x2, %eax
je 0xf3d8
cmpl $0x1, %eax
je 0xf3cd
testl %eax, %eax
jne 0xfa93
movq (%r12), %rdi
callq 0x121e1
jmp 0xf3e1
movq (%r12), %rdi
callq 0x12216
jmp 0xf3e1
movq (%r12), %rdi
callq 0x1224c
movq %rax, -0x38(%rbp)
leaq -0x50(%rbp), %rbx
movq 0x10(%r14), %rax
movq %rax, -0x40(%rbp)
movups (%r14), %xmm0
movaps %xmm0, -0x50(%rbp)
movq %r13, %rdi
callq 0x1210e
movl 0x10(%r13), %ecx
cmpl $0x2, %ecx
je 0xf417
cmpl $0x1, %ecx
je 0xf42c
testl %ecx, %ecx
jne 0xfa74
movq (%r13), %rdi
movq (%r12), %rdx
movq %rax, %rsi
movq %rbx, %rcx
callq 0x70a0
jmp 0xf43f
movq (%r13), %rdi
movq (%r12), %rdx
movq %rax, %rsi
movq %rbx, %rcx
callq 0x7170
testl %eax, %eax
js 0xf45f
movl %eax, %r15d
movq %r13, %rdi
callq 0x1210e
cmpq %r15, %rax
ja 0xf46b
movq %r13, %rdi
callq 0x12176
testl %eax, %eax
jns 0xf3e9
xorl %r15d, %r15d
movq -0x30(%rbp), %r12
jmp 0xf768
movl 0x10(%r13), %r14d
cmpl $0x2, %r14d
je 0xf4b3
cmpl $0x1, %r14d
movq -0x30(%rbp), %r12
je 0xf496
testl %r14d, %r14d
jne 0xfb8b
movq (%r13), %rbx
movq %rbx, %rdi
callq 0x121e1
jmp 0xf4c3
movq (%r13), %rbx
movq %rbx, %rdi
callq 0x12216
movq -0x38(%rbp), %rcx
cmpq %rcx, %rax
movq %rcx, %rax
je 0xf4dd
jmp 0xf5d6
movq (%r13), %rbx
movq %rbx, %rdi
callq 0x1224c
movq -0x30(%rbp), %r12
movq -0x38(%rbp), %rcx
cmpq %rcx, %rax
movq %rcx, %rax
jne 0xf5d6
cmpl $0x1, %r14d
jne 0xf633
callq 0x12074
testq %rax, %rax
je 0xf765
movq %rax, %r15
testq %rbx, %rbx
je 0xf768
movq %rbx, %rdi
callq 0x123aa
movq %rax, %r14
testq %rax, %rax
je 0xf723
xorl %ebx, %ebx
movq %r14, -0x38(%rbp)
cmpl $0x0, (%r14)
je 0xf57e
movsbl 0x10d22(%rip), %esi     # 0x20240
movq %r14, %rdi
callq 0x7230
testq %rax, %rax
je 0xf53a
movq %rax, %r12
andl $0x0, (%rax)
addq $0x4, %r12
incq %rbx
jmp 0xf53d
xorl %r12d, %r12d
callq 0x122e3
movq %rax, -0x50(%rbp)
testq %rax, %rax
je 0xf71b
movq %rax, %rdi
movq %r14, %rsi
callq 0x123e2
testl %eax, %eax
js 0xf712
movq (%r15), %rdi
leaq -0x50(%rbp), %rsi
callq 0xec18
testl %eax, %eax
js 0xf712
movq %r12, %r14
testq %r12, %r12
jne 0xf511
incq %rbx
leaq 0xad78(%rip), %r12      # 0x1a300
leaq -0x50(%rbp), %r14
movq (%r15), %rdi
callq 0xe77d
cmpq %rbx, %rax
jae 0xfa65
callq 0x122e3
movq %rax, -0x50(%rbp)
testq %rax, %rax
je 0xf71b
movq %rax, %rdi
movq %r12, %rsi
callq 0x123e2
testl %eax, %eax
js 0xf712
movq (%r15), %rdi
movq %r14, %rsi
callq 0xec18
testl %eax, %eax
jns 0xf58c
jmp 0xf712
cmpq $0x1, %rax
jne 0xf765
callq 0x12074
testq %rax, %rax
je 0xf765
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
callq 0x121d5
testq %rax, %rax
je 0xf75d
movl 0x10(%r13), %ecx
cmpl $0x2, %ecx
je 0xf744
cmpl $0x1, %ecx
je 0xf736
testl %ecx, %ecx
jne 0xfbaa
movq (%r13), %rsi
movq %rax, %rdi
callq 0x122b6
jmp 0xf759
callq 0x12074
testq %rax, %rax
je 0xf765
movq %rax, %r15
testq %rbx, %rbx
je 0xf768
movq %rbx, %rdi
callq 0x12281
movq %rax, %r14
testq %rax, %rax
je 0xf723
xorl %ebx, %ebx
movq %r14, -0x38(%rbp)
cmpb $0x0, (%r14)
je 0xf6c7
movsbl 0x10bcc(%rip), %esi     # 0x20240
movq %r14, %rdi
callq 0x70e0
testq %rax, %rax
je 0xf68f
movq %rax, %r12
movb $0x0, (%rax)
incq %r12
incq %rbx
jmp 0xf692
xorl %r12d, %r12d
callq 0x122e3
movq %rax, -0x50(%rbp)
testq %rax, %rax
je 0xf71b
movq %rax, %rdi
movq %r14, %rsi
callq 0x122b6
testl %eax, %eax
js 0xf712
movq (%r15), %rdi
leaq -0x50(%rbp), %rsi
callq 0xec18
testl %eax, %eax
js 0xf712
movq %r12, %r14
testq %r12, %r12
jne 0xf667
incq %rbx
leaq 0x86c2(%rip), %r12      # 0x17d93
leaq -0x50(%rbp), %r14
movq (%r15), %rdi
callq 0xe77d
cmpq %rbx, %rax
jae 0xfa65
callq 0x122e3
movq %rax, -0x50(%rbp)
testq %rax, %rax
je 0xf71b
movq %rax, %rdi
movq %r12, %rsi
callq 0x122b6
testl %eax, %eax
js 0xf712
movq (%r15), %rdi
movq %r14, %rsi
callq 0xec18
testl %eax, %eax
jns 0xf6d5
movq -0x50(%rbp), %rdi
callq 0x12048
movq -0x30(%rbp), %r12
movq -0x38(%rbp), %r14
movq %r15, %rdi
callq 0xe7a9
movq %r14, %rdi
callq *0x10b04(%rip)          # 0x20238
jmp 0xf765
movq (%r13), %rsi
movq %rax, %rdi
callq 0x123e2
jmp 0xf759
movq (%r13), %rsi
testq %rsi, %rsi
je 0xfbc9
movq (%rax), %rdi
callq 0x1250f
testl %eax, %eax
jns 0xf768
movq %r15, %rdi
callq 0xe7a9
xorl %r15d, %r15d
movq %r13, %rdi
callq 0xe817
testq %r15, %r15
je 0xf9c0
movq -0x60(%rbp), %r13
movq (%r13), %rdi
callq 0xe77d
cmpq %r12, %rax
jbe 0xf798
movq (%r15), %rax
testq %rax, %rax
je 0xf7db
movq (%rax), %rcx
jmp 0xf7dd
movq %r12, %r14
subq %rax, %r14
incq %r14
leaq -0x50(%rbp), %rbx
subq $0x1, %r14
jb 0xf78b
callq 0x12074
movq %rax, -0x50(%rbp)
testq %rax, %rax
je 0xf7d2
movq (%r13), %rdi
movq %rbx, %rsi
callq 0xec18
testl %eax, %eax
jns 0xf7a5
movq -0x50(%rbp), %rdi
callq 0xe7a9
movq %r15, -0x30(%rbp)
jmp 0xf9b7
xorl %ecx, %ecx
movq (%r13), %rax
cmpq %r12, (%rax)
jbe 0xf7f1
imulq 0x18(%rax), %r12
addq 0x8(%rax), %r12
jmp 0xf7f4
xorl %r12d, %r12d
movq 0x8(%r13), %rax
movl 0x178(%rax), %eax
testl %eax, %eax
movq %rcx, -0x38(%rbp)
je 0xf858
movq %r15, -0x30(%rbp)
cmpl $0x1, %eax
jne 0xfab2
movq (%r12), %r15
testq %r15, %r15
je 0xfad1
movq 0x20(%r13), %r14
leaq -0x50(%rbp), %rbx
movq (%r15), %rdi
callq 0xe77d
cmpq %r14, %rax
jae 0xf950
callq 0x122e3
movq %rax, -0x50(%rbp)
testq %rax, %rax
je 0xf9b7
movq (%r15), %rdi
movq %rbx, %rsi
callq 0xec18
jmp 0xf828
movq (%r12), %rbx
testq %rbx, %rbx
je 0xfaf0
movq 0x20(%r13), %r12
movq (%rbx), %rdi
callq 0xe77d
orq %r12, %rax
movq (%rbx), %r14
je 0xf9c8
testq %r14, %r14
je 0xfb0f
movq (%r15), %rbx
testq %rbx, %rbx
je 0xfb2e
cmpq %rbx, %r14
je 0xfb4d
movq 0x18(%r14), %rdx
cmpq 0x18(%rbx), %rdx
jne 0xfb6c
movq (%rbx), %rax
testq %rax, %rax
je 0xfa44
movq %r15, -0x30(%rbp)
movq (%r14), %r15
leaq (%rax,%r12), %rsi
cmpq %rsi, 0x10(%r14)
movq %rax, -0x68(%rbp)
jae 0xf8f3
movq %r15, %r13
movq %r14, %rdi
movq %rsi, %r15
callq 0x12590
cmpl $-0x1, %eax
je 0xf9b7
movq %r15, %rsi
movq %r15, 0x10(%r14)
movq 0x18(%r14), %rdx
movq %r13, %r15
movq -0x68(%rbp), %rax
movq %rsi, -0x78(%rbp)
movq %rdx, %r13
imulq %r12, %r13
movq %r15, -0x70(%rbp)
subq %r12, %r15
jbe 0xf9e4
cmpq %rax, %r15
cmovaeq %rax, %r15
imulq %r15, %rdx
movq %rdx, %rdi
callq *0x10aa9(%rip)          # 0x203c8
testq %rax, %rax
je 0xf9b7
movq 0x8(%r14), %rsi
addq %r13, %rsi
movq 0x18(%r14), %rdx
imulq %r15, %rdx
movq %rax, -0x58(%rbp)
movq %rax, %rdi
callq 0x71e0
movq 0x18(%r14), %rdx
movq -0x68(%rbp), %rax
jmp 0xf9ef
movq -0x30(%rbp), %rax
movq (%rax), %rdi
callq 0xe77d
movq %rax, %rbx
xorl %r12d, %r12d
cmpq %rbx, %r12
jae 0xf9d3
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rax
imulq %r12, %rax
movq (%rcx,%rax), %rax
movq %rax, -0x50(%rbp)
movq (%r15), %rdi
leaq (%r12,%r14), %rdx
leaq -0x50(%rbp), %rsi
callq 0xee34
movl %eax, %r13d
testl %eax, %eax
js 0xf9a9
incq %r12
jmp 0xf9b2
movq (%r15), %rdi
movq %r14, %rsi
callq 0xf242
subq $0x1, %r12
jae 0xf99e
xorl %r12d, %r12d
testl %r13d, %r13d
jns 0xf962
movq -0x30(%rbp), %rdi
callq 0xe7a9
pushq $-0x1
popq %rax
jmp 0xfa56
movq (%r15), %rax
movq %rax, (%rbx)
movq %r14, (%r15)
jmp 0xfa44
movq -0x30(%rbp), %r15
movq (%r15), %rax
andq $0x0, (%rax)
movq -0x60(%rbp), %r13
jmp 0xfa44
movq $0x0, -0x58(%rbp)
xorl %r15d, %r15d
addq 0x8(%r14), %r13
movq 0x8(%rbx), %rsi
imulq %rax, %rdx
movq %r13, %rdi
callq 0x71e0
cmpq %r12, -0x70(%rbp)
jbe 0xfa1e
movq 0x8(%rbx), %rdi
movq 0x18(%r14), %rdx
imulq %r15, %rdx
movq -0x58(%rbp), %rsi
callq 0x71e0
movq (%r14), %rax
movq -0x78(%rbp), %rcx
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq %rcx, (%r14)
movq %r15, (%rbx)
movq -0x58(%rbp), %rdi
callq *0x107fc(%rip)          # 0x20238
movq -0x60(%rbp), %r13
movq -0x30(%rbp), %r15
movq -0x38(%rbp), %rbx
addq %rbx, 0x20(%r13)
movq %r15, %rdi
callq 0xe7a9
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq *0x107c9(%rip)          # 0x20238
jmp 0xf462
leaq 0x98bf(%rip), %rdi      # 0x1933a
leaq 0x8ff4(%rip), %rsi      # 0x18a76
leaq 0x98f6(%rip), %rcx      # 0x1937f
movl $0x1777, %edx           # imm = 0x1777
callq 0x7120
leaq 0x98a0(%rip), %rdi      # 0x1933a
leaq 0x8fd5(%rip), %rsi      # 0x18a76
leaq 0x9894(%rip), %rcx      # 0x1933c
movl $0xf7e, %edx            # imm = 0xF7E
callq 0x7120
leaq 0x8fe8(%rip), %rdi      # 0x18aa1
leaq 0x8fb6(%rip), %rsi      # 0x18a76
leaq 0x981c(%rip), %rcx      # 0x192e3
movl $0xb78, %edx            # imm = 0xB78
callq 0x7120
leaq 0x9b91(%rip), %rdi      # 0x19669
leaq 0x8f97(%rip), %rsi      # 0x18a76
leaq 0x9b8b(%rip), %rcx      # 0x19671
movl $0x1577, %edx           # imm = 0x1577
callq 0x7120
leaq 0x9b72(%rip), %rdi      # 0x19669
leaq 0x8f78(%rip), %rsi      # 0x18a76
leaq 0x9b9e(%rip), %rcx      # 0x196a3
movl $0x1565, %edx           # imm = 0x1565
callq 0x7120
leaq 0x9bbd(%rip), %rdi      # 0x196d3
leaq 0x8f59(%rip), %rsi      # 0x18a76
leaq 0x9bb7(%rip), %rcx      # 0x196db
movl $0x1cdf, %edx           # imm = 0x1CDF
callq 0x7120
leaq 0x9bea(%rip), %rdi      # 0x1971f
leaq 0x8f3a(%rip), %rsi      # 0x18a76
leaq 0x9b98(%rip), %rcx      # 0x196db
movl $0x1ce0, %edx           # imm = 0x1CE0
callq 0x7120
leaq 0x9bc0(%rip), %rdi      # 0x19714
leaq 0x8f1b(%rip), %rsi      # 0x18a76
leaq 0x9b79(%rip), %rcx      # 0x196db
movl $0x1ce1, %edx           # imm = 0x1CE1
callq 0x7120
leaq 0x9bb3(%rip), %rdi      # 0x19726
leaq 0x8efc(%rip), %rsi      # 0x18a76
leaq 0x9b5a(%rip), %rcx      # 0x196db
movl $0x1ce2, %edx           # imm = 0x1CE2
callq 0x7120
leaq 0x97a8(%rip), %rdi      # 0x1933a
leaq 0x8edd(%rip), %rsi      # 0x18a76
leaq 0x98b2(%rip), %rcx      # 0x19452
movl $0xf92, %edx            # imm = 0xF92
callq 0x7120
leaq 0x9789(%rip), %rdi      # 0x1933a
leaq 0x8ebe(%rip), %rsi      # 0x18a76
leaq 0x99e3(%rip), %rcx      # 0x195a2
movl $0xa16, %edx            # imm = 0xA16
callq 0x7120
leaq 0x98c7(%rip), %rdi      # 0x19497
leaq 0x8e9f(%rip), %rsi      # 0x18a76
leaq 0x9a0a(%rip), %rcx      # 0x195e8
movl $0x9f7, %edx            # imm = 0x9F7
callq 0x7120