LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/parse.c
// Function: parse_sym
static LakeVal *parse_sym(Ctx *ctx)
{
    LakeVal *val;
    static int size = 1024;
    char s[size];
    char c;
    int i = 0;
    while (is_sym_char(c = peek(ctx)) && i < size - 1)
    {
        s[i++] = c;
        consume1(ctx);
    }
    s[i] = '\0';
    if (strcmp(s, "#t") == 0)
    {
        val = VAL(ctx->lake_ctx->T);
    }
    else if (strcmp(s, "#f") == 0)
    {
        val = VAL(ctx->lake_ctx->F);
    }
    else
    {
        val = VAL(sym_intern(ctx->lake_ctx, s));
    }
    return val;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
movq %rdi, %rbx
xorl %r14d, %r14d
movq 0x10(%rbx), %rax
movb $-0x1, %bpl
cmpq 0x8(%rbx), %rax
jae 0x4195
movq (%rbx), %rcx
movb (%rcx,%rax), %bpl
movsbl %bpl, %edi
callq 0x44f9
testl %eax, %eax
je 0x41bc
cmpq $0x3fe, %r14            # imm = 0x3FE
ja 0x41bc
movb %bpl, (%rsp,%r14)
incq %r14
movq %rbx, %rdi
callq 0x4158
jmp 0x4181
movb $0x0, (%rsp,%r14)
movl $0x7423, %eax           # imm = 0x7423
xorl (%rsp), %eax
movzbl 0x2(%rsp), %ecx
orw %ax, %cx
je 0x41f3
movl $0x6623, %eax           # imm = 0x6623
xorl (%rsp), %eax
movzbl 0x2(%rsp), %ecx
orw %ax, %cx
movq 0x20(%rbx), %rdi
je 0x41fd
movq %rsp, %rsi
callq 0x5a24
jmp 0x4201
movq 0x20(%rbx), %rax
movq 0x18(%rax), %rax
jmp 0x4201
movq 0x20(%rdi), %rax
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/parse.c
// Function: parse_str
static LakeVal *parse_str(Ctx *ctx)
{
    size_t n = 8;
    size_t i = 0;
    char *s = malloc(n);
    char c;
    ch(ctx, '"');
    while ((c = peek(ctx)) != PARSE_EOF && c != '"')
    {
        /* handle backslash escapes */
        if (c == '\\')
        {
            consume1(ctx);
            c = escape_char(peek(ctx));
            if (c == PARSE_EOF) break;
        }
        s[i++] = c;
        consume1(ctx);
        /* grow if necessary */
        if (i >= n)
        {
            n *= 2;
            if (!(s = realloc(s, n))) OOM();
        }
    }
    s[i] = '\0';
    ch(ctx, '"');
    LakeStr *str = lake_str_from_c(s);
    free(s);
    return VAL(str);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x8, %r15d
movl $0x8, %edi
callq 0x11a0
movq %rax, %r14
movq %rbx, %rdi
movl $0x22, %esi
callq 0x453d
xorl %r12d, %r12d
movq 0x10(%rbx), %rcx
movb $-0x1, %al
cmpq 0x8(%rbx), %rcx
jae 0x424d
movq (%rbx), %rax
movb (%rax,%rcx), %al
cmpb $0x5c, %al
je 0x4263
movzbl %al, %ecx
cmpl $0x22, %ecx
je 0x42cf
cmpl $0xff, %ecx
jne 0x429c
jmp 0x42cf
movq %rbx, %rdi
callq 0x4158
movq 0x10(%rbx), %rcx
movb $-0x1, %al
cmpq 0x8(%rbx), %rcx
jae 0x427d
movq (%rbx), %rax
movb (%rax,%rcx), %al
cmpb $0x74, %al
je 0x4296
movzbl %al, %ecx
cmpl $0x72, %ecx
je 0x4292
cmpl $0x6e, %ecx
jne 0x4298
movb $0xa, %al
jmp 0x4298
movb $0xd, %al
jmp 0x4298
movb $0x9, %al
cmpb $-0x1, %al
je 0x42cf
movb %al, (%r14,%r12)
incq %r12
movq %rbx, %rdi
callq 0x4158
cmpq %r15, %r12
jb 0x423b
addq %r15, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x11b0
movq %rax, %r14
testq %rax, %rax
jne 0x423b
callq 0x1704
movb $0x0, (%r14,%r12)
movq %rbx, %rdi
movl $0x22, %esi
callq 0x453d
movq %r14, %rdi
callq 0x597e
movq %rax, %rbx
movq %r14, %rdi
callq 0x1030
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/parse.c
// Function: parse_quoted
static LakeVal *parse_quoted(Ctx *ctx)
{
    ch(ctx, '\'');
    LakeList *list = list_make();
    list_append(list, VAL(sym_intern(ctx->lake_ctx, "quote")));
    list_append(list, _parse_expr(ctx));
    return VAL(list);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x27, %esi
callq 0x453d
callq 0x392a
movq %rax, %r14
movq 0x20(%rbx), %rdi
leaq 0x1d0d(%rip), %rsi      # 0x6034
callq 0x5a24
movq %r14, %rdi
movq %rax, %rsi
callq 0x3ac7
movq %rbx, %rdi
callq 0x3e12
movq %r14, %rdi
movq %rax, %rsi
callq 0x3ac7
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/parse.c
// Function: parse_list
static LakeVal *parse_list(Ctx *ctx)
{
    LakeList *list = list_make();
    ch(ctx, '(');
    char c;
    while ((c = peek(ctx)) != ')')
    {
        if (c == PARSE_EOF)
        {
            ERR("end of input while parsing list");
            list_free(list);
            ctx->i = ctx->n;
            return NULL;
        }

        /* check for dotted lists */
        if (c == '.')
        {
            ch(ctx, '.');
            maybe_spaces(ctx);
            LakeVal *tail = _parse_expr(ctx);
            if (tail == VAL(PARSE_ERR))
            {
                list_free(list);
                ctx->i = ctx->n;
                return NULL;
            }
            ch(ctx, ')');
            return VAL(dlist_make(list, tail));
        }

        LakeVal *val = _parse_expr(ctx);
        if (val == VAL(PARSE_ERR))
        {
            list_free(list);
            ctx->i = ctx->n;
            return NULL;
        }
        list_append(list, val);
    }
    ch(ctx, ')');
    return VAL(list);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
callq 0x392a
movq %rax, %rbx
movq %r14, %rdi
movl $0x28, %esi
callq 0x453d
leaq 0x10(%r14), %r15
leaq 0x8(%r14), %r12
movq (%r15), %rcx
movb $-0x1, %al
cmpq (%r12), %rcx
jae 0x438f
movq (%r14), %rax
movb (%rax,%rcx), %al
cmpb $0x29, %al
je 0x43d8
movzbl %al, %eax
cmpl $0x2e, %eax
je 0x43e7
cmpl $0xff, %eax
je 0x444c
movq %r14, %rdi
callq 0x3e12
movq %rax, %r13
movq %rbx, %rdi
cmpq $-0x2, %rax
je 0x43c4
movq %r13, %rsi
callq 0x3ac7
jmp 0x43d0
callq 0x3920
movq (%r12), %rax
movq %rax, (%r15)
cmpq $-0x2, %r13
jne 0x437e
jmp 0x443d
movq %r14, %rdi
movl $0x29, %esi
callq 0x453d
jmp 0x443f
movq %r14, %rdi
movl $0x2e, %esi
callq 0x453d
movq %r14, %rdi
callq 0x4110
movq %r14, %rdi
callq 0x3e12
cmpq $-0x2, %rax
je 0x442e
movq %rax, %r13
movq %r14, %rdi
movl $0x29, %esi
callq 0x453d
movq %rbx, %rdi
movq %r13, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x210c
movq %rbx, %rdi
callq 0x3920
movq (%r12), %rax
movq %rax, (%r15)
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x1751
jmp 0x443d
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/parse.c
// Function: parse_comment
static LakeVal *parse_comment(Ctx *ctx)
{
    char *text = parse_while(ctx, is_not_newline);
    LakeComment *comment = comment_from_c(text);
    free(text);
    return VAL(comment);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x8, %r15d
movl $0x8, %edi
callq 0x11a0
movq %rax, %r14
xorl %r12d, %r12d
movq 0x10(%rbx), %rcx
movb $-0x1, %al
cmpq 0x8(%rbx), %rcx
jae 0x448f
movq (%rbx), %rax
movb (%rax,%rcx), %al
cmpb $0xa, %al
je 0x44d2
movzbl %al, %ecx
cmpl $0xd, %ecx
je 0x44d2
cmpl $0xff, %ecx
je 0x44d2
movb %al, (%r14,%r12)
incq %r12
movq %rbx, %rdi
callq 0x4158
cmpq %r15, %r12
jb 0x447d
addq %r15, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x11b0
movq %rax, %r14
testq %rax, %rax
jne 0x447d
callq 0x17be
movb $0x0, (%r14,%r12)
movq %r14, %rdi
callq 0x204e
movq %rax, %rbx
movq %r14, %rdi
callq 0x1030
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/parse.c
// Function: ch
static char ch(Ctx *ctx, char expected)
{
    char c = peek(ctx);
    if (c == expected)
    {
        consume1(ctx);
        return c;
    }
    DIE("parse error, expected '%c' got '%c'", expected, c);
}

// Assembly:
movq 0x10(%rdi), %rcx
movb $-0x1, %al
cmpq 0x8(%rdi), %rcx
jae 0x454f
movq (%rdi), %rax
movb (%rax,%rcx), %al
cmpb %sil, %al
jne 0x4559
jmp 0x4158
pushq %rax
movzbl %sil, %edi
movzbl %al, %esi
callq 0x180b
nop
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: prim_make
LakePrimitive *prim_make(char *name, int arity, lake_prim fn)
{
    LakePrimitive *prim = prim_alloc();
    prim->name = strdup(name);
    prim->arity = arity;
    prim->fn = fn;
    return prim;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x28, %edi
callq 0x11a0
movq %rax, %r15
movl $0x7, (%rax)
movq $0x28, 0x8(%rax)
movq %r14, %rdi
callq 0x11f0
movq %rax, 0x10(%r15)
movl %ebp, 0x18(%r15)
movq %rbx, 0x20(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: prim_repr
char *prim_repr(LakePrimitive *prim)
{
    size_t n = 16 + strlen(prim->name) + MAX_INT_LENGTH;
    char *s = malloc(n);
    snprintf(s, n, "<#primitive:%s(%d)>", prim->name, prim->arity);
    return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %r14
movq %r14, %rdi
callq 0x10b0
leaq 0x24(%rax), %r15
movq %r15, %rdi
callq 0x11a0
movq %rax, %r12
movl 0x18(%rbx), %r8d
leaq 0x1eb9(%rip), %rdx      # 0x649e
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rcx
xorl %eax, %eax
callq 0x10d0
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: car
static LakeVal *_car(LakeCtx *ctx, LakeList *args)
{
    LakeList *list = LIST(LIST_VAL(args, 0));
    if (lake_is_type(TYPE_LIST, list) && LIST_N(list) > 0)
    {
        return LIST_VAL(list, 0);
    }
    if (lake_is_type(TYPE_DLIST, list))
    {
        return VAL(dlist_head(DLIST(list)));
    }
    ERR("not a pair: %s", lake_repr(list));
    return NULL;
}

// Assembly:
pushq %rbx
cmpq $0x0, 0x18(%rsi)
je 0x5044
movq 0x20(%rsi), %rax
movq (%rax), %rbx
jmp 0x5046
xorl %ebx, %ebx
movl $0x5, %edi
movq %rbx, %rsi
callq 0x36e8
testl %eax, %eax
je 0x5067
cmpq $0x0, 0x18(%rbx)
je 0x5067
movq 0x20(%rbx), %rax
movq (%rax), %rax
popq %rbx
retq
movl $0x6, %edi
movq %rbx, %rsi
callq 0x36e8
movq %rbx, %rdi
testl %eax, %eax
je 0x5081
popq %rbx
jmp 0x213e
callq 0x185b
xorl %eax, %eax
jmp 0x5065
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: cdr
static LakeVal *_cdr(LakeCtx *ctx, LakeList *args)
{
    LakeList *list = LIST(LIST_VAL(args, 0));
    if (lake_is_type(TYPE_LIST, list) && LIST_N(list) > 0)
    {
        LakeList *cdr = list_copy(list);
        list_shift(cdr);
        return VAL(cdr);
    }
    if (lake_is_type(TYPE_DLIST, list))
    {
        return dlist_tail(DLIST(list));
    }
    ERR("not a pair: %s", lake_repr(list));
    return NULL;
}

// Assembly:
pushq %rbx
cmpq $0x0, 0x18(%rsi)
je 0x509b
movq 0x20(%rsi), %rax
movq (%rax), %rbx
jmp 0x509d
xorl %ebx, %ebx
movl $0x5, %edi
movq %rbx, %rsi
callq 0x36e8
testl %eax, %eax
je 0x50cd
cmpq $0x0, 0x18(%rbx)
je 0x50cd
movq %rbx, %rdi
callq 0x3b73
movq %rax, %rbx
movq %rax, %rdi
callq 0x3c38
movq %rbx, %rax
popq %rbx
retq
movl $0x6, %edi
movq %rbx, %rsi
callq 0x36e8
movq %rbx, %rdi
testl %eax, %eax
je 0x50e7
popq %rbx
jmp 0x2143
callq 0x18ae
xorl %ebx, %ebx
jmp 0x50c8
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: nullP
static LakeVal *_nullP(LakeCtx *ctx, LakeList *args)
{
    LakeVal *val = list_shift(args);
    LakeBool *is_null = lake_bool_from_int(ctx, lake_is_type(TYPE_LIST, val) &&
                                                    LIST_N(LIST(val)) == 0);
    return VAL(is_null);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x3c38
movq %rax, %r14
movl $0x5, %edi
movq %rax, %rsi
callq 0x36e8
xorl %esi, %esi
testl %eax, %eax
je 0x514c
cmpq $0x0, 0x18(%r14)
sete %sil
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x20c0
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: pairP
static LakeVal *_pairP(LakeCtx *ctx, LakeList *args)
{
    LakeVal *val = list_shift(args);
    LakeBool *is_pair = lake_bool_from_int(ctx, lake_is_type(TYPE_LIST, val) &&
                                                    LIST_N(LIST(val)) > 0);
    return VAL(is_pair);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x3c38
movq %rax, %r14
movl $0x5, %edi
movq %rax, %rsi
callq 0x36e8
xorl %esi, %esi
testl %eax, %eax
je 0x5189
cmpq $0x0, 0x18(%r14)
setne %sil
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x20c0
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: add
static LakeVal *_add(LakeCtx *ctx, LakeList *args)
{
    int result = 0;
    size_t n = LIST_N(args);
    size_t i;
    for (i = 0; i < n; ++i)
    {
        LakeVal *v = LIST_VAL(args, i);
        ENSURE_INT(v, i);
        result += INT_VAL(INT(v));
    }
    return VAL(int_from_c(result));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rsi), %r13
testq %r13, %r13
je 0x5291
movq %rsi, %rbx
xorl %r14d, %r14d
xorl %ebp, %ebp
cmpq 0x18(%rbx), %r14
jae 0x525a
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %r15
jmp 0x525d
xorl %r15d, %r15d
movl $0x3, %edi
movq %r15, %rsi
callq 0x36e8
movl %eax, %r12d
testl %eax, %eax
je 0x5284
addl 0x10(%r15), %ebp
testl %r12d, %r12d
je 0x52a8
incq %r14
cmpq %r14, %r13
jne 0x524a
jmp 0x5293
movq %r15, %rdi
movq %r14, %rsi
callq 0x1901
jmp 0x5275
xorl %ebp, %ebp
movl %ebp, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x363e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: sub
static LakeVal *_sub(LakeCtx *ctx, LakeList *args)
{
    size_t n = LIST_N(args);

    if (n < 1)
    {
        ERR("- requires at least one argument");
        return NULL;
    }

    int result = 0;
    size_t i;
    for (i = 0; i < n; ++i)
    {
        LakeVal *v = LIST_VAL(args, i);
        ENSURE_INT(v, i);
        result -= INT_VAL(INT(v));
    }
    return VAL(int_from_c(result));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rsi), %r13
testq %r13, %r13
je 0x5331
movq %rsi, %rbx
xorl %r14d, %r14d
xorl %ebp, %ebp
cmpq 0x18(%rbx), %r14
jae 0x52e5
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %r15
jmp 0x52e8
xorl %r15d, %r15d
movl $0x3, %edi
movq %r15, %rsi
callq 0x36e8
movl %eax, %r12d
testl %eax, %eax
je 0x530f
subl 0x10(%r15), %ebp
testl %r12d, %r12d
je 0x5336
incq %r14
cmpq %r14, %r13
jne 0x52d5
jmp 0x531c
movq %r15, %rdi
movq %r14, %rsi
callq 0x1966
jmp 0x5300
movl %ebp, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x363e
callq 0x19cb
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: mul
static LakeVal *_mul(LakeCtx *ctx, LakeList *args)
{
    int result = 1;
    size_t n = LIST_N(args);
    size_t i;
    for (i = 0; i < n; ++i)
    {
        LakeVal *v = LIST_VAL(args, i);
        ENSURE_INT(v, i);
        result *= INT_VAL(INT(v));
    }
    return VAL(int_from_c(result));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rsi), %r13
testq %r13, %r13
je 0x53ae
movq %rsi, %rbx
movl $0x1, %ebp
xorl %r14d, %r14d
cmpq 0x18(%rbx), %r14
jae 0x5376
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %r15
jmp 0x5379
xorl %r15d, %r15d
movl $0x3, %edi
movq %r15, %rsi
callq 0x36e8
movl %eax, %r12d
testl %eax, %eax
je 0x53a1
imull 0x10(%r15), %ebp
testl %r12d, %r12d
je 0x53c8
incq %r14
cmpq %r14, %r13
jne 0x5366
jmp 0x53b3
movq %r15, %rdi
movq %r14, %rsi
callq 0x1a15
jmp 0x5392
movl $0x1, %ebp
movl %ebp, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x363e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: div
static LakeVal *_div(LakeCtx *ctx, LakeList *args)
{
    size_t n = LIST_N(args);

    if (n < 1)
    {
        ERR("/ requires at least one argument");
        return NULL;
    }

    LakeVal *v = LIST_VAL(args, 0);
    ENSURE_INT(v, (size_t)0);
    int result = INT_VAL(INT(v));

    if (n == 1)
    {
        if (result == 0)
        {
            DIVIDE_BY_ZERO();
            return NULL;
        }
        result = 1 / result;
    }
    else
    {
        size_t i;
        for (i = 1; i < n; ++i)
        {
            v = LIST_VAL(args, i);
            ENSURE_INT(v, i);
            int val = INT_VAL(INT(v));
            if (val == 0)
            {
                DIVIDE_BY_ZERO();
                return NULL;
            }
            result /= val;
        }
    }
    return VAL(int_from_c(result));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rsi), %r13
testq %r13, %r13
je 0x5484
movq %rsi, %r14
movq 0x20(%rsi), %rax
movq (%rax), %rbx
movl $0x3, %edi
movq %rbx, %rsi
callq 0x36e8
testl %eax, %eax
je 0x548b
movl 0x10(%rbx), %ebx
cmpq $0x1, %r13
jne 0x542b
testl %ebx, %ebx
je 0x5495
leal 0x1(%rbx), %eax
xorl %ecx, %ecx
cmpl $0x3, %eax
cmovbl %ebx, %ecx
movl %ecx, %ebx
jmp 0x54be
movl $0x1, %r15d
movb $0x1, %bpl
cmpq 0x18(%r14), %r15
jae 0x5444
movq 0x20(%r14), %rax
movq (%rax,%r15,8), %r12
jmp 0x5447
xorl %r12d, %r12d
movl $0x3, %edi
movq %r12, %rsi
callq 0x36e8
testl %eax, %eax
je 0x549c
movl 0x10(%r12), %r12d
testl %r12d, %r12d
je 0x547d
movl %ebx, %eax
cltd
idivl %r12d
movl %eax, %ebx
testl %r12d, %r12d
je 0x54a7
incq %r15
cmpq %r13, %r15
setb %bpl
jne 0x5434
jmp 0x54a7
callq 0x1a7a
jmp 0x546a
callq 0x1bc8
jmp 0x54ad
movq %rbx, %rdi
callq 0x1b73
jmp 0x54ad
callq 0x1b29
jmp 0x54ad
movq %r12, %rdi
movq %r15, %rsi
callq 0x1ac4
testb $0x1, %bpl
je 0x54be
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebx, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x363e
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: int_eq
static LakeVal *_int_eq(LakeCtx *ctx, LakeList *args)
{
    bool result = TRUE;
    size_t n = LIST_N(args);
    size_t i;
    int curr, prev;
    for (i = 0; i < n; ++i)
    {
        LakeVal *v = LIST_VAL(args, i);
        ENSURE_INT(v, i);
        curr = INT_VAL(INT(v));
        if (i > 0)
        {
            result = result && curr == prev;
        }
        prev = INT_VAL(INT(v));
    }
    return VAL(lake_bool_from_int(ctx, result));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x18(%rsi), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x555e
movq %rsi, %r14
movl $0x1, %ebp
xorl %r15d, %r15d
cmpq 0x18(%r14), %r15
jae 0x550f
movq 0x20(%r14), %rax
movq (%rax,%r15,8), %r13
jmp 0x5512
xorl %r13d, %r13d
movl $0x3, %edi
movq %r13, %rsi
callq 0x36e8
movl %eax, %r12d
testl %eax, %eax
je 0x5551
testq %r15, %r15
je 0x553c
testl %ebp, %ebp
setne %al
cmpl %ebx, 0x10(%r13)
sete %cl
andb %al, %cl
movzbl %cl, %ebp
movl 0x10(%r13), %ebx
testl %r12d, %r12d
je 0x557d
incq %r15
cmpq %r15, 0x10(%rsp)
jne 0x54ff
jmp 0x5563
movq %r13, %rdi
movq %r15, %rsi
callq 0x1c12
jmp 0x5540
movl $0x1, %ebp
movq 0x8(%rsp), %rdi
movl %ebp, %esi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20c0
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: int_lt
static LakeVal *_int_lt(LakeCtx *ctx, LakeList *args)
{
    bool result = TRUE;
    size_t n = LIST_N(args);
    size_t i;
    int curr, prev;

    if (n > 1)
    {
        for (i = 0; i < n; ++i)
        {
            LakeVal *v = LIST_VAL(args, i);
            ENSURE_INT(v, i);
            curr = INT_VAL(INT(v));
            if (i > 0)
            {
                result = result && prev < curr;
            }
            prev = INT_VAL(INT(v));
        }
    }
    return VAL(lake_bool_from_int(ctx, result));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x18(%rsi), %rax
movl $0x1, %ebp
movq %rax, 0x10(%rsp)
cmpq $0x2, %rax
jb 0x561a
movq %rsi, %r14
xorl %r15d, %r15d
cmpq 0x18(%r14), %r15
jae 0x55cb
movq 0x20(%r14), %rax
movq (%rax,%r15,8), %r13
jmp 0x55ce
xorl %r13d, %r13d
movl $0x3, %edi
movq %r13, %rsi
callq 0x36e8
movl %eax, %r12d
testl %eax, %eax
je 0x560d
testq %r15, %r15
je 0x55f8
testl %ebp, %ebp
setne %al
cmpl 0x10(%r13), %ebx
setl %cl
andb %al, %cl
movzbl %cl, %ebp
movl 0x10(%r13), %ebx
testl %r12d, %r12d
je 0x5634
incq %r15
cmpq %r15, 0x10(%rsp)
jne 0x55bb
jmp 0x561a
movq %r13, %rdi
movq %r15, %rsi
callq 0x1c77
jmp 0x55fc
movq 0x8(%rsp), %rdi
movl %ebp, %esi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20c0
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: int_gt
static LakeVal *_int_gt(LakeCtx *ctx, LakeList *args)
{
    bool result = TRUE;
    size_t n = LIST_N(args);
    size_t i;
    int curr, prev;

    if (n > 1)
    {
        for (i = 0; i < n; ++i)
        {
            LakeVal *v = LIST_VAL(args, i);
            ENSURE_INT(v, i);
            curr = INT_VAL(INT(v));
            if (i > 0)
            {
                result = result && prev > curr;
            }
            prev = INT_VAL(INT(v));
        }
    }
    return VAL(lake_bool_from_int(ctx, result));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x18(%rsi), %rax
movl $0x1, %ebp
movq %rax, 0x10(%rsp)
cmpq $0x2, %rax
jb 0x56d1
movq %rsi, %r14
xorl %r15d, %r15d
cmpq 0x18(%r14), %r15
jae 0x5682
movq 0x20(%r14), %rax
movq (%rax,%r15,8), %r13
jmp 0x5685
xorl %r13d, %r13d
movl $0x3, %edi
movq %r13, %rsi
callq 0x36e8
movl %eax, %r12d
testl %eax, %eax
je 0x56c4
testq %r15, %r15
je 0x56af
testl %ebp, %ebp
setne %al
cmpl 0x10(%r13), %ebx
setg %cl
andb %al, %cl
movzbl %cl, %ebp
movl 0x10(%r13), %ebx
testl %r12d, %r12d
je 0x56eb
incq %r15
cmpq %r15, 0x10(%rsp)
jne 0x5672
jmp 0x56d1
movq %r13, %rdi
movq %r15, %rsi
callq 0x1cdc
jmp 0x56b3
movq 0x8(%rsp), %rdi
movl %ebp, %esi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20c0
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: set_carB
static LakeVal *_set_carB(LakeCtx *ctx, LakeList *args)
{
    LakeList *list = LIST(LIST_VAL(args, 0));
    if (lake_is_type(TYPE_LIST, list))
    {
        LakeVal *new_car = LIST_VAL(args, 1);
        if (LIST_N(list) == 0)
        {
            list_append(list, new_car);
        }
        else
        {
            list_set(list, 0, new_car);
        }
        return VAL(list);
    }
    ERR("not a pair: %s", lake_repr(list));
    return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
cmpq $0x0, 0x18(%rsi)
je 0x5713
movq 0x20(%r14), %rax
movq (%rax), %rbx
jmp 0x5715
xorl %ebx, %ebx
movl $0x5, %edi
movq %rbx, %rsi
callq 0x36e8
testl %eax, %eax
je 0x5762
cmpq $0x2, 0x18(%r14)
jb 0x5737
movq 0x20(%r14), %rax
movq 0x8(%rax), %rdx
jmp 0x5739
xorl %edx, %edx
cmpq $0x0, 0x18(%rbx)
je 0x574c
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3bdf
jmp 0x5757
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x3ac7
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
callq 0x1d41
xorl %ebx, %ebx
jmp 0x5757
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/primitive.c
// Function: display
static LakeVal *_display(LakeCtx *ctx, LakeList *args)
{
    size_t n = LIST_N(args);
    size_t i;
    int space = 0;
    for (i = 0; i < n; ++i)
    {
        if (space) putchar(' ');
        printf("%s", lake_repr(LIST_VAL(args, i)));
        space = 1;
    }
    putchar('\n');
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x18(%rsi), %r15
testq %r15, %r15
je 0x57cd
movq %rsi, %rbx
movb $0x1, %bpl
xorl %r12d, %r12d
leaq 0x8eb(%rip), %r14       # 0x607a
testb $0x1, %bpl
jne 0x579f
movl $0x20, %edi
callq 0x1040
cmpq 0x18(%rbx), %r12
jae 0x57af
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rdi
jmp 0x57b1
xorl %edi, %edi
callq 0x36f0
xorl %ebp, %ebp
movq %r14, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x10c0
incq %r12
cmpq %r12, %r15
jne 0x578f
movl $0xa, %edi
callq 0x1040
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/sym.c
// Function: sym_intern
LakeSym *sym_intern(LakeCtx *ctx, char *s)
{
    LakeSym *sym = lake_hash_get(ctx->symbols, s);
    if (!sym)
    {
        sym = sym_alloc();
        sym->n = strlen(s);
        sym->s = strndup(s, sym->n);
        sym->hash = str_hash(s);
        lake_hash_put(ctx->symbols, sym->s, sym);
    }
    return sym;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x3172
movq %rax, %r14
testq %rax, %rax
jne 0x5ab7
movl $0x28, %edi
callq 0x11a0
movq %rax, %r14
movl $0x1, (%rax)
movq $0x28, 0x8(%rax)
movq %r15, %rdi
callq 0x10b0
movq %rax, 0x10(%r14)
movq %r15, %rdi
movq %rax, %rsi
callq 0x1130
movq %rax, 0x18(%r14)
movb (%r15), %cl
testb %cl, %cl
je 0x5a9f
incq %r15
movl $0x1505, %edx           # imm = 0x1505
movl %edx, %esi
shll $0x5, %esi
addl %edx, %esi
movsbl %cl, %edx
xorl %esi, %edx
movb (%r15), %cl
incq %r15
testb %cl, %cl
jne 0x5a85
movl %edx, %ecx
jmp 0x5aa4
movl $0x1505, %ecx           # imm = 0x1505
movq %rcx, 0x20(%r14)
movq 0x8(%rbx), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x2f90
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/samsonjs[P]lake/src/repl.c
// Function: read_file
static char *read_file(char const *filename)
{
    FILE *fp = fopen(filename, "r");
    if (fp)
    {
        size_t size = 4096;
        char buf[size];
        size_t n = size;
        size_t i = 0;
        size_t read;
        char *s = malloc(n);

        while (!feof(fp) && !ferror(fp))
        {
            read = fread(buf, 1, size, fp);
            if (i + read > n)
            {
                n += size;
                if (!(s = realloc(s, n))) OOM();
            }
            memcpy(s + i, buf, read);
            i += read;
        }
        s[i] = '\0';
        if (ferror(fp))
        {
            ERR("failed to read file %s: %s", filename, strerror(errno));
            return NULL;
        }
        fclose(fp);

        return s;
    }
    else
    {
        ERR("cannot open file %s: %s", filename, strerror(errno));
        return NULL;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x70f(%rip), %rsi       # 0x64b4
callq 0x11c0
testq %rax, %rax
je 0x5ea2
movq %rax, %r12
movq %rbx, -0x38(%rbp)
movq %rsp, -0x40(%rbp)
movq %rsp, %rbx
addq $-0x1000, %rbx          # imm = 0xF000
movq %rbx, %rsp
movl $0x1000, %r13d          # imm = 0x1000
movl $0x1000, %edi           # imm = 0x1000
callq 0x11a0
movq %rax, %r15
movq %r12, %rdi
callq 0x1180
testl %eax, %eax
je 0x5df2
xorl %r14d, %r14d
jmp 0x5e73
movq %rbx, -0x30(%rbp)
xorl %ebx, %ebx
movq %r12, -0x48(%rbp)
movq %r12, %rdi
callq 0x1080
testl %eax, %eax
jne 0x5e70
movl $0x1, %esi
movl $0x1000, %edx           # imm = 0x1000
movq -0x30(%rbp), %rdi
movq %r12, %rcx
callq 0x1090
movq %rax, %r12
leaq (%rax,%rbx), %r14
cmpq %r13, %r14
jbe 0x5e43
addq $0x1000, %r13           # imm = 0x1000
movq %r15, %rdi
movq %r13, %rsi
callq 0x11b0
testq %rax, %rax
jne 0x5e46
jmp 0x5ebb
movq %r15, %rax
movq %rax, %r15
addq %rax, %rbx
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
movq %r12, %rdx
callq 0x1190
movq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0x1180
movq %r14, %rbx
testl %eax, %eax
je 0x5dfc
jmp 0x5e73
movq %rbx, %r14
movb $0x0, (%r15,%r14)
movq %r12, %rdi
callq 0x1080
testl %eax, %eax
jne 0x5eae
movq %r12, %rdi
callq 0x10a0
movq %r15, %rax
movq -0x40(%rbp), %rsp
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x1ea6
xorl %eax, %eax
jmp 0x5e93
movq -0x38(%rbp), %rdi
callq 0x1e01
xorl %eax, %eax
jmp 0x5e8f
callq 0x1e5b
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/samples/beatclock/beat.cpp
// Function: BeatClock::~BeatClock()
BeatClock::~BeatClock()
{
	timer->Stop();

	StoreConfig();

	DeleteObject(wnd);
	DeleteObject(title);
	DeleteObject(menubar);
	DeleteObject(timer);
	DeleteObject(dragcontrol);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x67cf(%rip), %rax      # 0xb770
movq %rax, (%rdi)
movq 0x5d8(%rdi), %rdi
callq 0x41d0
movq 0x5b8(%rbx), %rdi
callq 0x4480
movq 0x5c0(%rbx), %rdi
callq 0x4480
movq 0x5c8(%rbx), %rdi
callq 0x4480
movq 0x5d8(%rbx), %rdi
callq 0x4480
movq 0x5d0(%rbx), %rdi
callq 0x4480
leaq 0x608(%rbx), %rdi
callq 0x4490
movq %rbx, %rdi
popq %rbx
jmp 0x4280
movq %rax, %rdi
callq 0x5219
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/samples/beatclock/options.cpp
// Function: Options::OptionsBeats()
Void Options::OptionsBeats()
{
	display_check1->SetText("Show centibeats");
	misc_option1->SetText("Show/hide centibeats");
	alarm_text2->SetText("Internet Beats");
	alarm_edit1->SetText(String::FromInt(Math::Min(999, Time::SecondsToBeats(Time::TimeStringToSeconds(alarm_edit1->GetText())))));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x638(%rdi), %r14
leaq 0x182c(%rip), %rsi      # 0x8250
movq %rsp, %r15
movq %r15, %rdi
callq 0x43f0
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
movq %rsp, %rdi
callq 0x4490
movq 0x688(%rbx), %r14
leaq 0x1884(%rip), %rsi      # 0x82d8
movq %rsp, %r15
movq %r15, %rdi
callq 0x43f0
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
movq %rsp, %rdi
callq 0x4490
movq 0x668(%rbx), %r14
leaq 0x17ae(%rip), %rsi      # 0x8232
movq %rsp, %r15
movq %r15, %rdi
callq 0x43f0
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
movq %rsp, %rdi
callq 0x4490
movq 0x660(%rbx), %rbx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0xa8(%rax)
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x43a0
movq %r14, %rdi
callq 0x75f8
movl %eax, %edi
callq 0x7482
movl $0x3e7, %ecx            # imm = 0x3E7
cmpl %ecx, %eax
cmovll %eax, %ecx
movslq %ecx, %rsi
movq %rsp, %rdi
callq 0x4160
movq (%rbx), %rax
movq %rsp, %rsi
movq %rbx, %rdi
callq *0xa0(%rax)
movq %rsp, %rdi
callq 0x4490
leaq 0x18(%rsp), %rdi
callq 0x4490
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4490
jmp 0x6b34
jmp 0x6b29
jmp 0x6b29
movq %rax, %rbx
movq %rsp, %rdi
jmp 0x6b39
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4490
movq %rbx, %rdi
callq 0x4190
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/samples/beatclock/options.cpp
// Function: Options::OptionsSTF()
Void Options::OptionsSTF()
{
	display_check1->SetText("Show seconds");
	misc_option1->SetText("Show/hide seconds");
	alarm_text2->SetText("Hours/Minutes");
	alarm_edit1->SetText(Time::SecondsToTimeString(Math::Min(86340, Time::BeatsToSeconds(alarm_edit1->GetText().ToInt()))));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x638(%rdi), %r14
leaq 0x1700(%rip), %rsi      # 0x8260
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x43f0
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
leaq 0x8(%rsp), %rdi
callq 0x4490
movq 0x688(%rbx), %r14
leaq 0x1759(%rip), %rsi      # 0x82ed
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x43f0
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
leaq 0x8(%rsp), %rdi
callq 0x4490
movq 0x668(%rbx), %r14
leaq 0x16d9(%rip), %rsi      # 0x82a1
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x43f0
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
leaq 0x8(%rsp), %rdi
callq 0x4490
movq 0x660(%rbx), %rbx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0xa8(%rax)
movq %rax, %rdi
callq 0x4140
movl %eax, %edi
callq 0x7470
movl $0x15144, %esi          # imm = 0x15144
cmpl %esi, %eax
cmovll %eax, %esi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x7494
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *0xa0(%rax)
leaq 0x8(%rsp), %rdi
callq 0x4490
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x6c50
jmp 0x6c50
jmp 0x6c50
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4490
movq %rbx, %rdi
callq 0x4190
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/samples/beatclock/options.cpp
// Function: Options::OptionsOK()
Void Options::OptionsOK()
{
	if (timeformat == 0)
	{
		alarmbeats = Math::Min(999, (Int) alarm_edit1->GetText().ToInt());
		alarmsecs  = Time::BeatsToSeconds(alarmbeats);
	}
	else
	{
		alarmsecs  = Math::Min(86340, Time::TimeStringToSeconds(alarm_edit1->GetText()));
		alarmbeats = Time::SecondsToBeats(alarmsecs);
	}

	optionsdialog->Close();
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x660(%rdi), %rdi
movq 0x6d0(%rbx), %rax
movl (%rax), %ebp
movq (%rdi), %rax
callq *0xa8(%rax)
testl %ebp, %ebp
je 0x6d24
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0x43a0
movq %r14, %rdi
callq 0x75f8
movl $0x15144, %ecx          # imm = 0x15144
cmpl %ecx, %eax
cmovll %eax, %ecx
movq 0x6f0(%rbx), %rax
movl %ecx, (%rax)
leaq 0x8(%rsp), %rdi
callq 0x4490
movq 0x6f0(%rbx), %rax
movl (%rax), %edi
callq 0x7482
movl $0x6e8, %ecx            # imm = 0x6E8
jmp 0x6d49
movq %rax, %rdi
callq 0x4140
movl $0x3e7, %edi            # imm = 0x3E7
cmpl %edi, %eax
cmovll %eax, %edi
movq 0x6e8(%rbx), %rax
movl %edi, (%rax)
callq 0x7470
movl $0x6f0, %ecx            # imm = 0x6F0
movq (%rbx,%rcx), %rcx
movl %eax, (%rcx)
movq 0x5e8(%rbx), %rdi
callq 0x4420
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4490
movq %rbx, %rdi
callq 0x4190
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/samples/beatclock/options.cpp
// Function: Options::OptionsCancel()
Void Options::OptionsCancel()
{
	timeformat  = oldtf;
	centi	     = oldct;
	modechange  = oldmc;
	timezone    = oldtz;
	isalarm     = oldia;
	alarmbeats  = oldab;
	alarmsecs   = oldas;
	alarmtext   = oldat;
	alarmoption = oldao;

	optionsdialog->Close();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x718(%rdi), %eax
movq 0x6d0(%rdi), %rcx
movl %eax, (%rcx)
movb 0x71c(%rdi), %al
movq 0x6d8(%rdi), %rcx
movb %al, (%rcx)
movl 0x720(%rdi), %eax
movq 0x6f8(%rdi), %rcx
movl %eax, (%rcx)
movl 0x724(%rdi), %eax
movq 0x700(%rdi), %rcx
movl %eax, (%rcx)
movb 0x728(%rdi), %al
movq 0x6e0(%rdi), %rcx
movb %al, (%rcx)
movl 0x72c(%rdi), %eax
movq 0x6e8(%rdi), %rcx
movl %eax, (%rcx)
movl 0x730(%rdi), %eax
movq 0x6f0(%rdi), %rcx
movl %eax, (%rcx)
leaq 0x738(%rdi), %rsi
movq 0x708(%rdi), %rdi
callq 0x42e0
movl 0x750(%rbx), %eax
movq 0x710(%rbx), %rcx
movl %eax, (%rcx)
movq 0x5e8(%rbx), %rdi
popq %rbx
jmp 0x4420
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/samples/beatclock/options.cpp
// Function: Options::~Options()
Options::~Options()
{
	DeleteObject(optionsdialog);
	DeleteObject(optitle);

	DeleteObject(display);
	DeleteObject(alarm);
	DeleteObject(misc);
	DeleteObject(info);

	DeleteObject(main_button1);
	DeleteObject(main_button2);
	DeleteObject(main_reg1);

	DeleteObject(info_text1);
	DeleteObject(info_text2);

	DeleteObject(alarm_check1);
	DeleteObject(alarm_text1);
	DeleteObject(alarm_text2);
	DeleteObject(alarm_edit1);
	DeleteObject(alarm_option1);
	DeleteObject(alarm_option2);

	DeleteObject(misc_group1);
	DeleteObject(misc_option1);
	DeleteObject(misc_option2);
	DeleteObject(misc_option3);
	DeleteObject(misc_option4);

	DeleteObject(display_group1);
	DeleteObject(display_group2);
	DeleteObject(display_check1);
	DeleteObject(display_option1);
	DeleteObject(display_option2);
	DeleteObject(display_option3);
	DeleteObject(display_option4);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x4c6f(%rip), %rax      # 0xba90
movq %rax, (%rdi)
movq 0x5e8(%rdi), %rdi
callq 0x4480
movq 0x610(%rbx), %rdi
callq 0x4480
movq 0x5f0(%rbx), %rdi
callq 0x4480
movq 0x5f8(%rbx), %rdi
callq 0x4480
movq 0x600(%rbx), %rdi
callq 0x4480
movq 0x608(%rbx), %rdi
callq 0x4480
movq 0x6b8(%rbx), %rdi
callq 0x4480
movq 0x6c0(%rbx), %rdi
callq 0x4480
movq 0x6c8(%rbx), %rdi
callq 0x4480
movq 0x6a8(%rbx), %rdi
callq 0x4480
movq 0x6b0(%rbx), %rdi
callq 0x4480
movq 0x650(%rbx), %rdi
callq 0x4480
movq 0x658(%rbx), %rdi
callq 0x4480
movq 0x668(%rbx), %rdi
callq 0x4480
movq 0x660(%rbx), %rdi
callq 0x4480
movq 0x670(%rbx), %rdi
callq 0x4480
movq 0x678(%rbx), %rdi
callq 0x4480
movq 0x680(%rbx), %rdi
callq 0x4480
movq 0x688(%rbx), %rdi
callq 0x4480
movq 0x690(%rbx), %rdi
callq 0x4480
movq 0x698(%rbx), %rdi
callq 0x4480
movq 0x6a0(%rbx), %rdi
callq 0x4480
movq 0x618(%rbx), %rdi
callq 0x4480
movq 0x620(%rbx), %rdi
callq 0x4480
movq 0x638(%rbx), %rdi
callq 0x4480
movq 0x628(%rbx), %rdi
callq 0x4480
movq 0x630(%rbx), %rdi
callq 0x4480
movq 0x640(%rbx), %rdi
callq 0x4480
movq 0x648(%rbx), %rdi
callq 0x4480
leaq 0x758(%rbx), %rdi
leaq 0x4c9a(%rip), %rax      # 0xbc28
movq %rax, 0x758(%rbx)
callq 0x71ac
leaq 0x738(%rbx), %rdi
callq 0x4490
movq %rbx, %rdi
popq %rbx
jmp 0x4080
jmp 0x6fb1
movq %rax, %rdi
callq 0x5219
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/samples/beatclock/../../include/smooth/templates/signals/signal.h
// Function: int smooth::Signal0<void>::Connect<void>(smooth::Signal0<void>*)
Int Connect(SIGNALS_SIGNAL_CLASS_NAME<slotReturnTYPE SIGNALS_CONDITIONAL_COMMA SIGNALS_ARGUMENT_TYPES> *sig)
			{
				if ((Signal *) sig == (Signal *) this) return Error();

				if (slotsN == NIL)
				{
					slotsN = new Array<Void *>();
					slotsN->EnableLocking();
				}

				slotsN->Add(new SIGNALS_SLOT_SIGNAL_CLASS_NAME<slotReturnTYPE SIGNALS_CONDITIONAL_COMMA SIGNALS_ARGUMENT_TYPES>(sig));

				return Success();
			}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
cmpq %rdi, %rsi
je 0x7135
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x0, 0x10(%rdi)
jne 0x7105
movl $0x58, %edi
callq 0x42d0
movq %rax, %r15
movq %rax, %rdi
callq 0x40a0
leaq 0x48bd(%rip), %rax      # 0xb9a0
movq %rax, 0x40(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%r15)
leaq 0x480a(%rip), %rax      # 0xb900
movq %rax, (%r15)
movq %r15, 0x10(%r14)
movq %r15, %rdi
callq 0x41b0
movq 0x10(%r14), %r14
movl $0x10, %edi
callq 0x42d0
leaq 0x4bc6(%rip), %rcx      # 0xbce0
movq %rcx, (%rax)
movq %rbx, 0x8(%rax)
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %r14, %rdi
callq 0x564e
xorl %eax, %eax
jmp 0x713a
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x58, %esi
movq %r15, %rdi
callq 0x4050
movq %rbx, %rdi
callq 0x4190
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/samples/beatclock/time.cpp
// Function: Time::SecondsToTimeString(int)
String Time::SecondsToTimeString(Int seconds)
{
	String	 rstring;

	if (((Int) (seconds / 3600)) < 10) rstring.Append("0");

	rstring.Append(String::FromInt(seconds / 3600));
	rstring.Append(":");

	if (((Int) ((seconds % 3600) / 60)) < 10) rstring.Append("0");

	rstring.Append(String::FromInt((seconds % 3600) / 60));

	return rstring;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebp
movq %rdi, %rbx
xorl %esi, %esi
callq 0x4270
cmpl $0x8c9f, %ebp           # imm = 0x8C9F
jg 0x74d8
leaq 0xbc5(%rip), %rsi       # 0x807c
leaq 0x8(%rsp), %rdi
callq 0x43f0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x40e0
leaq 0x8(%rsp), %rdi
callq 0x4490
movslq %ebp, %rax
imulq $-0x6e5d4c3b, %rax, %r14 # imm = 0x91A2B3C5
shrq $0x20, %r14
addl %ebp, %r14d
movl %r14d, %eax
shrl $0x1f, %eax
sarl $0xb, %r14d
addl %eax, %r14d
movslq %r14d, %rsi
leaq 0x8(%rsp), %rdi
callq 0x4160
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x40e0
leaq 0x8(%rsp), %rdi
callq 0x4490
leaq 0xd7e(%rip), %rsi       # 0x829f
leaq 0x8(%rsp), %rdi
callq 0x43f0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x40e0
imull $0xe10, %r14d, %eax     # imm = 0xE10
subl %eax, %ebp
leaq 0x8(%rsp), %rdi
callq 0x4490
cmpl $0x257, %ebp            # imm = 0x257
jg 0x757b
leaq 0xb22(%rip), %rsi       # 0x807c
leaq 0x8(%rsp), %rdi
callq 0x43f0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x40e0
leaq 0x8(%rsp), %rdi
callq 0x4490
movslq %ebp, %rax
imulq $-0x77777777, %rax, %rax # imm = 0x88888889
shrq $0x20, %rax
addl %ebp, %eax
movl %eax, %ecx
shrl $0x1f, %ecx
sarl $0x5, %eax
addl %ecx, %eax
movslq %eax, %rsi
leaq 0x8(%rsp), %rdi
callq 0x4160
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x40e0
leaq 0x8(%rsp), %rdi
callq 0x4490
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x75d5
jmp 0x75e4
jmp 0x75d5
jmp 0x75e4
jmp 0x75d5
jmp 0x75e4
jmp 0x75d5
jmp 0x75e4
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x4490
jmp 0x75e7
movq %rax, %r14
movq %rbx, %rdi
callq 0x4490
movq %r14, %rdi
callq 0x4190
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/samples/beatclock/time.cpp
// Function: Time::GetDayOfWeek(int, int, int)
Int Time::GetDayOfWeek(Int day, Int month, Int year)
{
	month += 10;
	year   = (month - 24) / 12 + year;
	day    = (((13 * (month - (month / 13) * 12) - 1) / 5 + day + 77 + 5 * (year - (year / 100) * 100) / 4 + year / 400 - (year / 100) * 2) % 7);

	return day;
}

// Assembly:
leal 0xa(%rsi), %eax
leal -0xe(%rsi), %ecx
movslq %ecx, %rcx
imulq $0x2aaaaaab, %rcx, %r8  # imm = 0x2AAAAAAB
movq %r8, %rcx
shrq $0x3f, %rcx
shrq $0x20, %r8
sarl %r8d
addl %edx, %ecx
addl %r8d, %ecx
cltq
imulq $0x4ec4ec4f, %rax, %rax # imm = 0x4EC4EC4F
movq %rax, %rdx
shrq $0x3f, %rdx
shrq $0x22, %rax
addl %edx, %eax
shll $0x2, %eax
leal (%rax,%rax,2), %eax
negl %eax
addl %esi, %eax
addl $0xa, %eax
leal (%rax,%rax,2), %edx
leal (%rax,%rdx,4), %eax
decl %eax
cltq
imulq $0x66666667, %rax, %rax # imm = 0x66666667
movq %rax, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rax
sarl %eax
movslq %ecx, %rcx
imulq $0x51eb851f, %rcx, %rsi # imm = 0x51EB851F
movq %rsi, %r8
shrq $0x20, %r8
movl %r8d, %r9d
sarl $0x5, %r9d
shrq $0x3f, %rsi
addl %esi, %r9d
imull $-0x64, %r9d, %r10d
addl %r10d, %ecx
leal (%rcx,%rcx,4), %r10d
leal (%rcx,%rcx,4), %ecx
addl $0x3, %ecx
testl %r10d, %r10d
cmovnsl %r10d, %ecx
sarl $0x2, %ecx
sarl $0x7, %r8d
addl %esi, %edi
addl %r8d, %edi
addl %r9d, %r9d
subl %r9d, %edi
addl %edx, %edi
addl %eax, %edi
leal (%rdi,%rcx), %eax
addl %edi, %ecx
addl $0x4d, %ecx
movslq %ecx, %rcx
imulq $-0x6db6db6d, %rcx, %rcx # imm = 0x92492493
shrq $0x20, %rcx
addl %eax, %ecx
addl $0x4d, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0x2, %ecx
addl %edx, %ecx
leal (,%rcx,8), %edx
subl %edx, %ecx
addl %ecx, %eax
addl $0x4d, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/samples/beatclock/time.cpp
// Function: Time::OutOfMonth(int, int, int)
Bool Time::OutOfMonth(Int day, Int month, Int year)
{
	if	(day > 31									  ) return True;
	else if (day > 30 && (month == 4 || month == 6 || month == 9 || month == 11)		  ) return True;
	else if (day > 29 && month == 2								  ) return True;
	else if (day > 28 && month == 2 && (year % 4 != 0 || (year % 100 == 0 && year % 400 != 0))) return True;

	return False;
}

// Assembly:
movb $0x1, %al
cmpl $0x1f, %edi
jg 0x77ce
jne 0x77a5
leal -0x4(%rsi), %ecx
cmpl $0x8, %ecx
jae 0x77a5
movl $0xa5, %r8d
btl %ecx, %r8d
jb 0x77ce
cmpl $0x1e, %edi
setge %cl
cmpl $0x2, %esi
sete %r8b
testb %r8b, %cl
jne 0x77ce
cmpl $0x2, %esi
setne %cl
cmpl $0x1d, %edi
setl %sil
orb %cl, %sil
jne 0x7807
testb $0x3, %dl
je 0x77cf
retq
imull $0xc28f5c29, %edx, %ecx # imm = 0xC28F5C29
addl $0x51eb850, %ecx        # imm = 0x51EB850
rorl $0x2, %ecx
cmpl $0x28f5c28, %ecx        # imm = 0x28F5C28
ja 0x7807
movslq %edx, %rcx
imulq $0x51eb851f, %rcx, %rcx # imm = 0x51EB851F
movq %rcx, %rsi
shrq $0x3f, %rsi
sarq $0x27, %rcx
addl %esi, %ecx
imull $0x190, %ecx, %ecx      # imm = 0x190
subl %ecx, %edx
jne 0x77ce
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/ffoissey[P]push_swap_42/srcs_checker/ft_exec.c
// Function: ft_exec
void		ft_exec(t_stack *s, int flag_v, int flag_c)
{
	char	*line;
	int		step;

	step = 1;
	line = NULL;
	if (flag_v)
	{
		ft_printf("\033[2J\033[;H");
		ft_printf("---> \033[031mINIT\033[0m\n");
		ft_print_stack(s);
	}
	while (get_next_line(0, &line) > 0)
	{
		ft_process(s, &line);
		if (flag_v)
		{
			ft_printf("\033[2J\033[;H");
			ft_printf("---> \033[031mSTEP %d\033[0m\n", step++);
			ft_print_stack(s);
		}
		if (flag_c)
			ft_exec_flag_c(line, flag_v);
		ft_strdel(&line);
	}
	ft_strdel(&line);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movq $0x0, (%rsp)
testl %esi, %esi
je 0x142e
leaq 0x4c01(%rip), %rdi      # 0x6012
xorl %eax, %eax
callq 0x2531
leaq 0x4bfc(%rip), %rdi      # 0x601b
xorl %eax, %eax
callq 0x2531
movq %r14, %rdi
callq 0x1530
movq %rsp, %rsi
xorl %edi, %edi
callq 0x20a4
testl %eax, %eax
jle 0x1518
movl $0x1, %r13d
movq %rsp, %r15
movq (%rsp), %rsi
movzbl (%rsi), %ecx
cmpl $0x70, %ecx
je 0x1478
cmpl $0x72, %ecx
je 0x146e
movl $0x0, %eax
cmpl $0x73, %ecx
jne 0x1480
movq %r14, %rdi
callq 0x169c
jmp 0x1480
movq %r14, %rdi
callq 0x17e4
jmp 0x1480
movq %r14, %rdi
callq 0x174e
testl %eax, %eax
jne 0x1494
movq %r15, %rdi
callq 0x1d5c
movq %r14, %rdi
callq 0x19c8
testl %ebp, %ebp
je 0x14c6
leaq 0x4b73(%rip), %rdi      # 0x6012
xorl %eax, %eax
callq 0x2531
leal 0x1(%r13), %r12d
leaq 0x4b7f(%rip), %rdi      # 0x6030
movl %r13d, %esi
xorl %eax, %eax
callq 0x2531
movq %r14, %rdi
callq 0x1530
movl %r12d, %r13d
testl %ebx, %ebx
je 0x14fe
movq (%rsp), %rsi
testl %ebp, %ebp
je 0x14f0
leaq 0x4b6f(%rip), %rdi      # 0x6048
xorl %eax, %eax
callq 0x2531
leaq 0x4b8f(%rip), %rdi      # 0x6076
xorl %eax, %eax
callq 0x2531
jmp 0x14fe
leaq 0x4b92(%rip), %rdi      # 0x6089
xorl %eax, %eax
callq 0x2531
movq %r15, %rdi
callq 0x1d5c
xorl %edi, %edi
movq %r15, %rsi
callq 0x20a4
testl %eax, %eax
jg 0x1449
movq %rsp, %rdi
callq 0x1d5c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/ffoissey[P]push_swap_42/srcs_checker/ft_print_stack.c
// Function: ft_print_stack
void			ft_print_stack(t_stack *s)
{
	size_t	i;
	size_t	size_max;

	size_max = s->size;
	i = 0;
	ft_putstr("\n    |       \033[32mstack A\033[0m       |       ");
	ft_putendl("\033[32mstack B\033[0m       |");
	ft_putendl("    |                     |                     |");
	while (i < size_max)
	{
		ft_putstr("    |");
		ft_print_case(s->a, s->size_a, size_max - 1 - i);
		ft_putstr(" | ");
		ft_print_case(s->b, s->size_b, size_max - 1 - i);
		ft_putendl("|");
		i++;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %r14
leaq 0x4b5b(%rip), %rdi      # 0x60a2
callq 0x1f8c
leaq 0x4b7c(%rip), %rdi      # 0x60cf
callq 0x1fac
leaq 0x4b89(%rip), %rdi      # 0x60e8
callq 0x1fac
testq %r14, %r14
je 0x15be
decq %r14
leaq 0x4ba1(%rip), %r15      # 0x6114
leaq 0x4ba0(%rip), %r12      # 0x611a
leaq 0x4b97(%rip), %r13      # 0x6118
movq %r15, %rdi
callq 0x1f8c
movq (%rbx), %rdi
movq 0x20(%rbx), %rsi
movq %r14, %rdx
callq 0x15c8
movq %r12, %rdi
callq 0x1f8c
movq 0x8(%rbx), %rdi
movq 0x28(%rbx), %rsi
movq %r14, %rdx
callq 0x15c8
movq %r13, %rdi
callq 0x1fac
addq $-0x1, %r14
jb 0x1581
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq