LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x3e5ad
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rax
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
leaq 0x2f15(%rip), %rdi      # 0x4144c
testq %rsi, %rsi
je 0x3e543
callq 0xc030
jmp 0x3e548
callq 0xcc80
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
leaq 0x8(%rsp), %r14
movq 0x8(%r14), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r14)
movq (%rbx), %rdi
leaq 0xa720(%rip), %rsi      # 0x48c94
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x3e5a6
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x3e59a
movq %r14, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x3e57f
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %rax
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
addb $-0x2, %dl
cmpb $0x4, %dl
ja 0x3e619
movzbl %dl, %eax
leaq 0x8405(%rip), %rcx      # 0x469e0
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
leaq 0xa6c4(%rip), %rdi      # 0x48cad
movsd %xmm0, 0x10(%rsp)
callq 0xc030
movsd 0x10(%rsp), %xmm0
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rsp)
leaq 0x2e2c(%rip), %rdi      # 0x4144c
testq %r14, %r14
je 0x3e62f
movq %r14, %rsi
callq 0xc030
jmp 0x3e634
callq 0xcc80
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq %rsp, %r14
movq 0x8(%r14), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%r14)
movq (%rbx), %rdi
leaq 0xa699(%rip), %rsi      # 0x48cf7
movq %r14, %rdx
callq 0xcc00
movq (%r14), %rdi
testq %rdi, %rdi
je 0x3e68e
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3e683
movq %r14, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x3e669
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 %rbx
subq $0x18, %rsp
movl %ecx, %ebp
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x8(%rsp), %rax
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
leal -0x1(%r15), %eax
cmpb $0x5, %al
ja 0x3e6fc
movzbl %al, %eax
leaq 0x186eb(%rip), %rcx     # 0x56db8
movq (%rcx,%rax,8), %rsi
leaq 0x3e88(%rip), %rdi      # 0x42560
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
testb %bpl, %bpl
je 0x3e710
cmpb $0x1, %r15b
je 0x3e73e
movzbl %r15b, %eax
cmpl $0x6, %eax
je 0x3e73e
leaq 0x2d35(%rip), %rdi      # 0x4144c
movq %r14, %rsi
callq 0xc030
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%rbx), %rdi
leaq 0xaec5(%rip), %rsi      # 0x4960d
leaq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3e77f
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x3e773
movq %rbx, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x3e758
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x8(%rsp), %rax
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
leal -0x1(%r14), %eax
cmpb $0x5, %al
ja 0x3e7f7
movzbl %al, %eax
leaq 0x185fc(%rip), %rcx     # 0x56db8
movq (%rcx,%rax,8), %rsi
leaq 0x3d99(%rip), %rdi      # 0x42560
movsd %xmm0, 0x18(%rsp)
callq 0xc030
movsd 0x18(%rsp), %xmm0
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
testb %bpl, %bpl
je 0x3e80b
cmpb $0x1, %r14b
je 0x3e836
movzbl %r14b, %eax
cmpl $0x6, %eax
je 0x3e836
leaq 0x2c3a(%rip), %rdi      # 0x4144c
callq 0xcc80
leaq 0x1040(%rax), %rcx
movq $0x0, 0x1040(%rax)
movq 0x10(%rsp), %rdx
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
movq (%rbx), %rdi
leaq 0xadcd(%rip), %rsi      # 0x4960d
leaq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3e877
movq 0x1040(%rdi), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
jne 0x3e86b
movq %rbx, 0x10(%rsp)
callq 0xc0c0
movq 0x8(%rsp), %rdi
jmp 0x3e850
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, %ecx
movq %rdi, %r14
andl $0xffffff, %ecx         # imm = 0xFFFFFF
leaq 0x4b2c(%rip), %rdx      # 0x433c9
xorl %r12d, %r12d
leaq 0x10(%rsp), %r15
movl $0x20, %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0xc570
movq %rsp, %rbx
movq %r12, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x4b0b(%rip), %rdi      # 0x433d0
movq %r15, %rsi
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r12, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x6b90(%rip), %rsi      # 0x45480
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3e920
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3e915
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x3e8fb
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r15
movq %rdi, %r14
movups 0xad88(%rip), %xmm0     # 0x496ce
leaq 0x10(%rsp), %rsi
movups %xmm0, 0x2e(%rsi)
movaps 0xad6a(%rip), %xmm0     # 0x496c0
movaps %xmm0, 0x20(%rsi)
movaps 0xad4f(%rip), %xmm0     # 0x496b0
movaps %xmm0, 0x10(%rsi)
movaps 0xad34(%rip), %xmm0     # 0x496a0
movaps %xmm0, (%rsi)
xorl %r12d, %r12d
movq %rsp, %rbx
movq %r12, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0xa7f9(%rip), %rdi      # 0x4917c
callq 0xc030
movl $0x1040, %r13d          # imm = 0x1040
leaq (%rax,%r13), %rcx
movq %r12, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0x3e4b(%rip), %rdi      # 0x427f6
movq %r15, %rsi
callq 0xc030
addq %rax, %r13
movq %r12, 0x1040(%rax)
movq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %r13, 0x8(%rbx)
movq (%r14), %rdi
leaq 0x3df9(%rip), %rsi      # 0x427cb
movq %rbx, %rdx
callq 0xc350
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3ea02
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3e9f7
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x3e9dd
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rdi, %r14
xorl %r15d, %r15d
movq %rsp, %rbx
movq %r15, (%rbx)
movq %rbx, 0x8(%rbx)
movl %esi, %esi
leaq 0xa742(%rip), %rdi      # 0x49179
callq 0xc180
movl $0x1040, %r12d          # imm = 0x1040
leaq (%rax,%r12), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movl %ebp, %esi
leaq 0x2a77(%rip), %rdi      # 0x414d8
callq 0xc180
leaq (%rax,%r12), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xa90f(%rip), %rdi      # 0x49392
leaq 0x6cbe(%rip), %rsi      # 0x45748
callq 0xc030
addq %rax, %r12
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %r12, 0x8(%rbx)
movq (%r14), %rdi
leaq 0xa8e8(%rip), %rsi      # 0x49396
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3eade
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3ead3
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x3eab9
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %r14
xorl %r12d, %r12d
movq %rsp, %rbx
movq %r12, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0xab08(%rip), %rdi      # 0x4961a
movq %rdx, %rsi
callq 0xc030
movl $0x1040, %r13d          # imm = 0x1040
leaq (%rax,%r13), %rcx
movq %r12, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0x6c0b(%rip), %rsi      # 0x45748
movq %r15, %rdi
callq 0xc030
addq %rax, %r13
movq %r12, 0x1040(%rax)
movq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %r13, 0x8(%rbx)
movq (%r14), %rdi
leaq 0xa8d0(%rip), %rsi      # 0x49434
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3eb94
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3eb89
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x3eb6f
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movl %edx, %ecx
movq %rsi, %r14
movq %rdi, %r15
andl $0xffffff, %ecx         # imm = 0xFFFFFF
leaq 0x4687(%rip), %rdx      # 0x433c9
xorl %r13d, %r13d
leaq 0x10(%rsp), %r12
movl $0x20, %esi
movq %r12, %rdi
xorl %eax, %eax
callq 0xc570
movq %rsp, %rbx
movq %r13, (%rbx)
movq %rbx, 0x8(%rbx)
leaq 0x4666(%rip), %rdi      # 0x433d0
movq %r12, %rsi
callq 0xc030
leaq 0x1040(%rax), %rcx
movq %r13, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
movq (%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3edc1
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3edb6
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x3ed9c
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3ee14
testq %rax, %rax
je 0x3ee0e
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x3d9b7
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3ee14
movq %r15, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2fd13
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3f4b2
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rsi), %r14
testq %r14, %r14
je 0x3f4a4
movq %rdi, %rbx
leaq 0xa392(%rip), %r15      # 0x4972f
leaq 0xa390(%rip), %r12      # 0x49734
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0xc870
leaq 0x820(%r14), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0xcb10
testq %rax, %rax
je 0x3f480
movl $0x30c0, %edi           # imm = 0x30C0
movl $0x1, %esi
callq 0xc7f0
movq %rax, %r13
movb (%rbp), %cl
movzbl %cl, %edx
cmpl $0x25, %edx
jle 0x3f407
cmpl $0x3e, %edx
je 0x3f424
cmpl $0x3c, %edx
je 0x3f42c
cmpl $0x26, %edx
jne 0x3f44e
movb $0x3b, 0x4(%rax)
movl $0x706d6126, (%rax)     # imm = 0x706D6126
jmp 0x3f443
cmpl $0xa, %edx
je 0x3f439
cmpl $0x22, %edx
jne 0x3f44a
movw $0x3b74, 0x4(%rax)      # imm = 0x3B74
movl $0x6f757126, (%rax)     # imm = 0x6F757126
movl $0x6, %ecx
jmp 0x3f455
movl $0x3b746726, (%rax)     # imm = 0x3B746726
jmp 0x3f432
movl $0x3b746c26, (%rax)     # imm = 0x3B746C26
movl $0x4, %ecx
jmp 0x3f455
movb $0x3b, 0x4(%rax)
movl $0x41782326, (%rax)     # imm = 0x41782326
movl $0x5, %ecx
jmp 0x3f455
testl %edx, %edx
je 0x3f45d
movb %cl, (%rax)
movl $0x1, %ecx
addq %rcx, %rax
incq %rbp
jmp 0x3f3e1
testq %r13, %r13
je 0x3f494
movq %rbx, %rdi
leaq 0x9953(%rip), %rsi      # 0x48dbf
movq %r13, %rdx
xorl %eax, %eax
callq 0xc870
movq %r13, %rdi
callq 0xc0c0
jmp 0x3f494
movq %rbx, %rdi
leaq 0x9935(%rip), %rsi      # 0x48dbf
movq %rbp, %rdx
xorl %eax, %eax
callq 0xc870
movq 0x1040(%r14), %r14
testq %r14, %r14
jne 0x3f3a4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xa230(%rip), %rsi      # 0x496f8
xorl %eax, %eax
callq 0xc870
testq %r14, %r14
je 0x3f506
movq (%r14), %r14
testq %r14, %r14
je 0x3f506
leaq 0xa219(%rip), %r15      # 0x496fc
leaq 0x820(%r14), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0xc870
movq 0x1040(%r14), %r14
testq %r14, %r14
jne 0x3f4e3
movl $0x3e, %edi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xc710
// File: /workspace/github_c_makefile_star2_O3/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 0xa0fd(%rip), %rsi      # 0x496f8
movq %rbx, %rdx
xorl %eax, %eax
callq 0xc870
movq %r14, %rdi
movq %r12, %rsi
callq 0x3f373
movl $0x3e, %edi
movq %r14, %rsi
callq 0xc710
leaq 0xa123(%rip), %rsi      # 0x49747
movq %r15, %rdi
callq 0xcb10
movq %r15, %rdi
testq %rax, %rax
je 0x3f656
callq 0xc530
testq %rax, %rax
je 0x3f65e
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0xc600
movq %r15, %rdi
callq 0xc0c0
jmp 0x3f65e
movq %r14, %rsi
callq 0xc600
leaq 0xa0a0(%rip), %rsi      # 0x49705
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xc870
// File: /workspace/github_c_makefile_star2_O3/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 %rbx
movq %rdi, %rbx
callq 0xc480
leaq (%rax,%rax,4), %rdi
incq %rdi
movl $0x1, %esi
callq 0xc7f0
movq %rax, %rcx
movb (%rbx), %dl
movzbl %dl, %esi
cmpl $0x3b, %esi
jle 0x3f6c7
cmpl $0x3c, %esi
je 0x3f6dd
cmpl $0x3e, %esi
jne 0x3f6ee
movl $0x3b746726, (%rcx)     # imm = 0x3B746726
jmp 0x3f6e3
cmpl $0x26, %esi
jne 0x3f6ea
movb $0x3b, 0x4(%rcx)
movl $0x706d6126, (%rcx)     # imm = 0x706D6126
movl $0x5, %edx
jmp 0x3f6f5
movl $0x3b746c26, (%rcx)     # imm = 0x3B746C26
movl $0x4, %edx
jmp 0x3f6f5
testl %esi, %esi
je 0x3f6fd
movb %dl, (%rcx)
movl $0x1, %edx
addq %rdx, %rcx
incq %rbx
jmp 0x3f6ab
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3f71e
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 0x3f704
movb $0x1, %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xca50
movq %rax, %r15
movl $0x81f, %edx            # imm = 0x81F
movq %rax, %rdi
movq %r14, %rsi
callq 0xc170
movb $0x0, 0x81f(%r15)
leaq 0x820(%r15), %rdi
leaq 0x9dd0(%rip), %rdx      # 0x4972b
movl $0x820, %esi            # imm = 0x820
movq %rbx, %rcx
xorl %eax, %eax
callq 0xc570
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xca50
movq %rax, %r14
movl $0x81f, %edx            # imm = 0x81F
movq %rax, %rdi
movq %rbx, %rsi
callq 0xc170
movb $0x0, 0x81f(%r14)
leaq 0x820(%r14), %rdi
leaq 0x1787(%rip), %rdx      # 0x41139
movl $0x20, %esi
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0xc570
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x2c41
testl %eax, %eax
js 0x2c41
popq %rbx
retq
movq 0x93b0(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x4526(%rip), %rsi      # 0x7178
movq %rbx, %rdx
xorl %eax, %eax
popq %rbx
jmp 0x2190
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/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 0x341f
movq (%r14), %rax
movq 0x8(%r14), %rcx
shlq $0x4, %rcx
movl $0x0, (%rax,%rcx)
movq (%rbx), %rdi
movq 0x10(%rbx), %rsi
callq 0x6900
movq (%r14), %rcx
movq 0x8(%r14), %rdx
shlq $0x4, %rdx
movq %rax, 0x8(%rcx,%rdx)
incq 0x8(%r14)
movq $0x0, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 %rdi, %r14
movq 0x8(%rdx), %r12
cmpq $0x0, 0x8(%r12)
je 0x2ff5
movq %rdx, %rbx
movq %rsi, %r15
movq (%r12), %r13
addq $0x8, %r13
xorl %ebp, %ebp
movl -0x8(%r13), %eax
cmpl $0x1, %eax
je 0x2fda
testl %eax, %eax
jne 0x2fe7
movq (%r13), %rsi
movq %r14, %rdi
callq 0x6b64
jmp 0x2fe7
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq *(%r13)
incq %rbp
addq $0x10, %r13
cmpq 0x8(%r12), %rbp
jb 0x2fbf
movq %r14, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6b05
// File: /workspace/github_c_makefile_star2_O3/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
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x304b
movl $0x8, %r14d
xorl %r15d, %r15d
movq (%rbx), %rcx
cmpl $0x0, -0x8(%rcx,%r14)
jne 0x303f
movq (%rcx,%r14), %rdi
callq 0x2040
movq 0x8(%rbx), %rax
incq %r15
addq $0x10, %r14
cmpq %rax, %r15
jb 0x3027
movq (%rbx), %rdi
callq 0x2040
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O3/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 0x10(%rsi), %r15
testq %r15, %r15
je 0x314c
movq %rdi, %rbx
xorl %edi, %edi
movq %r15, %rax
addq 0x38(%rax), %rdi
movq (%rax), %rax
testq %rax, %rax
jne 0x3080
testq %rdi, %rdi
je 0x314c
shlq $0x3, %rdi
callq 0x21c0
movq %rax, %r14
testq %r15, %r15
je 0x3132
xorl %r13d, %r13d
movq %r15, (%rsp)
movq 0x8(%r15), %rbp
testq %rbp, %rbp
je 0x3122
movq 0x8(%rbp), %r15
testq %r13, %r13
je 0x30f9
movq (%r14), %rdi
movq %r15, %rsi
callq 0x2180
testl %eax, %eax
je 0x311c
movl $0x1, %ecx
movq %rcx, %r12
cmpq %rcx, %r13
je 0x30f4
movq (%r14,%r12,8), %rdi
movq %r15, %rsi
callq 0x2180
leaq 0x1(%r12), %rcx
testl %eax, %eax
jne 0x30d7
cmpq %r13, %r12
jb 0x311c
movq %r15, (%r14,%r13,8)
incq %r13
movq 0x10(%rbp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6b32
movq %rbx, %rdi
movl $0x20, %esi
callq 0x6b05
movq (%rbp), %rbp
jmp 0x30b5
movq (%rsp), %r15
movq (%r15), %r15
testq %r15, %r15
jne 0x30ad
decq 0x10(%rbx)
movq %r14, %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_O3/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 %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
callq 0x3244
movq 0x10(%r14), %rsi
movq 0x28(%r14), %rdx
movq %r15, %rdi
callq 0x6b32
movq %r15, %rdi
movl $0x20, %esi
callq 0x6b05
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3060
movq %r15, %rdi
movl $0x20, %esi
callq 0x6b05
movq 0x10(%r14), %rdx
movq %r15, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x32f5
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rsi), %r14
testq %r14, %r14
je 0x3238
movq 0x50(%r14), %rsi
movq 0x58(%r14), %rdx
movq %rbx, %rdi
callq 0x6b32
movq %rbx, %rdi
movl $0x20, %esi
callq 0x6b05
movq (%r14), %r14
jmp 0x3211
decq 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x329d
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 0x6b32
movq 0x8d54(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x4302(%rip), %rsi      # 0x75b0
leaq 0x42e8(%rip), %rdx      # 0x759d
leaq 0x42eb(%rip), %r8       # 0x75a7
movq %r14, %rcx
movq %r13, %r9
xorl %eax, %eax
callq 0x2190
movq (%r12), %r14
jmp 0x3281
// File: /workspace/github_c_makefile_star2_O3/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
subq $0x18, %rsp
movq 0x10(%rsi), %r12
testq %r12, %r12
je 0x3410
movq %rdx, %rbx
movq %rdi, %r14
xorl %edi, %edi
movq %r12, %rax
addq 0x40(%rax), %rdi
movq (%rax), %rax
testq %rax, %rax
jne 0x331b
testq %rdi, %rdi
je 0x3410
shlq $0x3, %rdi
callq 0x21c0
movq %rax, %r15
testq %r12, %r12
je 0x33f6
xorl %ebp, %ebp
movq %r14, 0x10(%rsp)
movq %r12, 0x8(%rsp)
movq 0x10(%r12), %r13
testq %r13, %r13
je 0x33e4
movq 0x8(%r13), %r12
testq %rbp, %rbp
je 0x33a8
movq (%r15), %rdi
movq %r12, %rsi
callq 0x2180
testl %eax, %eax
je 0x33db
movq %rbx, %r14
movl $0x1, %ecx
movq %rcx, %rbx
cmpq %rcx, %rbp
je 0x339b
movq (%r15,%rbx,8), %rdi
movq %r12, %rsi
callq 0x2180
leaq 0x1(%rbx), %rcx
testl %eax, %eax
jne 0x337f
cmpq %rbp, %rbx
movq %r14, %rbx
movq 0x10(%rsp), %r14
jb 0x33db
movq %r12, (%r15,%rbp,8)
movq 0x18(%r13), %rdx
movq %r14, %rdi
movq %r12, %rsi
callq 0x6b32
testq %rbx, %rbx
je 0x33cb
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6b64
incq %rbp
movq %r14, %rdi
movl $0x20, %esi
callq 0x6b05
movq (%r13), %r13
jmp 0x3356
movq 0x8(%rsp), %r12
movq (%r12), %r12
testq %r12, %r12
jne 0x334c
decq 0x10(%r14)
movq %r15, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x344f
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 0x3451
popq %rbx
retq
callq 0x2050
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x39dc
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2040
movq 0x8(%rbx), %rdi
callq 0x300d
movq 0x10(%rbx), %rdi
callq 0x2040
movq 0x18(%rbx), %rdi
popq %rbx
jmp 0x2040
leaq 0x3c27(%rip), %rdi      # 0x760a
leaq 0x3c2d(%rip), %rsi      # 0x7617
leaq 0x3c2f(%rip), %rcx      # 0x7620
movl $0x11b, %edx            # imm = 0x11B
callq 0x2120
// File: /workspace/github_c_makefile_star2_O3/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 0x3a35
callq 0x2060
movl (%rax), %edi
cmpl $0x2, %edi
jne 0x3a52
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x98, %rsp
popq %rbx
popq %r14
retq
cmpq $0x0, 0x38(%rsp)
jle 0x3a25
movq %rbx, %rdi
movq %r14, %rsi
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0x529e
movq %rbx, %rsi
callq 0x242c
// File: /workspace/github_c_makefile_star2_O3/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 0x3a96
movb (%rcx), %dl
cmpb $0x41, %dl
jl 0x3a96
leal -0x5b(%rdx), %esi
cmpb $0x6, %sil
setb %sil
cmpb $0x5f, %dl
setne %r8b
cmpb $0x7a, %dl
ja 0x3a96
andb %sil, %r8b
jne 0x3a96
incq %rcx
movq %rcx, 0x40(%rdi)
cmpq %rax, %rcx
jne 0x3a67
retq
// File: /workspace/github_c_makefile_star2_O3/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
cmpq %rax, %rcx
jae 0x3ac9
movabsq $0x900002600, %rdx      # imm = 0x900002600
movzbl (%rcx), %esi
cmpq $0x23, %rsi
ja 0x3abd
btq %rsi, %rdx
jb 0x3ac9
incq %rcx
movq %rcx, 0x40(%rdi)
cmpq %rax, %rcx
jne 0x3aae
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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, 0xa716(%rip)      # 0xe1f0
leaq 0x3d6f(%rip), %rdi      # 0x7850
callq 0x2130
leaq 0x4(%rsp), %rsi
movl $0x0, (%rsi)
movq %rbx, %rdi
callq 0x3b92
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x3b8a
leaq 0x4(%rsp), %r14
movl $0x0, (%r14)
movq 0xa6d5(%rip), %rsi      # 0xe1f0
leaq 0x4f01(%rip), %rdi      # 0x8a23
callq 0x2130
movq 0xa6c2(%rip), %rsi      # 0xe1f0
leaq 0x4efe(%rip), %rdi      # 0x8a33
callq 0x2130
movq 0xa6af(%rip), %rsi      # 0xe1f0
leaq 0x4ef9(%rip), %rdi      # 0x8a41
callq 0x2130
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4e8c
movq 0xa691(%rip), %rsi      # 0xe1f0
leaq 0x4eef(%rip), %rdi      # 0x8a55
callq 0x2130
movq 0xa67e(%rip), %rcx      # 0xe1f0
leaq 0x4ef2(%rip), %rdi      # 0x8a6b
movl $0x11, %esi
movl $0x1, %edx
callq 0x2250
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/ieyasu[P]funit/generate_code.c
// Function: generate_set
static int generate_set(struct TestSet *set, int *set_i)
{
    int test_i;

    if (set->next)
        generate_set(set->next, set_i);

    (*set_i)++;
    fprintf(fout, "subroutine funit_set%i\n", *set_i);
    fputs("  use funit\n", fout);
    
    if (set->mods)
        print_use(set->mods);
    
    fputs("\n", fout);
    fputs("  implicit none\n\n", fout);
    fputs("  character*1024 :: funit_message_\n", fout);
    fputs("  logical :: funit_passed_\n\n", fout);
    
    if (set->code)
        generate_code(set->code, set->tolerance);

    if (set->tests) {
        size_t max_name = max_test_name_width(set->tests);
        test_i = 0;
        generate_test_call(set, set->tests, &test_i, max_name);
    }
    
    fputs("contains\n\n", fout);
    
    if (set->setup)
        generate_support(set, "setup");
    if (set->teardown)
        generate_support(set, "teardown");
    if (set->tests) {
        test_i = 0;
        if (generate_test(set->tests, &test_i, set->tolerance))
            return -1;
    }

    fprintf(fout, "end subroutine funit_set%i\n", *set_i);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x3bb0
movq %rbx, %rsi
callq 0x3b92
movl (%rbx), %edx
incl %edx
movl %edx, (%rbx)
movq 0xa633(%rip), %rdi      # 0xe1f0
leaq 0x4588(%rip), %rsi      # 0x814c
xorl %eax, %eax
callq 0x2190
movq 0xa61e(%rip), %rsi      # 0xe1f0
leaq 0x4507(%rip), %rdi      # 0x80e0
callq 0x2130
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x3bec
callq 0x3d18
movq 0xa5fd(%rip), %rsi      # 0xe1f0
leaq 0x4f26(%rip), %rdi      # 0x8b20
callq 0x2130
movq 0xa5ea(%rip), %rsi      # 0xe1f0
leaq 0x4d52(%rip), %rdi      # 0x895f
callq 0x2130
movq 0xa5d7(%rip), %rsi      # 0xe1f0
leaq 0x44cd(%rip), %rdi      # 0x80ed
callq 0x2130
movq 0xa5c4(%rip), %rsi      # 0xe1f0
leaq 0x44de(%rip), %rdi      # 0x8111
callq 0x2130
movq 0x30(%r14), %rdi
testq %rdi, %rdi
je 0x3c4c
movsd 0x60(%r14), %xmm0
callq 0x3d87
movq 0x28(%r14), %rsi
testq %rsi, %rsi
je 0x3c8d
xorl %ecx, %ecx
xorl %eax, %eax
movq %rsi, %rdx
movq 0x10(%rdx), %rdi
cmpq %rax, %rdi
cmovaq %rdi, %rcx
cmovaq %rdi, %rax
movq (%rdx), %rdi
movq %rdi, %rdx
testq %rdi, %rdi
jne 0x3c5c
addq $0x2, %rcx
leaq 0xc(%rsp), %rdx
movl $0x0, (%rdx)
movq %r14, %rdi
callq 0x47bb
movq 0xa55c(%rip), %rsi      # 0xe1f0
leaq 0x4493(%rip), %rdi      # 0x812e
callq 0x2130
cmpq $0x0, 0x18(%r14)
je 0x3cb6
leaq 0x448b(%rip), %rsi      # 0x8139
movq %r14, %rdi
callq 0x48ae
cmpq $0x0, 0x20(%r14)
je 0x3ccc
leaq 0x447b(%rip), %rsi      # 0x813f
movq %r14, %rdi
callq 0x48ae
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0x3cf4
leaq 0xc(%rsp), %rsi
movl $0x0, (%rsi)
movsd 0x60(%r14), %xmm0
callq 0x48fe
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x3d0d
movq 0xa4f5(%rip), %rdi      # 0xe1f0
movl (%rbx), %edx
leaq 0x4444(%rip), %rsi      # 0x8148
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x2190
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ieyasu[P]funit/generate_code.c
// Function: print_use
static void print_use(struct TestModule *mod)
{
    if (mod->next)
        print_use(mod->next);

    fputs("  use ", fout);
    fwrite(mod->name, mod->len, 1, fout);
    if (mod->elen > 0) {
        fwrite(mod->extra, mod->elen, 1, fout);
    }
    fputs("\n", fout);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x3d29
callq 0x3d18
movq 0xa4c0(%rip), %rsi      # 0xe1f0
leaq 0x442d(%rip), %rdi      # 0x8164
callq 0x2130
movq 0x8(%rbx), %rdi
movq 0x18(%rbx), %rsi
movq 0xa4a5(%rip), %rcx      # 0xe1f0
movl $0x1, %edx
callq 0x2250
movq 0x20(%rbx), %rsi
testq %rsi, %rsi
je 0x3d73
movq 0x10(%rbx), %rdi
movq 0xa487(%rip), %rcx      # 0xe1f0
movl $0x1, %edx
callq 0x2250
movq 0xa476(%rip), %rsi      # 0xe1f0
leaq 0x4d9f(%rip), %rdi      # 0x8b20
popq %rbx
jmp 0x2130
// File: /workspace/github_c_makefile_star2_O3/ieyasu[P]funit/generate_code.c
// Function: generate_test_call
static void generate_test_call(struct TestSet *set,
                               struct TestCase *test, int *test_i,
                               size_t max_name)
{
    if (test->next)
        generate_test_call(set, test->next, test_i, max_name);

    *test_i += 1;

    fputs("\n", fout);
    if (set->setup)
        fprintf(fout, "  call funit_setup\n");
    fprintf(fout, "  call funit_test%i(funit_passed_, funit_message_)\n",
            *test_i);
    fputs("  call pass_fail(funit_passed_, funit_message_, \"", fout);
    fwrite(test->name, test->namelen, 1, fout);
    fprintf(fout, "\", %u)\n", (unsigned int)max_name);
    if (set->teardown)
        fputs("  call funit_teardown\n\n", fout);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %rsi
testq %rsi, %rsi
je 0x47e5
movq %rbx, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x47bb
incl (%r12)
movq 0x9a00(%rip), %rsi      # 0xe1f0
leaq 0x4329(%rip), %rdi      # 0x8b20
callq 0x2130
cmpq $0x0, 0x18(%rbx)
je 0x4820
movq 0x99e6(%rip), %rcx      # 0xe1f0
leaq 0x4045(%rip), %rdi      # 0x8856
movl $0x13, %esi
movl $0x1, %edx
callq 0x2250
movq 0x99c9(%rip), %rdi      # 0xe1f0
movl (%r12), %edx
leaq 0x4038(%rip), %rsi      # 0x886a
xorl %eax, %eax
callq 0x2190
movq 0x99b0(%rip), %rsi      # 0xe1f0
leaq 0x4057(%rip), %rdi      # 0x889e
callq 0x2130
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rsi
movq 0x9995(%rip), %rcx      # 0xe1f0
movl $0x1, %edx
callq 0x2250
movq 0x9984(%rip), %rdi      # 0xe1f0
leaq 0x405d(%rip), %rsi      # 0x88d0
movl %r14d, %edx
xorl %eax, %eax
callq 0x2190
cmpq $0x0, 0x20(%rbx)
je 0x48a2
movq 0x9965(%rip), %rsi      # 0xe1f0
leaq 0x4046(%rip), %rdi      # 0x88d8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2130
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq