LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0xa899(%rip), %rdi      # 0x49090
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 0x2cbf(%rip), %rdi      # 0x414e0
callq 0xc180
leaq (%rax,%r12), %rcx
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rdx
movq %rax, (%rdx)
movq %rcx, 0x8(%rbx)
leaq 0xaa66(%rip), %rdi      # 0x492a9
leaq 0x6eee(%rip), %rsi      # 0x45738
callq 0xc030
addq %rax, %r12
movq %r15, 0x1040(%rax)
movq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %r12, 0x8(%rbx)
movq (%r14), %rdi
leaq 0xaa3f(%rip), %rsi      # 0x492ad
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3e89e
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3e893
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x3e879
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xac5f(%rip), %rdi      # 0x49531
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 0x6e3b(%rip), %rsi      # 0x45738
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 0xaa27(%rip), %rsi      # 0x4934b
movq %rbx, %rdx
callq 0xcc00
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3e954
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3e949
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x3e92f
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x48b7(%rip), %rdx      # 0x433b9
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 0x4896(%rip), %rdi      # 0x433c0
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 0x3eb81
movq 0x1040(%rdi), %rax
movq %rax, (%rsp)
testq %rax, %rax
jne 0x3eb76
movq %rbx, 0x8(%rsp)
callq 0xc0c0
movq (%rsp), %rdi
jmp 0x3eb5c
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3ebd4
testq %rax, %rax
je 0x3ebce
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x3d7f6
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3ebd4
movq %r15, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2fbaa
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3f26e
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rsi), %r14
testq %r14, %r14
je 0x3f260
movq %rdi, %rbx
leaq 0xa4f6(%rip), %r15      # 0x4964f
leaq 0xa4f4(%rip), %r12      # 0x49654
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 0x3f23c
movl $0x30c0, %edi           # imm = 0x30C0
movl $0x1, %esi
callq 0xc7f0
movq %rax, %r13
movb (%rbp), %cl
movzbl %cl, %edx
cmpl $0x25, %edx
jle 0x3f1c3
cmpl $0x3e, %edx
je 0x3f1e0
cmpl $0x3c, %edx
je 0x3f1e8
cmpl $0x26, %edx
jne 0x3f20a
movb $0x3b, 0x4(%rax)
movl $0x706d6126, (%rax)     # imm = 0x706D6126
jmp 0x3f1ff
cmpl $0xa, %edx
je 0x3f1f5
cmpl $0x22, %edx
jne 0x3f206
movw $0x3b74, 0x4(%rax)      # imm = 0x3B74
movl $0x6f757126, (%rax)     # imm = 0x6F757126
movl $0x6, %ecx
jmp 0x3f211
movl $0x3b746726, (%rax)     # imm = 0x3B746726
jmp 0x3f1ee
movl $0x3b746c26, (%rax)     # imm = 0x3B746C26
movl $0x4, %ecx
jmp 0x3f211
movb $0x3b, 0x4(%rax)
movl $0x41782326, (%rax)     # imm = 0x41782326
movl $0x5, %ecx
jmp 0x3f211
testl %edx, %edx
je 0x3f219
movb %cl, (%rax)
movl $0x1, %ecx
addq %rcx, %rax
incq %rbp
jmp 0x3f19d
testq %r13, %r13
je 0x3f250
movq %rbx, %rdi
leaq 0x9aae(%rip), %rsi      # 0x48cd6
movq %r13, %rdx
xorl %eax, %eax
callq 0xc870
movq %r13, %rdi
callq 0xc0c0
jmp 0x3f250
movq %rbx, %rdi
leaq 0x9a90(%rip), %rsi      # 0x48cd6
movq %rbp, %rdx
xorl %eax, %eax
callq 0xc870
movq 0x1040(%r14), %r14
testq %r14, %r14
jne 0x3f160
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xa394(%rip), %rsi      # 0x49618
xorl %eax, %eax
callq 0xc870
testq %r14, %r14
je 0x3f2c2
movq (%r14), %r14
testq %r14, %r14
je 0x3f2c2
leaq 0xa37d(%rip), %r15      # 0x4961c
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 0x3f29f
movl $0x3e, %edi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xc710
// File: /workspace/github_c_makefile_star2_O1/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 0xa261(%rip), %rsi      # 0x49618
movq %rbx, %rdx
xorl %eax, %eax
callq 0xc870
movq %r14, %rdi
movq %r12, %rsi
callq 0x3f12f
movl $0x3e, %edi
movq %r14, %rsi
callq 0xc710
leaq 0xa287(%rip), %rsi      # 0x49667
movq %r15, %rdi
callq 0xcb10
movq %r15, %rdi
testq %rax, %rax
je 0x3f412
callq 0xc530
testq %rax, %rax
je 0x3f41a
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0xc600
movq %r15, %rdi
callq 0xc0c0
jmp 0x3f41a
movq %r14, %rsi
callq 0xc600
leaq 0xa204(%rip), %rsi      # 0x49625
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_O1/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 0x3f483
cmpl $0x3c, %esi
je 0x3f499
cmpl $0x3e, %esi
jne 0x3f4aa
movl $0x3b746726, (%rcx)     # imm = 0x3B746726
jmp 0x3f49f
cmpl $0x26, %esi
jne 0x3f4a6
movb $0x3b, 0x4(%rcx)
movl $0x706d6126, (%rcx)     # imm = 0x706D6126
movl $0x5, %edx
jmp 0x3f4b1
movl $0x3b746c26, (%rcx)     # imm = 0x3B746C26
movl $0x4, %edx
jmp 0x3f4b1
testl %esi, %esi
je 0x3f4b9
movb %dl, (%rcx)
movl $0x1, %edx
addq %rdx, %rcx
incq %rbx
jmp 0x3f467
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3f4da
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 0x3f4c0
movb $0x1, %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/Paxa[P]fast_excel/libxlsxwriter/src/xmlwriter.c
// Function: lxw_escape_url_characters
char *
lxw_escape_url_characters(const char *string, uint8_t escape_hash)
{

    size_t escape_len = sizeof("%XX") - 1;
    size_t encoded_len = (strlen(string) * escape_len + 1);

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

    while (*string) {
        switch (*string) {
            case ' ':
            case '"':
            case '<':
            case '>':
            case '[':
            case ']':
            case '`':
            case '^':
            case '{':
            case '}':
                lxw_snprintf(p_encoded, escape_len + 1, "%%%2x", *string);
                p_encoded += escape_len;
                break;
            case '#':
                /* This is only escaped for "external:" style links. */
                if (escape_hash) {
                    lxw_snprintf(p_encoded, escape_len + 1, "%%%2x", *string);
                    p_encoded += escape_len;
                }
                else {
                    *p_encoded = *string;
                    p_encoded++;
                }
                break;
            case '%':
                /* Only escape % if it isn't already an escape. */
                if (!isxdigit(*(string + 1)) || !isxdigit(*(string + 2))) {
                    lxw_snprintf(p_encoded, escape_len + 1, "%%%2x", *string);
                    p_encoded += escape_len;
                }
                else {
                    *p_encoded = *string;
                    p_encoded++;
                }
                break;
            default:
                *p_encoded = *string;
                p_encoded++;
                break;
        }
        string++;
    }

    return encoded;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, 0xc(%rsp)
movq %rdi, %r14
callq 0xc480
leaq (%rax,%rax,2), %rdi
incq %rdi
movl $0x1, %esi
callq 0xc7f0
movq %rax, %r13
addq $0x2, %r14
leaq 0xa060(%rip), %r15      # 0x49600
leaq 0xa09e(%rip), %r12      # 0x49645
movq %rax, 0x10(%rsp)
movb -0x2(%r14), %bl
movsbl %bl, %ebp
movzbl %bpl, %eax
cmpl $0x3d, %eax
jle 0x3f5da
addl $-0x3e, %eax
cmpl $0x3f, %eax
ja 0x3f652
movabsq $-0x5ffffffa5fffffff, %rcx # imm = 0xA0000005A0000001
btq %rax, %rcx
jb 0x3f62e
jmp 0x3f652
leal -0x20(%rax), %ecx
cmpl $0x5, %ecx
ja 0x3f604
movslq (%r15,%rcx,4), %rax
addq %r15, %rax
jmpq *%rax
cmpb $0x0, 0xc(%rsp)
je 0x3f652
movl $0x4, %esi
movq %r13, %rdi
movq %r12, %rdx
movl $0x23, %ecx
jmp 0x3f63b
cmpl $0x3c, %eax
je 0x3f62e
testl %eax, %eax
jne 0x3f652
jmp 0x3f65d
callq 0xd0f0
movq (%rax), %rax
movsbq -0x1(%r14), %rcx
testb $0x10, 0x1(%rax,%rcx,2)
je 0x3f62e
movsbq (%r14), %rcx
testb $0x10, 0x1(%rax,%rcx,2)
jne 0x3f652
movl $0x4, %esi
movq %r13, %rdi
movq %r12, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0xc570
movl $0x3, %eax
addq %rax, %r13
incq %r14
jmp 0x3f5ac
movb %bl, (%r13)
movl $0x1, %eax
jmp 0x3f647
movq 0x10(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xca50
movq %rax, %r15
movl $0x81f, %edx            # imm = 0x81F
movq %rax, %rdi
movq %r14, %rsi
callq 0xc170
xorl %ebp, %ebp
movb %bpl, 0x81f(%r15)
leaq 0x820(%r15), %rdi
movl $0x81f, %edx            # imm = 0x81F
movq %rbx, %rsi
callq 0xc170
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_O1/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 0x9f40(%rip), %rdx      # 0x4964b
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_O1/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 0x19df(%rip), %rdx      # 0x41141
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_O1/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 0x2cd3
testl %eax, %eax
js 0x2cd3
popq %rbx
retq
movq 0x931e(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x4494(%rip), %rsi      # 0x7178
movq %rbx, %rdx
xorl %eax, %eax
popq %rbx
jmp 0x2190
nop
// File: /workspace/github_c_makefile_star2_O1/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 0x34fa
movq (%r14), %rax
movq 0x8(%r14), %rcx
shlq $0x4, %rcx
movl $0x0, (%rax,%rcx)
movq (%rbx), %rdi
movq 0x10(%rbx), %rsi
callq 0x6bac
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_O1/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 0x30d9
movq %rdx, %rbx
movq %rsi, %r15
movq (%r12), %r13
addq $0x8, %r13
xorl %ebp, %ebp
movl -0x8(%r13), %eax
cmpl $0x1, %eax
je 0x30be
testl %eax, %eax
jne 0x30cb
movq (%r13), %rsi
movq %r14, %rdi
callq 0x6e16
jmp 0x30cb
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq *(%r13)
incq %rbp
addq $0x10, %r13
cmpq 0x8(%r12), %rbp
jb 0x30a3
movq %r14, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6db7
// File: /workspace/github_c_makefile_star2_O1/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
cmpq $0x0, 0x8(%rdi)
je 0x312a
movl $0x8, %r14d
xorl %r15d, %r15d
movq (%rbx), %rax
cmpl $0x0, -0x8(%rax,%r14)
jne 0x311d
movq (%rax,%r14), %rdi
callq 0x2040
incq %r15
addq $0x10, %r14
cmpq 0x8(%rbx), %r15
jb 0x3109
movq (%rbx), %rdi
callq 0x2040
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O1/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, %r15
movq %rdi, %rbx
movq 0x10(%rsi), %rax
xorl %edi, %edi
testq %rax, %rax
je 0x3164
addq 0x38(%rax), %rdi
movq (%rax), %rax
jmp 0x3156
testq %rdi, %rdi
je 0x3233
shlq $0x3, %rdi
callq 0x21c0
movq %rax, %r14
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x3219
xorl %r13d, %r13d
movq %rax, (%rsp)
movq 0x8(%rax), %rbp
testq %rbp, %rbp
je 0x3209
movq 0x8(%rbp), %r15
testq %r13, %r13
setne %r12b
je 0x31db
movq (%r14), %rdi
movq %r15, %rsi
callq 0x2180
testl %eax, %eax
je 0x31db
movl $0x1, %ecx
movq %rcx, %r12
cmpq %rcx, %r13
je 0x31d4
movq (%r14,%r12,8), %rdi
movq %r15, %rsi
callq 0x2180
leaq 0x1(%r12), %rcx
testl %eax, %eax
jne 0x31b7
cmpq %r13, %r12
setb %r12b
testb %r12b, %r12b
jne 0x3203
movq %r15, (%r14,%r13,8)
incq %r13
movq 0x10(%rbp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6de4
movq %rbx, %rdi
movl $0x20, %esi
callq 0x6db7
movq (%rbp), %rbp
jmp 0x3191
movq (%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
jne 0x3189
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_O1/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 0x332b
movq 0x10(%r14), %rsi
movq 0x28(%r14), %rdx
movq %r15, %rdi
callq 0x6de4
movq %r15, %rdi
movl $0x20, %esi
callq 0x6db7
movq %r15, %rdi
movq %rbx, %rsi
callq 0x313f
movq %r15, %rdi
movl $0x20, %esi
callq 0x6db7
movq 0x10(%r14), %rdx
movq %r15, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x33d8
// File: /workspace/github_c_makefile_star2_O1/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 0x331f
movq 0x50(%r14), %rsi
movq 0x58(%r14), %rdx
movq %rbx, %rdi
callq 0x6de4
movq %rbx, %rdi
movl $0x20, %esi
callq 0x6db7
movq (%r14), %r14
jmp 0x32f8
decq 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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, %r14
movq %rdi, %rbx
movq (%rsi), %r13
movq 0x18(%rdx), %r12
movq 0x30(%rdx), %rbp
movq %r13, %rdi
callq 0x20d0
movq %rax, %r15
leaq (%rax,%r13), %rdi
subq %rbp, %rdi
movq %r12, %rsi
callq 0x2180
testl %eax, %eax
jne 0x3384
subq %rbp, %r15
movq (%r14), %rsi
movq %rbx, %rdi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6de4
movq 0x8c6d(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x4302(%rip), %rsi      # 0x7697
leaq 0x42e8(%rip), %rdx      # 0x7684
leaq 0x42eb(%rip), %r8       # 0x768e
movq %r13, %rcx
movq %r12, %r9
xorl %eax, %eax
callq 0x2190
jmp 0x3368
// File: /workspace/github_c_makefile_star2_O1/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 %rsi, %r12
movq %rdi, %r14
movq 0x10(%rsi), %rax
xorl %edi, %edi
testq %rax, %rax
je 0x3400
addq 0x40(%rax), %rdi
movq (%rax), %rax
jmp 0x33f2
testq %rdi, %rdi
je 0x34eb
movq %rdx, 0x10(%rsp)
shlq $0x3, %rdi
callq 0x21c0
movq %rax, %r15
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x34d1
xorl %ebp, %ebp
movq %rax, 0x8(%rsp)
movq 0x10(%rax), %r13
testq %r13, %r13
je 0x34c0
movq 0x8(%r13), %r12
testq %rbp, %rbp
setne %bl
je 0x347e
movq (%r15), %rdi
movq %r12, %rsi
callq 0x2180
testl %eax, %eax
je 0x347e
movl $0x1, %ecx
movq %rcx, %rbx
cmpq %rcx, %rbp
je 0x3478
movq (%r15,%rbx,8), %rdi
movq %r12, %rsi
callq 0x2180
leaq 0x1(%rbx), %rcx
testl %eax, %eax
jne 0x345c
cmpq %rbp, %rbx
setb %bl
testb %bl, %bl
jne 0x34b7
movq %r12, (%r15,%rbp,8)
movq 0x18(%r13), %rdx
movq %r14, %rdi
movq %r12, %rsi
callq 0x6de4
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x34a7
movq %r14, %rdi
callq 0x6e16
incq %rbp
movq %r14, %rdi
movl $0x20, %esi
callq 0x6db7
movq (%r13), %r13
jmp 0x3433
movq 0x8(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
jne 0x342a
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_O1/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 0x352a
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 0x352c
popq %rbx
retq
callq 0x2050
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/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 0x3aa1
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2040
movq 0x8(%rbx), %rdi
callq 0x30f1
movq 0x10(%rbx), %rdi
callq 0x2040
movq 0x18(%rbx), %rdi
popq %rbx
jmp 0x2040
leaq 0x3c49(%rip), %rdi      # 0x76f1
leaq 0x3c4f(%rip), %rsi      # 0x76fe
leaq 0x3c51(%rip), %rcx      # 0x7707
movl $0x11b, %edx            # imm = 0x11B
callq 0x2120
// File: /workspace/github_c_makefile_star2_O1/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 0x3afa
callq 0x2060
movl (%rax), %edi
cmpl $0x2, %edi
jne 0x3b17
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x98, %rsp
popq %rbx
popq %r14
retq
cmpq $0x0, 0x38(%rsp)
jle 0x3aea
movq %rbx, %rdi
movq %r14, %rsi
addq $0x98, %rsp
popq %rbx
popq %r14
jmp 0x537e
movq %rbx, %rsi
callq 0x242c
// File: /workspace/github_c_makefile_star2_O1/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 0x3b5b
movb (%rcx), %dl
cmpb $0x41, %dl
jl 0x3b5b
leal -0x5b(%rdx), %esi
cmpb $0x6, %sil
setb %sil
cmpb $0x5f, %dl
setne %r8b
cmpb $0x7a, %dl
ja 0x3b5b
andb %sil, %r8b
jne 0x3b5b
incq %rcx
movq %rcx, 0x40(%rdi)
cmpq %rax, %rcx
jne 0x3b2c
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3b8e
movabsq $0x900002600, %rdx      # imm = 0x900002600
movzbl (%rcx), %esi
cmpq $0x23, %rsi
ja 0x3b82
btq %rsi, %rdx
jb 0x3b8e
incq %rcx
movq %rcx, 0x40(%rdi)
cmpq %rax, %rcx
jne 0x3b73
retq
nop
// File: /workspace/github_c_makefile_star2_O1/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, 0xa652(%rip)      # 0xe1f0
leaq 0x3d9b(%rip), %rdi      # 0x7940
callq 0x2130
leaq 0x4(%rsp), %rsi
movl $0x0, (%rsi)
movq %rbx, %rdi
callq 0x3c56
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x3c4e
leaq 0x4(%rsp), %r14
movl $0x0, (%r14)
movq 0xa611(%rip), %rsi      # 0xe1f0
leaq 0x4f2d(%rip), %rdi      # 0x8b13
callq 0x2130
movq 0xa5fe(%rip), %rsi      # 0xe1f0
leaq 0x4f2a(%rip), %rdi      # 0x8b23
callq 0x2130
movq 0xa5eb(%rip), %rsi      # 0xe1f0
leaq 0x4f25(%rip), %rdi      # 0x8b31
callq 0x2130
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4f86
movq 0xa5cd(%rip), %rsi      # 0xe1f0
leaq 0x4f1b(%rip), %rdi      # 0x8b45
callq 0x2130
movq 0xa5ba(%rip), %rcx      # 0xe1f0
leaq 0x4f1e(%rip), %rdi      # 0x8b5b
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_O1/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 %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x3c76
movq %rbx, %rsi
callq 0x3c56
movl (%rbx), %edx
incl %edx
movl %edx, (%rbx)
movq 0xa56d(%rip), %rdi      # 0xe1f0
leaq 0x45b2(%rip), %rsi      # 0x823c
xorl %eax, %eax
callq 0x2190
movq 0xa558(%rip), %rsi      # 0xe1f0
leaq 0x4531(%rip), %rdi      # 0x81d0
callq 0x2130
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x3cb2
callq 0x3dda
movq 0xa537(%rip), %rsi      # 0xe1f0
leaq 0x4f50(%rip), %rdi      # 0x8c10
callq 0x2130
movq 0xa524(%rip), %rsi      # 0xe1f0
leaq 0x4d7c(%rip), %rdi      # 0x8a4f
callq 0x2130
movq 0xa511(%rip), %rsi      # 0xe1f0
leaq 0x44f7(%rip), %rdi      # 0x81dd
callq 0x2130
movq 0xa4fe(%rip), %rsi      # 0xe1f0
leaq 0x4508(%rip), %rdi      # 0x8201
callq 0x2130
movq 0x30(%r14), %rdi
testq %rdi, %rdi
je 0x3d12
movsd 0x60(%r14), %xmm0
callq 0x3e49
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0x3d4d
leaq 0x10(%rsp), %r15
movq $0x0, (%r15)
movq %r15, %rsi
callq 0x4f71
movq (%r15), %rcx
addq $0x2, %rcx
leaq 0xc(%rsp), %rdx
movl $0x0, (%rdx)
movq 0x28(%r14), %rsi
movq %r14, %rdi
callq 0x489b
movq 0xa49c(%rip), %rsi      # 0xe1f0
leaq 0x44c3(%rip), %rdi      # 0x821e
callq 0x2130
cmpq $0x0, 0x18(%r14)
je 0x3d76
leaq 0x44bb(%rip), %rsi      # 0x8229
movq %r14, %rdi
callq 0x498e
cmpq $0x0, 0x20(%r14)
je 0x3d8c
leaq 0x44ab(%rip), %rsi      # 0x822f
movq %r14, %rdi
callq 0x498e
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0x3db4
leaq 0xc(%rsp), %rsi
movl $0x0, (%rsi)
movsd 0x60(%r14), %xmm0
callq 0x49de
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x3dcd
movq 0xa435(%rip), %rdi      # 0xe1f0
movl (%rbx), %edx
leaq 0x4474(%rip), %rsi      # 0x8238
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x2190
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3deb
callq 0x3dda
movq 0xa3fe(%rip), %rsi      # 0xe1f0
leaq 0x445b(%rip), %rdi      # 0x8254
callq 0x2130
movq 0x8(%rbx), %rdi
movq 0x18(%rbx), %rsi
movq 0xa3e3(%rip), %rcx      # 0xe1f0
movl $0x1, %edx
callq 0x2250
movq 0x20(%rbx), %rsi
testq %rsi, %rsi
je 0x3e35
movq 0x10(%rbx), %rdi
movq 0xa3c5(%rip), %rcx      # 0xe1f0
movl $0x1, %edx
callq 0x2250
movq 0xa3b4(%rip), %rsi      # 0xe1f0
leaq 0x4dcd(%rip), %rdi      # 0x8c10
popq %rbx
jmp 0x2130
// File: /workspace/github_c_makefile_star2_O1/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 0x48c5
movq %rbx, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x489b
incl (%r12)
movq 0x9920(%rip), %rsi      # 0xe1f0
leaq 0x4339(%rip), %rdi      # 0x8c10
callq 0x2130
cmpq $0x0, 0x18(%rbx)
je 0x4900
movq 0x9906(%rip), %rcx      # 0xe1f0
leaq 0x4055(%rip), %rdi      # 0x8946
movl $0x13, %esi
movl $0x1, %edx
callq 0x2250
movq 0x98e9(%rip), %rdi      # 0xe1f0
movl (%r12), %edx
leaq 0x4048(%rip), %rsi      # 0x895a
xorl %eax, %eax
callq 0x2190
movq 0x98d0(%rip), %rsi      # 0xe1f0
leaq 0x4067(%rip), %rdi      # 0x898e
callq 0x2130
movq 0x8(%r15), %rdi
movq 0x10(%r15), %rsi
movq 0x98b5(%rip), %rcx      # 0xe1f0
movl $0x1, %edx
callq 0x2250
movq 0x98a4(%rip), %rdi      # 0xe1f0
leaq 0x406d(%rip), %rsi      # 0x89c0
movl %r14d, %edx
xorl %eax, %eax
callq 0x2190
cmpq $0x0, 0x20(%rbx)
je 0x4982
movq 0x9885(%rip), %rsi      # 0xe1f0
leaq 0x4056(%rip), %rdi      # 0x89c8
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
// File: /workspace/github_c_makefile_star2_O1/ieyasu[P]funit/generate_code.c
// Function: generate_test
static int generate_test(struct TestCase *test, int *test_i, double tolerance)
{
    if (test->next)
        generate_test(test->next, test_i, tolerance);

    *test_i += 1;
    fprintf(fout, "  subroutine funit_test%i(funit_passed_, funit_message_)\n",
            *test_i);
    fputs("    implicit none\n\n", fout);
    fputs("    logical, intent(out) :: funit_passed_\n", fout);
    fputs("    character(*), intent(out) :: funit_message_\n", fout);
    if (test->need_array_iterator)
        fputs("    integer :: funit_i_\n", fout);
    fputs("\n", fout);

    if (test->code) {
        if (generate_code(test->code, tolerance))
            return -1;
    }

    fputs("\n    funit_passed_ = .true.\n", fout);
    fprintf(fout, "  end subroutine funit_test%i\n\n", *test_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
movsd %xmm0, 0x8(%rsp)
je 0x4a08
movq %rbx, %rsi
movsd 0x8(%rsp), %xmm0
callq 0x49de
movl (%rbx), %edx
incl %edx
movl %edx, (%rbx)
movq 0x97db(%rip), %rdi      # 0xe1f0
leaq 0x3ff7(%rip), %rsi      # 0x8a13
xorl %eax, %eax
callq 0x2190
movq 0x97c6(%rip), %rsi      # 0xe1f0
leaq 0x401c(%rip), %rdi      # 0x8a4d
callq 0x2130
movq 0x97b3(%rip), %rsi      # 0xe1f0
leaq 0x401d(%rip), %rdi      # 0x8a61
callq 0x2130
movq 0x97a0(%rip), %rsi      # 0xe1f0
leaq 0x4035(%rip), %rdi      # 0x8a8c
callq 0x2130
cmpl $0x0, 0x18(%r14)
je 0x4a76
movq 0x9786(%rip), %rsi      # 0xe1f0
leaq 0x404c(%rip), %rdi      # 0x8abd
callq 0x2130
movq 0x9773(%rip), %rsi      # 0xe1f0
leaq 0x418c(%rip), %rdi      # 0x8c10
callq 0x2130
movq 0x20(%r14), %rdi
testq %rdi, %rdi
je 0x4aa6
movsd 0x8(%rsp), %xmm0
callq 0x3e49
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x4ad2
movq 0x9743(%rip), %rsi      # 0xe1f0
leaq 0x4022(%rip), %rdi      # 0x8ad6
callq 0x2130
movq 0x9730(%rip), %rdi      # 0xe1f0
movl (%rbx), %edx
leaq 0x402a(%rip), %rsi      # 0x8af3
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_O1/ieyasu[P]funit/generate_code.c
// Function: check_assert_args2
static int check_assert_args2(const char *macro_name, struct Code *macro,
                              struct Code *args, int min_args, int max_args)
{
    long lineno;
    int n;

    assert(min_args > 0 && min_args <= max_args);

    if (!args) {
        fprintf(stderr, "near %s:%li: no arguments to %s()\n",
                test_set_file_name, macro->lineno, macro_name);
        return -1;
    }
    n = 0;
    while (args) {
        lineno = args->lineno;
        n++;
        if (n > max_args)
            goto badargs;
        args = args->next;
    }
    if (n < min_args)
        goto badargs;
    return n;
 badargs:
    if (min_args == max_args) {
        fprintf(stderr, "near %s:%li: expected %i argument%s to %s()\n",
                test_set_file_name, lineno, max_args,
                (max_args > 1) ? "s" : "", macro_name);
    } else {
        assert(min_args + 1 == max_args);
        fprintf(stderr, "near %s:%li: expected %i or %i arguments to %s()\n",
                test_set_file_name, lineno, min_args, max_args, macro_name);
    }
    return -1;
}

// Assembly:
pushq %rax
movl %r8d, %r11d
cmpl %r8d, %ecx
jg 0x4ddd
movq %rdi, %r8
testq %rdx, %rdx
je 0x4d7c
movl %ecx, %r10d
xorl %eax, %eax
testl %r11d, %r11d
movl $0x0, %esi
cmovgl %r11d, %esi
movq %rdx, %rcx
cmpl %eax, %esi
je 0x4d35
incl %eax
movq (%rcx), %rdx
testq %rdx, %rdx
jne 0x4d1d
cmpl %r10d, %eax
jl 0x4d35
popq %rcx
retq
movq 0x10(%rcx), %rcx
cmpl %r11d, %r10d
jne 0x4da1
movq 0x72b3(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq 0x94a9(%rip), %rdx      # 0xe1f8
cmpl $0x2, %r11d
leaq 0x42f0(%rip), %rax      # 0x904a
leaq 0x3eb0(%rip), %r9       # 0x8c11
cmovgeq %rax, %r9
movq %r8, (%rsp)
leaq 0x363e(%rip), %rsi      # 0x83ae
movl %r11d, %r8d
xorl %eax, %eax
callq 0x2190
jmp 0x4dd3
movq 0x7275(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq 0x946b(%rip), %rdx      # 0xe1f8
movq 0x10(%rsi), %rcx
leaq 0x35f3(%rip), %rsi      # 0x838b
xorl %eax, %eax
callq 0x2190
jmp 0x4dd3
leal 0x1(%r10), %eax
cmpl %r11d, %eax
jne 0x4dfc
movq 0x7247(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq 0x943d(%rip), %rdx      # 0xe1f8
movq %r8, (%rsp)
leaq 0x362e(%rip), %rsi      # 0x83f4
movl %r10d, %r8d
movl %r11d, %r9d
xorl %eax, %eax
callq 0x2190
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x4d33
leaq 0x3535(%rip), %rdi      # 0x8319
leaq 0x34a0(%rip), %rsi      # 0x828b
leaq 0x354c(%rip), %rcx      # 0x833e
movl $0x12, %edx
callq 0x2120
leaq 0x35d8(%rip), %rdi      # 0x83db
leaq 0x3481(%rip), %rsi      # 0x828b
leaq 0x352d(%rip), %rcx      # 0x833e
movl $0x2a, %edx
callq 0x2120
// File: /workspace/github_c_makefile_star2_O1/ieyasu[P]funit/generate_code.c
// Function: print_array_size_check
static void print_array_size_check(struct Code *a, struct Code *b)
{
    fputs("    if (size(", fout);
    PRINT_CODE(a);
    fputs(") /= size(", fout);
    PRINT_CODE(b);
    fputs(")) then\n", fout);
    fputs("      write(funit_message_,*) \"'",fout);
    print_macro_arg(a);
    fputs("' and '", fout);
    print_macro_arg(b);
    fputs("' &\n        &are not the same length:\", size(", fout);
    PRINT_CODE(a);
    fputs("), \"vs.\", size(", fout);
    PRINT_CODE(b);
    fputs(")\n", fout);
    fputs("      funit_passed_ = .false.\n", fout);
    fputs("      return\n", fout);
    fputs("    end if\n", fout);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x93c4(%rip), %rsi      # 0xe1f0
leaq 0x399b(%rip), %rdi      # 0x87ce
callq 0x2130
movq 0x18(%r14), %rdi
movq 0x20(%r14), %rsi
movq 0x93a9(%rip), %rcx      # 0xe1f0
movl $0x1, %edx
callq 0x2250
movq 0x9398(%rip), %rsi      # 0xe1f0
leaq 0x397d(%rip), %rdi      # 0x87dc
callq 0x2130
movq 0x18(%rbx), %rdi
movq 0x20(%rbx), %rsi
movq 0x937d(%rip), %rcx      # 0xe1f0
movl $0x1, %edx
callq 0x2250
movq 0x936c(%rip), %rsi      # 0xe1f0
leaq 0x385f(%rip), %rdi      # 0x86ea
callq 0x2130
movq 0x9359(%rip), %rsi      # 0xe1f0
leaq 0x3442(%rip), %rdi      # 0x82e0
callq 0x2130
movq %r14, %rdi
callq 0x4add
movq 0x933e(%rip), %rsi      # 0xe1f0
leaq 0x392e(%rip), %rdi      # 0x87e7
callq 0x2130
movq %rbx, %rdi
callq 0x4add
movq 0x9323(%rip), %rsi      # 0xe1f0
leaq 0x391b(%rip), %rdi      # 0x87ef
callq 0x2130
movq 0x18(%r14), %rdi
movq 0x20(%r14), %rsi
movq 0x9308(%rip), %rcx      # 0xe1f0
movl $0x1, %edx
callq 0x2250
movq 0x92f7(%rip), %rsi      # 0xe1f0
leaq 0x391d(%rip), %rdi      # 0x881d
callq 0x2130
movq 0x18(%rbx), %rdi
movq 0x20(%rbx), %rsi
movq 0x92dc(%rip), %rcx      # 0xe1f0
movl $0x1, %edx
callq 0x2250
movq 0x92cb(%rip), %rsi      # 0xe1f0
leaq 0x3c56(%rip), %rdi      # 0x8b82
callq 0x2130
movq 0x92b8(%rip), %rsi      # 0xe1f0
leaq 0x3847(%rip), %rdi      # 0x8786
callq 0x2130
movq 0x92a5(%rip), %rsi      # 0xe1f0
leaq 0x3855(%rip), %rdi      # 0x87a7
callq 0x2130
movq 0x9292(%rip), %rsi      # 0xe1f0
leaq 0x3852(%rip), %rdi      # 0x87b7
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2130
// File: /workspace/github_c_makefile_star2_O1/ieyasu[P]funit/generate_code.c
// Function: generate_set_call
static void generate_set_call(struct TestSet *set, int *set_i)
{
    if (set->next)
        generate_set_call(set->next, set_i);

    (*set_i)++;
    fputs("\n  call start_set(\"", fout);
    fwrite(set->name, set->namelen, 1, fout);
    fputs("\")\n", fout);
    fprintf(fout, "  call funit_set%i\n", *set_i);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x4fa0
movq %rbx, %rsi
callq 0x4f86
incl (%rbx)
movq 0x9247(%rip), %rsi      # 0xe1f0
leaq 0x3bbd(%rip), %rdi      # 0x8b6d
callq 0x2130
movq 0x50(%r14), %rdi
movq 0x58(%r14), %rsi
movq 0x922c(%rip), %rcx      # 0xe1f0
movl $0x1, %edx
callq 0x2250
movq 0x921b(%rip), %rsi      # 0xe1f0
leaq 0x3ba5(%rip), %rdi      # 0x8b81
callq 0x2130
movq 0x9208(%rip), %rdi      # 0xe1f0
movl (%rbx), %edx
leaq 0x3b94(%rip), %rsi      # 0x8b85
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2190
nop