// File: /workspace/github_c_makefile_star2_O1/neosploit[P]compiler/libfort/lib/fort.c
// Function: ft_ln
int ft_ln(ft_table_t *table)
{
    assert(table);
    fort_entire_table_properties_t *table_props = &table->properties->entire_table_properties;
    switch (table_props->add_strategy) {
        case FT_STRATEGY_INSERT: {
            f_row_t *new_row = NULL;
            if (FT_IS_ERROR(split_cur_row(table, &new_row))) {
                return FT_GEN_ERROR;
            }
            if (new_row) {
                if (FT_IS_ERROR(vector_insert(table->rows, &new_row, table->cur_row + 1))) {
                    destroy_row(new_row);
                    return FT_GEN_ERROR;
                }
            }
            break;
        }
        case FT_STRATEGY_REPLACE:
            // do nothing
            break;
        default:
            assert(0 && "Unexpected situation inside libfort");
            break;
    }
    table->cur_col = 0;
    table->cur_row++;
    return FT_SUCCESS;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
je 0xf6e0
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movl 0x178(%rax), %eax
testl %eax, %eax
je 0xf6b3
cmpl $0x1, %eax
jne 0xf6ff
movq $0x0, -0x30(%rbp)
movq (%rbx), %rax
testq %rax, %rax
je 0xf71e
movq 0x18(%rbx), %rcx
cmpq (%rax), %rcx
jae 0xf695
imulq 0x18(%rax), %rcx
movq 0x8(%rax), %rax
movq (%rax,%rcx), %rax
movq 0x20(%rbx), %r12
testq %rax, %rax
je 0xf56a
movq (%rax), %rcx
testq %rcx, %rcx
je 0xf56a
movq (%rcx), %rcx
jmp 0xf56c
xorl %ecx, %ecx
cmpq %rcx, %r12
jae 0xf695
testq %rax, %rax
je 0xf73d
movq (%rax), %rax
movq (%rax), %r13
movq %rax, -0x38(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x48(%rbp)
xorl %r14d, %r14d
movq %r13, -0x40(%rbp)
subq %r12, %r13
cmovbq %r14, %r13
movl $0x20, %edi
callq *0x11e1f(%rip)          # 0x213c8
testq %rax, %rax
je 0xf5f3
movq %rax, %r15
movq %r13, %rdi
movq -0x48(%rbp), %r14
imulq %r14, %rdi
cmpq $0x1, %rdi
adcq $0x0, %rdi
callq *0x11dfe(%rip)          # 0x213c8
movq %rax, 0x8(%r15)
testq %rax, %rax
je 0xf5e7
movq $0x0, (%r15)
movq %r13, 0x10(%r15)
movq %r14, 0x18(%r15)
movq %r15, %r14
jmp 0xf5f3
movq %r15, %rdi
callq *0x11c48(%rip)          # 0x21238
xorl %r14d, %r14d
testq %r14, %r14
je 0xf611
cmpq %r13, 0x10(%r14)
jae 0xf63b
movq 0x8(%r14), %rdi
callq *0x11c30(%rip)          # 0x21238
movq %r14, %rdi
callq *0x11c27(%rip)          # 0x21238
xorl %r14d, %r14d
testq %r14, %r14
je 0xf636
movl $0x1, %edi
movl $0x8, %esi
callq *0x11c07(%rip)          # 0x21230
testq %rax, %rax
je 0xf669
movq %rax, %r15
movq %r14, (%rax)
jmp 0xf66c
xorl %r15d, %r15d
jmp 0xf68c
cmpq %r12, -0x40(%rbp)
jbe 0xf614
movq -0x38(%rbp), %r15
movq 0x18(%r15), %rdx
movq %rdx, %rsi
imulq %r12, %rsi
movq 0x8(%r14), %rdi
addq 0x8(%r15), %rsi
imulq %r13, %rdx
callq 0x71f0
movq %r13, (%r14)
movq %r12, (%r15)
jmp 0xf614
xorl %r15d, %r15d
testq %r15, %r15
jne 0xf68c
movq %r14, %rdi
callq 0x12eb0
movq 0x8(%r14), %rdi
callq *0x11bb5(%rip)          # 0x21238
movq %r14, %rdi
callq *0x11bac(%rip)          # 0x21238
testq %r15, %r15
je 0xf6d9
movq %r15, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0xf6b3
movq (%rbx), %rdi
movq 0x18(%rbx), %rdx
incq %rdx
leaq -0x30(%rbp), %rsi
callq 0xf75c
testl %eax, %eax
js 0xf6d0
movq $0x0, 0x20(%rbx)
incq 0x18(%rbx)
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0xef82
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jmp 0xf6c1
leaq 0xa399(%rip), %rdi      # 0x19a80
leaq 0xa398(%rip), %rsi      # 0x19a86
leaq 0xa3a4(%rip), %rcx      # 0x19a99
movl $0xad5, %edx            # imm = 0xAD5
callq 0x7130
leaq 0xa3ab(%rip), %rdi      # 0x19ab1
leaq 0xa379(%rip), %rsi      # 0x19a86
leaq 0xa385(%rip), %rcx      # 0x19a99
movl $0xae9, %edx            # imm = 0xAE9
callq 0x7130
leaq 0xb096(%rip), %rdi      # 0x1a7bb
leaq 0xa35a(%rip), %rsi      # 0x19a86
leaq 0xbc6a(%rip), %rcx      # 0x1b39d
movl $0x1c74, %edx           # imm = 0x1C74
callq 0x7130
leaq 0xaf9a(%rip), %rdi      # 0x1a6de
leaq 0xa33b(%rip), %rsi      # 0x19a86
leaq 0xaba1(%rip), %rcx      # 0x1a2f3
movl $0x14f0, %edx           # imm = 0x14F0
callq 0x7130