// File: /workspace/github_c_makefile_star2_O0/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: write_table_column_data
void
_write_table_column_data(lxw_worksheet *self, lxw_table_obj *table_obj)
{
    uint16_t i;
    lxw_table_column *column;
    lxw_table_column **columns = table_obj->columns;

    lxw_col_t col;
    lxw_row_t first_row = table_obj->first_row;
    lxw_col_t first_col = table_obj->first_col;
    lxw_row_t last_row = table_obj->last_row;
    lxw_row_t first_data_row = first_row;
    lxw_row_t last_data_row = last_row;

    if (!table_obj->no_header_row)
        first_data_row++;

    if (table_obj->total_row)
        last_data_row--;

    for (i = 0; i < table_obj->num_cols; i++) {
        col = first_col + i;
        column = columns[i];

        if (table_obj->no_header_row == LXW_FALSE)
            worksheet_write_string(self, first_row, col, column->header,
                                   column->header_format);

        if (column->total_string)
            worksheet_write_string(self, last_row, col, column->total_string,
                                   NULL);

        if (column->total_function)
            _write_column_function(self, last_row, col, column);

        if (column->formula)
            _write_column_formula(self, first_data_row, last_data_row, col,
                                  column);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl 0x24(%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movw 0x28(%rax), %ax
movw %ax, -0x32(%rbp)
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %eax
movl %eax, -0x38(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x38(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1d(%rax)
jne 0x4816b
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x20(%rax)
je 0x4817e
movl -0x40(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x40(%rbp)
movw $0x0, -0x12(%rbp)
movzwl -0x12(%rbp), %eax
movq -0x10(%rbp), %rcx
movzwl 0x32(%rcx), %ecx
cmpl %ecx, %eax
jge 0x48269
movzwl -0x32(%rbp), %eax
movzwl -0x12(%rbp), %ecx
addl %ecx, %eax
movw %ax, -0x2a(%rbp)
movq -0x28(%rbp), %rax
movzwl -0x12(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x1d(%rax), %eax
cmpl $0x0, %eax
jne 0x481e5
movq -0x8(%rbp), %rdi
movl -0x30(%rbp), %esi
movw -0x2a(%rbp), %ax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq -0x20(%rbp), %rdx
movq 0x20(%rdx), %r8
movzwl %ax, %edx
callq 0xc110
movq -0x20(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x48210
movq -0x8(%rbp), %rdi
movl -0x38(%rbp), %esi
movw -0x2a(%rbp), %ax
movq -0x20(%rbp), %rcx
movq 0x10(%rcx), %rcx
xorl %edx, %edx
movl %edx, %r8d
movzwl %ax, %edx
callq 0xc110
movq -0x20(%rbp), %rax
cmpb $0x0, 0x18(%rax)
je 0x48231
movq -0x8(%rbp), %rdi
movl -0x38(%rbp), %esi
movw -0x2a(%rbp), %ax
movq -0x20(%rbp), %rcx
movzwl %ax, %edx
callq 0xc860
movq -0x20(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x48256
movq -0x8(%rbp), %rdi
movl -0x3c(%rbp), %esi
movl -0x40(%rbp), %edx
movw -0x2a(%rbp), %ax
movq -0x20(%rbp), %r8
movzwl %ax, %ecx
callq 0xc140
jmp 0x48258
movw -0x12(%rbp), %ax
addw $0x1, %ax
movw %ax, -0x12(%rbp)
jmp 0x48184
addq $0x40, %rsp
popq %rbp
retq
nop