LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: readWaveMono
WAVE *
readWaveMono(const char *fileName)
    {
    WAVE *w;
    w = readWaveMonoFP(OpenFile(fileName,"r"));
    w->inName = StringDup(fileName);

    fprintf(stderr,"file name is %s\n",w->inName);

    return w;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x217b(%rip), %rsi      # 0x3470
callq 0x2136
movq %rax, %rdi
callq 0x2b22
movq %rax, %r14
movq %rbx, %rdi
callq 0x21ac
movq %rax, 0x90(%r14)
movq 0x4cdd(%rip), %rcx      # 0x5ff8
movq (%rcx), %rdi
leaq 0x22fb(%rip), %rsi      # 0x3620
movq %rax, %rdx
xorl %eax, %eax
callq 0x1100
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: writeWaveHeader
void
writeWaveHeader(FILE *out,int rate,int channels,int bps,int samples)
    {
    writeByteString(out,"RIFF",4);

    writeByteInt(out,36 + samples * channels * (bps / 8),4);

    writeByteString(out,"WAVE",4);

    writeByteString(out,"fmt ",4);

    writeByteInt(out,16,4); //PCM subchunk

    writeByteInt(out,1,2); //PCM (no compression)

    writeByteInt(out,channels,2);  //1 for mono, 2 for stereo

    writeByteInt(out,rate,4); //sample rate

    writeByteInt(out,rate * channels * (bps / 8),4); //byte rate

    writeByteInt(out,channels * (bps / 8),2); //block align

    writeByteInt(out,bps,2); //bits per sample

    writeByteString(out,"data",4);

    writeByteInt(out,samples * channels * (bps / 8),4); //subchunk 2 size

    fprintf(stderr,"header written\n");
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r15d
movl %ecx, %ebp
movl %ecx, 0xc(%rsp)
movl %edx, %r12d
movl %esi, 0x8(%rsp)
movq %rdi, %r14
leaq 0x2389(%rip), %rdi      # 0x36eb
pushq $0x1
popq %rbx
pushq $0x4
popq %r13
movq %rbx, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x11a0
pushq $0x8
popq %rcx
movl %ebp, %eax
cltd
idivl %ecx
movl %eax, %ebp
imull %r12d, %ebp
imull %ebp, %r15d
movq %r15, 0x10(%rsp)
leal 0x24(%r15), %eax
leaq 0x4(%rsp), %r15
movl %eax, (%r15)
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x11a0
leaq 0x233e(%rip), %rdi      # 0x36f0
movq %rbx, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x11a0
leaq 0x224f(%rip), %rdi      # 0x3616
movq %rbx, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x11a0
movl $0x10, (%r15)
leaq 0x4(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x11a0
movl $0x1, (%r15)
leaq 0x4(%rsp), %r15
pushq $0x2
popq %r13
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x11a0
movl %r12d, (%r15)
leaq 0x4(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x11a0
movl 0x8(%rsp), %r12d
movl %r12d, (%r15)
leaq 0x4(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
pushq $0x4
popq %rdx
movq %r14, %rcx
callq 0x11a0
movl %r12d, %eax
imull %ebp, %eax
movl %eax, (%r15)
leaq 0x4(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
pushq $0x4
popq %r12
movq %r12, %rdx
movq %r14, %rcx
callq 0x11a0
movl %ebp, (%r15)
leaq 0x4(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x11a0
movl 0xc(%rsp), %eax
movl %eax, (%r15)
leaq 0x4(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x11a0
leaq 0x1dfb(%rip), %rdi      # 0x32a5
movq %rbx, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x11a0
movq 0x10(%rsp), %rax
movl %eax, (%r15)
leaq 0x4(%rsp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x11a0
movq 0x4b1e(%rip), %rax      # 0x5ff8
movq (%rax), %rcx
leaq 0x2211(%rip), %rdi      # 0x36f5
pushq $0xf
popq %rsi
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11a0
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: newDoubleArray
double *
newDoubleArray(int size)
    {
    double *a = (double *) New(sizeof(double) * (size+1));

    fprintf(stderr,"newDoubleArray: allocating %d reals at location %p\n",size,a);

    a[0] = size + 0.01;
    return a + 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
leal 0x8(,%rbx,8), %edi
callq 0x21c9
movq %rax, %r14
movq 0x4adf(%rip), %rax      # 0x5ff8
movq (%rax), %rdi
leaq 0x21e2(%rip), %rsi      # 0x3705
movl %ebx, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x1100
cvtsi2sd %ebx, %xmm0
addsd 0x2005(%rip), %xmm0     # 0x3540
movsd %xmm0, (%r14)
addq $0x8, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: growDoubleArray
double *
growDoubleArray(double *a)
    {
    int i;
    double *b = newDoubleArray(LENGTH(a) * 2);

    for (i = 0; i < LENGTH(a); ++i)
        b[i] = a[i];

    return b;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
cvttsd2si -0x8(%rdi), %edi
addl %edi, %edi
callq 0x14fd
cvttsd2si -0x8(%rbx), %ecx
testl %ecx, %ecx
jle 0x1584
xorl %ecx, %ecx
movsd (%rbx,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
cvttsd2si -0x8(%rbx), %edx
incq %rcx
movslq %edx, %rdx
cmpq %rdx, %rcx
jl 0x156a
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: copyDoubleArray
double *
copyDoubleArray(double *a)
    {
    int i;
    double *b = newDoubleArray((int) LENGTH(a));

    for (i = 0; i < (int) LENGTH(a); ++i)
        b[i] = a[i];

    return b;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
cvttsd2si -0x8(%rdi), %edi
callq 0x14fd
cvttsd2si -0x8(%rbx), %ecx
testl %ecx, %ecx
jle 0x15b9
xorl %ecx, %ecx
movsd (%rbx,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
cvttsd2si -0x8(%rbx), %edx
incq %rcx
movslq %edx, %rdx
cmpq %rdx, %rcx
jl 0x159f
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: freeWave
void
freeWave(WAVE *w)
    {
    int i;

    free(w->ID);
    free(w->Format);
    free(w->Subchunk1ID);
    free(w->Subchunk2ID);
    free(w->inName);
    free(w->outName);
    for (i = 0; i < w->NumChannels; ++i)
        freeIntArray(w->channels[i]);

    free(w);
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x1030
movq 0x8(%rbx), %rdi
callq 0x1030
movq 0x10(%rbx), %rdi
callq 0x1030
movq 0x18(%rbx), %rdi
callq 0x1030
movq 0x90(%rbx), %rdi
callq 0x1030
movq 0xa0(%rbx), %rdi
callq 0x1030
cmpl $0x0, 0x34(%rbx)
jg 0x23dd
movq %rbx, %rdi
popq %rbx
jmp 0x1030
leaq 0x34(%rbx), %rsi
movq %rbx, %rdi
callq 0x15fa
jmp 0x23d4
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: cloneWave
WAVE *
cloneWave(WAVE *v)
    {
    int i;
    WAVE *w = newWave();

    w->ID = v->ID;
    w->Format = v->Format;
    w->Subchunk1ID = v->Subchunk1ID;
    w->Subchunk2ID = v->Subchunk2ID;
    w->ChunkSize = v->ChunkSize;
    w->Subchunk1Size = v->Subchunk1Size;
    w->AudioFormat = v->AudioFormat;
    w->NumChannels = v->NumChannels;
    w->SampleRate = v->SampleRate;
    w->ByteRate = v->ByteRate;
    w->BlockAlign = v->BlockAlign;
    w->BitsPerSample = v->BitsPerSample;
    w->Subchunk2Size = v->Subchunk2Size;
    for (i = 0; i < MAX_CHANNELS; ++i)
        w->channels[i] = v->channels[i];
    w->sampleCount = v->sampleCount;
    w->sampleWidth = v->sampleWidth;
    w->maxAmp = v->maxAmp;

    return w;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0xd0, %edi
callq 0x21c9
movq %rax, %r14
xorl %r15d, %r15d
movq %r15, 0x90(%rax)
movq %r15, 0xa0(%rax)
movl $0x84, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x10e0
movabsq $0x407b800000000000, %rax # imm = 0x407B800000000000
movq %rax, 0xa8(%r14)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0xb0(%r14)
movq %rax, 0xb8(%r14)
movq %r15, 0xc0(%r14)
movl $0x0, 0xc8(%r14)
movq (%rbx), %rax
movq %rax, (%r14)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%r14)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r14)
movq 0x18(%rbx), %rax
movq %rax, 0x18(%r14)
movq 0x20(%rbx), %rax
movq %rax, 0x20(%r14)
movq 0x28(%rbx), %rax
movq %rax, 0x28(%r14)
movl 0x30(%rbx), %eax
movl %eax, 0x30(%r14)
movl 0x34(%rbx), %eax
movl %eax, 0x34(%r14)
movl 0x38(%rbx), %eax
movl %eax, 0x38(%r14)
movl 0x3c(%rbx), %eax
movl %eax, 0x3c(%r14)
movl 0x40(%rbx), %eax
movl %eax, 0x40(%r14)
movl 0x44(%rbx), %eax
movl %eax, 0x44(%r14)
movq 0x48(%rbx), %rax
movq %rax, 0x48(%r14)
movl $0xa, %eax
movq (%rbx,%rax,8), %rcx
movq %rcx, (%r14,%rax,8)
incq %rax
cmpq $0xf, %rax
jne 0x24c0
movl 0x78(%rbx), %eax
movl %eax, 0x78(%r14)
movl 0x7c(%rbx), %eax
movl %eax, 0x7c(%r14)
movl 0x80(%rbx), %eax
movl %eax, 0x80(%r14)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: displayWave
void
displayWave(WAVE *w)
    {
    printf("ID: %s\n",w->ID);
    printf("ChunkSize: %ld\n",w->ChunkSize);
    printf("Format: %s\n",w->Format);
    printf("Subchunk1ID: %s\n",w->Subchunk1ID);
    printf("Subchunk1Size: %ld\n",w->Subchunk1Size);
    printf("AudioFormat: %d\n",w->AudioFormat);
    printf("NumChannels: %d\n",w->NumChannels);
    printf("SampleRate: %d\n",w->SampleRate);
    printf("ByteRate: %d\n",w->ByteRate);
    printf("BlockAlign: %d\n",w->BlockAlign);
    printf("BitsPerSample: %d\n",w->BitsPerSample);
    printf("Subchunk2ID: %s\n",w->Subchunk2ID);
    printf("Subchunk2Size: %ld\n",w->Subchunk2Size);
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rsi
leaq 0x106a(%rip), %rdi      # 0x356d
xorl %eax, %eax
callq 0x10c0
movq 0x20(%rbx), %rsi
leaq 0x1033(%rip), %rdi      # 0x3548
xorl %eax, %eax
callq 0x10c0
movq 0x8(%rbx), %rsi
leaq 0x1031(%rip), %rdi      # 0x3558
xorl %eax, %eax
callq 0x10c0
movq 0x10(%rbx), %rsi
leaq 0x102b(%rip), %rdi      # 0x3564
xorl %eax, %eax
callq 0x10c0
movq 0x28(%rbx), %rsi
leaq 0x102a(%rip), %rdi      # 0x3575
xorl %eax, %eax
callq 0x10c0
movl 0x30(%rbx), %esi
leaq 0x102d(%rip), %rdi      # 0x3589
xorl %eax, %eax
callq 0x10c0
movl 0x34(%rbx), %esi
leaq 0x102d(%rip), %rdi      # 0x359a
xorl %eax, %eax
callq 0x10c0
movl 0x38(%rbx), %esi
leaq 0x102d(%rip), %rdi      # 0x35ab
xorl %eax, %eax
callq 0x10c0
movl 0x3c(%rbx), %esi
leaq 0x102c(%rip), %rdi      # 0x35bb
xorl %eax, %eax
callq 0x10c0
movl 0x40(%rbx), %esi
leaq 0x1029(%rip), %rdi      # 0x35c9
xorl %eax, %eax
callq 0x10c0
movl 0x44(%rbx), %esi
leaq 0x1028(%rip), %rdi      # 0x35d9
xorl %eax, %eax
callq 0x10c0
movq 0x18(%rbx), %rsi
leaq 0x1029(%rip), %rdi      # 0x35ec
xorl %eax, %eax
callq 0x10c0
movq 0x48(%rbx), %rsi
leaq 0x1028(%rip), %rdi      # 0x35fd
xorl %eax, %eax
popq %rbx
jmp 0x10c0
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: isID
static int
isID(FILE *in,char *id)
    {
    char ch;
    int matching = 1;
    int count = 0;
    while (matching && *id)
        {
        fread(&ch,sizeof(char),1,in);
        if (ch != *id) matching = 0;
        //fprintf(stderr,"comparing %c (%d) with %c\n",ch,ch,*id);
        ++count;
        ++id;
        }
    skip(in,-count);
    //if (matching) 
    //    fprintf(stderr,"match!\n");
    //else
    //    fprintf(stderr,"no match.\n");
    return matching;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpb $0x0, (%rsi)
je 0x291a
movq %rsi, %r14
movl $0x1, %edx
leaq 0xf(%rsp), %r15
movq %rdx, %r12
movl $0x1, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x1070
movb 0xf(%rsp), %al
movb -0x1(%r14,%r12), %cl
cmpb %cl, %al
jne 0x290a
leaq 0x1(%r12), %rdx
cmpb $0x0, (%r14,%r12)
jne 0x28d9
xorl %ebp, %ebp
cmpb %cl, %al
sete %bpl
negl %r12d
movslq %r12d, %rsi
jmp 0x2921
movl $0x1, %ebp
xorl %esi, %esi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x1140
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: readWaveFP
WAVE *
readWaveFP(FILE *in)
    {
    int i,j;
    WAVE *w;

    w = newWave();

    readWaveHeader(w,in);

    if (w->AudioFormat != 1)
        fprintf(stderr,"WARNING: Audio format is not PCM");

    //fprintf(stderr,"allocating %d samples for each of %d channels\n",
            //w->sampleCount,w->NumChannels);

    for (j = 0; j < w->NumChannels; ++j)
        w->channels[j] = (int *) newIntArray(w->sampleCount);

    for (i = 0; !feof(in) && i < w->sampleCount; ++i)
        for (j = 0; j < w->NumChannels; ++j)
            {
            int amp;
            amp = readByteInt(in,w->sampleWidth);
            if (amp >= w->maxAmp)
                amp = -2 * w->maxAmp + amp;
            //if (i < 1000) printf("read sample %d: %d\n", i, amp);
            w->channels[j][i] = amp;
            }

    //fprintf(stderr,"i is %d\n",i);
    if (i != w->sampleCount)
        {
        fprintf(stderr,"sample count mismatch, setting sample count to %d\n",
            i);
        setWaveSize(w,i);
        }

    fclose(in);

    //fprintf(stderr,"samples allocated\n");

    return w;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0xd0, %edi
callq 0x21c9
movq %rax, %r12
movq %rax, %r14
xorl %r15d, %r15d
movq %r15, 0x90(%rax)
movq %r15, 0xa0(%rax)
movl $0x84, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x10e0
movabsq $0x407b800000000000, %rax # imm = 0x407B800000000000
movq %rax, 0xa8(%r12)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0xb0(%r12)
movq %rax, 0xb8(%r12)
movq %r15, 0xc0(%r12)
movl $0x0, 0xc8(%r12)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x25dd
movq %r12, %r13
cmpl $0x1, 0x30(%r12)
jne 0x2ac3
cmpl $0x0, 0x34(%r14)
jle 0x2a0b
xorl %r15d, %r15d
movl 0x78(%r14), %r12d
leal 0x4(,%r12,4), %edi
callq 0x21c9
movl %r12d, (%rax)
addq $0x4, %rax
movq %rax, 0x50(%r14,%r15,8)
incq %r15
movslq 0x34(%r14), %rax
cmpq %rax, %r15
jl 0x29e2
leaq 0x78(%r13), %r15
addq $0x34, %r13
movq %r13, 0x8(%rsp)
movq %rbx, %rdi
callq 0x1110
xorl %r13d, %r13d
testl %eax, %eax
jne 0x2aa4
xorl %r12d, %r12d
leaq 0x4(%rsp), %rbp
xorl %r13d, %r13d
movq %r15, 0x10(%rsp)
movslq (%r15), %rax
cmpq %rax, %r13
jge 0x2aa4
movq 0x8(%rsp), %rax
cmpl $0x0, (%rax)
jle 0x2a90
xorl %r15d, %r15d
movslq 0x7c(%r14), %rdx
movl %r12d, 0x4(%rsp)
movl $0x1, %esi
movq %rbp, %rdi
movq %rbx, %rcx
callq 0x1070
movl 0x4(%rsp), %eax
movl 0x80(%r14), %ecx
leal (%rcx,%rcx), %edx
cmpl %ecx, %eax
cmovll %r12d, %edx
subl %edx, %eax
movq 0x50(%r14,%r15,8), %rcx
movl %eax, (%rcx,%r13,4)
incq %r15
movslq 0x34(%r14), %rax
cmpq %rax, %r15
jl 0x2a4c
incq %r13
movq %rbx, %rdi
callq 0x1110
testl %eax, %eax
movq 0x10(%rsp), %r15
je 0x2a37
cmpl (%r15), %r13d
jne 0x2acd
movq %rbx, %rdi
callq 0x10a0
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x165f
jmp 0x29d8
movl %r13d, %edi
movq 0x8(%rsp), %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x167b
jmp 0x2aa9
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: setWaveSize
void
setWaveSize(WAVE *w,int samples)
    {
    int bytes = samples * w->NumChannels * w->BitsPerSample / 8;

    w->ChunkSize = 36+bytes;
    w->Subchunk2Size = bytes;
    w->sampleCount = samples;
    }

// Assembly:
movl 0x34(%rdi), %eax
imull %esi, %eax
imull 0x44(%rdi), %eax
leal 0x7(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x3, %ecx
leal 0x24(%rcx), %eax
cltq
movq %rax, 0x20(%rdi)
movslq %ecx, %rax
movq %rax, 0x48(%rdi)
movl %esi, 0x78(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: growIntArray
int *
growIntArray(int *a)
    {
    int i;
    int *b = newIntArray(LENGTH(a) * 2);

    for (i = 0; i < LENGTH(a); ++i)
        b[i] = a[i];

    return b;
    }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl -0x4(%rdi), %eax
leal 0x4(,%rax,8), %edi
movl %eax, %ebp
addl %eax, %ebp
callq 0x21c9
movl %ebp, (%rax)
addq $0x4, %rax
cmpl $0x0, -0x4(%rbx)
jle 0x2e3d
xorl %ecx, %ecx
movl (%rbx,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
incq %rcx
movslq -0x4(%rbx), %rdx
cmpq %rdx, %rcx
jl 0x2e2b
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/wave.c
// Function: copyIntArray
int *
copyIntArray(int *a)
    {
    int i;
    int *b = newIntArray(LENGTH(a));

    for (i = 0; i < LENGTH(a); ++i)
        b[i] = a[i];

    return b;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl -0x4(%rdi), %r14d
leal 0x4(,%r14,4), %edi
callq 0x21c9
movl %r14d, (%rax)
addq $0x4, %rax
cmpl $0x0, -0x4(%rbx)
jle 0x2e7d
xorl %ecx, %ecx
movl (%rbx,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
incq %rcx
movslq -0x4(%rbx), %rdx
cmpq %rdx, %rcx
jl 0x2e6b
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/marcespie[P]unix-samples/chapter1/fork1.c
// Function: main
int
main()
{
	int i = 15; // XXX implicit communication
	// since fork() gives you a CC of the parent,
	// -> you get implicit parameter passing to the child
	int pid = fork();
	switch(pid) {
	case -1: 
		err(1, "fork");
	case 0:
		perform_computation(i);
		exit(0);
	default:
		break;
	}
	// this is purely the parent's code
	int status;
	// always check *all* syscalls for errors
	// always use waitpid *even if you have one single child*
	// (you never know when you're going to reuse your code,
	// in a context with more children)
	int r = waitpid(pid, &status, 0);
	if (r == -1)
		err(1, "waitpid");
	// decode status
	// some similar code is *required* each time you interact with
	// children
	// -> we have some simple communication back from child to parent
	// which is whether we succeeded or not
	if (WIFEXITED(status)) {
		int rc = WEXITSTATUS(status);
		if (rc == 0) {
			// that case is 100% silent because 
			exit(0);	// everything is okay
		} else {
			fprintf(stderr, "Child exited with exit(%d)\n", rc);
			exit(1);
		}
	} else if (WIFSIGNALED(status)) {
		int sig = WTERMSIG(status);
		fprintf(stderr, "Child exited with signal %d (%s)\n", 
		    sig, strsignal(sig));
		exit(1);
	} else {
		// under normal circumstances, you either get a signal
		// or an exit status
		fprintf(stderr, "This should never happen: %d\n", status);
		exit(1);
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x1090
testl %eax, %eax
je 0x11cf
cmpl $-0x1, %eax
jne 0x11e0
leaq 0xe4b(%rip), %rsi       # 0x2018
jmp 0x11fa
movl $0xf, %edi
callq 0x119c
xorl %edi, %edi
callq 0x1080
leaq 0x4(%rsp), %rsi
movl %eax, %edi
xorl %edx, %edx
callq 0x1070
cmpl $-0x1, %eax
jne 0x1206
leaq 0xe23(%rip), %rsi       # 0x201d
movl $0x1, %edi
xorl %eax, %eax
callq 0x1050
movl 0x4(%rsp), %edx
movl %edx, %ebx
andl $0x7f, %ebx
jne 0x122f
shrl $0x8, %edx
andl $0xff, %edx
je 0x11d9
movq 0x2dd5(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0xdf8(%rip), %rsi       # 0x2025
jmp 0x1273
movl %ebx, %eax
shll $0x18, %eax
addl $0x1000000, %eax        # imm = 0x1000000
movq 0x2db8(%rip), %rcx      # 0x3ff8
movq (%rcx), %r14
cmpl $0x2000000, %eax        # imm = 0x2000000
jl 0x1269
movl %ebx, %edi
callq 0x1060
leaq 0xde9(%rip), %rsi       # 0x2041
movq %r14, %rdi
movl %ebx, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1040
jmp 0x127a
leaq 0xdf3(%rip), %rsi       # 0x2063
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movl $0x1, %edi
callq 0x1080
// File: /workspace/github_c_makefile_star2_O1/pyk[P]simple-nn/deps/pcg/src/pcg-advance-64.c
// Function: pcg_advance_lcg_64
uint64_t pcg_advance_lcg_64(uint64_t state, uint64_t delta, uint64_t cur_mult,
                            uint64_t cur_plus)
{
    uint64_t acc_mult = 1u;
    uint64_t acc_plus = 0u;
    while (delta > 0) {
        if (delta & 1) {
            acc_mult *= cur_mult;
            acc_plus = acc_plus * cur_mult + cur_plus;
        }
        cur_plus = (cur_mult + 1) * cur_plus;
        cur_mult *= cur_mult;
        delta /= 2;
    }
    return acc_mult * state + acc_plus;
}

// Assembly:
movl $0x1, %eax
xorl %r8d, %r8d
testq %rsi, %rsi
je 0x1701
testb $0x1, %sil
je 0x16e6
imulq %rdx, %rax
imulq %rdx, %r8
addq %rcx, %r8
leaq 0x1(%rdx), %r9
imulq %r9, %rcx
imulq %rdx, %rdx
movq %rsi, %r9
shrq %r9
cmpq $0x1, %rsi
movq %r9, %rsi
ja 0x16d5
imulq %rdi, %rax
addq %r8, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/Tarsnap[P]libcperciva/tests/optional_mutex/normal/../main.c
// Function: main
int
main(int argc, char * argv[])
{
	int counter_expected;

	WARNP_INIT;
	(void)argc; /* UNUSED */

#ifdef NUM_THREADS
	counter_expected = NUM_TIMES * NUM_THREADS;
	if (test_pthread())
		goto err0;
#else
	counter_expected = NUM_TIMES;
	inc_dec_counter(NULL);
#endif

	/* Check the counter. */
	if (check_counter(counter_expected))
		goto err0;

	/* Success! */
	exit(0);

err0:
	/* Failure! */
	exit(1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x1385
callq 0x1498
movl $0x64, %ebp
leaq 0x2d37(%rip), %r14      # 0x40c8
leaq 0xc6c(%rip), %rbx       # 0x2004
movq %rsp, %r15
leaq 0xc7a(%rip), %r12       # 0x201c
movq %r14, %rdi
callq 0x175c
testl %eax, %eax
jne 0x1428
incl 0x2d3c(%rip)            # 0x40f0
movq $0x0, (%rsp)
movq $0x989680, 0x8(%rsp)    # imm = 0x989680
movq %r15, %rdi
xorl %esi, %esi
callq 0x1080
decl 0x2d1b(%rip)            # 0x40f0
incl 0x2d19(%rip)            # 0x40f4
movq %r14, %rdi
callq 0x175f
testl %eax, %eax
jne 0x1425
decl %ebp
jne 0x13a2
leaq 0x2cd6(%rip), %rdi      # 0x40c8
callq 0x175c
testl %eax, %eax
jne 0x144e
movl 0x2cf3(%rip), %eax      # 0x40f4
xorl $0x64, %eax
xorl %ebx, %ebx
orl 0x2ce4(%rip), %eax      # 0x40f0
setne %bpl
leaq 0x2cb1(%rip), %rdi      # 0x40c8
callq 0x175f
testl %eax, %eax
jne 0x1457
movb %bpl, %bl
jmp 0x1482
movq %r12, %rbx
movl %eax, %edi
callq 0x1140
movq %rbx, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x1637
callq 0x1060
movl $0x0, (%rax)
xorl %edi, %edi
callq 0x10d0
leaq 0xbaf(%rip), %rbx       # 0x2004
jmp 0x145e
leaq 0xbbe(%rip), %rbx       # 0x201c
movl %eax, %edi
callq 0x1140
movq %rbx, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x1637
callq 0x1060
movl $0x0, (%rax)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testl %ebx, %ebx
jne 0x148d
xorl %edi, %edi
callq 0x1110
movl $0x1, %edi
callq 0x1110
nop
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_type_of
es_type_t es_type_of(es_val_t val)
{
  switch(es_tag(val)) {
  case ES_OBJ_TAG:    return obj_type_of(val);
  case ES_VALUE_TAG:  return es_payload(es_type_t, val);
  case ES_BOOL_TAG:   return ES_BOOL_TYPE;
  case ES_FIXNUM_TAG: return ES_FIXNUM_TYPE;
  case ES_SYMBOL_TAG: return ES_SYMBOL_TYPE;
  case ES_CHAR_TAG:   return ES_CHAR_TYPE;
  default:            return ES_INVALID_TYPE;
  }
}

// Assembly:
movq %rdi, %rax
movl %eax, %ecx
andl $0x7, %ecx
cmpq $0x5, %rcx
ja 0x1911
leaq 0x571f(%rip), %rdx      # 0x7008
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl (%rax), %eax
retq
movl $0x1, %eax
retq
movl $0x3, %eax
retq
sarl $0x3, %eax
retq
movl $0x2, %eax
retq
movl $0x4, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_port_vprintf
es_val_t es_port_vprintf(es_ctx_t* ctx, es_val_t port, const char* fmt, va_list args)
{
  if (!fmt || *fmt == '\0') {
    return es_void;
  }

  es_port_t* p = es_port_val(port);
  char buf[1024];
  char* loc = strstr(fmt, "%@");

  if (loc) {
    strncpy(buf, fmt, loc - fmt);
    buf[loc - fmt] = '\0';
    if (*buf != '\0') {
      vfprintf(p->stream, buf, args);
    }
    es_val_t val = va_arg(args, es_val_t);
    es_port_write(ctx, port, val);
    es_port_vprintf(ctx, port, loc + 2, args);
    return es_void;
  } else {
    vfprintf(p->stream, fmt, args);
    return es_void;
  }
}

// Assembly:
testq %rdx, %rdx
je 0x1a84
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rdx, %r13
cmpb $0x0, (%rdx)
je 0x1a73
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x6138(%rip), %rsi      # 0x7b16
movq %r13, %rdi
callq 0x1180
testq %rax, %rax
je 0x1a33
movq %rax, %r12
movq %rax, %rbp
subq %r13, %rbp
movq %rsp, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x1040
movb $0x0, (%rsp,%rbp)
movq %rsp, %rax
cmpb $0x0, (%rax)
je 0x1a1d
movq 0x10(%r14), %rdi
movq %rsp, %rsi
movq %rbx, %rdx
callq 0x1130
movl (%rbx), %ecx
cmpq $0x28, %rcx
ja 0x1a44
movq %rcx, %rax
addq 0x10(%rbx), %rax
addl $0x8, %ecx
movl %ecx, (%rbx)
jmp 0x1a50
movq 0x10(%r14), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x1130
jmp 0x1a73
movq 0x8(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq (%rax), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1a94
addq $0x2, %r12
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x19a8
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_make_char_cstr
es_val_t es_make_char_cstr(char* buf)
{
  if (strcmp("space", buf) == 0) {
    return es_make_char(' ');
  } else if (strcmp("newline", buf) == 0) {
    return es_make_char('\n');
  } else if (strcmp("tab", buf) == 0) {
    return es_make_char('\t');
  } else {
    return es_make_char(*buf);
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x5a36(%rip), %rdi      # 0x7aed
movq %rbx, %rsi
callq 0x10e0
testl %eax, %eax
je 0x20f7
leaq 0x5a2b(%rip), %rdi      # 0x7af5
movq %rbx, %rsi
callq 0x10e0
testl %eax, %eax
je 0x20fe
leaq 0x5a22(%rip), %rdi      # 0x7aff
movq %rbx, %rsi
callq 0x10e0
testl %eax, %eax
je 0x2105
movsbq (%rbx), %rax
leaq 0x5(,%rax,8), %rax
jmp 0x210a
movl $0x105, %eax            # imm = 0x105
jmp 0x210a
movl $0x55, %eax
jmp 0x210a
movl $0x4d, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_alloc
static void* es_alloc(es_ctx_t* ctx, es_type_t type, size_t size)
{
  void* mem = heap_alloc(&ctx->heap, size);

  if (!mem) {
    es_gc(ctx);
    mem = heap_alloc(&ctx->heap, size);
    if (!mem) {
      exit(1);
    }
  }

  obj_init(es_obj_to_val(mem), type);
  return mem;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movl %esi, %ebx
movq %rdi, %r15
movq 0x10(%rdi), %rax
movq 0x28(%rdi), %rcx
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %rcx
cmpq %rdx, %rcx
jae 0x21a0
xorl %eax, %eax
jmp 0x21aa
movq %rax, %rcx
addq %r14, %rcx
movq %rcx, 0x10(%r15)
testq %rax, %rax
jne 0x21df
movq %r15, %rdi
callq 0x362f
movq 0x10(%r15), %rax
movq 0x28(%r15), %rcx
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %rcx
cmpq %r14, %rcx
jae 0x21d3
xorl %eax, %eax
jmp 0x21da
addq %rax, %r14
movq %r14, 0x10(%r15)
testq %rax, %rax
je 0x21ef
movl %ebx, (%rax)
movq $0x0, 0x8(%rax)
popq %rbx
popq %r14
popq %r15
retq
movl $0x1, %edi
callq 0x1160
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_make_pair
es_val_t es_make_pair(es_ctx_t* ctx, es_val_t head, es_val_t tail)
{
  es_pair_t* pair;
  gc_root2(ctx, head, tail);
  pair = es_alloc(ctx, ES_PAIR_TYPE, sizeof(es_pair_t));
  pair->head = head;
  pair->tail = tail;
  gc_unroot(ctx, 2);
  return es_obj_to_val(pair);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %rsi, (%r14)
movq %rsp, %r15
movq %rdx, (%r15)
movslq 0x2040(%rdi), %rax
leaq 0x1(%rax), %rcx
movl %ecx, 0x2040(%rdi)
movq %r14, 0x40(%rdi,%rax,8)
leal 0x2(%rax), %ecx
movl %ecx, 0x2040(%rdi)
movq %r15, 0x48(%rdi,%rax,8)
movl $0x20, %edx
movl $0x6, %esi
callq 0x2177
movq (%r14), %rcx
movq %rcx, 0x10(%rax)
movq (%r15), %rcx
movq %rcx, 0x18(%rax)
addl $-0x2, 0x2040(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_make_port
es_val_t es_make_port(es_ctx_t* ctx, FILE* stream)
{
  es_port_t* port = es_alloc(ctx, ES_PORT_TYPE, sizeof(es_port_t));
  port->stream = stream;
  port->eof    = 0;
  port->top    = 0;
  port->tail   = 0;
  port->cur    = 0;
  port->nbytes = 0;
  port->linum  = 0;
  port->colnum = 0;
  port->size   = 65536;
  port->buf    = malloc(port->size);
  return es_obj_to_val(port);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl $0x1848, %edx           # imm = 0x1848
movl $0xc, %esi
callq 0x2177
movq %rax, %r14
movq %rbx, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x24(%rax)
movups %xmm0, 0x34(%rax)
movl $0x10000, 0x20(%rax)    # imm = 0x10000
movl $0x10000, %edi          # imm = 0x10000
callq 0x1100
movq %rax, 0x18(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_port_getc
int es_port_getc(es_val_t port)
{
  es_port_t* p = es_port_val(port);
  if (p->cur < p->tail) {
    int c = p->buf[p->cur++];
    if (p->top == 0 && p->cur == p->tail)
      p->cur = p->tail = 0;
    return port_update_pos(port, c);
  } else if (p->eof) {
    return EOF;
  } else {
    int c = getc(p->stream);
    if (EOF == c) {
      p->eof = 1;
    } else if (p->top > 0) {
      assert(p->tail < p->size);
      p->buf[p->tail] = c;
      p->cur = ++p->tail;
    } else if (p->cur == p->tail) {
      p->cur = p->tail = 0;
    }
    return port_update_pos(port, c);
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movslq 0x24(%rdi), %rax
movl 0x28(%rdi), %ecx
cmpl %ecx, %eax
jge 0x2823
movq 0x18(%rbx), %rsi
leal 0x1(%rax), %edx
movl %edx, 0x24(%rbx)
movsbl (%rsi,%rax), %eax
cmpl $0x0, 0x40(%rbx)
jne 0x2816
cmpl %ecx, %edx
jne 0x2816
movq $0x0, 0x24(%rbx)
incq 0x30(%rbx)
incl 0x3c(%rbx)
cmpb $0xa, %al
je 0x2884
jmp 0x288e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x0, 0x2c(%rbx)
jne 0x288e
movq 0x10(%rbx), %rdi
callq 0x1170
cmpl $-0x1, %eax
je 0x285f
cmpl $0x0, 0x40(%rbx)
jle 0x2868
movslq 0x28(%rbx), %rcx
cmpl 0x20(%rbx), %ecx
jge 0x2890
movq 0x18(%rbx), %rdx
movb %al, (%rdx,%rcx)
movl 0x28(%rbx), %ecx
incl %ecx
movl %ecx, 0x28(%rbx)
movl %ecx, 0x24(%rbx)
jmp 0x2878
movl $0x1, 0x2c(%rbx)
jmp 0x2878
movl 0x24(%rbx), %ecx
cmpl 0x28(%rbx), %ecx
jne 0x2878
movq $0x0, 0x24(%rbx)
incq 0x30(%rbx)
incl 0x3c(%rbx)
cmpl $0xa, %eax
jne 0x288e
incl 0x38(%rbx)
movl $0x0, 0x3c(%rbx)
popq %rbx
retq
leaq 0x4ee5(%rip), %rdi      # 0x777c
leaq 0x4ef0(%rip), %rsi      # 0x778e
leaq 0x4eef(%rip), %rcx      # 0x7794
movl $0x336, %edx            # imm = 0x336
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_port_peekc
int es_port_peekc(es_val_t port)
{
  es_port_t* p = es_port_val(port);
  if (p->cur < p->tail) {
    return p->buf[p->cur];
  } else {
    es_port_mark(port);
    int c = es_port_getc(port);
    es_port_reset(port);
    return c;
  }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x24(%rdi), %eax
cmpl 0x28(%rdi), %eax
jge 0x28c9
cltq
movq 0x18(%rbx), %rcx
movsbl (%rcx,%rax), %eax
jmp 0x2906
movslq 0x40(%rbx), %rcx
leaq (%rcx,%rcx,2), %rdx
movl %eax, 0x48(%rbx,%rdx,8)
movq 0x30(%rbx), %rax
movq %rax, 0x50(%rbx,%rdx,8)
movl 0x38(%rbx), %eax
movl %eax, 0x58(%rbx,%rdx,8)
movl 0x3c(%rbx), %eax
movl %eax, 0x5c(%rbx,%rdx,8)
leal 0x1(%rcx), %eax
movl %eax, 0x40(%rbx)
movq %rbx, %rdi
callq 0x27e7
movl %eax, %ebp
movq %rbx, %rdi
callq 0x290d
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_port_reset
void es_port_reset(es_val_t port)
{
  es_port_t* p = es_port_val(port);
  assert(p->top > 0);
  --p->top;
  p->cur    = p->state[p->top].cur;
  p->nbytes = p->state[p->top].nbytes;
  p->linum  = p->state[p->top].linum;
  p->colnum = p->state[p->top].colnum;
}

// Assembly:
movslq 0x40(%rdi), %rax
testq %rax, %rax
jle 0x2945
decq %rax
movl %eax, 0x40(%rdi)
movl %eax, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x48(%rdi,%rcx,8), %ecx
movl %ecx, 0x24(%rdi)
leaq (%rax,%rax,2), %rax
movq 0x50(%rdi,%rax,8), %rcx
movq %rcx, 0x30(%rdi)
movl 0x58(%rdi,%rax,8), %ecx
movl %ecx, 0x38(%rdi)
movl 0x5c(%rdi,%rax,8), %eax
movl %eax, 0x3c(%rdi)
retq
pushq %rax
leaq 0x4e62(%rip), %rdi      # 0x77af
leaq 0x4e3a(%rip), %rsi      # 0x778e
leaq 0x4e5f(%rip), %rcx      # 0x77ba
movl $0x35b, %edx            # imm = 0x35B
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_make_fn
es_val_t es_make_fn(es_ctx_t* ctx, int arity, es_pfn_t pfn)
{
  es_fn_t* fn = es_alloc(ctx, ES_FN_TYPE, sizeof(es_fn_t));
  fn->arity   = arity;
  fn->pfn     = pfn;
  return es_obj_to_val(fn);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movl $0x20, %edx
movl $0xe, %esi
callq 0x2177
movl %ebp, 0x10(%rax)
movq %rbx, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_make_proc
es_val_t es_make_proc(es_ctx_t* ctx, int arity, int rest, int addr, int end)
{
  es_proc_t* proc = es_alloc(ctx, ES_PROC_TYPE, sizeof(es_proc_t));
  proc->arity = arity;
  proc->rest  = rest;
  proc->addr  = addr;
  proc->end   = end;
  return es_obj_to_val(proc);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r15d
movl $0x20, %edx
movl $0x11, %esi
callq 0x2177
movl %r15d, 0x10(%rax)
movl %r14d, 0x14(%rax)
movl %ebp, 0x18(%rax)
movl %ebx, 0x1c(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_make_string
es_val_t es_make_string(es_ctx_t* ctx, char* cstr)
{
  es_string_t* string;
  long length = strlen(cstr);
  string = es_alloc(ctx, ES_STRING_TYPE, sizeof(es_string_t) + length + 1);
  string->length = length;
  strcpy(string->value, cstr);
  return es_obj_to_val(string);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x1070
movq %rax, %r15
leaq 0x19(%rax), %rdx
movq %r14, %rdi
movl $0x5, %esi
callq 0x2177
movq %rax, %r14
movq %r15, 0x10(%rax)
leaq 0x18(%rax), %rdi
movq %rbx, %rsi
callq 0x1050
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_string_make
es_val_t es_string_make(es_ctx_t* ctx, int length, char c)
{
  es_string_t* string;
  string = es_alloc(ctx, ES_STRING_TYPE, sizeof(es_string_t) + length + 1);
  string->length = length;
  for(int i = 0; i < string->length; i++) {
    string->value[i] = c;
  }
  string->value[string->length] = '\0';
  return es_obj_to_val(string);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movslq %esi, %r15
leaq 0x19(%r15), %rdx
movl $0x5, %esi
callq 0x2177
movq %rax, %r14
movq %r15, 0x10(%rax)
testl %r15d, %r15d
je 0x2b6a
movq %r14, %rdi
addq $0x18, %rdi
movl %ebp, %edx
movzbl %bl, %esi
callq 0x10b0
movb $0x0, 0x18(%r14,%r15)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_symbol_intern
es_val_t es_symbol_intern(es_ctx_t* ctx, const char* cstr)
{
  es_symtab_t* symtab = &ctx->symtab;
  int id = symtab_find_or_create(symtab, cstr);
  if (id < 0) {
    return es_make_error(ctx, "symtab count exceeded");
  }
  return es_make_symbol(id);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movslq 0x42048(%rdi), %r12
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testq %r12, %r12
jle 0x2c80
xorl %r13d, %r13d
movq 0x2048(%rbx,%r13,8), %rdi
movq %r14, %rsi
callq 0x10e0
testl %eax, %eax
je 0x2c7d
incq %r13
cmpq %r13, %r12
jne 0x2c5f
jmp 0x2c80
movl %r13d, %r15d
testl %r15d, %r15d
jns 0x2cc9
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
cmpl $0x7fff, %r12d          # imm = 0x7FFF
jg 0x2cc9
movq %r14, %rdi
callq 0x1070
leaq 0x1(%rax), %rdi
callq 0x1100
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x1050
movq %r15, 0x2048(%rbx,%r12,8)
leal 0x1(%r12), %eax
movl %eax, 0x42048(%rbx)
movl %r12d, %r15d
testl %r15d, %r15d
js 0x2cda
leal 0x2(,%r15,8), %eax
cltq
jmp 0x2cf7
movl $0x18, %edx
movq %rbx, %rdi
movl $0x16, %esi
callq 0x2177
leaq 0x4ae4(%rip), %rcx      # 0x77d7
movq %rcx, 0x10(%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_make_vector
es_val_t es_make_vector(es_ctx_t* ctx, int size)
{
  assert(size >= 0);
  es_vec_t* vector = es_alloc(ctx, ES_VECTOR_TYPE, sizeof(es_vec_t) + size * sizeof(es_val_t));
  vector->length = size;
  for(int i = 0; i < size; i++)
    vector->array[i] = es_undefined;
  return es_obj_to_val(vector);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testl %esi, %esi
js 0x2f13
movl %esi, %ebx
movl %esi, %r14d
leaq 0x18(,%r14,8), %rdx
movl $0xd, %esi
callq 0x2177
movl %ebx, 0x10(%rax)
testl %ebx, %ebx
je 0x2f0b
xorl %ecx, %ecx
movq $0x53, 0x18(%rax,%rcx,8)
incq %rcx
cmpq %rcx, %r14
jne 0x2efa
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x48d3(%rip), %rdi      # 0x77ed
leaq 0x486d(%rip), %rsi      # 0x778e
leaq 0x48cf(%rip), %rcx      # 0x77f7
movl $0x471, %edx            # imm = 0x471
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_vector_from_list
es_val_t es_vector_from_list(es_ctx_t* ctx, es_val_t list)
{
  es_val_t vector;
  int i, length;
  gc_root(ctx, list);
  length = es_list_length(list);
  vector = es_make_vector(ctx, length);
  for(i = 0; i < length; i++, list = es_cdr(list)) {
    es_vector_set(vector, i, es_car(list));
  }
  gc_unroot(ctx, 1);
  return vector;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %rax
movq %rsi, (%rax)
movslq 0x2040(%rdi), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x2040(%rdi)
movq %rax, 0x40(%rdi,%rcx,8)
xorl %r14d, %r14d
movl %esi, %ecx
andl $0x7, %ecx
cmpq $0x3, %rcx
je 0x2fd4
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rcx, %rcx
jne 0x2fd9
movl (%rsi), %eax
jmp 0x2fd9
movl %esi, %eax
sarl $0x3, %eax
testl %eax, %eax
je 0x2fe6
movq 0x18(%rsi), %rsi
incq %r14
jmp 0x2fbb
movq %rbx, %rdi
movl %r14d, %esi
callq 0x2ed2
testl %r14d, %r14d
je 0x301d
movq %rax, %rcx
addq $0x18, %rcx
movq (%rsp), %rdx
movq 0x10(%rdx), %rdx
movq %rdx, (%rcx)
movq (%rsp), %rdx
movq 0x18(%rdx), %rdx
movq %rdx, (%rsp)
addq $0x8, %rcx
decq %r14
jne 0x2ffd
decl 0x2040(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_list_length
int es_list_length(es_val_t list)
{
  int i = 0;
  while(!es_is_nil(list)) {
    list = es_cdr(list);
    i++;
  }
  return i;
}

// Assembly:
xorl %eax, %eax
movl %edi, %edx
andl $0x7, %edx
cmpq $0x3, %rdx
je 0x3046
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testq %rdx, %rdx
jne 0x304b
movl (%rdi), %ecx
jmp 0x304b
movl %edi, %ecx
sarl $0x3, %ecx
testl %ecx, %ecx
je 0x3057
movq 0x18(%rdi), %rdi
incl %eax
jmp 0x302d
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_make_env
es_val_t es_make_env(es_ctx_t* ctx, int size)
{
  size_t sz = sizeof(es_env_t) + sizeof(es_slot_t) * size;
  es_env_t* env = es_alloc(ctx, ES_ENV_TYPE, sz);
  env->count = 0;
  env->size  = size;
  return es_obj_to_val(env);
}

// Assembly:
pushq %rbx
movslq %esi, %rbx
movq %rbx, %rdx
shlq $0x4, %rdx
addq $0x18, %rdx
movl $0xf, %esi
callq 0x2177
movl $0x0, 0x10(%rax)
movl %ebx, 0x14(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_make_bytecode
es_val_t es_make_bytecode(es_ctx_t* ctx)
{
  es_bytecode_t* b = es_alloc(ctx, ES_BYTECODE_TYPE, sizeof(es_bytecode_t));
  b->inst       = malloc(1024 * sizeof(es_inst_t));
  b->inst_size  = 1024;
  b->cpool_size = ES_CONST_POOL_SIZE;
  b->next_const = 0;
  b->next_inst  = 0;
  return es_obj_to_val(b);
}

// Assembly:
pushq %rbx
movl $0x8028, %edx           # imm = 0x8028
movl $0x12, %esi
callq 0x2177
movq %rax, %rbx
movl $0x4000, %edi           # imm = 0x4000
callq 0x1100
movq %rax, 0x8018(%rbx)
movq $0x400, 0x8020(%rbx) # imm = 0x400
movq $0x1000, 0x8010(%rbx) # imm = 0x1000
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_make_closure
es_val_t es_make_closure(es_ctx_t* ctx, es_val_t env, es_val_t proc)
{
  es_closure_t* closure;
  gc_root2(ctx, env, proc);
  closure = es_alloc(ctx, ES_CLOSURE_TYPE, sizeof(es_closure_t));
  closure->proc = proc;
  closure->env  = (es_args_t*)env;
  gc_unroot(ctx, 2);
  return es_obj_to_val(closure);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %rsi, (%r14)
movq %rsp, %r15
movq %rdx, (%r15)
movslq 0x2040(%rdi), %rax
leaq 0x1(%rax), %rcx
movl %ecx, 0x2040(%rdi)
movq %r14, 0x40(%rdi,%rax,8)
leal 0x2(%rax), %ecx
movl %ecx, 0x2040(%rdi)
movq %r15, 0x48(%rdi,%rax,8)
movl $0x20, %edx
movl $0x8, %esi
callq 0x2177
movq (%r15), %rcx
movq %rcx, 0x18(%rax)
movq (%r14), %rcx
movq %rcx, 0x10(%rax)
addl $-0x2, 0x2040(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_make_macro
es_val_t es_make_macro(es_ctx_t* ctx, es_val_t trans)
{
  es_macro_t* macro;
  gc_root(ctx, trans);
  macro = es_alloc(ctx, ES_MACRO_TYPE, sizeof(es_macro_t));
  macro->trans = trans;
  gc_unroot(ctx, 1);
  return es_obj_to_val(macro);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %r14
movq %rsi, (%r14)
movslq 0x2040(%rdi), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x2040(%rdi)
movq %r14, 0x40(%rdi,%rax,8)
movl $0x18, %edx
movl $0x14, %esi
callq 0x2177
movq (%r14), %rcx
movq %rcx, 0x10(%rax)
decl 0x2040(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_mark_copy
void es_mark_copy(es_heap_t* heap, es_val_t* ref, char** next)
{
  assert(*next < heap->to_end);
  if (!is_obj(*ref))
    return;

  if (es_obj_is_reloc(*ref)) {
    *ref = es_obj_to_val(es_val_to_obj(*ref)->reloc); // Update stale reference to relocated object
  } else {
    size_t size = es_size_of(*ref);                // Get size of object
    *next = alignp(*next, ES_DEFAULT_ALIGNMENT); // Ensure next pointer is aligned
    memcpy(*next, (void*)*ref, size);                 // Copy object from_space from_space-space into to_space-space
    es_val_to_obj(*ref)->reloc = (es_obj_t*)*next;            // Leave forwarding pointer in old from_space-space object
    *ref = es_obj_to_val(es_val_to_obj(*ref)->reloc);                    // Update current reference to_space point to_space new object in to_space-space
    es_val_to_obj(*ref)->reloc = NULL;                        // Reset tombstone
    *next += size;                                 // Update next pointer
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rdx), %r15
cmpq 0x30(%rdi), %r15
jae 0x399f
movq %rsi, %r14
movq (%rsi), %r12
testb $0x7, %r12b
setne %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x3995
movq 0x8(%r12), %rax
testq %rax, %rax
je 0x3956
movq %rax, (%r14)
jmp 0x3995
movq %rdx, %rbx
movq %r12, %rdi
callq 0x3577
movq %rax, %r13
addq $0xf, %r15
andq $-0x10, %r15
movq %r15, (%rbx)
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x10f0
movq (%rbx), %rax
movq (%r14), %rcx
movq %rax, 0x8(%rcx)
movq %rax, (%r14)
movq $0x0, 0x8(%rax)
addq %r13, (%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x41e4(%rip), %rdi      # 0x7b8a
leaq 0x3de1(%rip), %rsi      # 0x778e
leaq 0x41eb(%rip), %rcx      # 0x7b9f
movl $0x1b8, %edx            # imm = 0x1B8
callq 0x10a0
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_make_list
es_val_t es_make_list(es_ctx_t* ctx, ...)
{
  es_val_t list, tail, e;
  va_list argp;
  va_start(argp, ctx);
  e = va_arg(argp, es_val_t);
  if (es_val_to_obj(e) == NULL)
    return es_nil;
  tail = list = es_cons(ctx, e, es_nil);
  while(es_val_to_obj(e = va_arg(argp, es_val_t)) != NULL) {
    es_set_cdr(tail, es_cons(ctx, e, es_nil));
    tail = es_cdr(tail);
  }
  va_end(argp);
  return list;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x3a21
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rdi, 0x10(%rsp)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
movl $0x8, %ecx
cmpq $0x28, %rcx
ja 0x3a5e
movl $0x8, %eax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x3a6c
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rsi
testq %rsi, %rsi
je 0x3ac9
movl $0x3, %edx
movq %rbx, %rdi
callq 0x22f7
movq %rax, %r14
movq %rax, %r15
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x3aa0
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x3aae
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rsi
testq %rsi, %rsi
je 0x3acf
movl $0x3, %edx
movq %rbx, %rdi
callq 0x22f7
movq %rax, 0x18(%r15)
jmp 0x3a84
movl $0x3, %r14d
movq %r14, %rax
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_compile
es_val_t es_compile(es_ctx_t* ctx, es_val_t exp)
{
  int start;
  es_val_t b = ctx->bytecode;
  start = bytecode_label(b);
  compile(ctx, b, exp, 0, 0, es_nil);
  emit_halt(b);
  int end = bytecode_label(b);

  return es_make_proc(ctx, 0, 0, start, end);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rdx
movq %rdi, %rbx
movq 0x42060(%rdi), %r14
movl 0x8024(%r14), %ebp
movl $0x3, %r9d
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3b91
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x46e8
movq (%rax), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x5a22
movl 0x8024(%r14), %r14d
movl $0x20, %edx
movq %rbx, %rdi
movl $0x11, %esi
callq 0x2177
movq $0x0, 0x10(%rax)
movl %ebp, 0x18(%rax)
movl %r14d, 0x1c(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pedro-onate[P]eva/eva.c
// Function: es_load
es_val_t es_load(es_ctx_t* ctx, const char* file_name)
{
  es_val_t exp, port;
  port = es_make_port(ctx, fopen(file_name, "r"));
  es_ctx_set_oport(ctx, es_make_port(ctx, stdout));
  while(!es_is_eof_obj(exp = es_port_read(ctx, port))) {
    es_eval(ctx, exp);
  }
  es_port_close(port);
  return es_void;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rax
movq %rdi, %rbx
leaq 0x3753(%rip), %rsi      # 0x7903
movq %rax, %rdi
callq 0x1120
movq %rax, %r15
movl $0x1848, %edx           # imm = 0x1848
movq %rbx, %rdi
movl $0xc, %esi
callq 0x2177
movq %rax, %r14
movq %r15, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x24(%rax)
movups %xmm0, 0x34(%rax)
movl $0x10000, %ebp          # imm = 0x10000
movl %ebp, 0x20(%rax)
movl $0x10000, %edi          # imm = 0x10000
callq 0x1100
movq %rax, 0x18(%r14)
movq 0x6ddc(%rip), %rax      # 0xafd8
movq (%rax), %r12
movl $0x1848, %edx           # imm = 0x1848
movq %rbx, %rdi
movl $0xc, %esi
callq 0x2177
movq %rax, %r15
movq %r12, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x24(%rax)
movups %xmm0, 0x34(%rax)
movl %ebp, 0x20(%rax)
movl $0x10000, %edi          # imm = 0x10000
callq 0x1100
movq %rax, 0x18(%r15)
movq %r15, 0x42058(%rbx)
leaq 0x3212(%rip), %r15      # 0x7454
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2466
movl %eax, %ecx
andl $0x7, %ecx
cmpq $0x5, %rcx
ja 0x4288
movslq (%r15,%rcx,4), %rcx
addq %r15, %rcx
jmpq *%rcx
movl (%rax), %ecx
jmp 0x428d
movl $0x1, %ecx
jmp 0x428d
movl $0x3, %ecx
jmp 0x428d
movl %eax, %ecx
sarl $0x3, %ecx
jmp 0x428d
movl $0x2, %ecx
jmp 0x428d
movl $0x4, %ecx
jmp 0x428d
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl $0x7, %ecx
je 0x429f
movq %rbx, %rdi
movq %rax, %rsi
callq 0x42be
jmp 0x4242
movq 0x10(%r14), %rdi
callq 0x1060
movq $0x0, 0x10(%r14)
movl $0x5b, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq