LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]goblin-com/src/game.c
// Function: game_draw_units
void
game_draw_units(game_t *game, panel_t *p, bool id)
{
    font_t land = FONT(R, k);
    font_t sea  = FONT(r, y);
    for (int i = 0; i < (int)countof(game->invaders); i++) {
        invader_t *inv = game->invaders + i;
        if (inv->active)
            panel_putc(p, inv->x, inv->y, inv->embarked ? sea : land,
                       id ? i + 'A' : inv->type);
    }
    for (int i = 0; i < (int)countof(game->squads); i++) {
        squad_t *s = game->squads + i;
        if (s->member_count > 0 &&
            !((int)s->x == CASTLE_X && (int)s->y == CASTLE_Y))
            panel_putc(p, s->x, s->y, FONT(k, M), i + 'A');
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movw $0x41, %r15w
xorl %r12d, %r12d
movl $0x301, %r13d           # imm = 0x301
cmpb $0x1, 0x48(%r14,%r12)
jne 0x57ea
cmpb $0x0, 0x68(%r14,%r12)
movl $0x10001, %ecx          # imm = 0x10001
cmovnel %r13d, %ecx
movl %r15d, %eax
testb %bpl, %bpl
jne 0x57d0
movzwl 0x5c(%r14,%r12), %eax
cvttss2si 0x4c(%r14,%r12), %esi
cvttss2si 0x50(%r14,%r12), %edx
movzwl %ax, %r8d
movq %rbx, %rdi
callq 0x31f4
incl %r15d
addq $0x28, %r12
cmpq $0x280, %r12            # imm = 0x280
jne 0x57ab
movw $0x41, %bp
xorl %r15d, %r15d
cmpl $0x0, 0x2d4(%r14,%r15)
je 0x5845
cvttss2si 0x2c8(%r14,%r15), %esi
cmpl $0x1e, %esi
jne 0x582a
cvttss2si 0x2cc(%r14,%r15), %eax
cmpl $0xc, %eax
je 0x5845
cvttss2si 0x2cc(%r14,%r15), %edx
movzwl %bp, %r8d
movq %rbx, %rdi
movl $0x1000500, %ecx        # imm = 0x1000500
callq 0x31f4
incl %ebp
addq $0x10, %r15
cmpq $0x100, %r15            # imm = 0x100
jne 0x5801
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]goblin-com/src/game.c
// Function: invader_find_target
static void
invader_find_target(game_t *game, invader_t *i)
{
    int ix = i->x;
    int iy = i->y;
    int best_x = ix + rand_uniform(-INVADER_VISION, INVADER_VISION);
    int best_y = iy + rand_uniform(-INVADER_VISION, INVADER_VISION);
    float best_d = INFINITY;
    for (int y = -INVADER_VISION; y <= INVADER_VISION; y++) {
        for (int x = -INVADER_VISION; x <= INVADER_VISION; x++) {
            float xx = ix + x;
            float yy = iy + y;
            uint16_t building = map_building(game->map, xx, yy);
            if (building != C_NONE) {
                float d = xx * xx + yy * yy;
                if (d < best_d) {
                    best_x = xx;
                    best_y = yy;
                    best_d = d;
                }
            }
        }
    }
    i->tx = best_x;
    i->ty = best_y;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movss 0x4(%rsi), %xmm0
movq %rsi, 0x38(%rsp)
movss 0x8(%rsi), %xmm1
movaps %xmm1, 0x10(%rsp)
cvttss2si %xmm0, %r12d
cvttss2si %xmm1, %eax
movq %rax, 0x40(%rsp)
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movss 0x206c(%rip), %xmm0     # 0x7918
movss 0x2060(%rip), %xmm1     # 0x7914
callq 0x5af3
addss 0x20(%rsp), %xmm0
cvttss2si %xmm0, %ebx
cvttps2dq 0x10(%rsp), %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movss 0x203f(%rip), %xmm0     # 0x7918
movss 0x2033(%rip), %xmm1     # 0x7914
callq 0x5af3
addss 0x10(%rsp), %xmm0
cvttss2si %xmm0, %r13d
movl $0xfffffff6, %ecx       # imm = 0xFFFFFFF6
movss 0x201e(%rip), %xmm0     # 0x791c
movss %xmm0, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq %rcx, 0x48(%rsp)
addl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
cvttss2si %xmm0, %ebp
mulss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
movl $0xfffffff6, %r14d      # imm = 0xFFFFFFF6
leal (%r12,%r14), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movq 0x50(%rsp), %rax
movq 0x38(%rax), %rdi
movss %xmm0, 0x10(%rsp)
cvttss2si %xmm0, %r15d
movl %r15d, %esi
movl %ebp, %edx
callq 0x46e7
testw %ax, %ax
je 0x5984
movss 0x10(%rsp), %xmm1
mulss %xmm1, %xmm1
addss 0xc(%rsp), %xmm1
movss 0x20(%rsp), %xmm0
ucomiss %xmm1, %xmm0
minss %xmm0, %xmm1
cmoval %ebp, %r13d
cmoval %r15d, %ebx
movss %xmm1, 0x20(%rsp)
incl %r14d
cmpl $0xb, %r14d
jne 0x592b
movq 0x48(%rsp), %rcx
incl %ecx
cmpl $0xb, %ecx
jne 0x5904
xorps %xmm0, %xmm0
cvtsi2ss %ebx, %xmm0
movq 0x38(%rsp), %rax
movss %xmm0, 0xc(%rax)
xorps %xmm0, %xmm0
cvtsi2ss %r13d, %xmm0
movss %xmm0, 0x10(%rax)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]goblin-com/src/rand.c
// Function: xorshift
uint64_t
xorshift(uint64_t *state) {
    uint64_t x = *state;
    x ^= x >> 12; // a
    x ^= x << 25; // b
    x ^= x >> 27; // c
    *state = x;
    return x * UINT64_C(2685821657736338717);
}

// Assembly:
movq (%rdi), %rax
movq %rax, %rcx
shrq $0xc, %rcx
xorq %rax, %rcx
movq %rcx, %rax
shlq $0x19, %rax
xorq %rcx, %rax
movq %rax, %rcx
shrq $0x1b, %rcx
xorq %rax, %rcx
movq %rcx, (%rdi)
movabsq $0x2545f4914f6cdd1d, %rax # imm = 0x2545F4914F6CDD1D
imulq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]goblin-com/src/rand.c
// Function: xorshift_fill
void
xorshift_fill(uint64_t *state, void *buffer, size_t size)
{
    char *p = buffer;
    while (size) {
        uint64_t entropy = xorshift(state);
        size_t amount = MIN(size, sizeof(entropy));
        memcpy(p, &entropy, amount);
        size -= amount;
        p += amount;
    }
}

// Assembly:
testq %rdx, %rdx
je 0x5a83
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movabsq $0x2545f4914f6cdd1d, %rbp # imm = 0x2545F4914F6CDD1D
movq %rsp, %r12
movq (%r15), %rax
movq %rax, %rcx
shrq $0xc, %rcx
xorq %rax, %rcx
movq %rcx, %rax
shlq $0x19, %rax
xorq %rcx, %rax
movq %rax, %rcx
shrq $0x1b, %rcx
xorq %rax, %rcx
movq %rcx, (%r15)
imulq %rbp, %rcx
movq %rcx, (%rsp)
cmpq $0x8, %rbx
movl $0x8, %r13d
cmovbq %rbx, %r13
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1180
addq %r13, %r14
subq %r13, %rbx
jne 0x5a25
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]goblin-com/src/device_unix.c
// Function: device_init
void
device_init(void)
{
    printf("\e[2J");
    tcgetattr(STDIN_FILENO, &termios_orig);
    struct termios raw;
    memcpy(&raw, &termios_orig, sizeof(raw));
    raw.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
    raw.c_oflag &= ~OPOST;
    raw.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
    raw.c_cflag &= ~(CSIZE|PARENB);
    raw.c_cflag |= CS8;
    tcsetattr(STDIN_FILENO, TCSANOW, &raw);
    fputs("\e[?25l", stdout);
}

// Assembly:
subq $0x48, %rsp
leaq 0x1bb5(%rip), %rdi      # 0x79a4
xorl %eax, %eax
callq 0x10c0
leaq 0xd3f3(%rip), %rsi      # 0x131f0
xorl %edi, %edi
callq 0x11f0
movups 0xd3e5(%rip), %xmm0     # 0x131f0
movq %rsp, %rdx
movaps %xmm0, (%rdx)
movups 0xd404(%rip), %xmm0     # 0x1321c
movups %xmm0, 0x2c(%rdx)
movups 0xd3ed(%rip), %xmm0     # 0x13210
movaps %xmm0, 0x20(%rdx)
movups 0xd3d2(%rip), %xmm0     # 0x13200
andl $0xfffffa14, (%rdx)     # imm = 0xFFFFFA14
movaps %xmm0, 0x10(%rdx)
andb $-0x2, 0x4(%rdx)
andl $0xffff7fb4, 0xc(%rdx)  # imm = 0xFFFF7FB4
movl $0xfffffecf, %eax       # imm = 0xFFFFFECF
andl 0x8(%rdx), %eax
orl $0x30, %eax
movl %eax, 0x8(%rdx)
xorl %edi, %edi
xorl %esi, %esi
callq 0x1200
movq 0x417f(%rip), %rax      # 0x9fe0
movq (%rax), %rsi
leaq 0x1b3e(%rip), %rdi      # 0x79a9
callq 0x10f0
addq $0x48, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]goblin-com/src/device_unix.c
// Function: device_move
void
device_move(int x, int y)
{
    cursor_x = x;
    cursor_y = y;
    device_font_last = (font_t)FONT_INVALID;
    printf("\e[%d;%dH", y + 1, x + 1);
}

// Assembly:
movl %edi, 0xd393(%rip)      # 0x1322c
movl %esi, 0xd391(%rip)      # 0x13230
movl $0x101ffff, 0x69bf(%rip) # imm = 0x101FFFF
incl %esi
leal 0x1(%rdi), %edx
leaq 0x1afb(%rip), %rdi      # 0x79b0
xorl %eax, %eax
jmp 0x10c0
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]goblin-com/src/device_unix.c
// Function: device_cursor_get
void
device_cursor_get(int *x, int *y)
{
    if (x)
        *x = cursor_x;
    if (y)
        *y = cursor_y;
}

// Assembly:
testq %rdi, %rdi
je 0x5ec9
movl 0xd365(%rip), %eax      # 0x1322c
movl %eax, (%rdi)
testq %rsi, %rsi
je 0x5ed6
movl 0xd35c(%rip), %eax      # 0x13230
movl %eax, (%rsi)
retq
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]goblin-com/src/device_unix.c
// Function: device_putc
void
device_putc(font_t font, uint16_t c)
{
    uint8_t utf8[7];
    utf8[utf32_to_8(c, utf8)] = '\0';
    if (font_equal(device_font_last, font))
        fputs((char *)utf8, stdout);
    else
        printf("\e[%d;%dm%s",
               font.fore + 30 + (font.fore_bright ? 60 : 0),
               font.back + 40 + (font.back_bright ? 60 : 0),
               (char *)utf8);
    device_font_last = font;
    cursor_x++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movl %edi, %ebp
shrl $0x8, %ebp
cmpw $0x7f, %si
ja 0x5ef2
leaq 0x2(%rsp), %rax
jmp 0x5f30
movzwl %si, %ecx
cmpl $0x7ff, %ecx            # imm = 0x7FF
ja 0x5f0c
leaq 0x3(%rsp), %rax
movl %esi, %ecx
shrl $0x6, %ecx
orb $-0x40, %cl
jmp 0x5f25
leaq 0x4(%rsp), %rax
movl %ecx, %edx
shrl $0xc, %edx
orb $-0x20, %dl
movb %dl, -0x3(%rax)
shrl $0x6, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, -0x2(%rax)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, -0x1(%rax)
movl %ebx, %r14d
shrl $0x10, %r14d
movl %ebx, %r15d
shrl $0x18, %r15d
movb $0x0, (%rax)
movl 0x691d(%rip), %edx      # 0xc868
movl %ebx, %edi
andl $0xffff0000, %edi       # imm = 0xFFFF0000
movl $0xff, %ecx
movl %ebp, %eax
andl %ecx, %eax
movl %eax, %esi
shll $0x8, %esi
orl %edi, %esi
andl %ebx, %ecx
orl %ecx, %esi
xorl %edx, %esi
testw %si, %si
je 0x5fc7
leal 0x3c(%rcx), %esi
testb $0x1, %r14b
cmovel %ecx, %esi
addl $0x1e, %esi
leal 0x3c(%rax), %edx
testb $0x1, %r15b
cmovel %eax, %edx
addl $0x28, %edx
leaq 0x1a2a(%rip), %rdi      # 0x79b9
leaq 0x1(%rsp), %rcx
xorl %eax, %eax
callq 0x10c0
movb %bl, 0x68c7(%rip)       # 0xc868
movb %bpl, 0x68c1(%rip)      # 0xc869
movb %r14b, 0x68bb(%rip)     # 0xc86a
movb %r15b, 0x68b5(%rip)     # 0xc86b
incl 0xd270(%rip)            # 0x1322c
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
andl %ebx, %edx
btl $0x18, %edx
jae 0x5f6e
andl $0x10000, %esi          # imm = 0x10000
jne 0x5f6e
movq 0x4002(%rip), %rax      # 0x9fe0
movq (%rax), %rsi
leaq 0x1(%rsp), %rdi
callq 0x10f0
jmp 0x5f9b
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]goblin-com/src/device_unix.c
// Function: device_getch
int
device_getch(void)
{
    int r;
    unsigned char c;
    if ((r = read(STDIN_FILENO, &c, sizeof(c))) < 0) {
        return r;
    } else if (c == '\e') {
        if (!device_kbhit(0))
            return c;
        unsigned char code[2];
        read(STDIN_FILENO, code, sizeof(code));
        return code[1] + 256;
    } else {
        if (c == 3) {
            /* SIGINT */
            device_free();
            exit(EXIT_FAILURE);
        }
        return c;
    }
}

// Assembly:
pushq %rbx
subq $0xa0, %rsp
leaq 0xf(%rsp), %rsi
movl $0x1, %edx
xorl %edi, %edi
callq 0x1150
movq %rax, %rbx
testl %ebx, %ebx
js 0x60a5
movzbl 0xf(%rsp), %ebx
cmpl $0x1b, %ebx
je 0x603e
cmpl $0x3, %ebx
jne 0x60a5
callq 0x5e75
movl $0x1, %edi
callq 0x1240
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r8
movaps %xmm0, (%r8)
leaq 0x20(%rsp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x70(%rsi)
movaps %xmm0, 0x60(%rsi)
movaps %xmm0, 0x50(%rsi)
movaps %xmm0, 0x40(%rsi)
movaps %xmm0, 0x30(%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
movq $0x1, (%rsi)
movl $0x1, %edi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1190
testl %eax, %eax
jle 0x60a5
leaq 0x20(%rsp), %rbx
movl $0x2, %edx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x1150
movzbl 0x1(%rbx), %ebx
orl $0x100, %ebx            # imm = 0x100
movl %ebx, %eax
addq $0xa0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]goblin-com/src/device_unix.c
// Function: device_kbhit
bool
device_kbhit(uint64_t useconds)
{
    struct timeval tv = {useconds / 1000000, useconds % 1000000};
    fd_set fds;
    FD_ZERO(&fds);
    FD_SET(STDIN_FILENO, &fds);
    return select(1, &fds, NULL, NULL, &tv) > 0;
}

// Assembly:
subq $0x98, %rsp
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
movq %rdi, %rax
mulq %rcx
shrq $0x12, %rdx
movq %rsp, %r8
movq %rdx, (%r8)
imulq $0xf4240, %rdx, %rax    # imm = 0xF4240
subq %rax, %rdi
movq %rdi, 0x8(%r8)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x70(%rsi)
movaps %xmm0, 0x60(%rsi)
movaps %xmm0, 0x50(%rsi)
movaps %xmm0, 0x40(%rsi)
movaps %xmm0, 0x30(%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, 0x10(%rsi)
movq $0x1, (%rsi)
movl $0x1, %edi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1190
testl %eax, %eax
setg %al
addq $0x98, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/skeeto[P]goblin-com/src/device_unix.c
// Function: device_entropy
void
device_entropy(void *buffer, size_t size)
{
    FILE *in = fopen("/dev/urandom", "r");
    if (in == NULL || fread(buffer, size, 1, in) != 1) {
        /* Fallback */
        uint32_t pid = getpid();
        uint64_t state = device_uepoch() ^ (pid < 32);
        xorshift_fill(&state, buffer, size);
    }
    if (in)
        fclose(in);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1817(%rip), %rdi      # 0x79cc
leaq 0x1267(%rip), %rsi      # 0x7423
callq 0x1210
movq %rax, %rbx
testq %rax, %rax
je 0x61e2
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rcx
callq 0x1080
cmpq $0x1, %rax
je 0x6220
callq 0x10a0
movl %eax, %ebp
movq %rsp, %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x10d0
imulq $0xf4240, (%r12), %rax  # imm = 0xF4240
addq 0x8(%r12), %rax
xorl %ecx, %ecx
cmpl $0x20, %ebp
setb %cl
xorq %rax, %rcx
movq %rcx, (%r12)
movq %rsp, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x59ff
testq %rbx, %rbx
je 0x622d
movq %rbx, %rdi
callq 0x10b0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/elmd1001v2/ref/aes_round_6.h
// Function: AES_set_encrypt_key_6
int AES_set_encrypt_key_6(const unsigned char *userKey, const int bits,
			AES_KEY *key) {

	u32 *rk;
   	int i = 0;
	u32 temp;

	if (!userKey || !key)
		return -1;
	if (bits != 128 )
		return -2;

	rk = key->rd_key;

	key->rounds = 6;
	
	rk[0] = GETU32(userKey     );
	rk[1] = GETU32(userKey +  4);
	rk[2] = GETU32(userKey +  8);
	rk[3] = GETU32(userKey + 12);
	while (1) {
		temp  = rk[3];
		rk[4] = rk[0] ^
			(Te2[(temp >> 16) & 0xff] & 0xff000000) ^
			(Te3[(temp >>  8) & 0xff] & 0x00ff0000) ^
			(Te0[(temp      ) & 0xff] & 0x0000ff00) ^
			(Te1[(temp >> 24)       ] & 0x000000ff) ^
			rcon[i];
		rk[5] = rk[1] ^ rk[4];
		rk[6] = rk[2] ^ rk[5];
		rk[7] = rk[3] ^ rk[6];
		if (++i == 6) {
			return 0;
		}
		rk += 4;
	}
	
	return 0;
}

// Assembly:
testq %rdi, %rdi
sete %cl
testq %rdx, %rdx
sete %r8b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
orb %cl, %r8b
jne 0x1285
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
cmpl $0x80, %esi
jne 0x1285
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
movl $0x6, 0xf0(%rdx)
movl (%rdi), %eax
movbel %eax, (%rdx)
movl 0x4(%rdi), %eax
movbel %eax, 0x4(%rdx)
movl 0x8(%rdi), %eax
movbel %eax, 0x8(%rdx)
movl 0xc(%rdi), %eax
movbel %eax, 0xc(%rdx)
xorl %eax, %eax
leaq 0x2e51(%rip), %rcx      # 0x4020
movl $0xff, %esi
leaq 0x3245(%rip), %rdi      # 0x4420
leaq 0x363e(%rip), %r8       # 0x4820
leaq 0x3a37(%rip), %r9       # 0x4c20
leaq 0x3e30(%rip), %r10      # 0x5020
xorl %r11d, %r11d
movl 0xc(%rdx,%r11,4), %ebx
movl %ebx, %r14d
shrl $0xe, %r14d
andl $0x3fc, %r14d           # imm = 0x3FC
movzbl 0x3(%r14,%rcx), %ebp
shll $0x18, %ebp
xorl (%rdx,%r11,4), %ebp
movl %ebx, %r14d
shrl $0x8, %r14d
andl %esi, %r14d
movzbl 0x2(%rdi,%r14,4), %r14d
shll $0x10, %r14d
movl %ebx, %r15d
andl %esi, %r15d
movzbl 0x1(%r8,%r15,4), %r15d
shll $0x8, %r15d
xorl %r14d, %r15d
movl %ebx, %r14d
shrl $0x18, %r14d
movzbl (%r9,%r14,4), %r14d
xorl %r15d, %r14d
xorl %ebp, %r14d
xorl (%r11,%r10), %r14d
movl %r14d, 0x10(%rdx,%r11,4)
xorl 0x4(%rdx,%r11,4), %r14d
movl %r14d, 0x14(%rdx,%r11,4)
xorl 0x8(%rdx,%r11,4), %r14d
movl %r14d, 0x18(%rdx,%r11,4)
xorl %ebx, %r14d
movl %r14d, 0x1c(%rdx,%r11,4)
addq $0x4, %r11
cmpq $0x18, %r11
jne 0x11f3
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/elmd1001v2/ref/module.h
// Function: mult_inv2
static void mult_inv2(block b, block s) {int i; block d; unsigned char temp = s[15]&1;
   	for (i=1; i<16; i++)	{d[i] = (s[i-1] << 7) | (s[i] >> 1) ;}
   	d[0] = (s[0] >> 1); if(temp==1){d[15] ^= 0x43; d[0] ^= 0x80;}
	copy_block(b,d);}

// Assembly:
movw $0x7fff, %ax            # imm = 0x7FFF
kmovd %eax, %k1
vmovdqu8 (%rsi), %xmm0 {%k1} {z}
vmovdqu8 0x1(%rsi), %xmm1 {%k1} {z}
vpsllw $0x7, %xmm0, %xmm0
vpsrlw $0x1, %xmm1, %xmm1
vpternlogd $0xd8, 0x19e8(%rip){1to4}, %xmm0, %xmm1 # 0x4014
movb 0xf(%rsi), %cl
vmovdqu8 %xmm1, -0x17(%rsp) {%k1}
movb (%rsi), %al
shrb %al
movb %al, -0x18(%rsp)
testb $0x1, %cl
je 0x2652
xorb $0x43, -0x9(%rsp)
orb $-0x80, %al
movb %al, -0x18(%rsp)
movb -0x18(%rsp), %al
movb %al, (%rdi)
movq -0x17(%rsp), %rax
movq %rax, 0x1(%rdi)
movl -0xf(%rsp), %eax
movl %eax, 0x9(%rdi)
movzwl -0xb(%rsp), %eax
movw %ax, 0xd(%rdi)
movb -0x9(%rsp), %al
movb %al, 0xf(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/elmd1001v2/ref/encrypt.c
// Function: process_AD
static void process_AD(
	block W, block Delta_1, const block npub, block param, 
	const u8 *ad, u64 adlen) {	

	block Delta_2, blk, result;
	u8 Is_complete = 1, ozs[16];
	int i; for(i=1; i<16; i++){ozs[i]=0x00;} ozs[0] = 0x80; 

	

	/* ===== make the first block blk based on npub and param ===== */
	load_block(blk, npub, param, 8, 8);
	
	while(1){ 
		
		/* ============= Process the current Block ==================== */
		process_block(Delta_1, Delta_2, result, blk, W, Is_complete, ENCRYPT, 0, AD);
				
		/* === Compute the next Block and updating the pointers and counters ===*/
		if(adlen==0) break; 
		
		else if(adlen <= 16) {
			load_block(blk, ad, ozs, adlen, 16-adlen); 
			if(adlen != 16) Is_complete = 0;
			adlen = 0; 
		}

		else {load_block(blk, ad, ozs, 16, 0); ad +=16; adlen -=16;}
	}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %r12
movq %r8, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorl %ebp, %ebp
movq %rbp, 0x8(%rsp)
movq %rbp, 0x1(%rsp)
movb $-0x80, (%rsp)
movq (%rdx), %rdx
leaq 0x10(%rsp), %rax
movq %rdx, (%rax)
movq (%rcx), %rcx
movq %rcx, 0x8(%rax)
subq $0x8, %rsp
leaq 0x38(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %r14, %rdi
movq %rax, %rcx
movq %r15, %r8
movl $0x1, %r9d
pushq %rbp
pushq %rbp
pushq $0x1
callq 0x27f8
addq $0x20, %rsp
testq %r12, %r12
je 0x2780
movb $0x1, %r13b
cmpq $0x11, %r12
jae 0x2733
movb $0x10, %al
subb %r12b, %al
movzbl %al, %r8d
movzbl %r12b, %ecx
movq %r15, %rbp
movq %r14, %r15
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq %rsp, %rdx
callq 0x278f
movq %r14, %rcx
movq %r15, %r14
movq %rbp, %r15
xorl %ebp, %ebp
cmpq $0x10, %r12
movzbl %r13b, %r13d
cmovnel %ebp, %r13d
xorl %r12d, %r12d
jmp 0x2752
xorl %eax, %eax
movb (%rbx,%rax), %cl
movb %cl, 0x10(%rsp,%rax)
incq %rax
cmpq $0x10, %rax
jne 0x2735
addq $0x10, %rbx
addq $-0x10, %r12
leaq 0x10(%rsp), %rcx
subq $0x8, %rsp
movzbl %r13b, %r9d
movq %r14, %rdi
leaq 0x38(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movq %r15, %r8
pushq %rbp
pushq %rbp
pushq $0x1
callq 0x27f8
addq $0x20, %rsp
testq %r12, %r12
jne 0x26eb
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/yurrriq[P]knrc/src/wordlength.c
// Function: main
int main()
{
    int c, state, wl;
    int length[MAX_WORD_LENGTH + 1];

    for (int i = 0; i <= MAX_WORD_LENGTH; ++i)
        length[i] = 0;

    state = OUT;
    wl = 0;
    while ((c = getchar()) != EOF) {
        if (c == ' ' || c == '\n' || c == '\t') {
            if (state == IN) {
                state = OUT;
                ++length[wl <= MAX_WORD_LENGTH ? wl - 1 : MAX_WORD_LENGTH];
            }
        } else {
            if (state == OUT) {
                state = IN;
                wl = 0;
            }
            ++wl;
        }
    }

    for (int j = 0; j <= MAX_WORD_LENGTH; ++j) {
        if (j == MAX_WORD_LENGTH)
            printf(">%d: ", MAX_WORD_LENGTH);
        else
            printf(" %2d: ", j + 1);

        for (int k = 0; k < length[j]; ++k)
            putchar('#');
        putchar('\n');
    }


    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
xorps %xmm0, %xmm0
movups %xmm0, 0x1c(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
xorl %r12d, %r12d
movb $0x1, %r14b
movl $0xa, %ebx
movl $0x1, %ebp
xorl %r15d, %r15d
leal -0x1(%r15), %eax
cmpl $0xb, %r15d
cmovgel %ebx, %eax
movslq %eax, %r13
callq 0x1050
leal -0x9(%rax), %ecx
cmpl $0x2, %ecx
jb 0x11ae
cmpl $0x20, %eax
jne 0x11c6
movb $0x1, %r14b
testb $0x1, %r12b
movl $0x0, %r12d
je 0x119c
incl (%rsp,%r13,4)
xorl %r12d, %r12d
jmp 0x119c
cmpl $-0x1, %eax
je 0x11de
incl %r15d
testb $0x1, %r14b
cmovnel %ebp, %r15d
movb $0x1, %r12b
xorl %r14d, %r14d
jmp 0x118e
leaq 0xe1f(%rip), %rbx       # 0x2004
leaq 0xe1e(%rip), %r14       # 0x200a
xorl %r15d, %r15d
cmpq $0xa, %r15
jne 0x11ff
movq %rbx, %rdi
movl $0xa, %esi
jmp 0x1206
leal 0x1(%r15), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movl (%rsp,%r15,4), %ebp
testl %ebp, %ebp
jle 0x1223
movl $0x23, %edi
callq 0x1030
decl %ebp
jne 0x1215
movl $0xa, %edi
callq 0x1030
incq %r15
cmpq $0xb, %r15
jne 0x11ef
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: hashmap_standalone_hash
size_t hashmap_standalone_hash(char *inp){
    size_t output = 0;
    size_t i = 0;
    size_t l = strlen(inp);
    while((i + 1) <= l){
        output = output*17 + inp[i++];
    }
    return output;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1090
testq %rax, %rax
je 0x1402
incq %rax
cmpq $0x3, %rax
movl $0x2, %ecx
cmovaeq %rax, %rcx
decq %rcx
xorl %edx, %edx
xorl %eax, %eax
movq %rax, %rsi
shlq $0x4, %rsi
addq %rax, %rsi
movsbq (%rbx,%rdx), %rax
addq %rsi, %rax
incq %rdx
cmpq %rdx, %rcx
jne 0x13e6
jmp 0x1404
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: hashmap_hash
size_t hashmap_hash(hashmap_t *hm, char *inp){
    size_t output = 0;
    size_t i = 0;
    size_t l = strlen(inp);
    while((i + 1) <= l){
        output = output*17 + inp[i++];
    }
    return output % hm->size;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x1090
testq %rax, %rax
je 0x1458
incq %rax
cmpq $0x3, %rax
movl $0x2, %ecx
cmovaeq %rax, %rcx
decq %rcx
xorl %edx, %edx
xorl %eax, %eax
movq %rax, %rsi
shlq $0x4, %rsi
addq %rax, %rsi
movsbq (%r14,%rdx), %rax
addq %rsi, %rax
incq %rdx
cmpq %rdx, %rcx
jne 0x143c
jmp 0x145a
xorl %eax, %eax
xorl %edx, %edx
divq (%rbx)
movq %rdx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: hashmap_init
hashmap_t *hashmap_init(size_t size){
    hashmap_t *hm = calloc(1, sizeof(hashmap_t));
    hm->map = calloc(size, sizeof(hashmap_vector_t));
    hm->size = size;
    for(size_t i = 0; i < hm->size; i++){
        hm->map[i].len = 3;
        hm->map[i].cursor = 0;
        hm->map[i].list = calloc(1, sizeof(struct sh_alias));
    }
    return hm;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %edi
movl $0x10, %esi
callq 0x10e0
movq %rax, %r14
movl $0x18, %esi
movq %rbx, %rdi
callq 0x10e0
movq %rax, 0x8(%r14)
movq %rbx, (%r14)
testq %rbx, %rbx
je 0x14d1
movq %rax, %r15
addq $0x10, %r15
movq $0x3, -0x10(%r15)
movq $0x0, -0x8(%r15)
movl $0x1, %edi
movl $0x18, %esi
callq 0x10e0
movq %rax, (%r15)
addq $0x18, %r15
decq %rbx
jne 0x14a6
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: hashmap_free
int hashmap_free(hashmap_t *hm){
    for(int i = 0; i < hm->size; i++){
        free(hm->map[i].list);
    }
    free(hm->map);
    free(hm);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x1514
movl $0x10, %r14d
xorl %r15d, %r15d
movq 0x8(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x1040
incq %r15
addq $0x18, %r14
cmpq %r15, (%rbx)
ja 0x14fb
movq 0x8(%rbx), %rdi
callq 0x1040
movq %rbx, %rdi
callq 0x1040
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: hashmap_set
int hashmap_set(hashmap_t *hm, char *name, char *command){
    size_t c = hashmap_standalone_hash(name);
    size_t n = hashmap_hash(hm, name);
    hm->map[n].list[hm->map[n].cursor].id = c;
    hm->map[n].list[hm->map[n].cursor].name = name;
    hm->map[n].list[hm->map[n].cursor++].command = command;
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x13bc
movq %rax, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x140b
movq 0x8(%r15), %rcx
leaq (%rax,%rax,2), %rax
movq 0x8(%rcx,%rax,8), %rdx
movq 0x10(%rcx,%rax,8), %rsi
leaq (%rdx,%rdx,2), %rdi
movq %r12, (%rsi,%rdi,8)
movq %r14, 0x8(%rsi,%rdi,8)
incq %rdx
movq %rdx, 0x8(%rcx,%rax,8)
movq %rbx, 0x10(%rsi,%rdi,8)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: hashmap_item_exists
ssize_t hashmap_item_exists(hashmap_t *hm, char *inp){
    size_t c = hashmap_standalone_hash(inp);
    size_t n = hashmap_hash(hm, inp);
    hashmap_vector_t a = hm->map[n];
    for(size_t i = 0; i < a.len; i++){
        if(a.list[i].id == c){
            return i;
        }
    }
    return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x13bc
movq %rax, %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0x140b
movq 0x8(%r15), %rdx
leaq (%rax,%rax,2), %rsi
movq (%rdx,%rsi,8), %rcx
movq $-0x1, %rax
testq %rcx, %rcx
je 0x15ee
movq 0x10(%rdx,%rsi,8), %rsi
xorl %edx, %edx
cmpq %rbx, (%rsi)
je 0x15eb
incq %rdx
addq $0x18, %rsi
cmpq %rdx, %rcx
jne 0x15d8
jmp 0x15ee
movq %rdx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: hashmap_get
struct sh_alias *hashmap_get(hashmap_t *hm, char *name){
    if(hashmap_item_exists(hm, name) != -1){
        size_t id = hashmap_standalone_hash(name);
        hashmap_vector_t v = hm->map[hashmap_hash(hm, name)];
        for(size_t i = 0; i < v.len; i++){
            if(v.list[i].id == id){
                return &v.list[i];
            }
        }
    }
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x1593
cmpq $-0x1, %rax
je 0x1677
movq %r14, %rdi
callq 0x13bc
movq %rax, %rbx
movq 0x8(%r15), %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x140b
leaq (%rax,%rax,2), %rax
movq (%r12,%rax,8), %rcx
testq %rcx, %rcx
setne %dl
je 0x166f
movq 0x10(%r12,%rax,8), %rax
cmpq %rbx, (%rax)
je 0x1673
leaq -0x1(%rcx), %rsi
xorl %edx, %edx
cmpq %rdx, %rsi
je 0x1671
leaq 0x18(%rax), %rdi
incq %rdx
cmpq %rbx, 0x18(%rax)
movq %rdi, %rax
jne 0x164f
cmpq %rcx, %rdx
setb %dl
movq %rdi, %rax
jmp 0x1673
jmp 0x1673
xorl %edx, %edx
testb %dl, %dl
jne 0x1679
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: parse_arg
struct sh_args *parse_arg(struct sh_args *args, int argc, char **argv){
    for(int i = 1; i < argc; i++){
        if(argv[i][0] == '-'){
            if(!strcmp(argv[i], "-c")){
                args->has_command = true;
                if(i + 1 < argc){
                    args->command = argv[++i];
                }
                else {
                    fprintf(stderr, "%s: -c option requires an argument\n", argv[i]);
                }
            }
            else if(!strcmp(argv[i], "-s")){
                args->standard_input = true;
            }
            else if(!strcmp(argv[i], "-i")){
                args->interactive = true;
            }
        }
        else {
            fprintf(stderr, "%s: invalid argument %s\n", argv[0], argv[i]);
        }
    }
    return args;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
cmpl $0x2, %esi
jl 0x17b0
movq %rdx, %rbx
movl %esi, %r15d
movl $0x1, %r12d
movslq %r12d, %rax
movq (%rbx,%rax,8), %r13
cmpb $0x2d, (%r13)
jne 0x1764
movq %r13, %rdi
leaq 0x909(%rip), %rsi       # 0x2015
callq 0x10f0
testl %eax, %eax
je 0x1741
movq %r13, %rdi
leaq 0x91d(%rip), %rsi       # 0x203c
callq 0x10f0
testl %eax, %eax
je 0x175d
movq %r13, %rdi
leaq 0x90d(%rip), %rsi       # 0x203f
callq 0x10f0
testl %eax, %eax
jne 0x179f
movb $0x1, (%r14)
jmp 0x179f
movb $0x1, 0x2(%r14)
leal 0x1(%r12), %eax
cmpl %r15d, %eax
jge 0x1784
movslq %eax, %rcx
movq (%rbx,%rcx,8), %rcx
movq %rcx, 0x8(%r14)
jmp 0x17a2
movb $0x1, 0x1(%r14)
jmp 0x179f
movq 0x288d(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
movq (%rbx), %rdx
leaq 0x8ca(%rip), %rsi       # 0x2042
movq %r13, %rcx
xorl %eax, %eax
callq 0x1110
jmp 0x179f
movq 0x286d(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x883(%rip), %rsi       # 0x2018
movq %r13, %rdx
xorl %eax, %eax
callq 0x1110
movl %r12d, %eax
incl %eax
movl %eax, %r12d
cmpl %r15d, %eax
jl 0x16f4
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: command_get_argc
int command_get_argc(char *buffer){
    int n = 0;
    char *p;
    while(p = strchr(buffer, ' ')){
        n++;
        buffer = p + 1;
    }
    return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl $0x20, %esi
callq 0x10b0
xorl %ebx, %ebx
testq %rax, %rax
je 0x17ed
incl %ebx
incq %rax
movq %rax, %rdi
movl $0x20, %esi
callq 0x10b0
jmp 0x17d4
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: parse_command
struct sh_command *parse_command(char *buffer, size_t len){
    struct sh_command *command = calloc(1, sizeof(struct sh_command));
    command->argc = command_get_argc(buffer) + 1;
    command->argv = calloc(command->argc + 1, sizeof(char*));
    char *token = calloc(len + 2, sizeof(char));
    for(int i = 0, n = 0; i < command->argc && n < len; i++ && n++){
        int x = 0;
        while(buffer[n] != ' ' && buffer[n] != EOF && buffer[n] != '\0'){
            token[x++] = buffer[n++];
        }
        if(i < 1){
            n++;
        }
        token[x++] = '\0';
        command->argv[i] = calloc(x, sizeof(char));
        memcpy(command->argv[i], token, x);
    }
    command->argv[command->argc] = NULL;
    free(token);
    return command;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %edi
movl $0x18, %esi
callq 0x10e0
movq %rax, %r15
movq %r14, -0x60(%rbp)
movq %r14, %rdi
callq 0x17c2
movl %eax, %r14d
leal 0x1(%r14), %eax
movl %eax, -0x30(%rbp)
movl %eax, 0x10(%r15)
leal 0x2(%r14), %eax
movslq %eax, %rdi
movl $0x8, %esi
callq 0x10e0
movq %r15, -0x48(%rbp)
movq %rax, -0x38(%rbp)
movq %rax, 0x8(%r15)
leaq 0x2(%rbx), %rdi
movl $0x1, %esi
callq 0x10e0
movq %rax, %r13
testl %r14d, %r14d
sets %al
movq %rbx, -0x58(%rbp)
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x1930
movl %r14d, %eax
movq %rax, -0x50(%rbp)
xorl %edx, %edx
xorl %r12d, %r12d
movslq %r12d, %rax
addq -0x60(%rbp), %rax
xorl %r15d, %r15d
movzbl (%rax,%r15), %ecx
testl %ecx, %ecx
je 0x18b5
cmpl $0x20, %ecx
je 0x18b5
cmpl $0xff, %ecx
je 0x18b5
movb %cl, (%r13,%r15)
incq %r15
jmp 0x1895
xorl %r14d, %r14d
xorl %ebx, %ebx
testq %rdx, %rdx
setne -0x2a(%rbp)
sete -0x29(%rbp)
movl %r15d, %eax
leal 0x1(%r15), %edi
movq %rdi, -0x68(%rbp)
movb $0x0, (%r13,%rax)
movl $0x1, %esi
movq %rdx, -0x40(%rbp)
callq 0x10e0
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
movq %rax, %rdi
movq %r13, %rsi
movq -0x68(%rbp), %rdx
callq 0x1130
movq -0x40(%rbp), %rdx
cmpq -0x50(%rbp), %rdx
jae 0x1930
movb -0x29(%rbp), %al
movb %al, %bl
incq %rdx
movb -0x2a(%rbp), %al
movb %al, %r14b
addl %ebx, %r14d
movl %r12d, %r12d
addq %r15, %r12
addq %r14, %r12
movslq %r12d, %rax
cmpq -0x58(%rbp), %rax
jb 0x188b
movslq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
movq $0x0, (%rcx,%rax,8)
movq %r13, %rdi
callq 0x1040
movq -0x48(%rbp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: sh_is_builtin
int sh_is_builtin(char *command){
    if(!strcmp(command, "exit")){
        return shb_exit;
    }
    else if(!strcmp(command, "cd")){
        return shb_cd;
    }
    else if(!strcmp(command, "alias")){
        puts("alias");
        return shb_alias;
    }
    else if(!strcmp(command, "unalias")){
        return shb_unalias;
    }
    return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x6a5(%rip), %rsi       # 0x2010
callq 0x10f0
testl %eax, %eax
je 0x19b6
leaq 0x6e0(%rip), %rsi       # 0x205b
movq %rbx, %rdi
callq 0x10f0
testl %eax, %eax
je 0x19ba
leaq 0x6d2(%rip), %rsi       # 0x2060
movq %rbx, %rdi
callq 0x10f0
testl %eax, %eax
je 0x19c1
leaq 0x6bd(%rip), %rsi       # 0x205e
movq %rbx, %rdi
callq 0x10f0
movl %eax, %ecx
xorl %eax, %eax
negl %ecx
sbbl %eax, %eax
orl $0x2, %eax
jmp 0x19d2
xorl %eax, %eax
jmp 0x19d2
movl $0x3, %eax
jmp 0x19d2
leaq 0x698(%rip), %rdi       # 0x2060
callq 0x1070
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: sh_cd
int sh_cd(char *path){
    if(!path){
        char *res = getenv("HOME");
        if(res){
            path = res;
        }
        else {
            return 0;
        }
    }
    int cd_res = chdir(path);
    if(cd_res == -1){
        fprintf(stderr, "cd: %s: %s\n", strerror(errno), path);
        return errno;
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x1bd9
leaq 0x4d2(%rip), %rdi       # 0x209e
callq 0x1030
movq %rax, %rbx
testq %rax, %rax
je 0x1be6
movq %rbx, %rdi
callq 0x10a0
cmpl $-0x1, %eax
je 0x1bf3
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x23fe(%rip), %rax      # 0x3ff8
movq (%rax), %r14
callq 0x1050
movq %rax, %r15
movl (%rax), %edi
callq 0x1170
leaq 0x490(%rip), %rsi       # 0x20a3
movq %r14, %rdi
movq %rax, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x1110
movl (%r15), %eax
jmp 0x1be8
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: run_builtin
int run_builtin(enum sh_builtins code, struct sh_command *command){
    if(code == shb_exit){
        if(command->argc == 2){
            char **end;
            int ret = (int)strtol(command->argv[1], end, 10);
            if(end[0][0] == command->argv[1][0]){
                fprintf(stderr, "sh: exit: %s: numeric argument required\n", command->argv[1]);
                sh_exit(2);
            }
            sh_exit(ret);
        }
        sh_exit(0);
    }
    else if(code == shb_cd){
        return sh_cd(command->argv[1]);
    }
    else if(code == shb_alias){
        if(command->argc == 2){
            return sh_add_alias(command->argv[1]);
        }
        else {
            puts("else");
            return 1;
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
xorl %r14d, %r14d
cmpl $0x1, %edi
je 0x1c81
cmpl $0x3, %edi
je 0x1c70
testl %edi, %edi
jne 0x1ca8
cmpl $0x2, 0x10(%rbx)
jne 0x1cb0
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
movl $0xa, %edx
callq 0x1120
movq %rax, %r14
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
cmpb $0x0, (%rdi)
jne 0x1cc3
callq 0x11a0
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1bb3
cmpl $0x2, 0x10(%rbx)
jne 0x1c96
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x19d9
jmp 0x1ca8
leaq 0x43b(%rip), %rdi       # 0x20d8
callq 0x1070
movl $0x1, %r14d
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x359(%rip), %rdi       # 0x2010
callq 0x1070
xorl %edi, %edi
callq 0x1160
leaq 0x346(%rip), %rdi       # 0x2010
callq 0x1070
movl %r14d, %edi
callq 0x1160
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: call_command
int call_command(struct sh_command *command){
    int status = 0;
    int builtin = sh_is_builtin(command->argv[0]);
    if(builtin != -1){
        status = run_builtin(builtin, command);
        return status;
    }
    pid_t pid = fork();
    if(pid == -1){
        fprintf(stderr, "sh: %s\n", strerror(errno));
        return 1;
    }
    else if(pid){
        waitpid(pid, &status, 0);
        if(WIFEXITED(status)){
            status = WEXITSTATUS(status);
        }
    }
    else {
        if(execvp(command->argv[0], command->argv) == -1){
            fprintf(stderr, "sh: %s: %s\n", command->argv[0], strerror(errno));
            for(int i = -1; command->argv[++i] != NULL; free(command->argv[i]));
            free(command->argv);
            free(command);
            exit(1);
        }
    }
    return status;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x0, -0x14(%rbp)
movq 0x8(%rdi), %rax
movq (%rax), %rdi
callq 0x195b
cmpl $-0x1, %eax
je 0x1d0c
movl %eax, %edi
movq %rbx, %rsi
callq 0x1c28
movl %eax, -0x14(%rbp)
jmp 0x1d4f
callq 0x1180
testl %eax, %eax
je 0x1d38
cmpl $-0x1, %eax
je 0x1d58
leaq -0x14(%rbp), %rbx
movl %eax, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x1140
movl (%rbx), %eax
testb $0x7f, %al
jne 0x1d4c
movzbl %ah, %eax
movl %eax, -0x14(%rbp)
jmp 0x1d4c
leaq 0x8(%rbx), %r14
movq (%r14), %rsi
movq (%rsi), %rdi
callq 0x1150
cmpl $-0x1, %eax
je 0x1d64
movl -0x14(%rbp), %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x1253
movl $0x1, %eax
jmp 0x1d4f
movq %r14, %rdi
movq %rbx, %rsi
callq 0x11d3
// File: /workspace/github_c_makefile_star2_O1/ikbenlike[P]nngutils/src/sh.c
// Function: main
int main(int argc, char **argv){
    signal(SIGINT, sigint_handler);
    alias_hashmap = hashmap_init(100);
    struct sh_command *command = NULL;
    if(argc > 1){
        struct sh_args *args = calloc(1, sizeof(struct sh_args));
        if(args == NULL){
            fprintf(stderr, "%s: %s\n", argv[0], strerror(errno));
        }
        args = parse_arg(args, argc, argv);
        if(args->command){
            command = parse_command(args->command, strlen(args->command));
            call_command(command);
            free(command);
            return 0;
        }
    }
    char *buffer = calloc(4096, sizeof(char));
    while(1){
        write(STDOUT_FILENO, SH_PROMPT, strlen(SH_PROMPT));
        ssize_t n = 0;
        n += read(STDIN_FILENO, buffer, 4096);
        if(n == 0){
            sh_exit(0);
        }
        else if(n == 1){
            continue;
        }
        buffer[n-1] = '\0';
        command = parse_command(buffer, n);
        call_command(command);
        free(command);
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %r14d
leaq -0x704(%rip), %rsi      # 0x1682
movl $0x2, %edi
callq 0x1100
movl $0x64, %edi
callq 0x1467
movq %rax, 0x233f(%rip)      # 0x40e0
cmpl $0x2, %r14d
jl 0x1e12
movl $0x1, %edi
movl $0x10, %esi
callq 0x10e0
movq %rax, %r15
testq %rax, %rax
je 0x1e08
movq %r15, %rdi
movl %r14d, %esi
movq %rbx, %rdx
callq 0x16ce
movq 0x8(%r15), %rbx
testq %rbx, %rbx
je 0x1e12
movq %rbx, %rdi
callq 0x1090
movq %rbx, %rdi
movq %rax, %rsi
callq 0x17f6
movq %rax, %rbx
movq %rax, %rdi
callq 0x1cd7
movq %rbx, %rdi
callq 0x1040
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x1289
jmp 0x1dbe
movl $0x1000, %edi           # imm = 0x1000
movl $0x1, %esi
callq 0x10e0
movq %rax, %rbx
leaq 0x1d9(%rip), %r14       # 0x2004
movl $0xb, %edx
movl $0x1, %edi
movq %r14, %rsi
callq 0x1080
movl $0x1000, %edx           # imm = 0x1000
xorl %edi, %edi
movq %rbx, %rsi
callq 0x10d0
cmpq $0x1, %rax
je 0x1e2b
testq %rax, %rax
je 0x1e7c
movb $0x0, -0x1(%rbx,%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x17f6
movq %rax, %r15
movq %rax, %rdi
callq 0x1cd7
movq %r15, %rdi
callq 0x1040
jmp 0x1e2b
leaq 0x18d(%rip), %rdi       # 0x2010
callq 0x1070
xorl %edi, %edi
callq 0x1160
// File: /workspace/github_c_makefile_star2_O1/cktan[P]tomlc99/toml_cat.c
// Function: main
int main(int argc, const char *argv[]) {
  int i;
  if (argc == 1) {
    cat(stdin);
  } else {
    for (i = 1; i < argc; i++) {

      FILE *fp = fopen(argv[i], "r");
      if (!fp) {
        fprintf(stderr, "ERROR: cannot open %s: %s\n", argv[i],
                strerror(errno));
        exit(1);
      }
      cat(fp);
      fclose(fp);
    }
  }
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
cmpl $0x1, %edi
jne 0x13db
movq 0x7c07(%rip), %rax      # 0x8fd8
movq (%rax), %rdi
callq 0x1433
jmp 0x141c
jle 0x141c
movq %rsi, %rbx
movl %edi, %r13d
movl $0x1, %r14d
leaq 0x4cf7(%rip), %r15      # 0x60e7
movq (%rbx,%r14,8), %rdi
movq %r15, %rsi
callq 0x11b0
testq %rax, %rax
je 0x1428
movq %rax, %r12
movq %rax, %rdi
callq 0x1433
movq %r12, %rdi
callq 0x10b0
incq %r14
cmpq %r14, %r13
jne 0x13f0
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1220
// File: /workspace/github_c_makefile_star2_O1/cktan[P]tomlc99/toml_cat.c
// Function: cat
static void cat(FILE *fp) {
  char errbuf[200];

  toml_table_t *tab = toml_parse_file(fp, errbuf, sizeof(errbuf));
  if (!tab) {
    fprintf(stderr, "ERROR: %s\n", errbuf);
    return;
  }

  stack[stacktop].tab = tab;
  stack[stacktop].key = "";
  stacktop++;
  printf("{\n");
  indent++;
  print_table(tab);
  indent--;
  printf("}\n");
  stacktop--;

  toml_free(tab);
}

// Assembly:
pushq %rbx
subq $0xd0, %rsp
movq %rsp, %rsi
movl $0xc8, %edx
callq 0x34ed
testq %rax, %rax
je 0x14be
movq %rax, %rbx
movslq 0x7ce9(%rip), %rax      # 0x9140
leal 0x1(%rax), %ecx
shlq $0x4, %rax
leaq 0x7ceb(%rip), %rdx      # 0x9150
movq %rbx, 0x8(%rax,%rdx)
leaq 0x51da(%rip), %rsi      # 0x664b
movq %rsi, (%rax,%rdx)
movl %ecx, 0x7cc5(%rip)      # 0x9140
leaq 0x4c9d(%rip), %rdi      # 0x611f
callq 0x1070
incl 0x7cb7(%rip)            # 0x9144
movq %rbx, %rdi
callq 0x14db
decl 0x7ca9(%rip)            # 0x9144
leaq 0x4c7b(%rip), %rdi      # 0x611d
callq 0x1070
decl 0x7c93(%rip)            # 0x9140
movq %rbx, %rdi
callq 0x34e8
addq $0xd0, %rsp
popq %rbx
retq
movq 0x7b33(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
leaq 0x4b68(%rip), %rsi      # 0x6037
movq %rsp, %rdx
xorl %eax, %eax
callq 0x1170
jmp 0x14b5
// File: /workspace/github_c_makefile_star2_O1/cktan[P]tomlc99/toml_cat.c
// Function: print_string
static void print_string(const char *s) {
  int ok = 1;
  for (const char *p = s; *p && ok; p++) {
    int ch = *p;
    ok = isprint(ch) && ch != '"' && ch != '\\';
  }

  if (ok) {
    printf("\"%s\"", s);
    return;
  }

  int len = strlen(s);

  printf("\"");
  for (; len; len--, s++) {
    int ch = *s;
    if (isprint(ch) && ch != '"' && ch != '\\') {
      putchar(ch);
      continue;
    }

    switch (ch) {
    case 0x8:
      printf("\\b");
      continue;
    case 0x9:
      printf("\\t");
      continue;
    case 0xa:
      printf("\\n");
      continue;
    case 0xc:
      printf("\\f");
      continue;
    case 0xd:
      printf("\\r");
      continue;
    case '"':
      printf("\\\"");
      continue;
    case '\\':
      printf("\\\\");
      continue;
    default:
      printf("\\0x%02x", ch & 0xff);
      continue;
    }
  }
  printf("\"");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb (%rdi), %bpl
testb %bpl, %bpl
je 0x1c83
callq 0x1200
movq (%rax), %rcx
leaq 0x1(%rbx), %rdx
movl %ebp, %eax
movsbq %bpl, %rdi
movzwl (%rcx,%rdi,2), %esi
cmpb $0x22, %dil
je 0x1b78
cmpb $0x5c, %al
je 0x1b78
movb (%rdx), %bpl
testb %bpl, %bpl
je 0x1b78
movl %esi, %edi
andl $0x4000, %edi           # imm = 0x4000
incq %rdx
testw %di, %di
jne 0x1b4c
btl $0xe, %esi
jae 0x1b8e
cmpb $0x22, %al
je 0x1b8e
movzbl %al, %eax
cmpl $0x5c, %eax
jne 0x1c83
movq %rbx, %rdi
callq 0x10c0
movq %rax, %r14
movl $0x22, %edi
callq 0x1040
testl %r14d, %r14d
je 0x1c6b
callq 0x1200
movq %rax, %r15
leaq 0x4449(%rip), %r12      # 0x6004
leaq 0x452a(%rip), %r13      # 0x60ec
xorl %ebp, %ebp
movsbq (%rbx,%rbp), %rdi
movq (%r15), %rax
movzwl (%rax,%rdi,2), %eax
btl $0xe, %eax
jb 0x1bf4
movzbl %dil, %eax
leal -0x8(%rax), %ecx
cmpl $0x5, %ecx
ja 0x1c0a
movslq (%r12,%rcx,4), %rax
addq %r12, %rax
jmpq *%rax
leaq 0x44e8(%rip), %rdi      # 0x60da
jmp 0x1c58
cmpb $0x22, %dil
je 0x1c19
movzbl %dil, %eax
cmpl $0x5c, %eax
je 0x1c14
callq 0x1040
jmp 0x1c5f
cmpl $0x22, %eax
je 0x1c19
cmpl $0x5c, %eax
jne 0x1c22
movq %r13, %rdi
jmp 0x1c58
leaq 0x44c9(%rip), %rdi      # 0x60e9
jmp 0x1c58
movzbl %dil, %esi
leaq 0x44c2(%rip), %rdi      # 0x60ef
xorl %eax, %eax
callq 0x10e0
jmp 0x1c5f
leaq 0x44a0(%rip), %rdi      # 0x60dd
jmp 0x1c58
leaq 0x449a(%rip), %rdi      # 0x60e0
jmp 0x1c58
leaq 0x4494(%rip), %rdi      # 0x60e3
jmp 0x1c58
leaq 0x448e(%rip), %rdi      # 0x60e6
xorl %eax, %eax
callq 0x10e0
incq %rbp
cmpl %ebp, %r14d
jne 0x1bc4
movl $0x22, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1040
leaq 0x444b(%rip), %rdi      # 0x60d5
movq %rbx, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10e0
// File: /workspace/github_c_makefile_star2_O1/cktan[P]tomlc99/toml_cat.c
// Function: print_timestamp
static void print_timestamp(toml_datum_t d) {
  if (d.u.ts->year) {
    printf("%04d-%02d-%02d%s", *d.u.ts->year, *d.u.ts->month, *d.u.ts->day,
           d.u.ts->hour ? "T" : "");
  }
  if (d.u.ts->hour) {
    printf("%02d:%02d:%02d", *d.u.ts->hour, *d.u.ts->minute, *d.u.ts->second);
    if (d.u.ts->millisec) {
      printf(".%03d", *d.u.ts->millisec);
    }
    if (d.u.ts->z) {
      printf("%s", d.u.ts->z);
    }
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %rax
testq %rax, %rax
je 0x1ce2
movl (%rax), %esi
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rcx
movl (%rax), %edx
movl (%rcx), %ecx
cmpq $0x0, 0x40(%rbx)
leaq 0x4982(%rip), %rax      # 0x664b
leaq 0x4709(%rip), %r8       # 0x63d9
cmoveq %rax, %r8
leaq 0x441c(%rip), %rdi      # 0x60f7
xorl %eax, %eax
callq 0x10e0
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x1d38
movl (%rax), %esi
movq 0x48(%rbx), %rax
movq 0x50(%rbx), %rcx
movl (%rax), %edx
movl (%rcx), %ecx
leaq 0x4408(%rip), %rdi      # 0x6108
xorl %eax, %eax
callq 0x10e0
movq 0x58(%rbx), %rax
testq %rax, %rax
je 0x1d20
movl (%rax), %esi
leaq 0x43fe(%rip), %rdi      # 0x6117
xorl %eax, %eax
callq 0x10e0
movq 0x60(%rbx), %rsi
testq %rsi, %rsi
je 0x1d38
leaq 0x4541(%rip), %rdi      # 0x6271
xorl %eax, %eax
popq %rbx
jmp 0x10e0
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O1/cktan[P]tomlc99/toml.c
// Function: toml_set_memutil
void toml_set_memutil(void *(*xxmalloc)(size_t), void (*xxfree)(void *)) {
  if (xxmalloc)
    ppmalloc = xxmalloc;
  if (xxfree)
    ppfree = xxfree;
}

// Assembly:
testq %rdi, %rdi
je 0x1d48
movq %rdi, 0x73d0(%rip)      # 0x9118
testq %rsi, %rsi
je 0x1d54
movq %rsi, 0x73cc(%rip)      # 0x9120
retq