LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/spells.c
// Function: cast_rain
void cast_rain(const char *username) {
    int pindex = get_pindex(username);
    char out[MAX_MESSAGE_BUFFER];

    if (!dawn->players[pindex].spellbook.rain.learned) {
        snprintf(out, MAX_MESSAGE_BUFFER, "PRIVMSG %s :%s, you do not know this spell\r\n",
                 dawn->active_room, username);
        add_msg(out, strlen(out));
        return;
    }

    int rain_cost = 1 + dawn->players[pindex].spellbook.rain.level * 6;
    int rain_amount = 1 + rand() % (dawn->players[pindex].spellbook.rain.level * 6);

    if (dawn->players[pindex].mana >= rain_cost) {
        dawn->players[pindex].mana -= rain_cost;

        for (int i = 0; i < dawn->player_count; i++) {
            dawn->players[i].fullness += rain_amount;
            if (dawn->players[i].fullness >= 100) dawn->players[i].fullness = 100;
        }

        snprintf(out, MAX_MESSAGE_BUFFER, "PRIVMSG %s :%s has conjured up a storm. Rain pours down "
                "upon the town, allowing the crops to flourish! Everyone's fullness +%d!\r\n",
                 dawn->active_room, username, rain_amount);
    } else {
        snprintf(out, MAX_MESSAGE_BUFFER, "PRIVMSG %s :%s, you do not have enough mana to cast this spell\r\n",
                 dawn->active_room, username);
    }
    add_msg(out, strlen(out));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rdi, %rbx
callq 0xc860
leaq 0x11e2d(%rip), %r15     # 0x1fa80
movq (%r15), %rcx
cltq
imulq $0x26a8, %rax, %r14     # imm = 0x26A8
cmpl $0x0, 0x1304(%rcx,%r14)
je 0xdcf6
leaq (%rcx,%r14), %rax
addq $0x12fc, %rax           # imm = 0x12FC
imull $0x6, (%rax), %ebp
callq 0x2080
movq (%r15), %rcx
imull $0x6, 0x12fc(%rcx,%r14), %esi
cltd
idivl %esi
movl 0x2820(%rcx,%r14), %eax
cmpl %ebp, %eax
jle 0xdd28
movl %edx, %r9d
leaq (%rcx,%r14), %rdx
addq $0x1a0, %rdx            # imm = 0x1A0
incl %r9d
notl %ebp
addl %ebp, %eax
movl %eax, 0x2680(%rdx)
movslq 0x148(%rcx), %rax
leaq 0x2842(%rcx), %rdx
xorl %esi, %esi
pushq $0x64
popq %rdi
cmpq %rax, %rsi
jge 0xdd06
movzwl (%rdx), %r8d
addw %r9w, %r8w
cmpw $0x64, %r8w
movl %edi, %r10d
cmovll %r8d, %r10d
movw %r10w, (%rdx)
incq %rsi
addq $0x26a8, %rdx           # imm = 0x26A8
jmp 0xdccd
addq $0x100, %rcx            # imm = 0x100
leaq 0x90af(%rip), %rdx      # 0x16db3
jmp 0xdd36
addq $0x100, %rcx            # imm = 0x100
leaq 0x9409(%rip), %rdx      # 0x1711d
movq %rsp, %rdi
movl $0x190, %esi            # imm = 0x190
movq %rbx, %r8
xorl %eax, %eax
callq 0x23a0
jmp 0xdd48
addq $0x100, %rcx            # imm = 0x100
leaq 0x9469(%rip), %rdx      # 0x1719f
movq %rsp, %rdi
movl $0x190, %esi            # imm = 0x190
movq %rbx, %r8
xorl %eax, %eax
callq 0x23a0
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x20c0
movq %rbx, %rdi
movq %rax, %rsi
callq 0xbd04
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/stats.c
// Function: get_stat
void get_stat(struct Message *m, int stats[7]) {
    int i = get_pindex(m->sender_nick);
    if (i == -1) {
        return;
    }
    for (int j = 0; j < (MAX_INVENTORY_SLOTS - dawn->players[i].available_slots); j++) {
        if (is_equipped(i, j)) {
            stats[0] += dawn->players[i].inventory[j].attr_health;
            stats[1] += dawn->players[i].inventory[j].attr_mana;
            stats[2] += dawn->players[i].inventory[j].attr_strength;
            stats[3] += dawn->players[i].inventory[j].attr_intelligence;
            stats[4] += dawn->players[i].inventory[j].attr_mdef;
            stats[5] += dawn->players[i].inventory[j].attr_defense;
        }
    }
    stats[6] = dawn->players[i].alignment;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq 0xc860
cmpl $-0x1, %eax
je 0xdf91
movl %eax, %ebp
cltq
imulq $0x26a8, %rax, %r15     # imm = 0x26A8
leaq 0x394(%r15), %r12
xorl %r14d, %r14d
leaq 0x11b64(%rip), %r13     # 0x1fa80
movq (%r13), %rax
movslq 0x2818(%rax,%r15), %rcx
pushq $0x19
popq %rdx
subq %rcx, %rdx
cmpq %rdx, %r14
jge 0xdf7f
movl %ebp, %edi
movl %r14d, %esi
callq 0x6c10
testl %eax, %eax
je 0xdf73
movq (%r13), %rax
movl (%rax,%r12), %ecx
addl %ecx, (%rbx)
movl 0x2c(%rax,%r12), %ecx
addl %ecx, 0x4(%rbx)
movl 0xc(%rax,%r12), %ecx
addl %ecx, 0x8(%rbx)
movl 0x8(%rax,%r12), %ecx
addl %ecx, 0xc(%rbx)
movl 0x10(%rax,%r12), %ecx
addl %ecx, 0x10(%rbx)
movl 0x4(%rax,%r12), %eax
addl %eax, 0x14(%rbx)
incq %r14
addq $0x9c, %r12
jmp 0xdf1c
addq %r15, %rax
addq $0x1a0, %rax            # imm = 0x1A0
movl 0x2694(%rax), %eax
movl %eax, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/status.c
// Function: init_timers
void init_timers (struct Bot *b, char const * fn) {
    //Times are defined in limits.h and are in seconds
    struct sigaction act;
    memset(&act, '\0', sizeof act);

    act.sa_handler = event_handler; //use simple signal handler
    act.sa_flags = SA_RESTART; //use SA_SIGINFO for more advanced handler

    CALLEXIT(sigaction(SIGALRM, &act, NULL) < 0) //hook SIGALRM to call our message_handler function

    load_events(fn);
    dawn = b;
    add_event(HEALING,         0, HEALING_INTERVAL,         UNIQUE | KEEP);
    add_event(SAVING,          0, SAVING_INTERVAL,          UNIQUE | KEEP);
    add_event(HOURLY,          0, 3600,                     UNIQUE | KEEP);
    add_event(LOTTERY_COLLECT, 0, LOTTERY_COLLECT_INTERVAL, UNIQUE | KEEP);
    add_event(LOTTERY_REWARD,  0, LOTTERY_REWARD_INTERVAL,  UNIQUE | KEEP);
    add_event(BOUNTY_RESET,    0, BOUNTY_RESET_INTERVAL,    UNIQUE | KEEP);
    add_event(BOUNTY_INIT,     0, 15,                       UNIQUE | KEEP);
    printf(INFO "Timers started\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movl $0x90, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x20f0
leaq 0xd9(%rip), %rax        # 0xe0a6
movq %rax, -0x8(%r15)
movl $0x10000000, 0x80(%r15) # imm = 0x10000000
pushq $0xe
popq %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0x2280
testl %eax, %eax
js 0xe092
movq %r14, %rdi
callq 0xe2d6
movq %rbx, 0x11a7e(%rip)     # 0x1fa80
pushq $0x3
popq %rbx
xorl %edi, %edi
xorl %esi, %esi
movl $0x708, %edx            # imm = 0x708
movl %ebx, %ecx
callq 0xe5c7
pushq $0x1
popq %rdi
xorl %esi, %esi
movl $0x384, %edx            # imm = 0x384
movl %ebx, %ecx
callq 0xe5c7
pushq $0x2
popq %rdi
xorl %esi, %esi
movl $0xe10, %edx            # imm = 0xE10
movl %ebx, %ecx
callq 0xe5c7
pushq $0x5
popq %rdi
xorl %esi, %esi
movl $0x708, %edx            # imm = 0x708
movl %ebx, %ecx
callq 0xe5c7
pushq $0x6
popq %rdi
xorl %esi, %esi
movl $0xa8c0, %edx           # imm = 0xA8C0
movl %ebx, %ecx
callq 0xe5c7
pushq $0x7
popq %rdi
xorl %esi, %esi
movl $0x15180, %edx          # imm = 0x15180
movl %ebx, %ecx
callq 0xe5c7
pushq $0x8
popq %rdi
pushq $0xf
popq %rdx
xorl %esi, %esi
movl %ebx, %ecx
callq 0xe5c7
leaq 0x985f(%rip), %rdi      # 0x178df
callq 0x2340
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x91e3(%rip), %rdi      # 0x1727c
callq 0x2190
pushq $0x1
popq %rdi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/status.c
// Function: init_event_list
EventList init_event_list() {
    if(eventQ_singleton) //if an instance already exists do not create a new one
        return 0;
    eventQ_singleton++;
    struct event_list * newlist;
    CALLEXIT(!(newlist = calloc(1, sizeof *newlist)))
    return newlist;
}

// Assembly:
pushq %rax
cmpl $0x0, 0x112ff(%rip)     # 0x1fa88
je 0xe78f
xorl %eax, %eax
jmp 0xe7a9
movl $0x1, 0x112ef(%rip)     # 0x1fa88
pushq $0x1
popq %rdi
pushq $0x10
popq %rsi
callq 0x2110
testq %rax, %rax
je 0xe7ab
popq %rcx
retq
leaq 0x8b11(%rip), %rdi      # 0x172c3
callq 0x2190
pushq $0x1
popq %rdi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/status.c
// Function: free_event_list
void free_event_list() {
    if(elist == 0)
        return;
    struct event_list * celist = (struct event_list *)elist;

    struct event_node * tmp = celist->head;
    while(tmp != 0) {
        struct event_node * next = tmp->next;
        free(tmp->elem);
        free(tmp);
        tmp = next;
    }
    free(elist);
    eventQ_singleton--;
    elist = 0;
}

// Assembly:
movq 0x112ca(%rip), %rax     # 0x1fa90
testq %rax, %rax
je 0xe811
pushq %r14
pushq %rbx
pushq %rax
movq (%rax), %rbx
testq %rbx, %rbx
je 0xe7f0
movq (%rbx), %r14
movq 0x8(%rbx), %rdi
callq 0x2250
movq %rbx, %rdi
callq 0x2250
movq %r14, %rbx
jmp 0xe7d2
movq 0x11299(%rip), %rdi     # 0x1fa90
callq 0x2250
decl 0x11286(%rip)           # 0x1fa88
andq $0x0, 0x11286(%rip)     # 0x1fa90
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/status.c
// Function: update_alarm
void update_alarm() {
    if(elist == 0)
        return;
    struct event_list* celist = (struct event_list *)elist;
    if(celist->head == 0)
        return;

    time_t curtime = time(0);
    time_t event = celist->head->event_time;
    if(event < curtime)
        event_handler(SIGALRM);
    else
        alarm((unsigned int)(event - curtime));
}

// Assembly:
pushq %rbx
movq 0x11276(%rip), %rbx     # 0x1fa90
testq %rbx, %rbx
je 0xe841
cmpq $0x0, (%rbx)
je 0xe841
xorl %edi, %edi
callq 0x21b0
movq (%rbx), %rcx
movq 0x10(%rcx), %rdi
cmpq %rax, %rdi
jge 0xe843
pushq $0xe
popq %rdi
popq %rbx
jmp 0xe0a6
popq %rbx
retq
subl %eax, %edi
popq %rbx
jmp 0x2440
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/status.c
// Function: remove_event
void remove_event(struct event_node * prev) { //requires the /PREVIOUS/ node or 0 for head
    struct event_list * celist = (struct event_list *)elist;
    if(elist == 0)
        return;
    if(prev == 0) {
        struct event_node * next = celist->head->next;
        free(celist->head->elem);
        free(celist->head);
        celist->head = next;
    } else {
        struct event_node * to_free = prev->next;
        prev->next = prev->next->next;
        free(to_free->elem);
        free(to_free);
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x11232(%rip), %rbx     # 0x1fa90
testq %rbx, %rbx
je 0xe8a3
testq %rdi, %rdi
je 0xe889
movq (%rdi), %rbx
movq (%rbx), %rax
movq %rax, (%rdi)
movq 0x8(%rbx), %rdi
callq 0x2250
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2250
movq (%rbx), %rax
movq (%rax), %r14
movq 0x8(%rax), %rdi
callq 0x2250
movq (%rbx), %rdi
callq 0x2250
movq %r14, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/status.c
// Function: retr_event
struct event * retr_event() { //callee must free the data himself
    if(elist == 0)
        return 0;
    struct event_list * celist = (struct event_list *)elist;
    if(celist->head == 0)
        return 0;

    struct event * ret = celist->head->elem;
    struct event_node * to_free = celist->head;
    celist->head = celist->head->next;
    free(to_free);
    celist->len--;
    update_alarm();
    return ret;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x111da(%rip), %r14     # 0x1fa90
testq %r14, %r14
je 0xe8dd
movq (%r14), %rdi
testq %rdi, %rdi
je 0xe8dd
movq (%rdi), %rax
movq 0x8(%rdi), %rbx
movq %rax, (%r14)
callq 0x2250
decq 0x8(%r14)
callq 0xe812
jmp 0xe8df
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/tokenlist.c
// Function: init_token_list
TokenList init_token_list() {
    struct token_list * new_list;
    CALLEXIT(!(new_list = malloc(sizeof *new_list)))
    new_list->head = 0;
    new_list->len = 0;
    new_list->num_total = 0;
    return new_list;
}

// Assembly:
pushq %rax
pushq $0x1
popq %rdi
pushq $0x18
popq %rsi
callq 0x2110
testq %rax, %rax
je 0xea8f
popq %rcx
retq
leaq 0x8e8c(%rip), %rdi      # 0x17922
callq 0x2190
pushq $0x1
popq %rdi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/tokenlist.c
// Function: free_token_list
void free_token_list(TokenList l) {
    if(!l) {
        return;
    }
    struct token_list * cl = l;
    struct token_node * tmp = cl->head;

    while(tmp) {
        struct token_node * next = tmp->next;
        free(tmp->elem);
        free(tmp);
        tmp = next;
    }
    free(cl);
}

// Assembly:
testq %rdi, %rdi
je 0xeade
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0xead1
movq (%r14), %r15
movq 0x10(%r14), %rdi
callq 0x2250
movq %r14, %rdi
callq 0x2250
movq %r15, %r14
jmp 0xeab3
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2250
retq
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/tokenlist.c
// Function: swap
void swap(struct token_node * a, struct token_node * b) {
    assert(a && b);

    char * elemA = a->elem;
    unsigned int numA = a->num;
    int endA = a->end;

    a->elem = b->elem;
    a->num = b->num;
    a->end = b->end;

    b->elem = elemA;
    b->num = numA;
    b->end = endA;
}

// Assembly:
testq %rdi, %rdi
je 0xec63
testq %rsi, %rsi
je 0xec63
movq 0x10(%rdi), %rax
movq 0x10(%rsi), %rcx
movq %rcx, 0x10(%rdi)
movq 0x18(%rsi), %rcx
movq %rax, 0x10(%rsi)
movq 0x18(%rdi), %rax
movq %rcx, 0x18(%rdi)
movq %rax, 0x18(%rsi)
retq
pushq %rax
leaq 0x8e81(%rip), %rdi      # 0x17aec
leaq 0x8e81(%rip), %rsi      # 0x17af3
leaq 0x8e8a(%rip), %rcx      # 0x17b03
movl $0x8d, %edx
callq 0x2100
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/tokenlist.c
// Function: get_iterator
TokenIterator get_iterator(TokenList l) {
    if(!l)
        return 0;
    struct token_list * cl = l;
    struct token_iterator * it;
    CALLEXIT(!(it = malloc(sizeof *it)))
    it->cur_node = cl->head;
    it->consumed = cl->head ? cl->head->num : 0;
    return it;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0xecc3
movq %rdi, %rbx
pushq $0x10
popq %rdi
callq 0x22c0
testq %rax, %rax
je 0xeccf
movq (%rbx), %rcx
movq %rcx, (%rax)
testq %rcx, %rcx
je 0xecc7
movl 0x18(%rcx), %ecx
jmp 0xecc9
xorl %eax, %eax
jmp 0xeccd
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
popq %rbx
retq
leaq 0x8dd3(%rip), %rdi      # 0x17aa9
callq 0x2190
pushq $0x1
popq %rdi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/util.c
// Function: gaussrand
double gaussrand() {
    static double V1, V2, S;
    static int phase = 0;
    double X;

    if(phase == 0) {
        do {
            V1 = 2 * randd() - 1;
            V2 = 2 * randd() - 1;
            S = V1 * V1 + V2 * V2;
        } while(S >= 1 || !(S < 0 || S > 0)); //S must be != 0
        X = V1 * sqrt(-2 * log(S) / S);
    } else {
        X = V2 * sqrt(-2 * log(S) / S);
    }
    phase = !phase;

    return X;
}

// Assembly:
pushq %rax
cmpl $0x0, 0x10d68(%rip)     # 0x1fab0
je 0xed5c
movsd 0x10d4e(%rip), %xmm2    # 0x1faa0
movsd 0x10d4e(%rip), %xmm0    # 0x1faa8
jmp 0xedca
callq 0xed2c
addsd %xmm0, %xmm0
movsd 0x8dd3(%rip), %xmm1     # 0x17b40
addsd %xmm1, %xmm0
movsd %xmm0, 0x10d1f(%rip)    # 0x1fa98
callq 0xed2c
movapd %xmm0, %xmm1
addsd %xmm0, %xmm1
addsd 0x8db2(%rip), %xmm1     # 0x17b40
movsd %xmm1, 0x10d0a(%rip)    # 0x1faa0
movsd 0x10cfa(%rip), %xmm2    # 0x1fa98
mulsd %xmm1, %xmm1
movapd %xmm2, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x10cf2(%rip)    # 0x1faa8
ucomisd 0x6f02(%rip), %xmm0     # 0x15cc0
jae 0xed5c
ucomisd 0x8d88(%rip), %xmm0     # 0x17b50
jbe 0xed5c
movsd %xmm2, (%rsp)
callq 0x2160
mulsd 0x8d6c(%rip), %xmm0     # 0x17b48
divsd 0x10cc4(%rip), %xmm0    # 0x1faa8
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0xedf4
sqrtsd %xmm0, %xmm0
jmp 0xedf9
callq 0x2150
xorl %eax, %eax
cmpl $0x0, 0x10cae(%rip)     # 0x1fab0
movsd (%rsp), %xmm1
mulsd %xmm0, %xmm1
sete %al
movl %eax, 0x10c9c(%rip)     # 0x1fab0
movapd %xmm1, %xmm0
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/util.c
// Function: perlin_init
void perlin_init() { //this is a very wrong way to do this but it works for our purposes
    int permutation[256];
    for(int i = 0; i < 256; i++) {
        permutation[i] = i;
    }
    for(int i = 0; i < 256; i++) {
        unsigned pos = (unsigned)(i + randd()*(256-i));
        int tmp = permutation[i];
        permutation[i] = permutation[pos];
        permutation[pos] = tmp;
    }
    if(p_noise_arr) {
        free(p_noise_arr);
    }
    CALLEXIT(!(p_noise_arr = malloc(512 * sizeof *p_noise_arr)))
    for (int i=0; i < 256 ; i++) {
        p_noise_arr[256+i] = p_noise_arr[i] = permutation[i];
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x410, %rsp            # imm = 0x410
xorl %eax, %eax
cmpq $0x100, %rax            # imm = 0x100
je 0xeea7
movl %eax, 0x10(%rsp,%rax,4)
incq %rax
jmp 0xee96
movl $0x100, %r15d           # imm = 0x100
xorl %ebx, %ebx
movl $0x100, %r14d           # imm = 0x100
subq $0x1, %r14
jb 0xeef8
cvtsi2sd %ebx, %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0xed2c
cvtsi2sd %r15d, %xmm1
mulsd %xmm0, %xmm1
addsd 0x8(%rsp), %xmm1
cvttsd2si %xmm1, %rax
movl 0x10(%rsp,%rbx,4), %ecx
movl %eax, %eax
movl 0x10(%rsp,%rax,4), %edx
movl %edx, 0x10(%rsp,%rbx,4)
movl %ecx, 0x10(%rsp,%rax,4)
incq %rbx
movq %r14, %r15
jmp 0xeeb5
movq 0x10bb9(%rip), %rdi     # 0x1fab8
callq 0x2250
movl $0x800, %edi            # imm = 0x800
callq 0x22c0
movq %rax, 0x10ba3(%rip)     # 0x1fab8
testq %rax, %rax
je 0xef45
xorl %ecx, %ecx
cmpq $0x100, %rcx            # imm = 0x100
je 0xef38
movl 0x10(%rsp,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
movl %edx, 0x400(%rax,%rcx,4)
incq %rcx
jmp 0xef1c
addq $0x410, %rsp            # imm = 0x410
popq %rbx
popq %r14
popq %r15
retq
leaq 0x8c50(%rip), %rdi      # 0x17b9c
callq 0x2190
pushq $0x1
popq %rdi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/util.c
// Function: grad
static inline float grad(int hash, float x, float y, float z) {
    int h = hash & 15;                      // CONVERT LO 4 BITS OF HASH CODE
    float u = h<8 ? x : y,                 // INTO 12 GRADIENT DIRECTIONS.
            v = h<4 ? y : h==12||h==14 ? x : z;
    return ((h&1) == 0 ? u : -u) + ((h&2) == 0 ? v : -v);
}

// Assembly:
movl %edi, %eax
andl $0xf, %eax
movdqa %xmm1, %xmm3
cmpl $0x4, %eax
jb 0xf2b4
movl %edi, %ecx
andl $0xd, %ecx
movdqa %xmm0, %xmm3
cmpl $0xc, %ecx
je 0xf2b4
movdqa %xmm2, %xmm3
cmpl $0x8, %eax
jb 0xf2bd
movdqa %xmm1, %xmm0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movd %edi, %xmm1
pshufd $0x50, %xmm1, %xmm1     # xmm1 = xmm1[0,0,1,1]
pand 0x88ae(%rip), %xmm1     # 0x17b80
pxor %xmm2, %xmm2
pcmpeqd %xmm1, %xmm2
movdqa 0x888e(%rip), %xmm1     # 0x17b70
pxor %xmm0, %xmm1
pand %xmm2, %xmm0
pandn %xmm1, %xmm2
por %xmm0, %xmm2
pshufd $0x55, %xmm2, %xmm0     # xmm0 = xmm2[1,1,1,1]
addss %xmm2, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/util.c
// Function: init_priority_queue
PriorityQueue init_priority_queue(void) {
    struct priority_queue * rop;
    CALLEXIT(!(rop = malloc(sizeof *rop)))
    rop->head = NULL;
    rop->min = NULL;
    rop->min_prev = NULL;
    rop->size = 0;
    return rop;
}

// Assembly:
pushq %rax
pushq $0x1
popq %rdi
pushq $0x20
popq %rsi
callq 0x2110
testq %rax, %rax
je 0xf30f
popq %rcx
retq
leaq 0x88db(%rip), %rdi      # 0x17bf1
callq 0x2190
pushq $0x1
popq %rdi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/util.c
// Function: free_priority_queue
void free_priority_queue(PriorityQueue pq, int free_elem) {
    while(pq->head) {
        struct priority_node * next = pq->head->next;
        free_tree(pq->head->tree, free_elem);
        free(pq->head);
        pq->head = next;
    }
    free(pq);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0xf34f
movq (%r14), %rdi
movq 0x8(%r14), %r14
movl %ebp, %esi
callq 0xf35b
movq (%rbx), %rdi
callq 0x2250
movq %r14, (%rbx)
jmp 0xf32f
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x2250
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/util.c
// Function: free_tree
static void free_tree(struct priority_tree * pt, int free_elem) {
    while(pt->children) {
        struct priority_node * next = pt->children->next;
        free_tree(pt->children->tree, free_elem);
        free(pt->children);
        pt->children = next;
    }
    if(free_elem) {
        free(pt->elem);
    }
    free(pt);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq 0x8(%rdi), %r14
testq %r14, %r14
je 0xf38a
movq (%r14), %rdi
movq 0x8(%r14), %r14
movl %ebp, %esi
callq 0xf35b
movq 0x8(%rbx), %rdi
callq 0x2250
movq %r14, 0x8(%rbx)
jmp 0xf368
testl %ebp, %ebp
je 0xf396
movq (%rbx), %rdi
callq 0x2250
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x2250
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/util.c
// Function: priority_insert
void priority_insert(PriorityQueue pq, float priority, void * elem) {
    struct priority_tree * new_tree;
    CALLEXIT(!(new_tree = malloc(sizeof *new_tree)))
    new_tree->children = NULL;
    new_tree->last_child = NULL;
    new_tree->degree = 0;
    new_tree->elem = elem;
    new_tree->priority = priority;

    priority_insert_tree(pq, new_tree);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movss %xmm0, 0xc(%rsp)
movq %rdi, %rbx
pushq $0x20
popq %rdi
callq 0x22c0
testq %rax, %rax
je 0xf410
movq %rax, %r14
andl $0x0, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq %r15, (%rax)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x1c(%rax)
pushq $0x10
popq %rdi
callq 0x22c0
testq %rax, %rax
je 0xf419
movq (%rbx), %rcx
movq %rcx, 0x8(%rax)
movq %r14, (%rax)
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0xf5a3
incq 0x18(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x881a(%rip), %rdi      # 0x17c31
jmp 0xf420
leaq 0x88a3(%rip), %rdi      # 0x17cc3
callq 0x2190
pushq $0x1
popq %rdi
callq 0x2270
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/util.c
// Function: priority_add_child
static void priority_add_child(struct priority_tree * parent, struct priority_node * new_child) {
    new_child->next = parent->children;
    parent->children = new_child;
    parent->degree++;
    if(!parent->last_child) {
        parent->last_child = parent->children;
    }
}

// Assembly:
movq 0x8(%rdi), %rax
movq %rax, 0x8(%rsi)
movq %rsi, 0x8(%rdi)
incl 0x18(%rdi)
cmpq $0x0, 0x10(%rdi)
je 0xf59e
retq
movq %rsi, 0x10(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/Ziddykins[P]Dawn/src/util.c
// Function: priority_update_min
static inline void priority_update_min(PriorityQueue pq) {
    if(!pq->min || pq->min->tree->priority > pq->head->tree->priority) {
        pq->min_prev = NULL;
        pq->min = pq->head;
    } else if(!pq->min_prev && pq->min) {
        pq->min_prev = pq->head;
    }
}

// Assembly:
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0xf5c0
movq (%rcx), %rcx
movss 0x1c(%rcx), %xmm0
movq (%rax), %rcx
ucomiss 0x1c(%rcx), %xmm0
jbe 0xf5cd
andq $0x0, 0x10(%rdi)
addq $0x8, %rdi
movq %rax, (%rdi)
retq
cmpq $0x0, 0x10(%rdi)
jne 0xf5cc
addq $0x10, %rdi
jmp 0xf5c9
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//dirent/acl.c
// Function: major_minor
void	major_minor(dev_t st_rdev, off_t st_size, t_ls *ls)
{
	t_byte			mm;
	unsigned int	major;
	unsigned int	minor;

	major = major(st_rdev);
	minor = minor(st_rdev);
	mm = (major || minor);
	if (mm)
	{
		ft_printf("%4d,", major);
		ft_repet(' ', ls->file_size - ft_sizei(minor));
		ft_printf("%d ", minor);
	}
	else
	{
		ft_putstr("     ");
		ft_repet(' ', ls->file_size - ft_sizei(st_size));
		ft_printf("%lu ", st_size);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
callq 0x1100
movl %eax, %r15d
movq %r12, %rdi
callq 0x1110
movl %eax, %ebp
movl %r15d, %eax
orl %ebp, %eax
je 0x16b5
leaq 0x3c03(%rip), %rdi      # 0x527c
movl %r15d, %esi
xorl %eax, %eax
callq 0x2563
movl 0xa8(%r14), %ebx
movl %ebp, %edi
callq 0x249c
subl %eax, %ebx
pushq $0x20
popq %rdi
movl %ebx, %esi
callq 0x23dc
leaq 0x3bdd(%rip), %rdi      # 0x5281
movl %ebp, %esi
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2563
leaq 0x3bc9(%rip), %rdi      # 0x5285
callq 0x243c
movl 0xa8(%r14), %ebp
movq %rbx, %rdi
callq 0x249c
subl %eax, %ebp
pushq $0x20
popq %rdi
movl %ebp, %esi
callq 0x23dc
leaq 0x3ba8(%rip), %rdi      # 0x528b
movq %rbx, %rsi
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2563
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//dirent/color.c
// Function: element_color
void	element_color(char *cont, char *name, struct stat buf, t_u_char *flags)
{
	char	type;

	type = file_type(buf.st_mode);
	if (type == 'l')
	{
		color_link(cont, name, buf, flags);
		return ;
	}
	else if (type == 'd')
		ft_putstr(BOLD""CEL);
	else if (buf.st_mode & S_IXUSR)
		ft_putstr(BOLD""GREEN);
	else if (type == 'b' || type == 'c')
		ft_putstr(BOLD""YELLOW);
	ft_printf("%s"E0M, name);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movl 0x58(%rsp), %ebp
movl %ebp, %edi
callq 0x1604
cmpb $0x64, %al
je 0x1a04
movzbl %al, %ecx
cmpl $0x6c, %ecx
jne 0x1a0d
leaq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
leaq 0x1(%rax), %rcx
testq %rax, %rax
movl $0x1000, %r13d          # imm = 0x1000
cmovneq %rcx, %r13
movq %r13, %rdi
callq 0x10f0
movq %rax, %r15
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x1050
movb $0x0, (%r15,%rax)
cmpb $0x0, 0x6c(%r14)
je 0x1a4d
leaq 0x3913(%rip), %rdi      # 0x5308
movq %rbx, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2563
jmp 0x1a5e
leaq 0x38d1(%rip), %rdi      # 0x52dc
jmp 0x1a29
testb $0x40, %bpl
jne 0x1a22
andb $-0x2, %al
cmpb $0x62, %al
jne 0x1a2e
leaq 0x38de(%rip), %rdi      # 0x52fe
jmp 0x1a29
leaq 0x38cb(%rip), %rdi      # 0x52f4
callq 0x243c
leaq 0x38f2(%rip), %rdi      # 0x5327
movq %rbx, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2563
leaq 0x38ca(%rip), %rdi      # 0x531e
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2563
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//eval/ft_ls.c
// Function: path_file
char	*path_file(char *path, char *name, int lslash)
{
	char	*tmp;
	char	*file;

	if ((path[lslash + 1] && path[lslash] == '/')
		|| (!lslash && path[0] != '/'))
	{
		file = ft_strjoin(path, "/");
		tmp = file;
	}
	else
		file = path;
	file = ft_strjoin(file, name);
	if ((path[lslash + 1] && path[lslash] == '/')
		|| (!lslash && path[0] != '/'))
		free(tmp);
	return (file);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movslq %edx, %r12
cmpb $0x0, 0x1(%rdi,%r12)
je 0x1a96
cmpb $0x2f, (%rbx,%r12)
je 0x1aa5
movq %rbx, %r15
testl %ebp, %ebp
jne 0x1ab7
cmpb $0x2f, (%rbx)
movq %rbx, %r15
je 0x1ab7
leaq 0x3882(%rip), %rsi      # 0x532e
movq %rbx, %rdi
callq 0x47f4
movq %rax, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x47f4
movq %rax, %r14
cmpb $0x0, 0x1(%rbx,%r12)
je 0x1ad4
cmpb $0x2f, (%rbx,%r12)
je 0x1add
testl %ebp, %ebp
jne 0x1ae5
cmpb $0x2f, (%rbx)
je 0x1ae5
movq %r15, %rdi
callq 0x1030
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//eval/ft_ls.c
// Function: measure_dir
int	measure_dir(char *name, char *path, t_ls *ls)
{
	struct stat			buf;
	char				*file;
	int					file_size;
	int					link_count;

	if (!ls->flags['l'])
		return (0);
	file = path_file(path, name, ls->lslash);
	ft_memset(&buf, 0, sizeof(struct stat *));
	if (lstat(file, &buf) == -1)
	{
		ft_printf_fd(2, WLSTAT, file, strerror(errno));
		return (0);
	}
	free(file);
	file_size = ft_sizei(buf.st_size);
	if (file_size > ls->file_size)
		ls->file_size = file_size;
	link_count = ft_sizei(buf.st_nlink);
	if (link_count > ls->link_count)
		ls->link_count = link_count;
	return (buf.st_blocks);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x98, %rsp
cmpb $0x0, 0x8c(%rdx)
je 0x1b9e
movq %rdx, %rbx
movq %rdi, %rax
movl 0xa0(%rdx), %edx
movq %rsi, %rdi
movq %rax, %rsi
callq 0x1a74
movq %rax, %r14
leaq 0x8(%rsp), %r15
xorl %ebp, %ebp
pushq $0x8
popq %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x49f4
movq %r14, %rdi
movq %r15, %rsi
callq 0x10d0
cmpl $-0x1, %eax
je 0x1ba2
movq %r14, %rdi
callq 0x1030
movq 0x38(%rsp), %rdi
callq 0x249c
cmpl %eax, 0xa8(%rbx)
jge 0x1b80
movl %eax, 0xa8(%rbx)
movq 0x18(%rsp), %rdi
callq 0x249c
cmpl %eax, 0xa4(%rbx)
jge 0x1b98
movl %eax, 0xa4(%rbx)
movl 0x48(%rsp), %ebp
jmp 0x1bc5
xorl %ebp, %ebp
jmp 0x1bc5
callq 0x1040
movl (%rax), %edi
callq 0x1140
leaq 0x36db(%rip), %rsi      # 0x5290
pushq $0x2
popq %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x24c0
movl %ebp, %eax
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//eval/ft_ls.c
// Function: ft_ls
void	ft_ls(t_ls *ls)
{
	if (ls->flags['r'] && !ls->flags['t'])
	{
		strquick(ls->files, ls->size_f, &alpha_rev);
		strquick(ls->dirs, ls->size_d, &alpha_rev);
	}
	else if (ls->flags['r'] && ls->flags['t'])
	{
		strquick(ls->files, ls->size_f, &time_rev);
		strquick(ls->dirs, ls->size_d, &time_rev);
	}
	else if (ls->flags['t'])
	{
		strquick(ls->files, ls->size_f, &time_cmp);
		strquick(ls->dirs, ls->size_d, &time_cmp);
	}
	else
	{
		strquick(ls->files, ls->size_f, &alpha_cmp);
		strquick(ls->dirs, ls->size_d, &alpha_cmp);
	}
	print_files(ls->files, ls->flags, ls);
	if (ls->size_f && ls->size_d)
		ft_putchar('\n');
	print_dirs(ls->dirs, ls->flags, ls);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x94(%rdi)
leaq 0x126(%rip), %rax       # 0x1d27
cmoveq 0x63b7(%rip), %rax      # 0x7fc0
leaq 0x169(%rip), %r15       # 0x1d79
cmoveq 0x63c8(%rip), %r15      # 0x7fe0
leaq 0x20(%rdi), %r14
cmpb $0x0, 0x92(%rdi)
movq 0x10(%rdi), %rdi
movq 0x18(%rbx), %rsi
cmovneq %rax, %r15
movq %r15, %rdx
callq 0x2288
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movq %r15, %rdx
callq 0x2288
movq 0x10(%rbx), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1e38
cmpq $0x0, 0x18(%rbx)
je 0x1c6b
cmpq $0x0, 0x8(%rbx)
je 0x1c6b
pushq $0xa
popq %rdi
callq 0x2424
movq (%rbx), %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x21b0
nop
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//eval/sort.c
// Function: alpha_rev
int	alpha_rev(char *a, char *b)
{
	char	la;
	char	lb;

	if (*a == '.')
		a++;
	if (*b == '.')
		b++;
	while (*a && *b)
	{
		la = *a;
		if ('A' <= *a && *a <= 'Z')
			la = (*a) + ('a' - 'A');
		lb = *b;
		if ('A' <= *b && *b <= 'Z')
			lb = (*b) + ('a' - 'A');
		if (la != lb)
			return ((la - lb) > 0);
		a++;
		b++;
	}
	return ((*a - *b) > 0);
}

// Assembly:
xorl %eax, %eax
cmpb $0x2e, (%rdi)
sete %al
addq %rdi, %rax
xorl %ecx, %ecx
cmpb $0x2e, (%rsi)
sete %cl
addq %rsi, %rcx
xorl %edx, %edx
movb (%rax,%rdx), %dil
movb (%rcx,%rdx), %sil
testb %dil, %dil
je 0x1d1d
testb %sil, %sil
je 0x1d1d
leal -0x41(%rdi), %r8d
leal 0x20(%rdi), %r9d
cmpb $0x1a, %r8b
movzbl %dil, %edi
movzbl %r9b, %r8d
cmovael %edi, %r8d
leal -0x41(%rsi), %edi
leal 0x20(%rsi), %r9d
cmpb $0x1a, %dil
movzbl %sil, %esi
movzbl %r9b, %edi
cmovael %esi, %edi
cmpb %dil, %r8b
jne 0x1d20
incq %rdx
jmp 0x1cd3
cmpb %sil, %dil
setg %al
movzbl %al, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//eval/sort.c
// Function: time_rev
int	time_rev(char *a, char *b)
{
	struct stat	buf;
	struct stat	buf_next;

	if (lstat(a, &buf) == -1)
		return (0);
	if (lstat(b, &buf_next) == -1)
		return (0);
	return (buf.st_mtime < buf_next.st_mtime);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rsi, %r14
leaq 0x98(%rsp), %rsi
callq 0x10d0
xorl %ebx, %ebx
cmpl $-0x1, %eax
je 0x1d6c
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x10d0
cmpl $-0x1, %eax
je 0x1d6c
movq 0xf0(%rsp), %rax
xorl %ebx, %ebx
cmpq 0x60(%rsp), %rax
setl %bl
movl %ebx, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//eval/surfing.c
// Function: print_files
void	print_files(char **files, t_u_char *flags, t_ls *ls)
{
	while (*files)
	{
		print_element(*files, *files, flags, ls);
		if (!flags['l'] && *(files + 1))
			ft_putstr("  ");
		else
			ft_putchar('\n');
		files++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
addq $0x8, %r15
leaq 0x3434(%rip), %r12      # 0x5288
pushq $0xa
popq %rbp
movq -0x8(%r15), %rdi
testq %rdi, %rdi
je 0x1e92
movq %rdi, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x16f5
cmpb $0x0, 0x6c(%r14)
je 0x1e7e
movl %ebp, %edi
callq 0x2424
jmp 0x1e8c
cmpq $0x0, (%r15)
je 0x1e75
movq %r12, %rdi
callq 0x243c
addq $0x8, %r15
jmp 0x1e57
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//eval/surfing.c
// Function: print_content
void	print_content(char content[][256], char *path, t_ls *ls, size_t size)
{
	size_t	i;
	char	*file;

	i = 0;
	if (ls->flags['l'])
		ft_printf("total %d\n", ls->total / 2);
	while (i < size)
	{
		file = path_file(path, content[i], ls->lslash);
		print_element(file, content[i], ls->flags, ls);
		if (!ls->flags['l'] && (i + 1 < size))
			ft_putstr("  ");
		else
			ft_putchar('\n');
		free(file);
		i++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x8(%rsp)
movq %rdx, %r14
movq %rsi, 0x10(%rsp)
movq %rdi, %r12
cmpb $0x0, 0x8c(%rdx)
je 0x1edf
movl 0x9c(%r14), %eax
pushq $0x2
popq %rcx
cltd
idivl %ecx
leaq 0x345a(%rip), %rdi      # 0x5330
movl %eax, %esi
xorl %eax, %eax
callq 0x2563
leaq 0x20(%r14), %r13
movq 0x8(%rsp), %rbx
negq %rbx
pushq $0x1
popq %r15
leaq (%rbx,%r15), %rax
cmpq $0x1, %rax
je 0x1f5c
movl 0xa0(%r14), %edx
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x1a74
movq %rax, %rbp
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x16f5
cmpq 0x8(%rsp), %r15
jae 0x1f40
cmpb $0x0, 0x8c(%r14)
jne 0x1f40
leaq 0x334f(%rip), %rdi      # 0x5288
callq 0x243c
jmp 0x1f48
pushq $0xa
popq %rdi
callq 0x2424
movq %rbp, %rdi
callq 0x1030
incq %r15
addq $0x100, %r12            # imm = 0x100
jmp 0x1eef
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//eval/surfing.c
// Function: print_dir
void	print_dir(DIR *dir, char *path, t_u_char *flags, t_ls *ls)
{
	char			content[NDIR][256];
	size_t			c;
	char			str[256];
	struct dirent	*dp;

	ft_bzero(content, sizeof(content));
	dp = readdir(dir);
	c = 0;
	init_lsdir(ls, last_slash(path));
	while (dp && c < NDIR)
	{
		str[0] = 0;
		ft_strcat(str, dp->d_name);
		if (str[0] != '.' || (str[0] == '.' && flags['a']))
		{
			insert_content(content, flags, c++, str);
			ls->total += measure_dir(str, path, ls);
		}
		dp = readdir(dir);
	}
	print_content(content, path, ls, c);
	if (flags['R'])
		print_recursive(content, c, path, ls);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40118, %rsp          # imm = 0x40118
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r12
leaq 0x110(%rsp), %rdi
movl $0x40000, %esi          # imm = 0x40000
callq 0x4a9c
movq %r12, %rdi
callq 0x10e0
movq %rax, %r14
movq %r13, 0x8(%rsp)
movq %r13, %rdi
callq 0x1af1
movq %rbx, %rdi
movl %eax, %esi
callq 0x1bd5
xorl %ebp, %ebp
leaq 0x10(%rsp), %r13
testq %r14, %r14
je 0x2033
cmpq $0x3ff, %rbp            # imm = 0x3FF
ja 0x2033
movb $0x0, 0x10(%rsp)
addq $0x13, %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x49c8
cmpb $0x2e, 0x10(%rsp)
jne 0x1ff3
cmpb $0x0, 0x61(%r15)
je 0x2026
leaq 0x1(%rbp), %r14
leaq 0x110(%rsp), %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x1c80
movq %r13, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x1b0c
addl %eax, 0x9c(%rbx)
movq %r14, %rbp
movq %r12, %rdi
callq 0x10e0
movq %rax, %r14
jmp 0x1fc3
leaq 0x110(%rsp), %rdi
movq 0x8(%rsp), %r14
movq %r14, %rsi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x1e9b
cmpb $0x0, 0x52(%r15)
je 0x206b
leaq 0x110(%rsp), %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x207d
addq $0x40118, %rsp          # imm = 0x40118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//eval/surfing.c
// Function: print_recursive
void	print_recursive(char dirs[][256], size_t c, char *path, t_ls *ls)
{
	DIR		*dir;
	size_t	i;
	char	*file;

	i = 0;
	while (i < c)
	{
		file = path_file(path, dirs[i], last_slash(path));
		if (is_file(file) == -1 && is_dir(file) && !is_dot(dirs[i]))
		{
			dir = opendir(file);
			if (dir)
			{
				ft_printf("\n%s:\n", file);
				print_dir(dir, file, ls->flags, ls);
				closedir(dir);
			}
			else
				ft_printf_fd(2, WDIROP, *dirs, strerror(errno));
		}
		else if (is_file(file) <= 0 && !is_dot(dirs[i]))
			ft_printf_fd(2, WACCESS, file, strerror(errno));
		free(file);
		i++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq %rcx, 0x8(%rsp)
leaq 0x20(%rcx), %rax
movq %rax, 0x10(%rsp)
pushq $0x2
popq %rbx
movq %rdi, (%rsp)
subq $0x1, %r15
jb 0x21a1
movq %r14, %rdi
callq 0x1af1
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x1a74
movq %rax, %r13
movq %rax, %rdi
callq 0x1588
cmpl $-0x1, %eax
je 0x2112
movq %r13, %rdi
callq 0x1588
testl %eax, %eax
jg 0x218d
movq %r12, %rdi
callq 0x1628
testl %eax, %eax
jne 0x218d
callq 0x1040
movl (%rax), %edi
callq 0x1140
movl %ebx, %edi
leaq 0x2efe(%rip), %rsi      # 0x500b
movq %r13, %rdx
jmp 0x2183
movq %r13, %rdi
callq 0x156c
testl %eax, %eax
je 0x20d8
movq %r12, %rdi
callq 0x1628
testl %eax, %eax
jne 0x20d8
movq %r13, %rdi
callq 0x1070
testq %rax, %rax
je 0x216a
movq %rax, %rbp
leaq 0x31f9(%rip), %rdi      # 0x533a
movq %r13, %rsi
xorl %eax, %eax
callq 0x2563
movq %rbp, %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
callq 0x1f6b
movq %rbp, %rdi
callq 0x10c0
jmp 0x218d
callq 0x1040
movl (%rax), %edi
callq 0x1140
movl %ebx, %edi
leaq 0x31c1(%rip), %rsi      # 0x5340
movq (%rsp), %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x24c0
movq %r13, %rdi
callq 0x1030
addq $0x100, %r12            # imm = 0x100
jmp 0x20a9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/depo/.././src//eval/surfing.c
// Function: print_dirs
void	print_dirs(char **dirs, t_u_char *flags, t_ls *ls)
{
	DIR	*dir;

	while (*dirs)
	{
		dir = opendir(*dirs);
		if (dir)
		{
			if (ls->size_f || ls->size_d > 1 || ls->filerr || flags['R'])
				ft_printf("%s:\n", *dirs);
			print_dir(dir, *dirs, flags, ls);
			closedir(dir);
		}
		else
			ft_printf_fd(2, WDIROP, *dirs, strerror(errno));
		dirs++;
		if (*dirs)
			ft_putchar('\n');
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
pushq $0xa
popq %r12
leaq 0x316c(%rip), %r13      # 0x533b
movq (%r15), %rdi
testq %rdi, %rdi
je 0x2276
callq 0x1070
testq %rax, %rax
je 0x222e
movq %rax, %rbp
cmpq $0x0, 0x18(%rbx)
jne 0x2206
cmpq $0x1, 0x8(%rbx)
ja 0x2206
cmpb $0x0, 0x98(%rbx)
jne 0x2206
cmpb $0x0, 0x52(%r14)
je 0x2213
movq (%r15), %rsi
movq %r13, %rdi
xorl %eax, %eax
callq 0x2563
movq (%r15), %rsi
movq %rbp, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1f6b
movq %rbp, %rdi
callq 0x10c0
jmp 0x2254
movq (%r15), %rbp
callq 0x1040
movl (%rax), %edi
callq 0x1140
pushq $0x2
popq %rdi
leaq 0x30f9(%rip), %rsi      # 0x5340
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x24c0
leaq 0x8(%r15), %rbp
cmpq $0x0, 0x8(%r15)
movq %rbp, %r15
je 0x21cf
movl %r12d, %edi
callq 0x2424
movq %rbp, %r15
jmp 0x21cf
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/libft/libalgorithm/depo/.././src//sorting/strquick.c
// Function: quick
static void	quick(char **list, int low, int high, int f(char *, char *))
{
	int	part;

	if (low < high)
	{
		part = partit(list, low, high, f);
		quick(list, low, part - 1, f);
		quick(list, part + 1, high, f);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x10(%rsp)
movl %esi, %ebx
movq %rdi, %r14
movl %edx, 0x8(%rsp)
movslq %edx, %r13
cmpl 0x8(%rsp), %ebx
jge 0x231c
movq (%r14,%r13,8), %r12
movslq %ebx, %r15
movl %ebx, 0xc(%rsp)
movslq %ebx, %rbp
cmpq %r15, %r13
je 0x22f2
movq (%r14,%r15,8), %rdi
movq %r12, %rsi
callq *0x10(%rsp)
testl %eax, %eax
je 0x22ed
movq (%r14,%rbp,8), %rax
movq (%r14,%r15,8), %rcx
movq %rcx, (%r14,%rbp,8)
movq %rax, (%r14,%r15,8)
incl %ebp
movl %ebp, %ebx
incq %r15
jmp 0x22c2
movq (%r14,%rbp,8), %rax
movq (%r14,%r13,8), %rcx
movq %rcx, (%r14,%rbp,8)
movq %rax, (%r14,%r13,8)
leal -0x1(%rbp), %edx
movq %r14, %rdi
movl 0xc(%rsp), %esi
movq 0x10(%rsp), %rcx
callq 0x2292
incl %ebp
movl %ebp, %ebx
jmp 0x22b1
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/libft/libalgorithm/depo/.././src//sorting/binsearch.c
// Function: binsearch
int	binsearch(char array[][256], t_sizes sizes, char *key,
									int f(char *, char *))
{
	size_t	start;
	size_t	end;
	size_t	mid;

	start = sizes.s1;
	end = sizes.s2;
	if ((long)end < 0 || (long)start < 0)
		return (0);
	mid = 0;
	while (start <= end && 0 <= (long)mid)
	{
		mid = (long)(start + (end - start) / 2);
		if (0 <= (long)mid)
		{
			if (f(key, array[mid]))
				end = mid - 1;
			else
				start = mid + 1;
		}
		else
			break ;
	}
	return (start);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
xorl %eax, %eax
movq %rdx, %rcx
orq %rsi, %rcx
js 0x23ca
movq %r8, %rbx
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r12
movq %r13, %rbp
subq %r15, %rbp
jb 0x23c7
shrq %rbp
addq %r15, %rbp
js 0x23c7
movq %rbp, %rsi
shlq $0x8, %rsi
addq %r12, %rsi
movq %r14, %rdi
callq *%rbx
testl %eax, %eax
je 0x23bf
decq %rbp
movq %rbp, %r13
jmp 0x2394
incq %rbp
movq %rbp, %r15
jmp 0x2394
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/libft/libstd/depo/.././src//c/stdio/ft_repet.c
// Function: ft_repet
int	ft_repet(char c, int i)
{
	int	nb;

	nb = 0;
	while (nb < i)
		nb += ft_write(1, &c, 1);
	return (nb);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
leaq 0xf(%rsp), %r14
movb %dil, (%r14)
xorl %ebp, %ebp
pushq $0x1
popq %r15
pushq $0x1
popq %r12
cmpl %ebx, %ebp
jge 0x2412
movl %r15d, %edi
movq %r14, %rsi
movq %r12, %rdx
callq 0x4520
addl %eax, %ebp
jmp 0x23fc
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/libft/libstd/depo/.././src//c/stdlib/ft_sizei.c
// Function: ft_sizei
size_t	ft_sizei(size_t nb)
{
	int	i;

	if (nb == 0)
		return (1);
	i = 0;
	while (nb)
	{
		nb /= 10;
		i++;
	}
	return (i);
}

// Assembly:
testq %rdi, %rdi
je 0x24b8
movq %rdi, %rax
xorl %ecx, %ecx
pushq $0xa
popq %rsi
testq %rax, %rax
je 0x24bb
xorl %edx, %edx
divq %rsi
incq %rcx
jmp 0x24a9
pushq $0x1
popq %rcx
movq %rcx, %rax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/libft/libstd/depo/.././src//c/stdio/ft_printf/ft_printf.c
// Function: ft_printf_fd
int	ft_printf_fd(const int fd, const char *format, ...)
{
	va_list	args;
	int		res;

	if (format[0] == '%' && format[1] == 0)
		return (0);
	va_start(args, format);
	res = ft_vfprintf(format, args, fd);
	va_end(args);
	return (res);
}

// Assembly:
subq $0xd8, %rsp
movl %edi, %r10d
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x2519
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpb $0x25, (%rsi)
jne 0x2524
cmpb $0x0, 0x1(%rsi)
je 0x255f
leaq 0x20(%rsp), %rcx
movq %rsp, %rax
movq %rcx, 0x10(%rax)
leaq 0xe0(%rsp), %rcx
movq %rcx, 0x8(%rax)
movabsq $0x3000000010, %rcx     # imm = 0x3000000010
movq %rcx, (%rax)
movq %rsi, %rdi
movq %rax, %rsi
movl %r10d, %edx
callq 0x286b
addq $0xd8, %rsp
retq
xorl %eax, %eax
jmp 0x2557
// File: /workspace/github_c_makefile_star2_O2/AndreIglesias[P]quick_ls/libft/libstd/depo/.././src//c/stdio/ft_printf/ft_printf.c
// Function: ft_printf
int	ft_printf(const char *format, ...)
{
	va_list	args;
	int		res;

	if (format[0] == '%' && format[1] == 0)
		return (0);
	va_start(args, format);
	res = ft_vfprintf(format, args, 1);
	va_end(args);
	return (res);
}

// Assembly:
subq $0xd8, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x25be
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpb $0x25, (%rdi)
jne 0x25c9
cmpb $0x0, 0x1(%rdi)
je 0x25fe
leaq 0x20(%rsp), %rax
movq %rsp, %rsi
movq %rax, 0x10(%rsi)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rsi)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsi)
pushq $0x1
popq %rdx
callq 0x286b
addq $0xd8, %rsp
retq
xorl %eax, %eax
jmp 0x25f6
nop