LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/object.c
// Function: text_complex_global
int text_complex_global(
    TEXT_COMPLEX *tx,
    char *name)
{
    unsigned        radtbl[2];
    char           *cp = text_complex_fit(tx, 5);

    if (!cp)
        return 0;

    rad50x2(name, radtbl);
    *cp++ = CPLX_GLOBAL;
    *cp++ = radtbl[0] & 0xff;
    *cp++ = (radtbl[0] >> 8) & 0xff;
    *cp++ = radtbl[1] & 0xff;
    *cp = (radtbl[1] >> 8) & 0xff;
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movl $0x5, %esi
callq 0x12710
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x127a5
movl $0x0, -0x4(%rbp)
jmp 0x12832
movq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x13b40
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0xe, (%rax)
movl -0x20(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rbp)
movb %cl, (%rax)
movl -0x20(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movb %al, %cl
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rbp)
movb %cl, (%rax)
movl -0x1c(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rbp)
movb %cl, (%rax)
movl -0x1c(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, (%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/object.c
// Function: text_complex_psect
int text_complex_psect(
    TEXT_COMPLEX *tx,
    unsigned sect,
    unsigned offset)
{
    char           *cp = text_complex_fit(tx, 4);

    if (!cp)
        return 0;
    *cp++ = CPLX_REL;
    *cp++ = sect & 0xff;
    *cp++ = offset & 0xff;
    *cp = (offset >> 8) & 0xff;
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movl $0x4, %esi
callq 0x12710
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x12874
movl $0x0, -0x4(%rbp)
jmp 0x128d6
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movb $0xf, (%rax)
movl -0x14(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movl -0x18(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
movl -0x18(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/object.c
// Function: text_complex_commit
int text_complex_commit(
    TEXT_RLD *tr,
    unsigned *addr,
    int size,
    TEXT_COMPLEX *tx,
    unsigned word)
{
    int             i;

    text_complex_byte(tx, CPLX_STORE);

    if (!text_fit(tr, *addr, size, tx->len + 2))
        return 0;

    rld_code(tr, RLD_COMPLEX, *addr, size);

    for (i = 0; i < tx->len; i++)
        rld_byte(tr, tx->accum[i]);

    text_word_i(tr, word, size);

    *addr += size;

    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq -0x28(%rbp), %rdi
movl $0xa, %esi
callq 0x12530
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movl -0x1c(%rbp), %edx
movq -0x28(%rbp), %rax
movl 0x80(%rax), %ecx
addl $0x2, %ecx
callq 0x119b0
cmpl $0x0, %eax
jne 0x12936
movl $0x0, -0x4(%rbp)
jmp 0x129a4
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movl (%rax), %edx
movl -0x1c(%rbp), %ecx
movl $0xf, %esi
callq 0x11b60
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x80(%rcx), %eax
jge 0x12983
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsbl (%rax,%rcx), %esi
callq 0x129b0
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x12954
movq -0x10(%rbp), %rdi
movl -0x2c(%rbp), %esi
movl -0x1c(%rbp), %edx
callq 0x11a60
movl -0x1c(%rbp), %ecx
movq -0x18(%rbp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/object.c
// Function: text_complex_commit_displaced
int text_complex_commit_displaced(
    TEXT_RLD *tr,
    unsigned *addr,
    int size,
    TEXT_COMPLEX *tx,
    unsigned word)
{
    int             i;

    text_complex_byte(tx, CPLX_STORE_DISP);

    if (!text_fit(tr, *addr, size, tx->len + 2))
        return 0;

    rld_code(tr, RLD_COMPLEX, *addr, size);

    for (i = 0; i < tx->len; i++)
        rld_byte(tr, tx->accum[i]);

    text_word_i(tr, word, size);

    *addr += size;

    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq -0x28(%rbp), %rdi
movl $0xb, %esi
callq 0x12530
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movl -0x1c(%rbp), %edx
movq -0x28(%rbp), %rax
movl 0x80(%rax), %ecx
addl $0x2, %ecx
callq 0x119b0
cmpl $0x0, %eax
jne 0x12a46
movl $0x0, -0x4(%rbp)
jmp 0x12ab4
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movl (%rax), %edx
movl -0x1c(%rbp), %ecx
movl $0xf, %esi
callq 0x11b60
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x80(%rcx), %eax
jge 0x12a93
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsbl (%rax,%rcx), %esi
callq 0x129b0
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x12a64
movq -0x10(%rbp), %rdi
movl -0x2c(%rbp), %esi
movl -0x1c(%rbp), %edx
callq 0x11a60
movl -0x1c(%rbp), %ecx
movq -0x18(%rbp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: new_buffer
BUFFER         *new_buffer(
    void)
{
    BUFFER         *buf = memcheck(malloc(sizeof(BUFFER)));

    buf->length = 0;
    buf->size = 0;
    buf->use = 1;
    buf->buffer = NULL;
    return buf;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x18, %edi
callq 0x2220
movq %rax, %rdi
callq 0x136a0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl $0x0, 0xc(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
movl $0x1, 0x10(%rax)
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: buffer_resize
void buffer_resize(
    BUFFER *buff,
    int size)
{
    buff->size = size;
    buff->length = size;

    if (size == 0) {
        free(buff->buffer);
        buff->buffer = NULL;
    } else {
        if (buff->buffer == NULL)
            buff->buffer = memcheck(malloc(buff->size));
        else
            buff->buffer = memcheck(realloc(buff->buffer, buff->size));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x8(%rax)
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xc(%rax)
cmpl $0x0, -0xc(%rbp)
jne 0x12b92
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x2040
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
jmp 0x12be5
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x12bbd
movq -0x8(%rbp), %rax
movslq 0x8(%rax), %rdi
callq 0x2220
movq %rax, %rdi
callq 0x136a0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
jmp 0x12be3
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movslq 0x8(%rax), %rsi
callq 0x2250
movq %rax, %rdi
callq 0x136a0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
jmp 0x12be5
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: buffer_free
void buffer_free(
    BUFFER *buf)
{
    if (buf) {
        if (--(buf->use) == 0) {
            free(buf->buffer);
            free(buf);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x12c5c
movq -0x8(%rbp), %rcx
movl 0x10(%rcx), %eax
addl $-0x1, %eax
movl %eax, 0x10(%rcx)
cmpl $0x0, %eax
jne 0x12c5a
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x2040
movq -0x8(%rbp), %rdi
callq 0x2040
jmp 0x12c5c
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: buffer_appendn
void buffer_appendn(
    BUFFER *buf,
    char *str,
    int len)
{
    int             needed = buf->length + len + 1;

    if (needed >= buf->size) {
        buf->size = needed + GROWBUF_INCR;

        if (buf->buffer == NULL)
            buf->buffer = memcheck(malloc(buf->size));
        else
            buf->buffer = memcheck(realloc(buf->buffer, buf->size));
    }

    memcpy(buf->buffer + buf->length, str, len);
    buf->length += len;
    buf->buffer[buf->length] = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %eax
addl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jl 0x12d02
movl -0x18(%rbp), %ecx
addl $0x400, %ecx            # imm = 0x400
movq -0x8(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x12cda
movq -0x8(%rbp), %rax
movslq 0x8(%rax), %rdi
callq 0x2220
movq %rax, %rdi
callq 0x136a0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
jmp 0x12d00
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movslq 0x8(%rax), %rsi
callq 0x2250
movq %rax, %rdi
callq 0x136a0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
jmp 0x12d02
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movslq 0xc(%rax), %rax
addq %rax, %rdi
movq -0x10(%rbp), %rsi
movslq -0x14(%rbp), %rdx
callq 0x2200
movl -0x14(%rbp), %ecx
movq -0x8(%rbp), %rax
addl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rbp), %rcx
movslq 0xc(%rcx), %rcx
movb $0x0, (%rax,%rcx)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: stream_construct
void stream_construct(
    STREAM *str,
    char *name)
{
    str->line = 0;
    str->name = memcheck(strdup(name));
    str->next = NULL;
    str->vtbl = NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl $0x0, 0x10(%rax)
movq -0x10(%rbp), %rdi
callq 0x22d0
movq %rax, %rdi
callq 0x136a0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: buffer_stream_gets
char           *buffer_stream_gets(
    STREAM *str)
{
    char           *nl;
    char           *cp;
    BUFFER_STREAM  *bstr = (BUFFER_STREAM *) str;
    BUFFER         *buf = bstr->buffer;

    if (buf == NULL)
        return NULL;                   /* No buffer */

    if (bstr->offset >= buf->length)
        return NULL;

    cp = buf->buffer + bstr->offset;

    /* Find the next line in preparation for the next call */

    nl = memchr(cp, '\n', buf->length - bstr->offset);

    if (nl)
        nl++;

    bstr->offset = (int) (nl - buf->buffer);
    str->line++;

    return cp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x12e94
movq $0x0, -0x8(%rbp)
jmp 0x12f26
movq -0x28(%rbp), %rax
movl 0x28(%rax), %eax
movq -0x30(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jl 0x12eae
movq $0x0, -0x8(%rbp)
jmp 0x12f26
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
movslq 0x28(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rax
movl 0xc(%rax), %eax
movq -0x28(%rbp), %rcx
subl 0x28(%rcx), %eax
movslq %eax, %rdx
movl $0xa, %esi
callq 0x2180
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x12efa
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: buffer_stream_construct
void buffer_stream_construct(
    BUFFER_STREAM * bstr,
    BUFFER *buf,
    char *name)
{
    bstr->stream.vtbl = &buffer_stream_vtbl;

    bstr->stream.name = memcheck(strdup(name));

    bstr->buffer = buffer_clone(buf);
    bstr->offset = 0;
    bstr->stream.line = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
leaq 0x6b31(%rip), %rcx      # 0x19ae0
movq %rcx, (%rax)
movq -0x18(%rbp), %rdi
callq 0x22d0
movq %rax, %rdi
callq 0x136a0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rdi
callq 0x12bf0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x28(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x10(%rax)
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: buffer_stream_set_buffer
void buffer_stream_set_buffer(
    BUFFER_STREAM * bstr,
    BUFFER *buf)
{
    if (bstr->buffer)
        buffer_free(bstr->buffer);
    bstr->buffer = buffer_clone(buf);
    bstr->offset = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x13028
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x12c20
movq -0x10(%rbp), %rdi
callq 0x12bf0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x28(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: file_destroy
void file_destroy(
    STREAM *str)
{
    FILE_STREAM    *fstr = (FILE_STREAM *) str;

    fclose(fstr->fp);
    free(fstr->buffer);
    stream_delete(str);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x20b0
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x2040
movq -0x8(%rbp), %rdi
callq 0x12e30
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: new_file_stream
STREAM         *new_file_stream(
    char *filename)
{
    FILE           *fp;
    FILE_STREAM    *str;

    fp = fopen(filename, "r");
    if (fp == NULL)
        return NULL;

    str = memcheck(malloc(sizeof(FILE_STREAM)));

    str->stream.vtbl = &file_stream_vtbl;
    str->stream.name = memcheck(strdup(filename));
    str->buffer = memcheck(malloc(STREAM_BUFFER_SIZE));
    str->fp = fp;
    str->stream.line = 0;

    return &str->stream;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x2bc9(%rip), %rsi      # 0x15d00
callq 0x2260
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x13151
movq $0x0, -0x8(%rbp)
jmp 0x131cd
movl $0x30, %edi
callq 0x2220
movq %rax, %rdi
callq 0x136a0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
leaq 0x6986(%rip), %rcx      # 0x19af8
movq %rcx, (%rax)
movq -0x10(%rbp), %rdi
callq 0x22d0
movq %rax, %rdi
callq 0x136a0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x400, %edi            # imm = 0x400
callq 0x2220
movq %rax, %rdi
callq 0x136a0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x20(%rbp), %rax
movl $0x0, 0x10(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: stack_pop
void stack_pop(
    STACK *stack)
{
    STREAM         *top = stack->top;
    STREAM         *next = top->next;

    top->vtbl->delete(top);
    stack->top = next;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rdi
callq *%rax
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: stack_gets
char           *stack_gets(
    STACK *stack)
{
    char           *line;

    if (stack->top == NULL)
        return NULL;

    while ((line = stack->top->vtbl->gets(stack->top)) == NULL) {
        stack_pop(stack);
        if (stack->top == NULL)
            return NULL;
    }

    return line;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x132a0
movq $0x0, -0x8(%rbp)
jmp 0x132ea
jmp 0x132a2
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rdi
callq *%rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x132e2
movq -0x10(%rbp), %rdi
callq 0x13200
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x132e0
movq $0x0, -0x8(%rbp)
jmp 0x132ea
jmp 0x132a2
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/stream2.c
// Function: file_gets
static char    *file_gets(
    STREAM *str)
{
    int             i,
                    c;
    FILE_STREAM    *fstr = (FILE_STREAM *) str;

    if (fstr->fp == NULL)
        return NULL;

    if (feof(fstr->fp))
        return NULL;

    /* Read single characters, end of line when '\n' or '\f' hit */

    i = 0;
    while (c = fgetc(fstr->fp), c != '\n' && c != '\f' && c != EOF) {
        if (c == 0)
            continue;                  /* Don't buffer zeros */
        if (c == '\r')
            continue;                  /* Don't buffer carriage returns either */
        if (i < STREAM_BUFFER_SIZE - 2)
            fstr->buffer[i++] = c;
    }

    fstr->buffer[i++] = '\n';          /* Silently transform formfeeds
                                          into newlines */
    fstr->buffer[i] = 0;

    if (c == '\n')
        fstr->stream.line++;           /* Count a line */

    return fstr->buffer;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpq $0x0, 0x20(%rax)
jne 0x1332c
movq $0x0, -0x8(%rbp)
jmp 0x1340d
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x21d0
cmpl $0x0, %eax
je 0x1334b
movq $0x0, -0x8(%rbp)
jmp 0x1340d
movl $0x0, -0x14(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x2140
movl %eax, -0x18(%rbp)
xorl %eax, %eax
cmpl $0xa, -0x18(%rbp)
movb %al, -0x21(%rbp)
je 0x13382
xorl %eax, %eax
cmpl $0xc, -0x18(%rbp)
movb %al, -0x21(%rbp)
je 0x13382
cmpl $-0x1, -0x18(%rbp)
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x1338b
jmp 0x133c4
cmpl $0x0, -0x18(%rbp)
jne 0x13393
jmp 0x13352
cmpl $0xd, -0x18(%rbp)
jne 0x1339b
jmp 0x13352
cmpl $0x3fe, -0x14(%rbp)     # imm = 0x3FE
jge 0x133c2
movl -0x18(%rbp), %eax
movb %al, %dl
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x14(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x14(%rbp)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
jmp 0x13352
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x14(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x14(%rbp)
movslq %ecx, %rcx
movb $0xa, (%rax,%rcx)
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x14(%rbp), %rcx
movb $0x0, (%rax,%rcx)
cmpl $0xa, -0x18(%rbp)
jne 0x13401
movq -0x20(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/util.c
// Function: my_ultoa
char           *my_ultoa(
    unsigned long val,
    char *buf,
    unsigned int base)
{
    static char     digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    char           *strt = buf,
            *end;

    do {
        *buf++ = digits[val % base];
        val /= base;
    } while (val != 0);

    *buf = 0;                          /* delimit */
    end = buf + 1;

    /* Now reverse the bytes */

    while (buf > strt) {
        char            temp;

        temp = *--buf;
        *buf = *strt;
        *strt++ = temp;
    }

    return end;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movl -0x14(%rbp), %ecx
xorl %edx, %edx
divq %rcx
leaq 0x66c6(%rip), %rax      # 0x19b10
movb (%rax,%rdx), %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x14(%rbp), %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
xorl %edx, %edx
divq %rcx
movq %rax, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x13437
movq -0x10(%rbp), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x20(%rbp), %rax
jbe 0x134cb
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x10(%rbp)
movb -0x1(%rax), %al
movb %al, -0x29(%rbp)
movq -0x20(%rbp), %rax
movb (%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movb -0x29(%rbp), %cl
movq -0x20(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movb %cl, (%rax)
jmp 0x1348a
movq -0x28(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/util.c
// Function: my_ltoa
char           *my_ltoa(
    long val,
    char *buf,
    unsigned int base)
{
    unsigned long   uval;

    if (val < 0)
        uval = -val, *buf++ = '-';
    else
        uval = val;

    return my_ultoa(uval, buf, base);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
cmpq $0x0, -0x8(%rbp)
jge 0x13518
xorl %eax, %eax
subq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb $0x2d, (%rax)
jmp 0x13520
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
callq 0x13420
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/util.c
// Function: my_searchenv
void my_searchenv(
    char *name,
    char *envname,
    char *hitfile,
    int hitlen)
{
    my_searchenv1(name, envname, hitfile, hitlen);
    if (*hitfile) {
        return;
    }

    char *copy = memcheck(strdup(name));
    downcase(copy);
    my_searchenv1(copy, envname, hitfile, hitlen);
    free(copy);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x135c0
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
je 0x13576
jmp 0x135b1
movq -0x8(%rbp), %rdi
callq 0x22d0
movq %rax, %rdi
callq 0x136a0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x136e0
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x135c0
movq -0x28(%rbp), %rdi
callq 0x2040
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/util.c
// Function: my_searchenv1
static void my_searchenv1(
    char *name,
    char *envname,
    char *hitfile,
    int hitlen)
{
    my_searchenv2(name, envname, hitfile, hitlen);
    if (*hitfile) {
        return;
    }

    /*
     * Parse DEV:[DIR]NAME
     * while re-trying the search after DEV: and after [DIR].
     *
     * Let's not be too critical about the characters we allow in those.
     */
    char *p = name;
    char c;

    while ((c = *p++)) {
        if (c == ':') {
            my_searchenv2(p, envname, hitfile, hitlen);
            if (*hitfile) {
                return;
            }
        }
        if (c == '[') {
            char *enddir = strchr(p, ']');
            if (enddir == NULL) {
                return; /* weird syntax */
            }
            p = enddir + 1;
            my_searchenv2(p, envname, hitfile, hitlen);
            return;
        }
    }

    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x137d0
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
je 0x135f9
jmp 0x13690
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb (%rax), %al
movb %al, -0x29(%rbp)
cmpb $0x0, %al
je 0x1368e
movsbl -0x29(%rbp), %eax
cmpl $0x3a, %eax
jne 0x13643
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x137d0
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
je 0x13641
jmp 0x13690
jmp 0x13643
movsbl -0x29(%rbp), %eax
cmpl $0x5b, %eax
jne 0x13689
movq -0x28(%rbp), %rdi
movl $0x5d, %esi
callq 0x20d0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x13667
jmp 0x13690
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x137d0
jmp 0x13690
jmp 0x13601
jmp 0x13690
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/util.c
// Function: memcheck
void           *memcheck(
    void *ptr)
{
    if (ptr == NULL) {
        fprintf(stderr, "Out of memory.\n");
        exit(EXIT_FAILURE);
    }

    return ptr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x136d5
movq 0x593e(%rip), %rax      # 0x18ff8
movq (%rax), %rdi
leaq 0x263e(%rip), %rsi      # 0x15d02
movb $0x0, %al
callq 0x21c0
movl $0x1, %edi
callq 0x22b0
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/util.c
// Function: padto
void padto(
    char *str,
    int to)
{
    int             needspace = to - strlen(str);

    str += strlen(str);
    while (needspace > 0)
        *str++ = ' ', needspace--;
    *str = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movslq -0xc(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0x20c0
movq %rax, %rcx
movq -0x18(%rbp), %rax
subq %rcx, %rax
movl %eax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x20c0
addq -0x8(%rbp), %rax
movq %rax, -0x8(%rbp)
cmpl $0x0, -0x10(%rbp)
jle 0x137c1
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x20, (%rax)
movl -0x10(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x1379e
movq -0x8(%rbp), %rax
movb $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/rad50.c
// Function: rad50x2
void rad50x2(
    char *cp,
    unsigned *rp)
{
    *rp++ = rad50(cp, &cp);
    *rp = 0;
    if (*cp)
        *rp = rad50(cp, &cp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x8(%rbp), %rsi
callq 0x13990
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, -0x10(%rbp)
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movl $0x0, (%rax)
movq -0x8(%rbp), %rax
cmpb $0x0, (%rax)
je 0x13b98
movq -0x8(%rbp), %rdi
leaq -0x8(%rbp), %rsi
callq 0x13990
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/rad50.c
// Function: unrad50
void unrad50(
    unsigned word,
    char *cp)
{
    if (word < 0175000) {              /* Is it legal RAD50? */
        cp[0] = radtbl[word / 03100];
        cp[1] = radtbl[(word / 050) % 050];
        cp[2] = radtbl[word % 050];
    } else
        cp[0] = cp[1] = cp[2] = ' ';
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
cmpl $0xfa00, -0x4(%rbp)     # imm = 0xFA00
jae 0x13c21
movl -0x4(%rbp), %eax
movl $0x640, %ecx            # imm = 0x640
xorl %edx, %edx
divl %ecx
movl %eax, %eax
movl %eax, %ecx
leaq 0x5f75(%rip), %rax      # 0x19b40
movb (%rax,%rcx), %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl -0x4(%rbp), %eax
movl $0x28, %ecx
xorl %edx, %edx
divl %ecx
movl $0x28, %ecx
xorl %edx, %edx
divl %ecx
movl %edx, %eax
movl %eax, %ecx
leaq 0x5f4c(%rip), %rax      # 0x19b40
movb (%rax,%rcx), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x4(%rbp), %eax
movl $0x28, %ecx
xorl %edx, %edx
divl %ecx
movl %edx, %eax
movl %eax, %ecx
leaq 0x5f2b(%rip), %rax      # 0x19b40
movb (%rax,%rcx), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
jmp 0x13c38
movq -0x10(%rbp), %rax
movb $0x20, 0x2(%rax)
movq -0x10(%rbp), %rax
movb $0x20, 0x1(%rax)
movq -0x10(%rbp), %rax
movb $0x20, (%rax)
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/rad50.c
// Function: ascii2rad50
int ascii2rad50(
    char c)
{
    char           *rp;

    if (c == '\0')                     /* Not a RAD50 character */
        return -1;
    rp = strchr(radtbl, toupper((unsigned char)c));
    if (rp == NULL)                    /* Not a RAD50 character */
        return -1;
    return (int) (rp - radtbl);        /* Convert */
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb %dil, %al
movb %al, -0x5(%rbp)
movsbl -0x5(%rbp), %eax
cmpl $0x0, %eax
jne 0x13c60
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x13c9c
movzbl -0x5(%rbp), %edi
callq 0x2080
movl %eax, %esi
leaq 0x5ece(%rip), %rdi      # 0x19b40
callq 0x20d0
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x13c8b
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x13c9c
movq -0x10(%rbp), %rax
leaq 0x5eaa(%rip), %rcx      # 0x19b40
subq %rcx, %rax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/simh[P]simtools/crossassemblers/macro11/rad50.c
// Function: packrad50word
unsigned packrad50word(
    char *cp,
    int len)
{
    unsigned long   acc = 0;

    if (len >= 1) {
        acc += (cp[0] % 050) * 050 * 050;
    }
    if (len >= 2) {
        acc += (cp[1] % 050) * 050;
    }
    if (len >= 3) {
        acc += cp[2] % 050;
    }

    return acc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq $0x0, -0x18(%rbp)
cmpl $0x1, -0xc(%rbp)
jl 0x13ce8
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
movl $0x28, %ecx
cltd
idivl %ecx
imull $0x28, %edx, %eax
imull $0x28, %eax, %eax
cltq
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpl $0x2, -0xc(%rbp)
jl 0x13d0b
movq -0x8(%rbp), %rax
movsbl 0x1(%rax), %eax
movl $0x28, %ecx
cltd
idivl %ecx
imull $0x28, %edx, %eax
cltq
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpl $0x3, -0xc(%rbp)
jl 0x13d2c
movq -0x8(%rbp), %rax
movsbl 0x2(%rax), %eax
movl $0x28, %ecx
cltd
idivl %ecx
movslq %edx, %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/jfriesse[P]omping/addrfunc.c
// Function: af_ai_eq
int
af_ai_eq(const struct addrinfo *a1, const struct addrinfo *a2)
{

	return ((a1->ai_family == a2->ai_family) &&
	    (a1->ai_socktype == a2->ai_socktype) &&
	    (a1->ai_protocol == a2->ai_protocol) &&
	    af_sockaddr_eq(a1->ai_addr, a2->ai_addr));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x10(%rbp), %rdx
xorl %eax, %eax
cmpl 0x4(%rdx), %ecx
movb %al, -0x11(%rbp)
jne 0x24cd
movq -0x8(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x10(%rbp), %rdx
xorl %eax, %eax
cmpl 0x8(%rdx), %ecx
movb %al, -0x11(%rbp)
jne 0x24cd
movq -0x8(%rbp), %rax
movl 0xc(%rax), %ecx
movq -0x10(%rbp), %rdx
xorl %eax, %eax
cmpl 0xc(%rdx), %ecx
movb %al, -0x11(%rbp)
jne 0x24cd
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x24e0
cmpl $0x0, %eax
setne %al
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/jfriesse[P]omping/addrfunc.c
// Function: af_sockaddr_eq
int
af_sockaddr_eq(const struct sockaddr *sa1, const struct sockaddr *sa2)
{
	int res;

	res = 0;

	if (sa1->sa_family == sa2->sa_family) {
		switch (sa1->sa_family) {
		case AF_INET:
			res = (((struct sockaddr_in *)sa1)->sin_addr.s_addr ==
			    ((struct sockaddr_in *)sa2)->sin_addr.s_addr);
			break;
		case AF_INET6:
			res = IN6_ARE_ADDR_EQUAL(
			    &((struct sockaddr_in6 *)sa1)->sin6_addr,
			    &((struct sockaddr_in6 *)sa2)->sin6_addr);
			break;
		default:
			err(1, "Unknown sockaddr family");
			break;
		}
	}

	return (res);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x8(%rbp), %rax
movzwl (%rax), %eax
movq -0x10(%rbp), %rcx
movzwl (%rcx), %ecx
cmpl %ecx, %eax
jne 0x25da
movq -0x8(%rbp), %rax
movzwl (%rax), %eax
movl %eax, -0x30(%rbp)
subl $0x2, %eax
je 0x252b
jmp 0x251e
movl -0x30(%rbp), %eax
subl $0xa, %eax
je 0x2549
jmp 0x25c5
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x14(%rbp)
jmp 0x25d8
movq -0x8(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %ecx
movq -0x28(%rbp), %rdx
xorl %eax, %eax
cmpl (%rdx), %ecx
movb %al, -0x31(%rbp)
jne 0x25b2
movq -0x20(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x28(%rbp), %rdx
xorl %eax, %eax
cmpl 0x4(%rdx), %ecx
movb %al, -0x31(%rbp)
jne 0x25b2
movq -0x20(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x28(%rbp), %rdx
xorl %eax, %eax
cmpl 0x8(%rdx), %ecx
movb %al, -0x31(%rbp)
jne 0x25b2
movq -0x20(%rbp), %rax
movl 0xc(%rax), %eax
movq -0x28(%rbp), %rcx
cmpl 0xc(%rcx), %eax
sete %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x25d8
movl $0x1, %edi
leaq 0xbaf0(%rip), %rsi      # 0xe0c1
movb $0x0, %al
callq 0x2240
jmp 0x25da
movl -0x14(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/jfriesse[P]omping/addrfunc.c
// Function: af_ai_deep_eq
int
af_ai_deep_eq(const struct addrinfo *a1, const struct addrinfo *a2)
{
	const struct addrinfo *a1_i, *a2_i;

	for (a1_i = a1; a1_i != NULL; a1_i = a1_i->ai_next) {
		for (a2_i = a2; a2_i != NULL; a2_i = a2_i->ai_next) {
			if (af_ai_eq(a1_i, a2_i)) {
				return (1);
			}
		}
	}

	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x2659
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x2649
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x2460
cmpl $0x0, %eax
je 0x2639
movl $0x1, -0x4(%rbp)
jmp 0x2660
jmp 0x263b
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x2617
jmp 0x264b
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x2608
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/jfriesse[P]omping/addrfunc.c
// Function: af_ai_deep_is_loopback
int
af_ai_deep_is_loopback(const struct addrinfo *a1)
{
	const struct addrinfo *a1_i;

	for (a1_i = a1; a1_i != NULL; a1_i = a1_i->ai_next) {
		if (af_ai_is_loopback(a1_i)) {
			return (1);
		}
	}

	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x26b2
movq -0x18(%rbp), %rdi
callq 0x26d0
cmpl $0x0, %eax
je 0x26a2
movl $0x1, -0x4(%rbp)
jmp 0x26b9
jmp 0x26a4
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x2684
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/jfriesse[P]omping/addrfunc.c
// Function: af_ai_is_loopback
int
af_ai_is_loopback(const struct addrinfo *ai)
{
	int res;

	switch (ai->ai_family) {
	case PF_INET:
		res = ntohl(((struct sockaddr_in *)(ai->ai_addr))->sin_addr.s_addr) >> 24 == 0x7f;
		break;
	case PF_INET6:
		res = IN6_IS_ADDR_LOOPBACK(&((struct sockaddr_in6 *)(ai->ai_addr))->sin6_addr);
		break;
	default:
		DEBUG_PRINTF("Unknown ai family %d", ai->ai_family);
		errx(1, "Unknown ai family %d", ai->ai_family);
	}

	return (res);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x20(%rbp)
subl $0x2, %eax
je 0x26fa
jmp 0x26ed
movl -0x20(%rbp), %eax
subl $0xa, %eax
je 0x2720
jmp 0x2790
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x4(%rax), %edi
callq 0x2310
shrl $0x18, %eax
cmpl $0x7f, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0xc(%rbp)
jmp 0x27d1
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rcx
xorl %eax, %eax
cmpl $0x0, (%rcx)
movb %al, -0x21(%rbp)
jne 0x277d
movq -0x18(%rbp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x4(%rcx)
movb %al, -0x21(%rbp)
jne 0x277d
movq -0x18(%rbp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x8(%rcx)
movb %al, -0x21(%rbp)
jne 0x277d
movq -0x18(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x28(%rbp)
movl $0x1, %edi
callq 0x2140
movl %eax, %ecx
movl -0x28(%rbp), %eax
cmpl %ecx, %eax
sete %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0x27d1
movq -0x8(%rbp), %rax
movl 0x4(%rax), %r8d
leaq 0xb865(%rip), %rdi      # 0xe004
movl $0xbc, %esi
movl $0x2, %edx
leaq 0xb88e(%rip), %rcx      # 0xe03e
movb $0x0, %al
callq 0x5dc0
movq -0x8(%rbp), %rax
movl 0x4(%rax), %edx
movl $0x1, %edi
leaq 0xb874(%rip), %rsi      # 0xe03e
movb $0x0, %al
callq 0x20d0
movl -0xc(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/jfriesse[P]omping/addrfunc.c
// Function: af_ai_deep_is_mcast
int
af_ai_deep_is_mcast(const struct addrinfo *a1)
{
	const struct addrinfo *a1_i;

	for (a1_i = a1; a1_i != NULL; a1_i = a1_i->ai_next) {
		if (af_is_sa_mcast(a1_i->ai_addr)) {
			return (1);
		}
	}

	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x2826
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x2840
cmpl $0x0, %eax
je 0x2816
movl $0x1, -0x4(%rbp)
jmp 0x282d
jmp 0x2818
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x27f4
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/jfriesse[P]omping/addrfunc.c
// Function: af_is_sa_mcast
int
af_is_sa_mcast(const struct sockaddr *addr)
{

	switch (addr->sa_family) {
	case AF_INET:
		return IN_MULTICAST(ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr));
		break;
	case AF_INET6:
		return IN6_IS_ADDR_MULTICAST(&((struct sockaddr_in6 *)addr)->sin6_addr);
		break;
	default:
		DEBUG_PRINTF("Unknown sockaddr family");
                errx(1, "Unknown sockaddr family");
		break;
	}

	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzwl (%rax), %eax
movl %eax, -0x14(%rbp)
subl $0x2, %eax
je 0x2867
jmp 0x285d
movl -0x14(%rbp), %eax
subl $0xa, %eax
je 0x288a
jmp 0x28a4
movq -0x10(%rbp), %rax
movl 0x4(%rax), %edi
callq 0x2310
andl $0xf0000000, %eax       # imm = 0xF0000000
cmpl $0xe0000000, %eax       # imm = 0xE0000000
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
jmp 0x28d6
movq -0x10(%rbp), %rax
movzbl 0x8(%rax), %eax
cmpl $0xff, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
jmp 0x28d6
leaq 0xb759(%rip), %rdi      # 0xe004
movl $0x171, %esi            # imm = 0x171
movl $0x2, %edx
leaq 0xb805(%rip), %rcx      # 0xe0c1
movb $0x0, %al
callq 0x5dc0
movl $0x1, %edi
leaq 0xb7f2(%rip), %rsi      # 0xe0c1
movb $0x0, %al
callq 0x20d0
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/jfriesse[P]omping/addrfunc.c
// Function: af_ai_deep_supported_ipv
int
af_ai_deep_supported_ipv(const struct addrinfo *ai_addr)
{
	const struct addrinfo *ai_iter;
	int ip4, ip6;

	ip4 = 0;
	ip6 = 0;

	for (ai_iter = ai_addr; ai_iter != NULL; ai_iter = ai_iter->ai_next) {
		switch (af_ai_supported_ipv(ai_iter)) {
		case 4:
			ip4 = 1;
			break;
		case 6:
			ip6 = 1;
			break;
		case 0:
			DEBUG_PRINTF("internal program error.");
			err(1, "Internal program error");
			break;
		}
	}

	if (ip4 && ip6)
		return (0);
	if (ip6)
		return (6);
	if (ip4)
		return (4);

	return (-1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x2988
movq -0x18(%rbp), %rdi
callq 0x29d0
movl %eax, %ecx
movl %ecx, -0x24(%rbp)
testl %eax, %eax
je 0x2943
jmp 0x291d
movl -0x24(%rbp), %eax
subl $0x4, %eax
je 0x2931
jmp 0x2927
movl -0x24(%rbp), %eax
subl $0x6, %eax
je 0x293a
jmp 0x2975
movl $0x1, -0x1c(%rbp)
jmp 0x2975
movl $0x1, -0x20(%rbp)
jmp 0x2975
leaq 0xb6ba(%rip), %rdi      # 0xe004
movl $0x84, %esi
movl $0x2, %edx
leaq 0xb6b4(%rip), %rcx      # 0xe00f
movb $0x0, %al
callq 0x5dc0
movl $0x1, %edi
leaq 0xb6b9(%rip), %rsi      # 0xe027
movb $0x0, %al
callq 0x2240
jmp 0x2977
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x2902
cmpl $0x0, -0x1c(%rbp)
je 0x299d
cmpl $0x0, -0x20(%rbp)
je 0x299d
movl $0x0, -0x4(%rbp)
jmp 0x29c2
cmpl $0x0, -0x20(%rbp)
je 0x29ac
movl $0x6, -0x4(%rbp)
jmp 0x29c2
cmpl $0x0, -0x1c(%rbp)
je 0x29bb
movl $0x4, -0x4(%rbp)
jmp 0x29c2
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/jfriesse[P]omping/addrfunc.c
// Function: af_ai_supported_ipv
int
af_ai_supported_ipv(const struct addrinfo *ai_addr)
{
	int ipv;

	ipv = 0;

	switch (ai_addr->ai_family) {
	case PF_INET:
		ipv = 4;
		break;
	case PF_INET6:
		ipv = 6;
		break;
	}

	return (ipv);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x10(%rbp)
subl $0x2, %eax
je 0x29fa
jmp 0x29f0
movl -0x10(%rbp), %eax
subl $0xa, %eax
je 0x2a03
jmp 0x2a0a
movl $0x4, -0xc(%rbp)
jmp 0x2a0a
movl $0x6, -0xc(%rbp)
movl -0xc(%rbp), %eax
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/jfriesse[P]omping/addrfunc.c
// Function: af_ai_is_dup
int
af_ai_is_dup(const struct addrinfo *ai_list, const struct addrinfo *ai)
{
	const struct addrinfo *ai_i;
	int res;

	res = 0;

	for (ai_i = ai_list; res == 0 && ai_i != ai && ai_i != NULL; ai_i = ai_i->ai_next) {
		if (af_ai_eq(ai_i, ai)) {
			res = 1;
		}
	}

	return (res);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x1c(%rbp)
movb %al, -0x1d(%rbp)
jne 0x2a54
movq -0x18(%rbp), %rcx
xorl %eax, %eax
cmpq -0x10(%rbp), %rcx
movb %al, -0x1d(%rbp)
je 0x2a54
cmpq $0x0, -0x18(%rbp)
setne %al
movb %al, -0x1d(%rbp)
movb -0x1d(%rbp), %al
testb $0x1, %al
jne 0x2a5d
jmp 0x2a86
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x2460
cmpl $0x0, %eax
je 0x2a76
movl $0x1, -0x1c(%rbp)
jmp 0x2a78
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x2a2f
movl -0x1c(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/jfriesse[P]omping/addrfunc.c
// Function: af_copy_addr
int
af_copy_addr(const struct sockaddr_storage *a1, const struct sockaddr_storage *a2, int addr_source,
    int port_source, struct sockaddr_storage *res)
{
	const struct sockaddr_storage *sas;

	if (addr_source != 1 && addr_source != 2) {
		return (-1);
	}

	if (port_source != 1 && port_source != 2) {
		return (-1);
	}

	sas = (addr_source == 1 ? a1 : a2);
	memcpy(res, sas, sizeof(struct sockaddr_storage));

	if (addr_source == port_source) {
		return (0);
	}

	sas = (port_source == 1 ? a1 : a2);

	switch (sas->ss_family) {
	case AF_INET:
		((struct sockaddr_in *)res)->sin_port = ((struct sockaddr_in *)sas)->sin_port;
		break;
	case AF_INET6:
		((struct sockaddr_in6 *)res)->sin6_port = ((struct sockaddr_in6 *)sas)->sin6_port;
		break;
	default:
		DEBUG_PRINTF("Unknown sas family %d", sas->ss_family);
		errx(1, "Unknown sas family %d", sas->ss_family);

	}

	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl %ecx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
cmpl $0x1, -0x1c(%rbp)
je 0x2ac2
cmpl $0x2, -0x1c(%rbp)
je 0x2ac2
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2bc7
cmpl $0x1, -0x20(%rbp)
je 0x2ada
cmpl $0x2, -0x20(%rbp)
je 0x2ada
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2bc7
cmpl $0x1, -0x1c(%rbp)
jne 0x2aea
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x2af2
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl $0x80, %edx
callq 0x2200
movl -0x1c(%rbp), %eax
cmpl -0x20(%rbp), %eax
jne 0x2b20
movl $0x0, -0x4(%rbp)
jmp 0x2bc7
cmpl $0x1, -0x20(%rbp)
jne 0x2b30
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x2b38
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movzwl (%rax), %eax
movl %eax, -0x44(%rbp)
subl $0x2, %eax
je 0x2b5b
jmp 0x2b51
movl -0x44(%rbp), %eax
subl $0xa, %eax
je 0x2b6d
jmp 0x2b7f
movq -0x30(%rbp), %rax
movw 0x2(%rax), %cx
movq -0x28(%rbp), %rax
movw %cx, 0x2(%rax)
jmp 0x2bc0
movq -0x30(%rbp), %rax
movw 0x2(%rax), %cx
movq -0x28(%rbp), %rax
movw %cx, 0x2(%rax)
jmp 0x2bc0
movq -0x30(%rbp), %rax
movzwl (%rax), %r8d
leaq 0xb476(%rip), %rdi      # 0xe004
movl $0xff, %esi
movl $0x2, %edx
leaq 0xb4b4(%rip), %rcx      # 0xe053
movb $0x0, %al
callq 0x5dc0
movq -0x30(%rbp), %rax
movzwl (%rax), %edx
movl $0x1, %edi
leaq 0xb49a(%rip), %rsi      # 0xe053
movb $0x0, %al
callq 0x20d0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq