// File: /workspace/github_c_makefile_star2_O3/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 $0x18, %rsp
testq %rdi, %rdi
je 0xf4c8
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movl 0x178(%rax), %eax
testl %eax, %eax
je 0xf47f
cmpl $0x1, %eax
jne 0xf4e7
movq (%rbx), %rax
testq %rax, %rax
je 0xf506
movq 0x18(%rbx), %rcx
cmpq (%rax), %rcx
jae 0xf47f
movq 0x8(%rax), %rdx
imulq 0x18(%rax), %rcx
movq (%rdx,%rcx), %rax
testq %rax, %rax
je 0xf47f
movq (%rax), %r15
testq %r15, %r15
je 0xf47f
movq 0x20(%rbx), %r12
movq (%r15), %rax
cmpq %rax, %r12
jae 0xf47f
xorl %r13d, %r13d
subq %r12, %rax
cmovaeq %rax, %r13
movq 0x18(%r15), %rax
movq %rax, -0x30(%rbp)
movl $0x20, %edi
callq *0x10fe1(%rip)          # 0x203c8
testq %rax, %rax
je 0xf4b7
movq %rax, %r14
movq -0x30(%rbp), %rdi
imulq %r13, %rdi
cmpq $0x1, %rdi
adcq $0x0, %rdi
callq *0x10fbf(%rip)          # 0x203c8
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0xf4ae
movq $0x0, (%r14)
movq %r13, 0x10(%r14)
movq -0x30(%rbp), %rcx
movq %rcx, 0x18(%r14)
movq 0x18(%r15), %rdx
movq %rdx, %rsi
imulq %r12, %rsi
addq 0x8(%r15), %rsi
imulq %r13, %rdx
movq %rax, %rdi
callq 0x71e0
movq %r13, (%r14)
movq %r12, (%r15)
movl $0x1, %edi
movl $0x8, %esi
callq *0x10dd6(%rip)          # 0x20230
testq %rax, %rax
je 0xf49c
movq %rax, %r15
movq %r14, (%rax)
leaq -0x38(%rbp), %rsi
movq %rax, (%rsi)
movq (%rbx), %rdi
movq 0x18(%rbx), %rdx
incq %rdx
callq 0xf525
testl %eax, %eax
js 0xf4be
movq $0x0, 0x20(%rbx)
incq 0x18(%rbx)
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x12ba0
movq 0x8(%r14), %rdi
callq *0x10d8a(%rip)          # 0x20238
movq %r14, %rdi
callq *0x10d81(%rip)          # 0x20238
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jmp 0xf48d
movq %r15, %rdi
callq 0xedfa
jmp 0xf4b7
leaq 0xa5a1(%rip), %rdi      # 0x19a70
leaq 0xa5a0(%rip), %rsi      # 0x19a76
leaq 0xa5ac(%rip), %rcx      # 0x19a89
movl $0xad5, %edx            # imm = 0xAD5
callq 0x7120
leaq 0xa5b3(%rip), %rdi      # 0x19aa1
leaq 0xa581(%rip), %rsi      # 0x19a76
leaq 0xa58d(%rip), %rcx      # 0x19a89
movl $0xae9, %edx            # imm = 0xAE9
callq 0x7120
leaq 0xb23d(%rip), %rdi      # 0x1a74a
leaq 0xa562(%rip), %rsi      # 0x19a76
leaq 0xbcb5(%rip), %rcx      # 0x1b1d0
movl $0x1c74, %edx           # imm = 0x1C74
callq 0x7120