LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/odknt[P]st/x.c
// Function: clippaste
void
clippaste(const Arg *dummy)
{
	Atom clipboard;

	clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0);
	XConvertSelection(xw.dpy, clipboard, xsel.xtarget, clipboard,
			xw.win, CurrentTime);
}

// Assembly:
pushq %rax
movq 0xf906(%rip), %rdi      # 0x1f7f0
leaq 0x20d0(%rip), %rsi      # 0x11fc1
xorl %edx, %edx
callq 0x6850
movq 0xf8f1(%rip), %rdi      # 0x1f7f0
movq 0xfa82(%rip), %rdx      # 0x1f988
movq 0xf8f3(%rip), %r8       # 0x1f800
movq %rax, %rsi
movq %rax, %rcx
xorl %r9d, %r9d
popq %rax
jmp 0x61f0
// File: /workspace/github_c_makefile_star2_O3/odknt[P]st/x.c
// Function: zoomabs
void
zoomabs(const Arg *arg)
{
	xunloadfonts();
	xloadfonts(usedfont, arg->f);
	cresize(0, 0);
	redraw();
	xhints();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0xff78
movq 0xfa75(%rip), %rdi      # 0x1f9d0
cvtss2sd (%rbx), %xmm0
callq 0xe9aa
xorl %edi, %edi
xorl %esi, %esi
callq 0xf3e4
callq 0x9706
popq %rbx
jmp 0xef6f
// File: /workspace/github_c_makefile_star2_O3/odknt[P]st/x.c
// Function: xunloadfonts
void
xunloadfonts(void)
{
	/* Free the loaded fonts in the font cache.  */
	while (frclen > 0)
		xunloadmatchfont(frc[--frclen].font);

	xunloadfont(&dc.font);
	xunloadfont(&dc.bfont);
	xunloadfont(&dc.ifont);
	xunloadfont(&dc.ibfont);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl 0xf976(%rip), %eax      # 0x1f8f8
testl %eax, %eax
jle 0xffbe
movq 0xf973(%rip), %rcx      # 0x1f900
decl %eax
movl %eax, 0xf963(%rip)      # 0x1f8f8
shlq $0x5, %rax
movq (%rcx,%rax), %rdi
movq 0x8(%rcx,%rax), %rbx
movq 0x10(%rcx,%rax), %r14
callq 0x6960
movq %rbx, %rdi
callq 0x67e0
movq %r14, %rdi
callq 0x6050
jmp 0xff7c
leaq 0xf703(%rip), %rdi      # 0x1f6c8
callq 0xfff2
leaq 0xf73f(%rip), %rdi      # 0x1f710
callq 0xfff2
leaq 0xf77b(%rip), %rdi      # 0x1f758
callq 0xfff2
leaq 0xf7b7(%rip), %rdi      # 0x1f7a0
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xfff2
// File: /workspace/github_c_makefile_star2_O3/odknt[P]st/x.c
// Function: xunloadfont
void
xunloadfont(Font *f)
{
	xunloadmatchfont(f->match);
	FcPatternDestroy(f->pattern);
	if (f->set)
		FcFontSetDestroy(f->set);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
movq 0x28(%rbx), %r14
movq 0x30(%rbx), %r15
callq 0x6960
movq %r14, %rdi
callq 0x67e0
movq %r15, %rdi
callq 0x6050
movq 0x40(%rbx), %rdi
callq 0x6050
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x10037
popq %rbx
popq %r14
popq %r15
jmp 0x6600
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/odknt[P]st/x.c
// Function: mouseaction
int
mouseaction(XEvent *e, uint release)
{
	MouseShortcut *ms;

	/* ignore Button<N>mask for Button<N> - it's set on release */
	uint state = e->xbutton.state & ~buttonmask(e->xbutton.button);

	for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) {
		if (ms->release == release &&
		    ms->button == e->xbutton.button &&
		    (match(ms->mod, state) ||  /* exact or forced */
		     match(ms->mod, state & ~forcemousemod))) {
			ms->func(&(ms->arg));
			return 1;
		}
	}

	return 0;
}

// Assembly:
leal -0x1(%rsi), %eax
cmpl $0x4, %eax
jae 0x1024f
movl %eax, %eax
leaq 0x1ac6(%rip), %rcx      # 0x11d10
movl (%rcx,%rax,4), %eax
jmp 0x1025e
xorl %eax, %eax
cmpl $0x5, %esi
setne %al
negl %eax
orl $0xffffefff, %eax       # imm = 0xFFFFEFFF
andl %edi, %eax
movl %eax, %ecx
andl $0xffff9fef, %ecx       # imm = 0xFFFF9FEF
andl $0xffff9fee, %eax       # imm = 0xFFFF9FEE
movq $-0x20, %rdi
leaq 0x90e5(%rip), %r8       # 0x19360
cmpl %edx, 0x38(%rdi,%r8)
jne 0x1029e
cmpl %esi, 0x24(%rdi,%r8)
jne 0x1029e
movl 0x20(%rdi,%r8), %r9d
cmpl $-0x1, %r9d
je 0x102ae
cmpl %r9d, %ecx
je 0x102ae
cmpl %r9d, %eax
je 0x102ae
addq $0x20, %rdi
cmpq $0x80, %rdi
jb 0x1027b
xorl %eax, %eax
retq
pushq %rax
addq %r8, %rdi
addq $0x30, %rdi
callq *-0x8(%rdi)
movl $0x1, %eax
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/odknt[P]st/x.c
// Function: mousesel
void
mousesel(XEvent *e, int done)
{
	int type, seltype = SEL_REGULAR;
	uint state = e->xbutton.state & ~(Button1Mask | forcemousemod);

	for (type = 1; type < LEN(selmasks); ++type) {
		if (match(selmasks[type], state)) {
			seltype = type;
			break;
		}
	}
	selextend(evcol(e), evrow(e), seltype, done);
	if (done)
		setsel(getsel(), e->xbutton.time);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movl $0xffff9eee, %eax       # imm = 0xFFFF9EEE
andl 0x50(%rdi), %eax
xorl %ecx, %ecx
cmpl $0x8, %eax
sete %cl
movl 0x40(%rdi), %edx
movl 0x8afa(%rip), %r8d      # 0x18dfc
xorl %esi, %esi
subl %r8d, %edx
movl $0x0, %eax
js 0x1031b
movl 0xf604(%rip), %eax      # 0x1f918
decl %eax
cmpl %eax, %edx
cmovll %edx, %eax
cltd
idivl 0xf60a(%rip)            # 0x1f92c
movl %eax, %edi
incl %ecx
movl 0x44(%rbx), %eax
subl %r8d, %eax
js 0x1033b
movl 0xf5e8(%rip), %esi      # 0x1f91c
decl %esi
cmpl %esi, %eax
cmovll %eax, %esi
movl %esi, %eax
cltd
idivl 0xf5e4(%rip)            # 0x1f928
movl %eax, %esi
movl %ecx, %edx
movl %ebp, %ecx
callq 0x7531
testl %ebp, %ebp
je 0x1036a
callq 0x76ca
movq 0x38(%rbx), %rsi
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xc25a
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/utils/rra/rradata.c
// Function: main
int
main(int argc,char **argv)
    {
    int argIndex = 1;

    int i,amp;
    char *input;
    FILE *in;
    RRA *h;

    argIndex = processOptions(argc,argv);

    input = 0;
    if (argc-argIndex == 0)
        {
        in = 0;
        }
    else if (argc-argIndex == 1)
        {
        input = argv[argIndex];
        }
    else
        {
        printf("usage: rradata [<input rra file> [<output wave file>]]\n");
        exit(-1);
        }

    if (input != 0)
        in = OpenFile(input,"r");

    h = newRRAHeader();

    readRRAHeader(in,h,0);

    for (i = 0; !feof(in) && i < h->samples * h->channels; ++i)
        {
        amp = readRRAAmplitude(in,stdout,h->bitsPerSample,outputComment);
        printf("%d\n",amp);
        }

    fclose(in);

    return 0;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movl $0x1, %r13d
cmpl $0x2, %edi
jl 0x1617
movl %edi, -0x2c(%rbp)
movl %edi, %r15d
movl $0x1, %r13d
leaq 0x2a35(%rip), %r12      # 0x4020
xorl %ebx, %ebx
movq (%r14,%r13,8), %rsi
cmpb $0x2d, (%rsi)
jne 0x1614
cmpb $0x76, 0x1(%rsi)
je 0x16d3
movq %r12, %rdi
xorl %eax, %eax
callq 0x170c
incq %r13
cmpq %r13, %r15
jne 0x15ed
jmp 0x1644
movl -0x2c(%rbp), %edi
subl %r13d, %edi
je 0x1642
cmpl $0x1, %edi
jne 0x16f6
movslq %r13d, %rax
movq (%r14,%rax,8), %rdi
testq %rdi, %rdi
je 0x1642
leaq 0x2ed2(%rip), %rsi      # 0x450a
callq 0x17a6
movq %rax, %rbx
jmp 0x1644
xorl %ebx, %ebx
callq 0x1a17
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x1e3d
movq %rbx, %rdi
callq 0x1160
testl %eax, %eax
jne 0x16ba
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
leaq 0x1531(%rip), %r15      # 0x2ba3
leaq 0x2b34(%rip), %r12      # 0x41ad
movl (%r14), %eax
imull 0xc(%r14), %eax
incl %r13d
cmpl %eax, %r13d
jge 0x16ba
movq 0x5948(%rip), %rax      # 0x6fd8
movq (%rax), %rsi
movl 0x8(%r14), %edx
movq %rbx, %rdi
movq %r15, %rcx
callq 0x2340
movq %r12, %rdi
movl %eax, %esi
xorl %eax, %eax
callq 0x10b0
movq %rbx, %rdi
callq 0x1160
testl %eax, %eax
je 0x1679
movq %rbx, %rdi
callq 0x1090
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5a5e(%rip), %rsi      # 0x7138
movq 0x5a5f(%rip), %rdx      # 0x7140
leaq 0x2929(%rip), %rdi      # 0x4011
xorl %eax, %eax
callq 0x10b0
xorl %edi, %edi
callq 0x1200
leaq 0x293d(%rip), %rdi      # 0x403a
callq 0x1070
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1200
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/util.c
// Function: OpenFile
FILE *
OpenFile(const char *fileName, const char *mode)
{
    FILE *fp;

    if ((fp = fopen(fileName, mode)) == 0)
	{
	char *s;
	switch (*mode)
	   {
	   case 'w':
	       s = "writing";
	       break;
	   case 'r':
	       s = "reading";
	       break;
	   case 'a':
	       s = "appending";
	       break;
	   default:
	       s = 0;
	       break;
	   }
	if (s)
	    Fatal("file %s could not be opened for %s\n", fileName, s);
	else
	    Fatal("file %s could not be opened mode %s\n", fileName, mode);
	}

    return fp;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x11c0
testq %rax, %rax
je 0x17c2
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movzbl (%r14), %eax
cmpl $0x61, %eax
je 0x17e7
cmpl $0x77, %eax
je 0x17de
cmpl $0x72, %eax
jne 0x17fa
leaq 0x28b4(%rip), %rdx      # 0x4090
jmp 0x17ee
leaq 0x28a3(%rip), %rdx      # 0x4088
jmp 0x17ee
leaq 0x28aa(%rip), %rdx      # 0x4098
leaq 0x28ad(%rip), %rdi      # 0x40a2
movq %rbx, %rsi
jmp 0x1807
leaq 0x28c5(%rip), %rdi      # 0x40c6
movq %rbx, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x170c
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/util.c
// Function: New
void *
New(int size)
    {
    void *p = malloc(size);
    if (p == 0)
        Fatal("New: out of memory: requested allocation of %d bytes\n",size);

    return p;
    }

// Assembly:
pushq %rbx
movl %edi, %ebx
movslq %edi, %rdi
callq 0x1180
testq %rax, %rax
je 0x183d
popq %rbx
retq
leaq 0x28a9(%rip), %rdi      # 0x40ed
movl %ebx, %esi
xorl %eax, %eax
callq 0x170c
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/util.c
// Function: ReNew
void *
ReNew(void *q, int size)
    {
    void *p = realloc(q,size);
    if (size > 0 && p == 0)
        Fatal("ReNew: out of memory: requested allocation of %d bytes\n",size);

    return p;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movslq %esi, %r14
movq %r14, %rsi
callq 0x11b0
testl %r14d, %r14d
setle %cl
testq %rax, %rax
setne %dl
orb %cl, %dl
je 0x18d7
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x280d(%rip), %rdi      # 0x40eb
movl %ebx, %esi
xorl %eax, %eax
callq 0x170c
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: createRRAData
void
createRRAData(RRA *h)
    {
    int i;

    if (h->samples == 0) return;

    //printf("creating space for %d samples\n",h->samples * h->channels);
    //printf("size of int: %d\n",sizeof(int));
    //printf("size of int * samples: %d\n",h->samples * sizeof(int));
    h->data = (int **) New(sizeof(int *) * h->channels);

    for (i = 0; i < h->channels; ++i)
        h->data[i] = (int *) New(sizeof(int) * h->samples);
    }

// Assembly:
cmpl $0x0, 0xc(%rdi)
je 0x1a16
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %edi
shll $0x3, %edi
callq 0x182b
movq %rax, 0x18(%rbx)
cmpl $0x0, (%rbx)
jle 0x1a0f
xorl %r14d, %r14d
movl 0xc(%rbx), %edi
shll $0x2, %edi
callq 0x182b
movq 0x18(%rbx), %rcx
movq %rax, (%rcx,%r14,8)
incq %r14
movslq (%rbx), %rax
cmpq %rax, %r14
jl 0x19f1
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: clearRRAData
void
clearRRAData(RRA *h)
    {
    int i,j;

    if (h->samples == 0) return;

    for (i = 0; i < h->channels; ++i)
        for (j = 0; j < h->samples; ++j)
            h->data[i][j] = 0;
    }

// Assembly:
movl 0xc(%rdi), %ecx
testl %ecx, %ecx
je 0x1a7c
movl (%rdi), %edx
testl %edx, %edx
jle 0x1a7c
xorl %eax, %eax
testl %ecx, %ecx
jle 0x1a71
movq 0x18(%rdi), %rcx
movq (%rcx,%rax,8), %rdx
xorl %esi, %esi
movl $0x0, (%rdx,%rsi,4)
incq %rsi
movslq 0xc(%rdi), %rcx
cmpq %rcx, %rsi
jl 0x1a5c
movl (%rdi), %edx
incq %rax
movslq %edx, %rsi
cmpq %rsi, %rax
jl 0x1a4e
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: newRRA_TAG
RRA_TAG *
newRRA_TAG(char *attribute,void *value,RRA_TAG *next)
    {
    RRA_TAG *t = (RRA_TAG *) New(sizeof(RRA_TAG));

    t->attribute = attribute;
    t->value = value;
    t->next = next;

    return t;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x18, %edi
callq 0x182b
movq %r15, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: freeRRA
void
freeRRA(RRA *w,void (*handler)(char *,void *))
    {
    int i;
    RRA_TAG *t;

    if (handler == 0) handler = defaultFreePair;

    /* free all data */

    if (w->data)
        {
        for (i = 0; i < w->channels; ++i)
            free(w->data[i]);

        free(w->data);
        }

    /* free all tags */

    t = w->items;
    while (t != 0)
        {
        RRA_TAG *next = t->next;
        handler(t->attribute,t->value);
        free(t);
        t = next;
        }

    free(w);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
leaq 0x70(%rip), %r15        # 0x1b72
cmovneq %rsi, %r15
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x1b38
cmpl $0x0, (%rbx)
jle 0x1b33
xorl %r14d, %r14d
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x1040
incq %r14
movslq (%rbx), %rax
cmpq %rax, %r14
jl 0x1b17
movq 0x18(%rbx), %rdi
callq 0x1040
movq 0x28(%rbx), %r14
testq %r14, %r14
je 0x1b5f
movq 0x10(%r14), %r12
movq (%r14), %rdi
movq 0x8(%r14), %rsi
callq *%r15
movq %r14, %rdi
callq 0x1040
movq %r12, %r14
testq %r12, %r12
jne 0x1b41
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1040
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: cloneRRA
RRA *
cloneRRA(RRA *v,RRA_TAG *(*handler)(RRA_TAG *))
    {
    int i,j;
    RRA_TAG *t;
    RRA *w;

    if (handler == 0) handler = defaultCloneTag;

    w = newRRA(v->sampleRate,v->bitsPerSample,v->channels,v->samples);
    w->skip = v->skip;

    /* transfer over the data */

    for (i = 0; i < v->channels; ++i)
        for (j = 0; j < v->samples; ++j)
            w->data[i][j] = v->data[i][j];

    /* transfer over the tags */

    t = v->items;
    while (t != 0)
        {
        pushTag(w,handler(t));
        t = t->next;
        }

    w->maxAmp = v->maxAmp;

    return w;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
testq %rsi, %rsi
leaq 0xc7(%rip), %r12        # 0x1c65
cmovneq %rsi, %r12
movups (%rdi), %xmm0
movaps %xmm0, (%rsp)
movl $0x40, %edi
callq 0x182b
movq %rax, %r14
movl $0x0, 0x10(%rax)
movaps (%rsp), %xmm0
movups %xmm0, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rax)
movq $0x0, 0x38(%rax)
movq %rax, %rdi
callq 0x19ce
movl 0x10(%rbx), %eax
movl %eax, 0x10(%r14)
movl (%rbx), %edx
testl %edx, %edx
jle 0x1c22
movl 0xc(%rbx), %ecx
xorl %eax, %eax
testl %ecx, %ecx
jle 0x1c17
movq 0x18(%rbx), %rcx
movq (%rcx,%rax,8), %rdx
movq 0x18(%r14), %rcx
movq (%rcx,%rax,8), %rsi
xorl %edi, %edi
movl (%rdx,%rdi,4), %ecx
movl %ecx, (%rsi,%rdi,4)
incq %rdi
movslq 0xc(%rbx), %rcx
cmpq %rcx, %rdi
jl 0x1c03
movl (%rbx), %edx
incq %rax
movslq %edx, %rsi
cmpq %rsi, %rax
jl 0x1bed
movq 0x28(%rbx), %r15
testq %r15, %r15
je 0x1c4d
movq %r14, %r13
addq $0x28, %r13
movq %r15, %rdi
callq *%r12
movq (%r13), %rcx
movq %rcx, 0x10(%rax)
movq %rax, (%r13)
movq 0x10(%r15), %r15
testq %r15, %r15
jne 0x1c32
movl 0x20(%rbx), %eax
movl %eax, 0x20(%r14)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: displayRRA
void
displayRRA(RRA *w)
    {
    printf("channels: %d\n",w->channels);
    printf("sampleRate: %d\n",w->sampleRate);
    printf("bitsPerSample: %d\n",w->bitsPerSample);
    printf("skip: %d\n",w->skip);
    printf("samples: %d\n",w->samples);
    printf("maxAmp: %d\n",w->maxAmp);
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %esi
leaq 0x24cf(%rip), %rdi      # 0x4180
xorl %eax, %eax
callq 0x10b0
movl 0x4(%rbx), %esi
leaq 0x24cc(%rip), %rdi      # 0x418e
xorl %eax, %eax
callq 0x10b0
movl 0x8(%rbx), %esi
leaq 0x24cb(%rip), %rdi      # 0x419e
xorl %eax, %eax
callq 0x10b0
movl 0x10(%rbx), %esi
leaq 0x24cd(%rip), %rdi      # 0x41b1
xorl %eax, %eax
callq 0x10b0
movl 0xc(%rbx), %esi
leaq 0x24c6(%rip), %rdi      # 0x41bb
xorl %eax, %eax
callq 0x10b0
movl 0x20(%rbx), %esi
leaq 0x24c2(%rip), %rdi      # 0x41c8
xorl %eax, %eax
popq %rbx
jmp 0x10b0
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: readRRA
RRA *
readRRA(FILE *in,void (*handler)(RRA *,char *,void *))
    {
    RRA *w;

    w = newRRAHeader();

    readRRAHeader(in,w,handler);

    /* derived values */

    w->maxAmp = (int) pow(2,w->bitsPerSample - 1);

    readData(in,w);

    return w;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r12
movq %rdi, %r15
movl $0x40, %edi
callq 0x182b
movq %rax, %rbx
movl $0x0, 0x10(%rax)
movaps 0x23f9(%rip), %xmm0     # 0x4130
movups %xmm0, (%rax)
xorl %r14d, %r14d
movq %r14, 0x18(%rax)
movq %r14, 0x28(%rax)
movq %r15, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x1e3d
movl 0x8(%rbx), %edi
decl %edi
movsd 0x23f0(%rip), %xmm0     # 0x4150
callq 0x1050
cvttsd2si %xmm0, %eax
movl %eax, 0x20(%rbx)
movl 0x4(%rbx), %eax
addl %eax, %eax
leal (%rax,%rax,4), %eax
movl %eax, 0xc(%rbx)
movq %rbx, %rdi
callq 0x19ce
movl 0x8(%rbx), %edx
leaq 0x501(%rip), %rcx       # 0x228a
movq %r15, %rdi
xorl %esi, %esi
callq 0x2340
movl %eax, %ebp
movq %r15, %rdi
callq 0x1160
testl %eax, %eax
jne 0x1e03
xorl %r14d, %r14d
leaq 0x4df(%rip), %r12       # 0x228a
movl (%rbx), %ecx
movl %r14d, %eax
cltd
idivl %ecx
movl %eax, %esi
cmpl 0xc(%rbx), %eax
jne 0x1dce
addl %esi, %esi
movq %rbx, %rdi
callq 0x2800
movl (%rbx), %ecx
movl %r14d, %eax
cltd
idivl %ecx
movl %eax, %esi
movq 0x18(%rbx), %rdi
movl %r14d, %eax
cltd
idivl %ecx
movq (%rdi,%rdx,8), %rax
movslq %esi, %rcx
movl %ebp, (%rax,%rcx,4)
movl 0x8(%rbx), %edx
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rcx
callq 0x2340
movl %eax, %ebp
incl %r14d
movq %r15, %rdi
callq 0x1160
testl %eax, %eax
je 0x1dab
movl (%rbx), %ecx
movl %r14d, %eax
cltd
idivl %ecx
testl %edx, %edx
je 0x1e21
leaq 0x2735(%rip), %rdi      # 0x454b
movl %edx, %esi
xorl %eax, %eax
callq 0x1260
movl (%rbx), %ecx
movl %r14d, %eax
cltd
idivl %ecx
movq %rbx, %rdi
movl %eax, %esi
callq 0x2800
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: readAttribute
static char *
readAttribute(FILE *in)
    {
    int ch;
    char *t;

    skipWhiteSpace(in,0,discardComment);

    ch = fgetc(in);

    if (ch == EOF)
        t = 0;
    else if (isdigit(ch))
        {
        char buffer[2];
        buffer[0] = ch;
        buffer[1] = '\0';
        return strdup(buffer);
        }
    else
        {
        t = readToken(in,ch);
        if (strcmp(t,"%%") == 0) 
            t = 0;
        }

    return t;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
leaq 0xe8(%rip), %rdx        # 0x228a
xorl %ebx, %ebx
xorl %esi, %esi
callq 0x2210
movq %r14, %rdi
callq 0x10e0
cmpl $-0x1, %eax
je 0x2204
movl %eax, %ebp
callq 0x1240
movq (%rax), %rax
movslq %ebp, %rcx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0x21f0
movq %r14, %rdi
movl %ebp, %esi
callq 0x2fa6
movq %rax, %rbx
cmpb $0x25, (%rax)
jne 0x2204
cmpb $0x25, 0x1(%rbx)
jne 0x2204
xorl %eax, %eax
cmpb $0x0, 0x2(%rbx)
cmoveq %rax, %rbx
jmp 0x2204
leaq 0xe(%rsp), %rdi
movb %bpl, (%rdi)
movb $0x0, 0x1(%rdi)
callq 0x1220
movq %rax, %rbx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: skipWhiteSpace
static void
skipWhiteSpace(FILE *in,FILE *out,void (*handler)(FILE *,FILE *))
    {
    int ch;

    while ((ch = fgetc(in)) && ch != EOF && (isspace(ch) || ch == '!'))
        {
        if (ch == '\n')
            {
            ++LineNumber;
            }
        else if (ch == '!')
            {
            handler(in,out);
            ++LineNumber;
            }
        }

    ungetc(ch,in);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x10e0
movl %eax, %ebp
decl %eax
cmpl $-0x3, %eax
ja 0x2278
callq 0x1240
movq %rax, %r12
cmpl $0x21, %ebp
je 0x224e
movq (%r12), %rax
movslq %ebp, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax           # imm = 0x2000
je 0x2278
cmpl $0xa, %ebp
je 0x2261
cmpl $0x21, %ebp
jne 0x2267
movq %rbx, %rdi
movq %r15, %rsi
callq *%r14
incl 0x4ee1(%rip)            # 0x7148
movq %rbx, %rdi
callq 0x10e0
movl %eax, %ebp
decl %eax
cmpl $-0x2, %eax
jb 0x2237
movl %ebp, %edi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1190
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: getAttributeRRA
void *
getAttributeRRA(RRA *h,char *attribute)
    {
    RRA_TAG *t;

    t  = h->items;
    while (t != 0)
        {
        if (strcmp(attribute,t->attribute) == 0) 
            return t->value;
        t = t->next;
        }

    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x28(%rdi), %r15
testq %r15, %r15
je 0x22dd
movq %rsi, %r14
xorl %ebx, %ebx
movq (%r15), %rsi
movq %r14, %rdi
callq 0x1120
testl %eax, %eax
je 0x22e1
movq 0x10(%r15), %r15
testq %r15, %r15
jne 0x22c3
jmp 0x22e5
xorl %ebx, %ebx
jmp 0x22e5
movq 0x8(%r15), %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: setAttributeRRA
void *
setAttributeRRA(RRA *h,char *attribute,void *value)
    {
    RRA_TAG *t;

    t  = h->items;
    while (t != 0)
        {
        if (strcmp(attribute,t->attribute) == 0) 
            {
            void *temp = t->value;
            t->value = value;
            return temp;
            }
        t = t->next;
        }

    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x28(%rdi), %r12
testq %r12, %r12
je 0x2323
movq %rdx, %r14
movq %rsi, %r15
xorl %ebx, %ebx
movq (%r12), %rsi
movq %r15, %rdi
callq 0x1120
testl %eax, %eax
je 0x2327
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0x2307
jmp 0x2331
xorl %ebx, %ebx
jmp 0x2331
movq 0x8(%r12), %rbx
movq %r14, 0x8(%r12)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: findPreviousRRAAmplitudeFD
int
findPreviousRRAAmplitudeFD(int fd)
    {
    char ch;
    int comment;
    off_t offset;

    //find beginning of the line
    comment = 0;
    read(fd,&ch,1);
    while (ch != '\n')
        {
        //printf("ch is <%c>\n",ch);
        if (ch == '!') comment = 1;
        offset = lseek(fd,-2,SEEK_CUR);
        read(fd,&ch,1);
        }

    if (comment)
        {
        lseek(fd,-1,SEEK_CUR);
        return findPreviousRRAAmplitudeFD(fd);
        }

    //find beginning of token
    read(fd,&ch,1);
    while (isspace(ch))
        {
        read(fd,&ch,1);
        }

    offset = lseek(fd,-1,SEEK_CUR);

    return offset;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
xorl %ebp, %ebp
leaq 0x7(%rsp), %r14
movl $0x1, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x1110
movzbl 0x7(%rsp), %eax
cmpl $0x21, %eax
je 0x2749
cmpl $0xa, %eax
jne 0x274e
jmp 0x2763
movl $0x1, %ebp
movl %ebx, %edi
movq $-0x2, %rsi
movl $0x1, %edx
callq 0x10c0
jmp 0x2729
testl %ebp, %ebp
je 0x278b
movl %ebx, %edi
movq $-0x1, %rsi
movl $0x1, %edx
callq 0x10c0
movl %ebx, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2719
leaq 0x7(%rsp), %r15
movl $0x1, %edx
movl %ebx, %edi
movq %r15, %rsi
callq 0x1110
callq 0x1240
movq %rax, %r14
movq (%rax), %rax
movsbq (%r15), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
je 0x27d9
leaq 0x7(%rsp), %r15
movl $0x1, %edx
movl %ebx, %edi
movq %r15, %rsi
callq 0x1110
movq (%r14), %rax
movsbq 0x7(%rsp), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x27ba
movl %ebx, %edi
movq $-0x1, %rsi
movl $0x1, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x10c0
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: shrinkRRA
void
shrinkRRA(RRA *w,int size)
    {
    int i;

    w->samples = size;
    for (i = 0; i < w->channels; ++i)
        w->data[i] = (int *) ReNew(w->data[i],sizeof(int) * size);
    }

// Assembly:
movl %esi, 0xc(%rdi)
cmpl $0x0, (%rdi)
jle 0x283f
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
shll $0x2, %ebx
xorl %r15d, %r15d
movq 0x18(%r14), %rax
movq (%rax,%r15,8), %rdi
movl %ebx, %esi
callq 0x18ae
movq 0x18(%r14), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
movslq (%r14), %rax
cmpq %rax, %r15
jl 0x2818
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: writeRRA
void
writeRRA(FILE *out,RRA *w,char *tag, void (*handler)(FILE *,RRA *), int offset)
    {
    int i,j;
    int samples;
    
    
    /* save the original samples because we need to reduce then */
    /* number written by 'skip' */

    samples = w->samples;

    w->samples -= w->skip;

    if (w->samples < 0) w->samples = 0;

    writeRRAHeader(out,w,tag,handler);

    for (i = 0; i < samples; ++i)
        for (j = 0; j < w->channels; ++j)
            if (i >= w->skip)
                fprintf(out,"%d\n",w->data[j][i] + offset);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movq %rsi, %r14
movq %rdi, %r15
movslq 0xc(%rsi), %r12
movl 0x10(%rsi), %eax
movl %r12d, %esi
subl %eax, %esi
xorl %eax, %eax
testl %esi, %esi
cmovgl %esi, %eax
movl %eax, 0xc(%r14)
movq %r14, %rsi
callq 0x28d8
movq %r12, (%rsp)
testq %r12, %r12
jle 0x28c9
movl (%r14), %eax
leaq 0x1927(%rip), %r12      # 0x41ad
xorl %ebp, %ebp
testl %eax, %eax
jle 0x28c0
xorl %r13d, %r13d
movslq 0x10(%r14), %rcx
cmpq %rcx, %rbp
jl 0x28b5
movq 0x18(%r14), %rax
movq (%rax,%r13,8), %rax
movl (%rax,%rbp,4), %edx
addl %ebx, %edx
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1140
movl (%r14), %eax
incq %r13
movslq %eax, %rcx
cmpq %rcx, %r13
jl 0x288f
incq %rbp
cmpq (%rsp), %rbp
jne 0x2888
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: defaultTagWriter
static void
defaultTagWriter(FILE *out,RRA *w)
    {
    RRA_TAG *t;
    char *value;

    t = w->items;
    while (t != 0)
        {
        int i;
        int spaces;

        value = (char *) t->value;

        spaces = 0;
        for (i = 0; i < strlen(value); ++i)
            if (isspace(value[i]))
                {
                spaces = 1;
                break;
                }

        fprintf(out,"%s: %s%s%s\n",
            t->attribute,
            spaces? "\"" : "",
            value,
            spaces? "\"" : ""
            );
        t = t->next;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x28(%rsi), %r13
testq %r13, %r13
je 0x2ada
movq %rdi, %rbx
leaq 0x19e0(%rip), %rbp      # 0x4452
leaq 0x1ae7(%rip), %r14      # 0x4560
movq 0x8(%r13), %r15
movq %r15, %rdi
callq 0x10a0
movq %rbp, %rcx
testq %rax, %rax
je 0x2aba
movq %rax, %r12
callq 0x1240
movq (%rax), %rax
xorl %ecx, %ecx
movsbq (%r15,%rcx), %rdx
testb $0x20, 0x1(%rax,%rdx,2)
jne 0x2ab3
incq %rcx
cmpq %rcx, %r12
jne 0x2a9a
movq %rbp, %rcx
jmp 0x2aba
leaq 0x1ab2(%rip), %rcx      # 0x456c
movq (%r13), %rdx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %r8
movq %rcx, %r9
xorl %eax, %eax
callq 0x1140
movq 0x10(%r13), %r13
testq %r13, %r13
jne 0x2a79
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: skipRRAHeaderFD
off_t
skipRRAHeaderFD(int fd)
    {
    off_t index;
    char buffer[10];
    //find start
    lseek(fd,0,SEEK_SET);
    read(fd,buffer,sizeof(buffer));
    buffer[7] = '\0';
    if (strcmp(buffer,"RRAUDIO") != 0) return -1;

    index = 0;
    lseek(fd,0,SEEK_SET);
    read(fd,buffer,2);
    while (buffer[0] != '%' || buffer[1] != '%')
        {
        ++index;
        lseek(fd,index,SEEK_SET);
        read(fd,buffer,2);
        }

    return index + 2;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edi, %ebx
xorl %esi, %esi
xorl %edx, %edx
callq 0x10c0
leaq 0x6(%rsp), %r15
movl $0xa, %edx
movl %ebx, %edi
movq %r15, %rsi
callq 0x1110
movb $0x0, 0x7(%r15)
movabsq $0x4f494455415252, %rax # imm = 0x4F494455415252
movq $-0x1, %r14
cmpq %rax, (%r15)
jne 0x2b96
movl %ebx, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10c0
leaq 0x6(%rsp), %r15
movl $0x2, %r14d
movl $0x2, %edx
movl %ebx, %edi
movq %r15, %rsi
callq 0x1110
cmpb $0x25, (%r15)
jne 0x2b5e
cmpb $0x25, 0x7(%rsp)
je 0x2b96
movl $0x2, %r14d
leaq 0x6(%rsp), %r15
leaq -0x1(%r14), %rsi
movl %ebx, %edi
xorl %edx, %edx
callq 0x10c0
movl $0x2, %edx
movl %ebx, %edi
movq %r15, %rsi
callq 0x1110
incq %r14
cmpb $0x25, 0x6(%rsp)
jne 0x2b69
cmpb $0x25, 0x7(%rsp)
jne 0x2b69
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: rra2fft
double *
rra2fft(RRA *h,int channel,int *length)
    {
    int i;
    double *data = 0;
    double max;

    if (channel >= h->channels)
        Fatal("not enough channels (channel zero is the first channel)\n");

    *length = (int) pow(2,ceil(log((double)h->samples)/log(2.0)));
    //printf("h->channels is %d\n",h->channels);
    //printf("samples is %d\n",h->samples);
    //printf("fftLength is %d\n",*length);

    /* fft uses one-based counting! */

    data = (double *) New(2*((*length)+1) * sizeof(double));

    /* fill the data array data here */

    max = pow(2,h->bitsPerSample - 1);
    //printf("max is %f\n",max);

    for (i = 0; i < h->samples && i < *length; ++i)
        {
        data[i * 2 + 1] = h->data[channel][i] / max;
        data[i * 2 + 2] = 0.0;
        }

    /* fill the remainder of the data array with zeros */

    for ( ; i < *length; ++i)
        {
        data[i * 2 + 1] = 0.0;
        data[i * 2 + 2] = 0.0;
        }

    /* call the fft */

    fft(data,*length,1);

    return data;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r12
movl %esi, %r15d
movq %rdi, %r14
cmpl %esi, (%rdi)
jg 0x2c0b
leaq 0x1884(%rip), %rdi      # 0x4488
xorl %eax, %eax
callq 0x170c
cvtsi2sdl 0xc(%r14), %xmm0
callq 0x10f0
divsd 0x1542(%rip), %xmm0     # 0x4160
callq 0x1230
callq 0x1030
cvttsd2si %xmm0, %edi
movl %edi, (%r12)
shll $0x4, %edi
addl $0x10, %edi
callq 0x182b
movq %rax, %rbx
movl 0x8(%r14), %edi
decl %edi
movsd 0x1504(%rip), %xmm0     # 0x4150
callq 0x1050
movslq 0xc(%r14), %rax
movl (%r12), %ebp
testq %rax, %rax
jle 0x2ca5
leaq 0x10(%rbx), %rcx
movslq %r15d, %rsi
xorl %edx, %edx
testl %ebp, %ebp
movl $0x0, %edi
cmovgl %ebp, %edi
cmpq %rdx, %rdi
je 0x2ca7
movq 0x18(%r14), %r8
movq (%r8,%rsi,8), %r8
xorps %xmm1, %xmm1
cvtsi2sdl (%r8,%rdx,4), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, -0x8(%rcx)
movq $0x0, (%rcx)
incq %rdx
addq $0x10, %rcx
cmpq %rdx, %rax
jne 0x2c71
jmp 0x2ca7
xorl %edx, %edx
cmpl %ebp, %edx
jge 0x2ccc
movl %edx, %eax
shlq $0x4, %rax
leaq (%rbx,%rax), %rdi
addq $0x8, %rdi
notl %edx
addl %ebp, %edx
shlq $0x4, %rdx
addq $0x10, %rdx
xorl %esi, %esi
callq 0x10d0
movq %rbx, %rdi
movl %ebp, %esi
movl $0x1, %edx
callq 0x2ce7
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: fft2rra
void
fft2rra(RRA *h,int channel,double *data,int length)
    {
    int i;
    double max;

    /* call the inverse fft */

    fft(data,length,-1);

    /* normalize the result */

    for(i = 0; i < length; ++i)
        {
        data[2*i+1] /= length;
        data[2*i+2] /= length;
        }

    /* now place back into RRA object */

    max = pow(2,h->bitsPerSample - 1);

    for (i = 0; i < length; i += 2)
        {
        h->data[channel][i / 2] = (int) (max * data[i + 1]);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %r15d
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq %rdx, %rdi
movl %ecx, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2ce7
testl %r15d, %r15d
jle 0x2f8b
cvtsi2sd %r15d, %xmm0
movl %r15d, %r12d
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movq %r12, %rax
shlq $0x4, %rax
xorl %ecx, %ecx
movupd 0x8(%rbx,%rcx), %xmm1
divpd %xmm0, %xmm1
movupd %xmm1, 0x8(%rbx,%rcx)
addq $0x10, %rcx
cmpq %rcx, %rax
jne 0x2f2a
movl 0x8(%r14), %edi
decl %edi
movsd 0x11ff(%rip), %xmm0     # 0x4150
callq 0x1050
testl %r15d, %r15d
jle 0x2f82
movq 0x18(%r14), %rax
movslq %ebp, %rcx
movq (%rax,%rcx,8), %rax
xorl %ecx, %ecx
movsd 0x8(%rbx,%rcx,8), %xmm1
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %edx
movl %edx, (%rax,%rcx,2)
addq $0x2, %rcx
cmpq %r12, %rcx
jb 0x2f68
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x8(%r14), %edi
decl %edi
movsd 0x11b7(%rip), %xmm0     # 0x4150
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O3/pipde[P]deos-songlib/lib/rra.c
// Function: readToken
static char *
readToken(FILE *in,int ch)
    {
    int index;
    char buffer[1024];

    buffer[0] = ch;

    ch = fgetc(in);

    index = 1;
    while (ch != EOF && !isspace(ch) && ch != '\"' && ch != ':')
        {
        if (index == sizeof(buffer) - 1)
            {
            buffer[sizeof(buffer)-1] = '\0';
            Fatal("file %s,line %s, token too long: %s\n",buffer);
            }
        buffer[index++] = ch;
        ch = fgetc(in);
        }

    buffer[index] = '\0';

    ungetc(ch,in);

    return StringDup(buffer);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rdi, %rbx
movb %sil, (%rsp)
callq 0x10e0
cmpl $-0x1, %eax
je 0x303a
movl %eax, %ebp
movl $0x1, %r13d
callq 0x1240
movq %rax, %r14
leaq 0x14e2(%rip), %r15      # 0x44c1
movq %rsp, %r12
movq (%r14), %rax
movslq %ebp, %rcx
movzwl (%rax,%rcx,2), %eax
btl $0xd, %eax
jb 0x3035
cmpl $0x22, %ebp
je 0x3035
cmpl $0x3a, %ebp
je 0x3035
cmpq $0x3ff, %r13            # imm = 0x3FF
jne 0x301a
movb $0x0, 0x3ff(%rsp)
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x170c
movb %bpl, (%rsp,%r13)
incq %r13
movq %rbx, %rdi
callq 0x10e0
movl %eax, %ebp
cmpl $-0x1, %eax
jne 0x2fe2
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %r13d, %eax
jmp 0x3044
movl $0x1, %eax
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movb $0x0, (%rsp,%rax)
movl %ebp, %edi
movq %rbx, %rsi
callq 0x1190
movq %rsp, %rdi
callq 0x180e
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/sfnt.c
// Function: otf_close
void otf_close(OTF_FILE *otf) // {{{
{
  assert(otf);
  if (otf) {
    if (otf->flags&OTF_F_CACHE_GLYF) {
      free(otf->glyf);
    } else {
      free(otf->gly);
    }
    free(otf->cmap);
    free(otf->name);
    free(otf->hmtx);
    free(otf->glyphOffsets);
    fclose(otf->f);
    free(otf->tables);
    free(otf);
  }
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x4091
movq %rdi, %rbx
movl 0x8(%rdi), %eax
andl $0x1, %eax
shll $0x4, %eax
movq 0x80(%rdi,%rax), %rdi
callq 0x21a0
movq 0x70(%rbx), %rdi
callq 0x21a0
movq 0x68(%rbx), %rdi
callq 0x21a0
movq 0x60(%rbx), %rdi
callq 0x21a0
movq 0x50(%rbx), %rdi
callq 0x21a0
movq (%rbx), %rdi
callq 0x2130
movq 0x40(%rbx), %rdi
callq 0x21a0
movq %rbx, %rdi
popq %rbx
jmp 0x21a0
leaq 0x5fa0(%rip), %rdi      # 0xa038
leaq 0x69b0(%rip), %rsi      # 0xaa4f
leaq 0x6306(%rip), %rcx      # 0xa3ac
movl $0x1d6, %edx            # imm = 0x1D6
callq 0x20e0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/sfnt.c
// Function: otf_load_header
static int otf_load_header(OTF_FILE *otf,int pos) // {{{
{
  char buf[12];
  if (!otf_read(otf,buf,pos,12)) {
    fprintf(stderr,"Not a ttf font\n");
    return -1;
  }
  otf->version=get_ULONG(buf);
  otf->numTables=get_USHORT(buf+4);
  // don't need the other fields...
  pos+=12;
  return pos;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebx
movq %rdi, %r14
movl %esi, %edx
movq (%rdi), %rdi
leaq 0xc(%rsp), %rsi
movl $0xc, %ecx
callq 0x4010
testq %rax, %rax
je 0x40fa
movl 0xc(%rsp), %eax
bswapl %eax
movl %eax, 0x14(%r14)
movzwl 0x10(%rsp), %eax
rolw $0x8, %ax
movw %ax, 0x38(%r14)
addl $0xc, %ebx
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
callq 0x2622
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x40f0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/sfnt.c
// Function: otf_load
OTF_FILE *otf_load(const char *file) // {{{
{
  FILE *f;
  int use_ttc=-1;

  if ((f=fopen(file,"rb"))==NULL) {
    // check for TTC
    char *tmp=strrchr(file,'/'),*end;
    if (tmp) {
      use_ttc=strtoul(tmp+1,&end,10);
      if (!*end) {
        end=malloc((tmp-file+1)*sizeof(char));
        if (!end) {
          fprintf(stderr,"Bad alloc: %s\n", strerror(errno));
          return NULL;
        }
        strncpy(end,file,tmp-file);
        end[tmp-file]=0;
        f=fopen(end,"rb");
        free(end);
      }
    }
    if (!f) {
      fprintf(stderr,"Could not open \"%s\": %s\n", file, strerror(errno));
      return NULL;
    }
  }
  return otf_load2(f,use_ttc);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x6278(%rip), %rsi      # 0xa390
callq 0x2190
testq %rax, %rax
je 0x412d
movq %rax, %r15
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x41a8
movq %rbx, %rdi
movl $0x2f, %esi
callq 0x2150
testq %rax, %rax
je 0x41be
movq %rax, %r15
leaq 0x1(%rax), %rdi
movq %rsp, %r12
movq %r12, %rsi
movl $0xa, %edx
callq 0x2060
movq %rax, %r14
movq (%r12), %rax
cmpb $0x0, (%rax)
jne 0x41be
subq %rbx, %r15
leaq 0x1(%r15), %rdi
callq 0x21c0
testq %rax, %rax
je 0x41c8
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x20a0
movb $0x0, (%r12,%r15)
leaq 0x6200(%rip), %rsi      # 0xa390
movq %r12, %rdi
callq 0x2190
movq %rax, %r15
movq %r12, %rdi
callq 0x21a0
testq %r15, %r15
je 0x41be
movq %r15, %rdi
movl %r14d, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x3a22
movq %rbx, %rdi
callq 0x2670
jmp 0x41cd
callq 0x2644
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/sfnt.c
// Function: otf_get_table
char *otf_get_table(OTF_FILE *otf,unsigned int tag,int *ret_len) // {{{
{
  assert(otf);
  assert(ret_len);

  const int idx=otf_find_table(otf,tag);
  if (idx==-1) {
    return NULL;
  }
  const OTF_DIRENT *table=otf->tables+idx;

  char *ret=otf_read_table(otf,NULL,table);
  if (!ret) {
    return NULL;
  }
  if (otf->flags&OTF_F_DO_CHECKSUM) {
    unsigned int csum=otf_checksum(ret,table->length);
    if (tag==OTF_TAG('h','e','a','d')) { // special case
      csum-=get_ULONG(ret+8);
    }
    if (csum!=table->checkSum) {
      fprintf(stderr,"Wrong checksum for %c%c%c%c\n",OTF_UNTAG(tag));
      free(ret);
      return NULL;
    }
  }
  *ret_len=table->length;
  return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x42f2
movq %rdx, %r14
testq %rdx, %rdx
je 0x4311
movl %esi, %ebx
movq %rdi, %r12
callq 0x41db
cmpl $-0x1, %eax
je 0x42e2
cltq
leaq (%rax,%rax,4), %r15
shlq $0x2, %r15
addq 0x40(%r12), %r15
xorl %r13d, %r13d
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x3858
testq %rax, %rax
je 0x42e5
testb $0x4, 0xa(%r12)
movl 0xc(%r15), %ecx
je 0x42d0
leal 0x3(%rcx), %esi
xorl %edx, %edx
cmpl $0x4, %esi
jb 0x42bb
shrl $0x2, %esi
xorl %edi, %edi
xorl %edx, %edx
movl (%rax,%rdi,4), %r8d
bswapl %r8d
addl %r8d, %edx
incq %rdi
cmpl %edi, %esi
jne 0x42aa
cmpl $0x68656164, %ebx       # imm = 0x68656164
jne 0x42ca
movl 0x8(%rax), %esi
bswapl %esi
subl %esi, %edx
cmpl 0x4(%r15), %edx
jne 0x42d8
movl %ecx, (%r14)
movq %rax, %r13
jmp 0x42e5
movl %ebx, %edi
movq %rax, %rsi
callq 0x26ab
xorl %r13d, %r13d
movq %r13, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x5d3f(%rip), %rdi      # 0xa038
leaq 0x674f(%rip), %rsi      # 0xaa4f
leaq 0x60c0(%rip), %rcx      # 0xa3c7
movl $0x226, %edx            # imm = 0x226
callq 0x20e0
leaq 0x60e4(%rip), %rdi      # 0xa3fc
leaq 0x6730(%rip), %rsi      # 0xaa4f
leaq 0x60a1(%rip), %rcx      # 0xa3c7
movl $0x227, %edx            # imm = 0x227
callq 0x20e0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/sfnt.c
// Function: otf_load_cmap
int otf_load_cmap(OTF_FILE *otf) // {{{  - 0 on success
{
  int iA;
  int len;

  char *cmap=otf_get_table(otf,OTF_TAG('c','m','a','p'),&len);
  if ( (!cmap)||
       (get_USHORT(cmap)!=0x0000)|| // version
       (len<get_USHORT(cmap+2)*8+4) ) {
    fprintf(stderr,"Unsupported OTF font / cmap table \n");
    free(cmap);
    assert(0);
    return -1;
  }
  // check bounds, find (3,0) or (3,1) [TODO?]
  const int numTables=get_USHORT(cmap+2);
  for (iA=0;iA<numTables;iA++) {
    const char *nrec=cmap+4+8*iA;
    const unsigned int offset=get_ULONG(nrec+4);
    const char *ndata=cmap+offset;
    if ( (ndata<cmap+4+8*numTables)||
         (offset>=len)||
         (offset+get_USHORT(ndata+2)>len) ) {
      fprintf(stderr,"Bad cmap table\n");
      free(cmap);
      assert(0);
      return -1;
    }
    if ( (get_USHORT(nrec)==3)&&
         (get_USHORT(nrec+2)<=1)&&
         (get_USHORT(ndata)==4)&&
         (get_USHORT(ndata+4)==0) ) {
      otf->unimap=ndata;
    }
  }
  if (otf->cmap) {
    free(otf->cmap);
    assert(0);
  }
  otf->cmap=cmap;

  return 0;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %rdx
movl $0x636d6170, %esi       # imm = 0x636D6170
callq 0x423c
testq %rax, %rax
je 0x48a2
movb 0x1(%rax), %cl
orb (%rax), %cl
jne 0x48a2
movzwl 0x2(%rax), %edx
rolw $0x8, %dx
movl 0xc(%rsp), %ecx
movzwl %dx, %esi
leal 0x4(,%rsi,8), %edx
cmpl %edx, %ecx
jl 0x48a2
testl %esi, %esi
je 0x4885
leal (,%rsi,8), %edx
movl %edx, %edx
addq %rax, %rdx
addq $0x4, %rdx
movl %esi, %esi
xorl %edi, %edi
movl 0x8(%rax,%rdi,8), %r9d
bswapl %r9d
cmpl %ecx, %r9d
jae 0x489a
leaq (%rax,%r9), %r8
cmpq %rdx, %r8
jb 0x489a
movzwl 0x2(%r8), %r10d
rolw $0x8, %r10w
movzwl %r10w, %r10d
addl %r9d, %r10d
cmpl %ecx, %r10d
ja 0x489a
movzwl 0x4(%rax,%rdi,8), %r9d
rolw $0x8, %r9w
cmpw $0x3, %r9w
jne 0x487d
movzwl 0x6(%rax,%rdi,8), %r9d
rolw $0x8, %r9w
cmpw $0x1, %r9w
ja 0x487d
movzwl (%r8), %r9d
rolw $0x8, %r9w
cmpw $0x4, %r9w
jne 0x487d
movb 0x5(%r8), %r9b
orb 0x4(%r8), %r9b
jne 0x487d
movq %r8, 0x78(%rbx)
incq %rdi
cmpq %rdi, %rsi
jne 0x480f
movq 0x70(%rbx), %rdi
testq %rdi, %rdi
jne 0x48aa
movq %rax, 0x70(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rdi
callq 0x285d
movq %rax, %rdi
callq 0x28a4
callq 0x21a0
leaq 0x640a(%rip), %rdi      # 0xacc0
leaq 0x6192(%rip), %rsi      # 0xaa4f
leaq 0x5cb9(%rip), %rcx      # 0xa57d
movl $0x30d, %edx            # imm = 0x30D
callq 0x20e0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/sfnt.c
// Function: otf_get_width
int otf_get_width(OTF_FILE *otf,unsigned short gid) // {{{  -1 on error
{
  assert(otf);

  if (gid>=otf->numGlyphs) {
    return -1;
  }

  // ensure hmtx is there
  if (!otf->hmtx) {
    if (otf_load_more(otf)!=0) {
      assert(0);
      return -1;
    }
  }

  return get_width_fast(otf,gid);
#if 0
  if (gid>=otf->numberOfHMetrics) {
    return get_USHORT(otf->hmtx+(otf->numberOfHMetrics-1)*2);
    // TODO? lsb=get_SHORT(otf->hmtx+otf->numberOfHMetrics*2+gid*2);  // lsb: left_side_bearing (also in table)
  }
  return get_USHORT(otf->hmtx+gid*4);
  // TODO? lsb=get_SHORT(otf->hmtx+gid*4+2);
#endif
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x4936
movl %esi, %ebp
movq %rdi, %rbx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpw %bp, 0x4c(%rdi)
jbe 0x492f
movq 0x60(%rbx), %rax
testq %rax, %rax
jne 0x48ff
movq %rbx, %rdi
callq 0x45d8
testl %eax, %eax
jne 0x4955
movq 0x60(%rbx), %rax
movzwl %bp, %ecx
movzwl 0x58(%rbx), %edx
cmpw %cx, %dx
leaq (%rax,%rcx,4), %rsi
leaq 0x1(%rax,%rcx,4), %rcx
leaq -0x3(%rax,%rdx,4), %rdi
cmovaq %rcx, %rdi
leaq -0x4(%rax,%rdx,4), %rax
cmovaq %rsi, %rax
movzbl (%rax), %eax
movzbl (%rdi), %ecx
shll $0x8, %eax
orl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x56fb(%rip), %rdi      # 0xa038
leaq 0x610b(%rip), %rsi      # 0xaa4f
leaq 0x5c60(%rip), %rcx      # 0xa5ab
movl $0x317, %edx            # imm = 0x317
callq 0x20e0
leaq 0x6364(%rip), %rdi      # 0xacc0
leaq 0x60ec(%rip), %rsi      # 0xaa4f
leaq 0x5c41(%rip), %rcx      # 0xa5ab
movl $0x320, %edx            # imm = 0x320
callq 0x20e0
// File: /workspace/github_c_makefile_star2_O3/smilingthax[P]libfontembed/sfnt.c
// Function: otf_get_name
const char *otf_get_name(OTF_FILE *otf,int platformID,int encodingID,int languageID,int nameID,int *ret_len) // {{{
{
  assert(otf);
  assert(ret_len);

  // ensure name is there
  if (!otf->name) {
    if (otf_load_more(otf)!=0) {
      *ret_len=-1;
      assert(0);
      return NULL;
    }
  }

  char key[8];
  set_USHORT(key,platformID);
  set_USHORT(key+2,encodingID);
  set_USHORT(key+4,languageID);
  set_USHORT(key+6,nameID);

  char *res=bsearch(key,otf->name+6,get_USHORT(otf->name+2),12,otf_name_compare);
  if (res) {
    *ret_len=get_USHORT(res+8);
    int npos=get_USHORT(res+10);
    const char *nstore=otf->name+get_USHORT(otf->name+4);
    return nstore+npos;
  }
  *ret_len=0;
  return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x4a54
movq %r9, %r15
testq %r9, %r9
je 0x4a73
movl %r8d, %eax
movl %esi, %ebx
movq %rdi, %r14
movq 0x68(%rdi), %rsi
testq %rsi, %rsi
jne 0x49c9
movl %edx, %r13d
movl %ecx, %r12d
movl %eax, %ebp
movq %r14, %rdi
callq 0x45d8
testl %eax, %eax
jne 0x4a92
movq 0x68(%r14), %rsi
movl %ebp, %eax
movl %r12d, %ecx
movl %r13d, %edx
movb %bh, (%rsp)
movq %rsp, %rdi
movb %bl, 0x1(%rdi)
movb %dh, 0x2(%rsp)
movb %dl, 0x3(%rdi)
movb %ch, 0x4(%rsp)
movb %cl, 0x5(%rdi)
movb %ah, 0x6(%rsp)
movb %al, 0x7(%rdi)
movzwl 0x2(%rsi), %eax
addq $0x6, %rsi
rolw $0x8, %ax
movzwl %ax, %edx
leaq 0xbb(%rip), %r8         # 0x4ab8
movl $0xc, %ecx
callq 0x21b0
testq %rax, %rax
je 0x4a3c
movzwl 0x8(%rax), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
movl %ecx, (%r15)
movzwl 0xa(%rax), %eax
rolw $0x8, %ax
movq 0x68(%r14), %rcx
movzwl 0x4(%rcx), %edx
rolw $0x8, %dx
movzwl %ax, %esi
movzwl %dx, %eax
addq %rcx, %rax
addq %rsi, %rax
jmp 0x4a45
movl $0x0, (%r15)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x55dd(%rip), %rdi      # 0xa038
leaq 0x5fed(%rip), %rsi      # 0xaa4f
leaq 0x5b70(%rip), %rcx      # 0xa5d9
movl $0x339, %edx            # imm = 0x339
callq 0x20e0
leaq 0x5982(%rip), %rdi      # 0xa3fc
leaq 0x5fce(%rip), %rsi      # 0xaa4f
leaq 0x5b51(%rip), %rcx      # 0xa5d9
movl $0x33a, %edx            # imm = 0x33A
callq 0x20e0
movl $0xffffffff, (%r15)     # imm = 0xFFFFFFFF
leaq 0x6220(%rip), %rdi      # 0xacc0
leaq 0x5fa8(%rip), %rsi      # 0xaa4f
leaq 0x5b2b(%rip), %rcx      # 0xa5d9
movl $0x340, %edx            # imm = 0x340
callq 0x20e0