LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_size_row
STATIC int32_t
_worksheet_size_row(lxw_worksheet *self, lxw_row_t row_num, uint8_t anchor)
{
    lxw_row *row;
    uint32_t pixels;

    row = lxw_worksheet_find_row(self, row_num);

    /* Note, the 0.75 below is due to the difference between 72/96 DPI. */
    if (row) {
        if (row->hidden && anchor != LXW_OBJECT_MOVE_AND_SIZE_AFTER)
            pixels = 0;
        else
            pixels = (uint32_t) (row->height / 0.75);
    }
    else {
        pixels = (uint32_t) (self->default_row_height / 0.75);
    }

    return pixels;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
callq 0xc780
testq %rax, %rax
je 0x3b008
cmpb $0x4, %bl
je 0x3b002
xorl %ecx, %ecx
cmpb $0x0, 0x18(%rax)
jne 0x3b023
addq $0x8, %rax
jmp 0x3b012
addq $0x198, %r14            # imm = 0x198
movq %r14, %rax
movsd (%rax), %xmm0
divsd 0x72d2(%rip), %xmm0     # 0x422f0
cvttsd2si %xmm0, %rcx
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: write_array_formula_num_cell
STATIC void
_write_array_formula_num_cell(lxw_worksheet *self, lxw_cell *cell)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;
    char data[LXW_ATTR_32];

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("t", "array");
    LXW_PUSH_ATTRIBUTES_STR("ref", cell->user_data1);

    lxw_sprintf_dbl(data, cell->formula_result);

    lxw_xml_data_element(self->file, "f", cell->u.string, &attributes);
    lxw_xml_data_element(self->file, "v", data, NULL);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r15
movq %rdi, %r14
movq %rsp, %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x319a(%rip), %rdi      # 0x3e289
leaq 0xa6e7(%rip), %rsi      # 0x457dd
callq 0xc030
movl $0x1040, %r12d          # imm = 0x1040
leaq (%rax,%r12), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq 0x30(%r15), %rsi
leaq 0xb4e5(%rip), %rdi      # 0x46608
callq 0xc030
addq %rax, %r12
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %r12, 0x8(%rbx)
movsd 0x28(%r15), %xmm0
leaq 0x2fee(%rip), %rdx      # 0x3e139
leaq 0x10(%rsp), %r12
pushq $0x20
popq %rsi
movq %r12, %rdi
movb $0x1, %al
callq 0xc5b0
movq (%r14), %rdi
movq 0x20(%r15), %rdx
leaq 0x2fb2(%rip), %rsi      # 0x3e11d
movq %rbx, %rcx
callq 0xcba0
movq (%r14), %rdi
leaq 0x2f93(%rip), %rsi      # 0x3e110
movq %r12, %rdx
xorl %ecx, %ecx
callq 0xcba0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3b1ac
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3b1a5
movq %rbx, 0x8(%rsp)
callq 0xc0d0
jmp 0x3b187
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_filter
STATIC void
_worksheet_write_filter(lxw_worksheet *self, const char *str, double num,
                        uint8_t criteria)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    if (criteria == LXW_FILTER_CRITERIA_BLANKS)
        return;

    LXW_INIT_ATTRIBUTES();

    if (str)
        LXW_PUSH_ATTRIBUTES_STR("val", str);
    else
        LXW_PUSH_ATTRIBUTES_DBL("val", num);

    lxw_xml_empty_tag(self->file, "filter", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
cmpl $0x7, %edx
je 0x3b6e5
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x2dd4(%rip), %rdi      # 0x3e44c
testq %rsi, %rsi
je 0x3b684
callq 0xc030
jmp 0x3b689
callq 0xccf0
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%r14), %rdi
leaq 0xa5d1(%rip), %rsi      # 0x45c80
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3b6de
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x3b6d7
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x3b6b7
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_custom_filter
STATIC void
_worksheet_write_custom_filter(lxw_worksheet *self, const char *str,
                               double num, uint8_t criteria)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();

    if (criteria == LXW_FILTER_CRITERIA_NOT_EQUAL_TO)
        LXW_PUSH_ATTRIBUTES_STR("operator", "notEqual");
    if (criteria == LXW_FILTER_CRITERIA_GREATER_THAN)
        LXW_PUSH_ATTRIBUTES_STR("operator", "greaterThan");
    else if (criteria == LXW_FILTER_CRITERIA_GREATER_THAN_OR_EQUAL_TO)
        LXW_PUSH_ATTRIBUTES_STR("operator", "greaterThanOrEqual");
    else if (criteria == LXW_FILTER_CRITERIA_LESS_THAN)
        LXW_PUSH_ATTRIBUTES_STR("operator", "lessThan");
    else if (criteria == LXW_FILTER_CRITERIA_LESS_THAN_OR_EQUAL_TO)
        LXW_PUSH_ATTRIBUTES_STR("operator", "lessThanOrEqual");

    if (str)
        LXW_PUSH_ATTRIBUTES_STR("val", str);
    else
        LXW_PUSH_ATTRIBUTES_DBL("val", num);

    lxw_xml_empty_tag(self->file, "customFilter", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r15
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rdi, %r14
movq %rbx, 0x8(%rbx)
addb $-0x2, %dl
cmpb $0x4, %dl
ja 0x3b74f
movzbl %dl, %eax
leaq 0x82b8(%rip), %rcx      # 0x439cc
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
leaq 0xa577(%rip), %rdi      # 0x45c99
movsd %xmm0, 0x18(%rsp)
callq 0xc030
movsd 0x18(%rsp), %xmm0
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
leaq 0x2cf6(%rip), %rdi      # 0x3e44c
testq %r15, %r15
je 0x3b765
movq %r15, %rsi
callq 0xc030
jmp 0x3b76a
callq 0xccf0
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%r14), %rdi
leaq 0xa553(%rip), %rsi      # 0x45ce3
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3b7bf
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x3b7b8
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x3b798
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_cfvo_str
STATIC void
_worksheet_write_cfvo_str(lxw_worksheet *self, uint8_t rule_type,
                          char *value, uint8_t data_bar_2010)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();

    if (rule_type == LXW_CONDITIONAL_RULE_TYPE_MINIMUM)
        LXW_PUSH_ATTRIBUTES_STR("type", "min");
    else if (rule_type == LXW_CONDITIONAL_RULE_TYPE_NUMBER)
        LXW_PUSH_ATTRIBUTES_STR("type", "num");
    else if (rule_type == LXW_CONDITIONAL_RULE_TYPE_PERCENT)
        LXW_PUSH_ATTRIBUTES_STR("type", "percent");
    else if (rule_type == LXW_CONDITIONAL_RULE_TYPE_PERCENTILE)
        LXW_PUSH_ATTRIBUTES_STR("type", "percentile");
    else if (rule_type == LXW_CONDITIONAL_RULE_TYPE_FORMULA)
        LXW_PUSH_ATTRIBUTES_STR("type", "formula");
    else if (rule_type == LXW_CONDITIONAL_RULE_TYPE_MAXIMUM)
        LXW_PUSH_ATTRIBUTES_STR("type", "max");

    if (!data_bar_2010 || (rule_type != LXW_CONDITIONAL_RULE_TYPE_MINIMUM
                           && rule_type != LXW_CONDITIONAL_RULE_TYPE_MAXIMUM))
        LXW_PUSH_ATTRIBUTES_STR("val", value);

    lxw_xml_empty_tag(self->file, "cfvo", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebp
movq %rdx, %r15
movl %esi, %r12d
movq %rsp, %rbx
andq $0x0, (%rbx)
movq %rdi, %r14
movq %rbx, 0x8(%rbx)
leal -0x1(%r12), %eax
cmpb $0x5, %al
ja 0x3b87b
movzbl %al, %eax
leaq 0x17569(%rip), %rcx     # 0x52db8
movq (%rcx,%rax,8), %rsi
leaq 0x3d06(%rip), %rdi      # 0x3f560
callq 0xc030
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
testb %bpl, %bpl
je 0x3b88f
cmpb $0x1, %r12b
je 0x3b8ba
movzbl %r12b, %eax
cmpl $0x6, %eax
je 0x3b8ba
leaq 0x2bb6(%rip), %rdi      # 0x3e44c
movq %r15, %rsi
callq 0xc030
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%r14), %rdi
leaq 0xad35(%rip), %rsi      # 0x465f9
movq %rbx, %rdx
callq 0xcc70
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3b8f1
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3b8ea
movq %rbx, 0x8(%rsp)
callq 0xc0d0
jmp 0x3b8cc
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_cfvo_num
STATIC void
_worksheet_write_cfvo_num(lxw_worksheet *self, uint8_t rule_type,
                          double value, uint8_t data_bar_2010)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();

    if (rule_type == LXW_CONDITIONAL_RULE_TYPE_MINIMUM)
        LXW_PUSH_ATTRIBUTES_STR("type", "min");
    else if (rule_type == LXW_CONDITIONAL_RULE_TYPE_NUMBER)
        LXW_PUSH_ATTRIBUTES_STR("type", "num");
    else if (rule_type == LXW_CONDITIONAL_RULE_TYPE_PERCENT)
        LXW_PUSH_ATTRIBUTES_STR("type", "percent");
    else if (rule_type == LXW_CONDITIONAL_RULE_TYPE_PERCENTILE)
        LXW_PUSH_ATTRIBUTES_STR("type", "percentile");
    else if (rule_type == LXW_CONDITIONAL_RULE_TYPE_FORMULA)
        LXW_PUSH_ATTRIBUTES_STR("type", "formula");
    else if (rule_type == LXW_CONDITIONAL_RULE_TYPE_MAXIMUM)
        LXW_PUSH_ATTRIBUTES_STR("type", "max");

    if (!data_bar_2010 || (rule_type != LXW_CONDITIONAL_RULE_TYPE_MINIMUM
                           && rule_type != LXW_CONDITIONAL_RULE_TYPE_MAXIMUM))
        LXW_PUSH_ATTRIBUTES_DBL("val", value);

    lxw_xml_empty_tag(self->file, "cfvo", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movl %esi, %r15d
movq %rsp, %rbx
andq $0x0, (%rbx)
movq %rdi, %r14
movq %rbx, 0x8(%rbx)
leal -0x1(%r15), %eax
cmpb $0x5, %al
ja 0x3b965
movzbl %al, %eax
leaq 0x1748b(%rip), %rcx     # 0x52db8
movq (%rcx,%rax,8), %rsi
leaq 0x3c28(%rip), %rdi      # 0x3f560
movsd %xmm0, 0x10(%rsp)
callq 0xc030
movsd 0x10(%rsp), %xmm0
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
testb %bpl, %bpl
je 0x3b979
cmpb $0x1, %r15b
je 0x3b9a1
movzbl %r15b, %eax
cmpl $0x6, %eax
je 0x3b9a1
leaq 0x2acc(%rip), %rdi      # 0x3e44c
callq 0xccf0
andq $0x0, 0x1040(%rax)
leaq 0x1040(%rax), %rcx
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
movq (%r14), %rdi
leaq 0xac4e(%rip), %rsi      # 0x465f9
movq %rbx, %rdx
callq 0xcc70
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3b9d8
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3b9d1
movq %rbx, 0x8(%rsp)
callq 0xc0d0
jmp 0x3b9b3
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_color
STATIC void
_worksheet_write_color(lxw_worksheet *self, lxw_color_t color)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;
    char rgb[LXW_ATTR_32];

    lxw_snprintf(rgb, LXW_ATTR_32, "FF%06X", color & LXW_COLOR_MASK);

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("rgb", rgb);

    lxw_xml_empty_tag(self->file, "color", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl %esi, %ecx
movq %rdi, %r14
andl $0xffffff, %ecx         # imm = 0xFFFFFF
leaq 0x49cb(%rip), %rdx      # 0x403c9
leaq 0x10(%rsp), %r15
pushq $0x20
popq %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0xc5b0
movq %rsp, %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x49ae(%rip), %rdi      # 0x403d0
movq %r15, %rsi
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x6a32(%rip), %rsi      # 0x42480
movq %rbx, %rdx
callq 0xcc70
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3ba7b
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3ba74
movq %rbx, 0x8(%rsp)
callq 0xc0d0
jmp 0x3ba56
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_ext
STATIC void
_worksheet_write_ext(lxw_worksheet *self, char *uri)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;
    char xmlns_x_14[] =
        "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main";

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("xmlns:x14", xmlns_x_14);
    LXW_PUSH_ATTRIBUTES_STR("uri", uri);

    lxw_xml_start_tag(self->file, "ext", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r15
movq %rdi, %r14
movups 0xac21(%rip), %xmm0     # 0x466be
leaq 0x10(%rsp), %rsi
movups %xmm0, 0x2e(%rsi)
movaps 0xac03(%rip), %xmm0     # 0x466b0
movaps %xmm0, 0x20(%rsi)
movaps 0xabe8(%rip), %xmm0     # 0x466a0
movaps %xmm0, 0x10(%rsi)
movaps 0xabcd(%rip), %xmm0     # 0x46690
movaps %xmm0, (%rsi)
movq %rsp, %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0xa690(%rip), %rdi      # 0x46168
callq 0xc030
movl $0x1040, %r12d          # imm = 0x1040
andq $0x0, 0x1040(%rax)
leaq (%rax,%r12), %rcx
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0x3cf5(%rip), %rdi      # 0x3f7f6
movq %r15, %rsi
callq 0xc030
addq %rax, %r12
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %r12, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x3ca2(%rip), %rsi      # 0x3f7cb
movq %rbx, %rdx
callq 0xc380
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3bb56
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3bb4f
movq %rbx, 0x8(%rsp)
callq 0xc0d0
jmp 0x3bb31
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_brk
STATIC void
_worksheet_write_brk(lxw_worksheet *self, uint32_t id, uint32_t max)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_INT("id", id);
    LXW_PUSH_ATTRIBUTES_INT("max", max);
    LXW_PUSH_ATTRIBUTES_STR("man", "1");

    lxw_xml_empty_tag(self->file, "brk", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rdi, %r14
movq %rbx, 0x8(%rbx)
movl %esi, %esi
leaq 0xa5de(%rip), %rdi      # 0x46165
callq 0xc1a0
movl $0x1040, %r15d          # imm = 0x1040
leaq (%rax,%r15), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movl %ebp, %esi
leaq 0x2926(%rip), %rdi      # 0x3e4d8
callq 0xc1a0
andq $0x0, 0x1040(%rax)
leaq (%rax,%r15), %rcx
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xa7a9(%rip), %rdi      # 0x4637e
leaq 0x6b6c(%rip), %rsi      # 0x42748
callq 0xc030
addq %rax, %r15
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %r15, 0x8(%rbx)
movq (%r14), %rdi
leaq 0xa781(%rip), %rsi      # 0x46382
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3bc30
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x3bc29
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x3bc09
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_ignored_error
STATIC void
_worksheet_write_ignored_error(lxw_worksheet *self, char *ignore_error,
                               char *range)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("sqref", range);
    LXW_PUSH_ATTRIBUTES_STR(ignore_error, "1");

    lxw_xml_empty_tag(self->file, "ignoredError", &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0xa9a6(%rip), %rdi      # 0x46606
movq %rdx, %rsi
callq 0xc030
movl $0x1040, %r12d          # imm = 0x1040
andq $0x0, 0x1040(%rax)
leaq (%rax,%r12), %rcx
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0x6abc(%rip), %rsi      # 0x42748
movq %r15, %rdi
callq 0xc030
addq %rax, %r12
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %r12, 0x8(%rbx)
movq (%r14), %rdi
leaq 0xa76c(%rip), %rsi      # 0x46420
movq %rbx, %rdx
callq 0xcc70
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3bce3
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x3bcdc
movq %rbx, 0x10(%rsp)
callq 0xc0d0
jmp 0x3bcbc
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: worksheet_write_x14_color
STATIC void
_worksheet_write_x14_color(lxw_worksheet *self, char *type, lxw_color_t color)
{
    struct xml_attribute_list attributes;
    struct xml_attribute *attribute;
    char rgb[LXW_ATTR_32];

    lxw_snprintf(rgb, LXW_ATTR_32, "FF%06X", color & LXW_COLOR_MASK);

    LXW_INIT_ATTRIBUTES();
    LXW_PUSH_ATTRIBUTES_STR("rgb", rgb);
    lxw_xml_empty_tag(self->file, type, &attributes);

    LXW_FREE_ATTRIBUTES();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %ecx
movq %rsi, %r14
movq %rdi, %r15
andl $0xffffff, %ecx         # imm = 0xFFFFFF
leaq 0x4547(%rip), %rdx      # 0x403c9
leaq 0x10(%rsp), %r12
pushq $0x20
popq %rsi
movq %r12, %rdi
xorl %eax, %eax
callq 0xc5b0
movq %rsp, %rbx
andq $0x0, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x452a(%rip), %rdi      # 0x403d0
movq %r12, %rsi
callq 0xc030
leaq 0x1040(%rax), %rcx
andq $0x0, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xcc70
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3befb
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3bef4
movq %rbx, 0x8(%rsp)
callq 0xc0d0
jmp 0x3bed6
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/worksheet.c
// Function: insert_cell_list
STATIC void
_insert_cell_list(struct lxw_table_cells *cell_list,
                  lxw_cell *cell, lxw_col_t col_num)
{
    lxw_cell *existing_cell;

    cell->col_num = col_num;

    existing_cell = RB_INSERT(lxw_table_cells, cell_list, cell);

    /* If existing_cell is not NULL, then that cell already existed. */
    /* Remove existing_cell and add new one in again. */
    if (existing_cell) {
        RB_REMOVE(lxw_table_cells, cell_list, existing_cell);

        /* Add it in again. */
        RB_INSERT(lxw_table_cells, cell_list, cell);
        _free_cell(existing_cell);
    }

    return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movw %dx, 0x4(%rsi)
callq 0x3bf4c
testq %rax, %rax
je 0x3bf46
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x3ab96
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3bf4c
movq %r15, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2caea
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/xmlwriter.c
// Function: fprint_escaped_attributes
STATIC void
_fprint_escaped_attributes(FILE * xmlfile,
                           struct xml_attribute_list *attributes)
{
    struct xml_attribute *attribute;

    if (attributes) {
        STAILQ_FOREACH(attribute, attributes, list_entries) {
            fprintf(xmlfile, " %s=", attribute->key);

            if (!strpbrk(attribute->value, "&<>\"\n")) {
                fprintf(xmlfile, "\"%s\"", attribute->value);
            }
            else {
                char *encoded = _escape_attributes(attribute);

                if (encoded) {
                    fprintf(xmlfile, "\"%s\"", encoded);

                    free(encoded);
                }
            }
        }
    }
}

// Assembly:
testq %rsi, %rsi
je 0x3c617
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r13
pushq $0x1
popq %rbp
pushq $0x5
popq %r12
pushq $0x6
popq %r14
pushq $0x4
popq %r15
movq %rdi, 0x8(%rsp)
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x3c609
movq %r13, %rdi
leaq 0xa213(%rip), %rsi      # 0x4671f
movq %rbx, %rdx
xorl %eax, %eax
callq 0xc8d0
leaq 0x820(%rbx), %r13
movq %r13, %rdi
leaq 0xa1fd(%rip), %rsi      # 0x46724
callq 0xcb80
testq %rax, %rax
je 0x3c5e2
movl $0x30c0, %edi           # imm = 0x30C0
movq %rbp, %rsi
callq 0xc850
movq %rax, %rdx
movzbl (%r13), %ecx
cmpl $0xa, %ecx
je 0x3c582
cmpl $0x22, %ecx
je 0x3c59c
cmpl $0x26, %ecx
je 0x3c56e
cmpl $0x3c, %ecx
je 0x3c591
cmpl $0x3e, %ecx
je 0x3c57a
testl %ecx, %ecx
je 0x3c5b3
movb %cl, (%rdx)
movq %rbp, %rcx
jmp 0x3c5ab
movb $0x3b, 0x4(%rdx)
movl $0x706d6126, (%rdx)     # imm = 0x706D6126
jmp 0x3c58c
movl $0x3b746726, (%rdx)     # imm = 0x3B746726
jmp 0x3c597
movb $0x3b, 0x4(%rdx)
movl $0x41782326, (%rdx)     # imm = 0x41782326
movq %r12, %rcx
jmp 0x3c5ab
movl $0x3b746c26, (%rdx)     # imm = 0x3B746C26
movq %r15, %rcx
jmp 0x3c5ab
movw $0x3b74, 0x4(%rdx)      # imm = 0x3B74
movl $0x6f757126, (%rdx)     # imm = 0x6F757126
movq %r14, %rcx
addq %rcx, %rdx
incq %r13
jmp 0x3c545
testq %rax, %rax
movq 0x8(%rsp), %r13
je 0x3c5fd
movq %r13, %rdi
leaq 0x97e4(%rip), %rsi      # 0x45dab
movq %rax, %rdx
movq %rax, 0x10(%rsp)
xorl %eax, %eax
callq 0xc8d0
movq 0x10(%rsp), %rdi
callq 0xc0d0
jmp 0x3c5fd
movq 0x8(%rsp), %rdi
leaq 0x97bd(%rip), %rsi      # 0x45dab
movq %r13, %rdx
xorl %eax, %eax
callq 0xc8d0
movq 0x8(%rsp), %r13
addq $0x1040, %rbx           # imm = 0x1040
jmp 0x3c4f6
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/xmlwriter.c
// Function: lxw_xml_start_tag_unencoded
void
lxw_xml_start_tag_unencoded(FILE * xmlfile,
                            const char *tag,
                            struct xml_attribute_list *attributes)
{
    struct xml_attribute *attribute;

    fprintf(xmlfile, "<%s", tag);

    if (attributes) {
        STAILQ_FOREACH(attribute, attributes, list_entries) {
            fprintf(xmlfile, " %s=\"%s\"", attribute->key, attribute->value);
        }
    }

    fprintf(xmlfile, ">");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0xa0bb(%rip), %rsi      # 0x466e8
xorl %eax, %eax
callq 0xc8d0
testq %r14, %r14
je 0x3c668
leaq 0xa0ac(%rip), %r15      # 0x466ec
movq (%r14), %r14
testq %r14, %r14
je 0x3c668
leaq 0x820(%r14), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0xc8d0
addq $0x1040, %r14           # imm = 0x1040
jmp 0x3c640
pushq $0x3e
popq %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xc770
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/xmlwriter.c
// Function: lxw_xml_data_element
void
lxw_xml_data_element(FILE * xmlfile,
                     const char *tag,
                     const char *data, struct xml_attribute_list *attributes)
{
    fprintf(xmlfile, "<%s", tag);

    _fprint_escaped_attributes(xmlfile, attributes);

    fprintf(xmlfile, ">");

    _fprint_escaped_data(xmlfile, data);

    fprintf(xmlfile, "</%s>", tag);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x9f98(%rip), %rsi      # 0x466e8
movq %rbx, %rdx
xorl %eax, %eax
callq 0xc8d0
movq %r14, %rdi
movq %r12, %rsi
callq 0x3c4c5
pushq $0x3e
popq %rdi
movq %r14, %rsi
callq 0xc770
leaq 0x9fc0(%rip), %rsi      # 0x46737
movq %r15, %rdi
callq 0xcb80
movq %r15, %rdi
testq %rax, %rax
je 0x3c7a9
callq 0xc570
testq %rax, %rax
je 0x3c7b1
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0xc640
movq %r15, %rdi
callq 0xc0d0
jmp 0x3c7b1
movq %r14, %rsi
callq 0xc640
leaq 0x9f3d(%rip), %rsi      # 0x466f5
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xc8d0
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/xmlwriter.c
// Function: lxw_escape_data
char *
lxw_escape_data(const char *data)
{
    size_t encoded_len = (strlen(data) * 5 + 1);

    char *encoded = (char *) calloc(encoded_len, 1);
    char *p_encoded = encoded;

    while (*data) {
        switch (*data) {
            case '&':
                memcpy(p_encoded, LXW_AMP, sizeof(LXW_AMP) - 1);
                p_encoded += sizeof(LXW_AMP) - 1;
                break;
            case '<':
                memcpy(p_encoded, LXW_LT, sizeof(LXW_LT) - 1);
                p_encoded += sizeof(LXW_LT) - 1;
                break;
            case '>':
                memcpy(p_encoded, LXW_GT, sizeof(LXW_GT) - 1);
                p_encoded += sizeof(LXW_GT) - 1;
                break;
            default:
                *p_encoded = *data;
                p_encoded++;
                break;
        }
        data++;
    }

    return encoded;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xc4c0
leaq (%rax,%rax,4), %rdi
incq %rdi
pushq $0x1
popq %r14
movq %r14, %rsi
callq 0xc850
pushq $0x5
popq %rcx
pushq $0x4
popq %rdx
movq %rax, %rsi
movzbl (%rbx), %edi
cmpl $0x26, %edi
je 0x3c82f
cmpl $0x3c, %edi
je 0x3c827
cmpl $0x3e, %edi
je 0x3c83e
testl %edi, %edi
je 0x3c84f
movb %dil, (%rsi)
movq %r14, %rdi
jmp 0x3c847
movl $0x3b746c26, (%rsi)     # imm = 0x3B746C26
jmp 0x3c844
movb $0x3b, 0x4(%rsi)
movl $0x706d6126, (%rsi)     # imm = 0x706D6126
movq %rcx, %rdi
jmp 0x3c847
movl $0x3b746726, (%rsi)     # imm = 0x3B746726
movq %rdx, %rdi
addq %rdi, %rsi
incq %rbx
jmp 0x3c809
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/xmlwriter.c
// Function: lxw_has_control_characters
uint8_t
lxw_has_control_characters(const char *string)
{
    while (string) {
        /* 0xE0 == 0b11100000 masks values > 0x19 == 0b00011111. */
        if (!(*string & 0xE0) && *string != 0x0A && *string != 0x09)
            return LXW_TRUE;

        string++;
    }

    return LXW_FALSE;
}

// Assembly:
testq %rdi, %rdi
je 0x3c876
movb (%rdi), %al
cmpb $0x20, %al
setae %cl
addb $-0x9, %al
cmpb $0x2, %al
setb %al
orb %cl, %al
incq %rdi
testb %al, %al
jne 0x3c857
movb $0x1, %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/xmlwriter.c
// Function: lxw_new_attribute_str
struct xml_attribute *
lxw_new_attribute_str(const char *key, const char *value)
{
    struct xml_attribute *attribute = malloc(sizeof(struct xml_attribute));

    LXW_ATTRIBUTE_COPY(attribute->key, key);
    LXW_ATTRIBUTE_COPY(attribute->value, value);

    return attribute;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1048, %edi           # imm = 0x1048
callq 0xcab0
movq %rax, %r15
movl $0x81f, %edx            # imm = 0x81F
movq %rax, %rdi
movq %r14, %rsi
callq 0xc190
xorl %ebp, %ebp
movb %bpl, 0x81f(%r15)
leaq 0x820(%r15), %rdi
movl $0x81f, %edx            # imm = 0x81F
movq %rbx, %rsi
callq 0xc190
movb %bpl, 0x103f(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/xmlwriter.c
// Function: lxw_new_attribute_int
struct xml_attribute *
lxw_new_attribute_int(const char *key, uint64_t value)
{
    struct xml_attribute *attribute = malloc(sizeof(struct xml_attribute));

    LXW_ATTRIBUTE_COPY(attribute->key, key);

#if defined(_MSC_VER)
    lxw_snprintf(attribute->value, LXW_MAX_ATTRIBUTE_LENGTH, "%lld", value);
#else
    lxw_snprintf(attribute->value, LXW_MAX_ATTRIBUTE_LENGTH, "%ld",
                 (long) value);
#endif

    return attribute;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1048, %edi           # imm = 0x1048
callq 0xcab0
movq %rax, %r15
movl $0x81f, %edx            # imm = 0x81F
movq %rax, %rdi
movq %r14, %rsi
callq 0xc190
movb $0x0, 0x81f(%r15)
leaq 0x820(%r15), %rdi
leaq 0x9c79(%rip), %rdx      # 0x4671b
movl $0x820, %esi            # imm = 0x820
movq %rbx, %rcx
xorl %eax, %eax
callq 0xc5b0
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/Paxa[P]fast_excel/libxlsxwriter/src/xmlwriter.c
// Function: lxw_new_attribute_dbl
struct xml_attribute *
lxw_new_attribute_dbl(const char *key, double value)
{
    struct xml_attribute *attribute = malloc(sizeof(struct xml_attribute));

    LXW_ATTRIBUTE_COPY(attribute->key, key);
    lxw_sprintf_dbl(attribute->value, value);

    return attribute;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movsd %xmm0, (%rsp)
movq %rdi, %rbx
movl $0x1048, %edi           # imm = 0x1048
callq 0xcab0
movq %rax, %r14
movl $0x81f, %edx            # imm = 0x81F
movq %rax, %rdi
movq %rbx, %rsi
callq 0xc190
movb $0x0, 0x81f(%r14)
leaq 0x820(%r14), %rdi
leaq 0x1640(%rip), %rdx      # 0x3e139
pushq $0x20
popq %rsi
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0xc5b0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/funit.c
// Function: checked_system
static int checked_system(const char *command)
{
    int ret = system(command);

    if (ret == 127) {
        ret = -1;
        goto report_err;
    } else if (ret < 0) {
 report_err:
        fprintf(stderr, "system(): error executing '%s'\n", command);
    } // else success

    return ret;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x20f0
cmpl $0x7f, %eax
je 0x2917
testl %eax, %eax
js 0x2917
popq %rbx
retq
movq 0x96da(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x4850(%rip), %rsi      # 0x7178
movq %rbx, %rdx
xorl %eax, %eax
popq %rbx
jmp 0x2190
nop
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/build_rule.c
// Function: close_string_fragment
static void close_string_fragment(struct BRFragments *f,
                                  struct StringBuffer *sb)
{
    ensure_fragments(f);
    f->frags[f->n].type = BR_STRING;
    f->frags[f->n].frag.s = fu_strndup(sb->s, sb->len);
    f->n++;

    sb->len = 0; // re-use buffer
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x3033
movq (%r14), %rax
movq 0x8(%r14), %rcx
shlq $0x4, %rcx
andl $0x0, (%rax,%rcx)
movq (%rbx), %rdi
movq 0x10(%rbx), %rsi
callq 0x6388
movq (%r14), %rcx
movq 0x8(%r14), %rdx
shlq $0x4, %rdx
movq %rax, 0x8(%rcx,%rdx)
incq 0x8(%r14)
andq $0x0, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/build_rule.c
// Function: make_build_command
void make_build_command(struct StringBuffer *sb,
                        const struct TestFile *tf,
                        const struct Config *conf)
{
    struct BRFragments *f = (struct BRFragments *)conf->build_fragments;
    struct BRFragment *frags = f->frags;

    for (size_t i = 0; i < f->n; i++) {
        switch (frags[i].type) {
        case BR_STRING:
            sb_add_str(sb, frags[i].frag.s);
            break;
        case BR_IVAR:
            (frags[i].frag.expandcb)(sb, tf, conf);
            break;
        }
    }
    sb_add_char(sb, '\0');
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x8(%rdx), %r12
movq (%r12), %r13
addq $0x8, %r13
xorl %ebp, %ebp
cmpq 0x8(%r12), %rbp
jae 0x2c68
movl -0x8(%r13), %eax
cmpl $0x1, %eax
je 0x2c52
testl %eax, %eax
jne 0x2c5f
movq (%r13), %rsi
movq %r14, %rdi
callq 0x65dc
jmp 0x2c5f
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq *(%r13)
incq %rbp
addq $0x10, %r13
jmp 0x2c30
movq %r14, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x657f
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/build_rule.c
// Function: free_build_fragments
void free_build_fragments(void *p)
{
    struct BRFragments *f = (struct BRFragments *)p;

    for (size_t i = 0; i < f->n; i++) {
        if (f->frags[i].type == BR_STRING) {
            free(f->frags[i].frag.s);
        }
    }

    free(f->frags);

    free(f);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x8
popq %r14
xorl %r15d, %r15d
movq (%rbx), %rdi
cmpq 0x8(%rbx), %r15
jae 0x2cb2
cmpl $0x0, -0x8(%rdi,%r14)
jne 0x2ca9
movq (%rdi,%r14), %rdi
callq 0x2040
incq %r15
addq $0x10, %r14
jmp 0x2c8f
callq 0x2040
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/build_rule.c
// Function: expand_deps
static void expand_deps(struct StringBuffer *sb,
                        const struct TestFile *tf,
                        const struct Config *conf)
{
    // count deps and allocate array to keep track of already appended deps
    size_t n_deps = 0;
    struct TestSet *set = tf->sets;
    while (set) {
        n_deps += set->n_deps;
        set = set->next;
    }

    if (n_deps == 0) return; // nothing to add? done!

    char **deps = NEWA(char *, n_deps);

    n_deps = 0; // haven't added any deps yet
    for (set = tf->sets; set; set = set->next) {
        for (struct TestDependency *dep = set->deps; dep; dep = dep->next) {
            if (!have_thing(deps, n_deps, dep->filename)) {
                deps[n_deps++] = dep->filename;
                sb_add_nstr(sb, dep->filename, dep->len);
                sb_add_char(sb, ' ');
            }
        }
    }
    sb->len--; // remove trailing space

    free(deps);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
addq $0x10, %r14
xorl %edi, %edi
movq %r14, %rax
movq (%rax), %rax
testq %rax, %rax
je 0x2d11
addq 0x38(%rax), %rdi
jmp 0x2d03
testq %rdi, %rdi
je 0x2d8d
shlq $0x3, %rdi
callq 0x21c0
movq %rax, %r15
xorl %r12d, %r12d
movq (%r14), %r14
testq %r14, %r14
je 0x2d73
leaq 0x8(%r14), %rbp
movq (%rbp), %rbp
testq %rbp, %rbp
je 0x2d25
movq 0x8(%rbp), %r13
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2f24
testl %eax, %eax
jne 0x2d31
movq %r13, (%r15,%r12,8)
incq %r12
movq 0x10(%rbp), %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x65aa
movq %rbx, %rdi
pushq $0x20
popq %rsi
callq 0x657f
jmp 0x2d31
decq 0x10(%rbx)
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/build_rule.c
// Function: expand_prereqs
static void expand_prereqs(struct StringBuffer *sb,
                           const struct TestFile *tf,
                           const struct Config *conf)
{
    expand_src_f(sb, tf, conf);
    sb_add_char(sb, ' ');
    expand_deps(sb, tf, conf);
    sb_add_char(sb, ' ');
    expand_mods_f(sb, tf, conf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x2efe
pushq $0x20
popq %rbp
movq %r15, %rdi
movl %ebp, %esi
callq 0x657f
movq %r15, %rdi
movq %r14, %rsi
callq 0x2ce9
movq %r15, %rdi
movl %ebp, %esi
callq 0x657f
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2dac
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/build_rule.c
// Function: expand_sets
static void expand_sets(struct StringBuffer *sb,
                        const struct TestFile *tf,
                        const struct Config *conf)
{
    struct TestSet *set = tf->sets;
    while (set) {
        sb_add_nstr(sb, set->name, set->namelen);
        sb_add_char(sb, ' ');
        set = set->next;
    }
    sb->len--; // remove trailing space
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
addq $0x10, %r14
pushq $0x20
popq %rbp
movq (%r14), %r14
testq %r14, %r14
je 0x2e6a
movq 0x50(%r14), %rsi
movq 0x58(%r14), %rdx
movq %rbx, %rdi
callq 0x65aa
movq %rbx, %rdi
movl %ebp, %esi
callq 0x657f
jmp 0x2e46
decq 0x10(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/build_rule.c
// Function: expand_src
static void expand_src(struct StringBuffer *sb,
                       const struct TestFile *tf,
                       const struct Config *conf)
{
    size_t srclen = len_without_ext(tf->path, conf->template_ext,
                                    conf->template_ext_len,
                                    "test file", "template");
    sb_add_nstr(sb, tf->path, srclen);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %rbx
movq (%rsi), %r14
movq 0x18(%rdx), %r13
movq 0x30(%rdx), %rbp
movq %r14, %rdi
callq 0x20d0
movq %rax, %r15
leaq (%r14,%rax), %rdi
subq %rbp, %rdi
movq %r13, %rsi
callq 0x2180
testl %eax, %eax
jne 0x2ecc
subq %rbp, %r15
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x65aa
movq 0x9125(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x46d3(%rip), %rsi      # 0x75b0
leaq 0x46b9(%rip), %rdx      # 0x759d
leaq 0x46bc(%rip), %r8       # 0x75a7
movq %r14, %rcx
movq %r13, %r9
xorl %eax, %eax
callq 0x2190
movq (%r12), %r14
jmp 0x2eb0
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/build_rule.c
// Function: have_thing
static int have_thing(char **things, size_t n_things, const char *thing)
{
    for (size_t i = 0; i < n_things; i++) {
        if (!strcmp(things[i], thing)) {
            return TRUE;
        }
    }
    return FALSE;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
xorl %ecx, %ecx
movq %rcx, %r12
cmpq %rcx, %rbx
je 0x2f54
movq (%r15,%r12,8), %rdi
movq %r14, %rsi
callq 0x2180
leaq 0x1(%r12), %rcx
testl %eax, %eax
jne 0x2f37
xorl %eax, %eax
cmpq %rbx, %r12
setb %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/build_rule.c
// Function: expand_mods_with
static void expand_mods_with(struct StringBuffer *sb,
                             const struct TestFile *tf,
                             const char *ext)
{
    // count modules and allocate array to keep track of already appended mods
    size_t n_mods = 0;
    struct TestSet *set = tf->sets;
    while (set) {
        n_mods += set->n_mods;
        set = set->next;
    }

    if (n_mods == 0) return; // no modules - done!

    char **mods = NEWA(char *, n_mods);

    n_mods = 0; // haven't added any modules yet
    for (set = tf->sets; set != NULL; set = set->next) {
        for (struct TestModule *mod = set->mods; mod!=NULL; mod = mod->next) {
            if (!have_thing(mods, n_mods, mod->name)) {
                mods[n_mods++] = mod->name;
                sb_add_nstr(sb, mod->name, mod->len);
                if (ext) sb_add_str(sb, ext);
                sb_add_char(sb, ' ');
            }
        }
    }
    sb->len--; // remove trailing space

    free(mods);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
addq $0x10, %r15
xorl %edi, %edi
movq %r15, %rax
movq (%rax), %rax
testq %rax, %rax
je 0x2f90
addq 0x40(%rax), %rdi
jmp 0x2f82
testq %rdi, %rdi
je 0x3024
movq %rdx, (%rsp)
shlq $0x3, %rdi
callq 0x21c0
movq %rax, %r12
xorl %r13d, %r13d
movq (%r15), %r15
testq %r15, %r15
je 0x300a
leaq 0x10(%r15), %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x2fac
movq 0x8(%rbx), %rbp
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x2f24
testl %eax, %eax
jne 0x2fb8
movq %rbp, (%r12,%r13,8)
movq 0x18(%rbx), %rdx
movq %r14, %rdi
movq %rbp, %rsi
callq 0x65aa
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x2ffa
movq %r14, %rdi
callq 0x65dc
incq %r13
movq %r14, %rdi
pushq $0x20
popq %rsi
callq 0x657f
jmp 0x2fb8
decq 0x10(%r14)
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/build_rule.c
// Function: ensure_fragments
static void ensure_fragments(struct BRFragments *f)
{
    if (f->cap >= f->n + 1) return;

    f->cap += 2; // probably okay to grow slowly
    f->frags = realloc(f->frags, f->cap * sizeof(struct BRFragment));
    if (!f->frags) abort(); // XXX or handle allocation better?
}

// Assembly:
pushq %rbx
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rsi
incq %rax
cmpq %rax, %rsi
jae 0x3063
movq %rdi, %rbx
addq $0x2, %rsi
movq %rsi, 0x10(%rdi)
movq (%rdi), %rdi
shlq $0x4, %rsi
callq 0x21e0
movq %rax, (%rbx)
testq %rax, %rax
je 0x3065
popq %rbx
retq
callq 0x2050
nop
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/config.c
// Function: free_config
void free_config(struct Config *conf)
{
    assert(conf != NULL);

    free(conf->build);
    free_build_fragments(conf->build_fragments);
    free(conf->fortran_ext);
    free(conf->template_ext);
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x35e7
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2040
movq 0x8(%rbx), %rdi
callq 0x2c80
movq 0x10(%rbx), %rdi
callq 0x2040
movq 0x18(%rbx), %rdi
popq %rbx
jmp 0x2040
leaq 0x401c(%rip), %rdi      # 0x760a
leaq 0x4022(%rip), %rsi      # 0x7617
leaq 0x4024(%rip), %rcx      # 0x7620
movl $0x11b, %edx            # imm = 0x11B
callq 0x2120
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/config.c
// Function: try_open_file
static int try_open_file(const char *path, struct ParseState *ps)
{
    struct stat statbuf;
    if (stat(path, &statbuf)) {
        if (errno == ENOENT) {
            return -1;
        } else {
            fprintf(stderr, "error stat()ing '%s': %s\n",
                    path, strerror(errno));
            abort();
        }
    }
    if (statbuf.st_size <= 0) {
        return -1;
    }

    return open_file_for_parsing(path, ps);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rsi
callq 0x21a0
testl %eax, %eax
je 0x363e
callq 0x2060
movl (%rax), %edi
cmpl $0x2, %edi
jne 0x365b
pushq $-0x1
popq %rax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
cmpq $0x0, 0x38(%rsp)
jle 0x3630
movq %rbx, %rdi
movq %r14, %rsi
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0x4de3
movq 0x8996(%rip), %rax      # 0xbff8
movq (%rax), %r14
callq 0x2260
leaq 0x4054(%rip), %rsi      # 0x76c5
movq %r14, %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2190
callq 0x2050
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/config.c
// Function: key_end_finder
static void key_end_finder(struct ParseState *ps)
{
    while (ps->next_pos < ps->next_line_pos) {
        char c = *ps->next_pos;
        if (c < 'A' || (c > 'Z' && c < 'a' &&  c != '_') || c > 'z')
            return;
        ps->next_pos++;
    }
}

// Assembly:
movq 0x30(%rdi), %rax
movq 0x40(%rdi), %rcx
cmpq %rax, %rcx
jae 0x36bf
movb (%rcx), %dl
cmpb $0x41, %dl
jl 0x36bf
leal -0x5b(%rdx), %esi
cmpb $0x6, %sil
setb %sil
cmpb $0x5f, %dl
setne %r8b
cmpb $0x7a, %dl
ja 0x36bf
andb %sil, %r8b
jne 0x36bf
incq %rcx
movq %rcx, 0x40(%rdi)
jmp 0x368e
retq
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/config.c
// Function: value_end_finder
static void value_end_finder(struct ParseState *ps)
{
    while (ps->next_pos < ps->next_line_pos) {
        switch (*ps->next_pos) {
        case ' ':
        case '\t':
        case '#':
        case '\r':
        case '\n':
            return;
        }
        ps->next_pos++;
    }
}

// Assembly:
movq 0x30(%rdi), %rax
movq 0x40(%rdi), %rcx
movabsq $0x900002600, %rdx      # imm = 0x900002600
cmpq %rax, %rcx
jae 0x36ef
movzbl (%rcx), %esi
cmpq $0x23, %rsi
ja 0x36e6
btq %rsi, %rdx
jb 0x36ef
incq %rcx
movq %rcx, 0x40(%rdi)
jmp 0x36d2
retq
// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/generate_code.c
// Function: generate_code_file
int generate_code_file(struct TestSet *set, FILE *file_out)
{
    // set file-wide out file pointer
    fout = file_out;

    // XXX look for this file and emit it if not present
    fputs(module_code, fout);

    int set_i = 0;
    if (generate_set(set, &set_i))
        return -1;
    set_i = 0;
    generate_main(set, &set_i);

    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, 0xaaf2(%rip)      # 0xe1f0
leaq 0x414b(%rip), %rdi      # 0x7850
callq 0x2130
leaq 0x4(%rsp), %rsi
andl $0x0, (%rsi)
movq %rbx, %rdi
callq 0x37a6
testl %eax, %eax
je 0x3723
pushq $-0x1
popq %rax
jmp 0x379e
leaq 0x4(%rsp), %r14
andl $0x0, (%r14)
movq 0xaabd(%rip), %rsi      # 0xe1f0
leaq 0x52e9(%rip), %rdi      # 0x8a23
callq 0x2130
movq 0xaaaa(%rip), %rsi      # 0xe1f0
leaq 0x52e6(%rip), %rdi      # 0x8a33
callq 0x2130
movq 0xaa97(%rip), %rsi      # 0xe1f0
leaq 0x52e1(%rip), %rdi      # 0x8a41
callq 0x2130
movq %rbx, %rdi
movq %r14, %rsi
callq 0x49f7
movq 0xaa79(%rip), %rsi      # 0xe1f0
leaq 0x52d7(%rip), %rdi      # 0x8a55
callq 0x2130
movq 0xaa66(%rip), %rcx      # 0xe1f0
leaq 0x52da(%rip), %rdi      # 0x8a6b
pushq $0x11
popq %rsi
pushq $0x1
popq %rdx
callq 0x2250
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq