LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/mkfn.c
// Function: mkfn_featrank
int mkfn_featrank(char *scrp, char *feat)
{
	static char **order;
	int i;
	if (!order || strcmp(scrp, order[0])) {
		order = NULL;
		for (i = 0; i < LEN(scriptorder); i++)
			if (!strcmp(scrp, scriptorder[i][0]))
				order = scriptorder[i];
	}
	if (order && strstr(order[1], feat))
		return strstr(order[1], feat) - order[1];
	return 1000;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x316bb(%rip), %r15     # 0x6eb68
testq %r15, %r15
je 0x3d4c1
movq (%r15), %rsi
movq %r14, %rdi
callq 0x3d150
testl %eax, %eax
je 0x3d505
andq $0x0, 0x3169f(%rip)     # 0x6eb68
xorl %r12d, %r12d
leaq 0x2bc4d(%rip), %r13     # 0x69120
xorl %r15d, %r15d
cmpq $0x1e0, %r12            # imm = 0x1E0
je 0x3d500
movq (%r12,%r13), %rsi
movq %r14, %rdi
callq 0x3d150
testl %eax, %eax
jne 0x3d4fa
leaq (%r12,%r13), %r15
movq %r15, 0x3166e(%rip)     # 0x6eb68
addq $0x10, %r12
jmp 0x3d4d6
testq %r15, %r15
je 0x3d51e
movq 0x8(%r15), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3d1e0
testq %rax, %rax
je 0x3d51e
subl %r14d, %eax
jmp 0x3d523
movl $0x3e8, %eax            # imm = 0x3E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/mkfn.c
// Function: mkfn_header
void mkfn_header(char *fontname)
{
	if (mkfn_dry)
		return;
	if (mkfn_trname)
		printf("name %s\n", mkfn_trname);
	if (mkfn_psname)
		printf("fontname %s\n", mkfn_psname);
	if (!mkfn_psname && fontname && fontname[0])
		printf("fontname %s\n", fontname);
	if (mkfn_path)
		printf("fontpath %s\n", mkfn_path);
	trfn_header();
	if (mkfn_special)
		printf("special\n");
	trfn_cdefs();
}

// Assembly:
cmpl $0x0, 0x3163c(%rip)     # 0x6eb70
je 0x3d537
retq
pushq %rbx
movq %rdi, %rbx
movq 0x31636(%rip), %rsi     # 0x6eb78
testq %rsi, %rsi
je 0x3d555
leaq 0x4b25(%rip), %rdi      # 0x42073
xorl %eax, %eax
callq 0x3d0c0
movq 0x31624(%rip), %rsi     # 0x6eb80
testq %rsi, %rsi
je 0x3d57c
leaq 0x4b07(%rip), %rdi      # 0x4206f
xorl %eax, %eax
callq 0x3d0c0
cmpq $0x0, 0x31609(%rip)     # 0x6eb80
sete %al
jmp 0x3d57e
movb $0x1, %al
testq %rbx, %rbx
je 0x3d59d
testb %al, %al
je 0x3d59d
cmpb $0x0, (%rbx)
je 0x3d59d
leaq 0x4adc(%rip), %rdi      # 0x4206f
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3d0c0
movq 0x315e4(%rip), %rsi     # 0x6eb88
testq %rsi, %rsi
je 0x3d5b7
leaq 0x4acc(%rip), %rdi      # 0x4207c
xorl %eax, %eax
callq 0x3d0c0
callq 0x3e19c
cmpl $0x0, 0x315cd(%rip)     # 0x6eb90
je 0x3d5d1
leaq 0x5106(%rip), %rdi      # 0x426d2
callq 0x3d070
popq %rbx
jmp 0x3e1df
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/trfn.c
// Function: trfn_init
void trfn_init(void)
{
	int i;
	sbuf_char = sbuf_make();
	tab_agl = tab_alloc(LEN(agl));
	for (i = 0; i < LEN(agl); i++)
		tab_put(tab_agl, agl[i][0], agl[i][1]);
	tab_alts = tab_alloc(LEN(alts));
	for (i = 0; i < LEN(alts); i++)
		tab_put(tab_alts, alts[i][0], alts[i] + 1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x3e410
movq %rax, 0x309a1(%rip)     # 0x6ebb0
movl $0x10b9, %edi           # imm = 0x10B9
callq 0x3e634
movq %rax, 0x349a0(%rip)     # 0x72bc0
pushq $0x8
popq %rbx
leaq 0x18156(%rip), %r14     # 0x56380
cmpq $0x10b98, %rbx          # imm = 0x10B98
je 0x3e24e
movq 0x34986(%rip), %rdi     # 0x72bc0
movq -0x8(%rbx,%r14), %rsi
movq (%rbx,%r14), %rdx
callq 0x3e6c8
addq $0x10, %rbx
jmp 0x3e22a
movl $0x161, %edi            # imm = 0x161
callq 0x3e634
movq %rax, 0x30959(%rip)     # 0x6ebb8
xorl %ebx, %ebx
leaq 0x2b098(%rip), %r14     # 0x69300
cmpq $0x5840, %rbx           # imm = 0x5840
je 0x3e28f
movq 0x30940(%rip), %rdi     # 0x6ebb8
leaq (%rbx,%r14), %rdx
addq $0x8, %rdx
movq -0x8(%rdx), %rsi
callq 0x3e6c8
addq $0x40, %rbx
jmp 0x3e268
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/trfn.c
// Function: trfn_done
void trfn_done(void)
{
	sbuf_free(sbuf_char);
	tab_free(tab_alts);
	if (tab_agl)
		tab_free(tab_agl);
}

// Assembly:
pushq %rax
movq 0x30911(%rip), %rdi     # 0x6ebb0
callq 0x3e49f
movq 0x3090d(%rip), %rdi     # 0x6ebb8
callq 0x3e6a1
movq 0x34909(%rip), %rdi     # 0x72bc0
testq %rdi, %rdi
je 0x3e2c2
popq %rax
jmp 0x3e6a1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/trfn.c
// Function: utf8put
static void utf8put(char **d, int c)
{
	int l = 0;
	if (c > 0xffff) {
		*(*d)++ = 0xf0 | (c >> 18);
		l = 3;
	} else if (c > 0x7ff) {
		*(*d)++ = 0xe0 | (c >> 12);
		l = 2;
	} else if (c > 0x7f) {
		*(*d)++ = 0xc0 | (c >> 6);
		l = 1;
	} else {
		*(*d)++ = c > 0 ? c : ' ';
	}
	while (l--)
		*(*d)++ = 0x80 | ((c >> (l * 6)) & 0x3f);
	**d = '\0';
}

// Assembly:
cmpl $0x10000, %esi          # imm = 0x10000
jl 0x3e2e3
movl %esi, %eax
shrl $0x12, %eax
orb $-0x10, %al
movq (%rdi), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rdi)
movb %al, (%rcx)
pushq $0x3
jmp 0x3e320
cmpl $0x800, %esi            # imm = 0x800
jl 0x3e302
movl %esi, %eax
shrl $0xc, %eax
orb $-0x20, %al
movq (%rdi), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rdi)
movb %al, (%rcx)
pushq $0x2
jmp 0x3e320
movq (%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rdi)
cmpl $0x80, %esi
jl 0x3e349
movl %esi, %ecx
shrl $0x6, %ecx
orb $-0x40, %cl
movb %cl, (%rax)
pushq $0x1
popq %rax
imull $0x6, %eax, %ecx
addl $-0x6, %ecx
cmpl $-0x6, %ecx
je 0x3e342
movl %esi, %eax
sarl %cl, %eax
andb $0x3f, %al
orb $-0x80, %al
movq (%rdi), %rdx
leaq 0x1(%rdx), %r8
movq %r8, (%rdi)
movb %al, (%rdx)
jmp 0x3e324
movq (%rdi), %rax
movb $0x0, (%rax)
retq
testl %esi, %esi
pushq $0x20
popq %rcx
cmovgl %esi, %ecx
movb %cl, (%rax)
xorl %eax, %eax
jmp 0x3e321
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/trfn.c
// Function: hexval
static int hexval(char *s, int len)
{
	char *digs = HEXDIGS;
	int n = 0;
	int i;
	for (i = 0; i < len; i++) {
		if (s[i] && strchr(digs, s[i]))
			n = n * 16 + (strchr(digs, s[i]) - digs);
		else
			break;
	}
	return i < 4 ? -1 : n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
xorl %r13d, %r13d
testl %esi, %esi
cmovlel %r13d, %ebx
movq %rdi, %r14
leaq 0x43db(%rip), %r15      # 0x42752
pushq $0x11
popq %r12
xorl %ebp, %ebp
cmpq %r13, %rbx
je 0x3e3ab
movsbl (%r14,%r13), %esi
testl %esi, %esi
je 0x3e3a8
movq %r15, %rdi
movq %r12, %rdx
callq 0x3d110
testq %rax, %rax
je 0x3e3a8
shll $0x4, %ebp
subl %r15d, %ebp
addl %eax, %ebp
incq %r13
jmp 0x3e37d
movl %r13d, %ebx
cmpl $0x4, %ebx
pushq $-0x1
popq %rax
cmovbl %eax, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/sbuf.c
// Function: sbuf_buf
char *sbuf_buf(struct sbuf *sb)
{
	if (!sb->s)
		sbuf_extend(sb, 1);
	sb->s[sb->s_n] = '\0';
	return sb->s;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
testq %rax, %rax
jne 0x3e435
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x3e442
movq (%rbx), %rax
movslq 0x8(%rbx), %rcx
movb $0x0, (%rax,%rcx)
movq (%rbx), %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/sbuf.c
// Function: sbuf_extend
static void sbuf_extend(struct sbuf *sbuf, int newsz)
{
	char *s = sbuf->s;
	sbuf->s_sz = newsz;
	sbuf->s = malloc(sbuf->s_sz);
	if (sbuf->s_n)
		memcpy(sbuf->s, s, sbuf->s_n);
	free(s);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq (%rdi), %rbx
movl %esi, 0xc(%rdi)
movslq %esi, %rdi
callq 0x3d180
movq %rax, (%r14)
movslq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0x3e46e
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3d170
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3d030
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/sbuf.c
// Function: sbuf_mem
void sbuf_mem(struct sbuf *sbuf, char *s, int len)
{
	if (sbuf->s_n + len + 1 >= sbuf->s_sz)
		sbuf_extend(sbuf, NEXTSZ(sbuf->s_sz, len + 1));
	memcpy(sbuf->s + sbuf->s_n, s, len);
	sbuf->s_n += len;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
movl 0x8(%rdi), %eax
movl 0xc(%rdi), %esi
leal (%rbx,%rax), %ecx
incl %ecx
cmpl %esi, %ecx
jl 0x3e538
leal 0x1(%rbx), %eax
addl %esi, %eax
addl %esi, %esi
cmpl %eax, %esi
cmovlel %eax, %esi
addl $0x7f, %esi
andl $-0x80, %esi
movq %r14, %rdi
callq 0x3e442
movl 0x8(%r14), %eax
movslq %eax, %rdi
addq (%r14), %rdi
movslq %ebx, %rdx
movq %r15, %rsi
callq 0x3d170
addl %ebx, 0x8(%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/tab.c
// Function: tab_alloc
struct tab *tab_alloc(int sz)
{
	struct tab *tab = malloc(sizeof(*tab));
	int i;
	memset(tab, 0, sizeof(*tab));
	tab->keys = malloc(sz * sizeof(tab->keys[0]));
	tab->vals = malloc(sz * sizeof(tab->vals[0]));
	tab->next = malloc(sz * sizeof(tab->next[0]));
	for (i = 0; i < 256; i++)
		tab->head[i] = -1;
	return tab;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebp
pushq $0x1
popq %rdi
movl $0x420, %esi            # imm = 0x420
callq 0x3d140
movq %rax, %rbx
movslq %ebp, %r14
leaq (,%r14,8), %r15
movq %r15, %rdi
callq 0x3d180
movq %rax, (%rbx)
movq %r15, %rdi
callq 0x3d180
movq %rax, 0x8(%rbx)
shlq $0x2, %r14
movq %r14, %rdi
callq 0x3d180
movq %rax, 0x18(%rbx)
pushq $0x8
popq %rax
cmpq $0x108, %rax            # imm = 0x108
je 0x3e693
orl $-0x1, (%rbx,%rax,4)
incq %rax
jmp 0x3e682
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/tab.c
// Function: tab_get
void *tab_get(struct tab *tab, char *k)
{
	int i = tab->head[(unsigned char) k[0]];
	while (i >= 0) {
		if (k[1] == tab->keys[i][1] && !strcmp(k, tab->keys[i]))
			return tab->vals[i];
		i = tab->next[i];
	}
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movzbl (%rsi), %eax
leaq (%rdi,%rax,4), %r12
addq $0x20, %r12
xorl %ebx, %ebx
movslq (%r12), %r12
testq %r12, %r12
js 0x3e74b
movb 0x1(%r15), %al
movq (%r14), %rcx
movq (%rcx,%r12,8), %rsi
cmpb 0x1(%rsi), %al
jne 0x3e739
movq %r15, %rdi
callq 0x3d150
testl %eax, %eax
je 0x3e743
shlq $0x2, %r12
addq 0x18(%r14), %r12
jmp 0x3e714
movq 0x8(%r14), %rax
movq (%rax,%r12,8), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/afm.c
// Function: afm_charfield
static char *afm_charfield(char *s, char *d)
{
	while (*s && !isspace(*s) && *s != ';')
		*d++ = *s++;
	while (isspace(*s) || *s == ';')
		s++;
	*d = '\0';
	return s;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0x3d1f0
decq %rbx
movsbq 0x1(%rbx), %rcx
testq %rcx, %rcx
je 0x3ec1c
cmpb $0x3b, %cl
je 0x3ec1c
movq (%rax), %rdx
movzwl (%rdx,%rcx,2), %edx
andl $0x2000, %edx           # imm = 0x2000
jne 0x3ec1c
movb %cl, (%r14)
incq %r14
incq %rbx
jmp 0x3ebf3
movq (%rax), %rax
movsbq 0x1(%rbx), %rcx
incq %rbx
cmpq $0x3b, %rcx
je 0x3ec1f
movzwl (%rax,%rcx,2), %ecx
andl $0x2000, %ecx           # imm = 0x2000
jne 0x3ec1f
movb $0x0, (%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: otf_table
static void *otf_table(struct otf *otf, char *name)
{
	int nrecs = U16(otf->off, 4);
	int i;
	for (i = 0; i < nrecs; i++) {
		void *rec = otf->off + 12 + i * 16;	/* an otf table record */
		if (!strncmp(rec, name, 4))
			return otf->otf + U32(rec, 8);
	}
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movzwl 0x4(%rdi), %eax
rolw $0x8, %ax
addq $0xc, %rdi
movzwl %ax, %r13d
incq %r13
xorl %r14d, %r14d
pushq $0x4
popq %r12
decq %r13
je 0x40a63
leaq 0x10(%rdi), %rbp
movq %r15, %rsi
movq %r12, %rdx
callq 0x3d050
movq %rbp, %rdi
testl %eax, %eax
jne 0x40a3e
movl -0x8(%rbp), %r14d
bswapl %r14d
addq (%rbx), %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: otf_read
int otf_read(void)
{
	char *otf_buf = otf_input(0);
	unsigned tag = U32(otf_buf, 0);
	int n, i;
	if (tag == 0x00010000 || tag == 0x4F54544F)
		return otf_offsettable(otf_buf, otf_buf);
	if (tag != 0x74746366)
		return 1;
	/* OpenType Collections */
	n = U32(otf_buf, 8);
	for (i = 0; i < n; i++) {
		void *off = otf_buf + U32(otf_buf, 12 + i * 4);
		otf_offsettable(otf_buf, off);
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
callq 0x3e410
movq %rax, %rbx
movq %rsp, %r14
movl $0x1000, %edx           # imm = 0x1000
xorl %edi, %edi
movq %r14, %rsi
callq 0x3d120
testl %eax, %eax
jle 0x40aed
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x3e4fe
jmp 0x40acb
movq %rbx, %rdi
callq 0x3e47d
movq %rax, %rbx
movl (%rax), %eax
bswapl %eax
cmpl $0x10000, %eax          # imm = 0x10000
je 0x40b11
cmpl $0x74746366, %eax       # imm = 0x74746366
je 0x40b21
cmpl $0x4f54544f, %eax       # imm = 0x4F54544F
jne 0x40b51
movq %rbx, %rdi
movq %rbx, %rsi
callq 0x3ec88
movl %eax, %r14d
jmp 0x40b55
movl 0x8(%rbx), %r15d
bswapl %r15d
xorl %r14d, %r14d
testl %r15d, %r15d
cmovlel %r14d, %r15d
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x40b55
movl 0xc(%rbx,%r12,4), %esi
bswapl %esi
addq %rbx, %rsi
movq %rbx, %rdi
callq 0x3ec88
incq %r12
jmp 0x40b35
pushq $0x1
popq %r14
movl %r14d, %eax
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: cffdict_get
static int cffdict_get(void *dict, int len, int key, int *args)
{
	int off = 0;
	int op = 0;
	int val = 0;
	/* operators: keys (one or two bytes); operands: values */
	while (off < len) {
		val = op;
		if (args) {
			memmove(args + 1, args + 0, 3 * sizeof(args[0]));
			args[0] = val;
		}
		off += cff_op(dict, off, &op);
		if (op == 12) {			/* two-byte operator */
			off += cff_op(dict, off, &op);
			op += 1200;
		}
		if (op == key)
			return val;
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, 0x4(%rsp)
movl %esi, %ebp
movq %rsp, %rbx
andl $0x0, (%rbx)
movq %rdi, %r15
xorl %eax, %eax
xorl %r13d, %r13d
cmpl %ebp, %r13d
jge 0x40be5
movl %eax, %r12d
movq %r15, %rdi
movl %r13d, %esi
movq %rbx, %rdx
callq 0x40d29
movl %eax, %r14d
addl %r13d, %r14d
movl (%rsp), %eax
cmpl $0xc, %eax
jne 0x40bd7
movq %r15, %rdi
movl %r14d, %esi
movq %rbx, %rdx
callq 0x40d29
addl %eax, %r14d
movl (%rsp), %eax
movl $0x4b0, %ecx            # imm = 0x4B0
addl %ecx, %eax
movl %eax, (%rsp)
movl %r14d, %r13d
cmpl 0x4(%rsp), %eax
movq %rsp, %rbx
jne 0x40b95
jmp 0x40be8
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: cff_char
static void cff_char(void *stridx, int id, char *dst)
{
	int len;
	if (id < 391) {
		strcpy(dst, stdset[id]);
		return;
	}
	id -= 391;
	len = cffidx_len(stridx, id);
	if (mkfn_warn && len >= GNLEN)
		fprintf(stderr, "neatmkfn: truncating glyph names (GNLEN is too small)\n");
	if (len >= GNLEN)
		len = GNLEN - 1;
	memcpy(dst, cffidx_get(stridx, id), len);
	dst[len] = '\0';
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
cmpl $0x186, %esi            # imm = 0x186
jg 0x40c85
movslq %ebp, %rax
leaq 0x2752f(%rip), %rcx     # 0x681a0
movq (%rcx,%rax,8), %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3d060
movq %rdi, %r14
addl $0xfffffe79, %ebp       # imm = 0xFFFFFE79
movl %ebp, %esi
callq 0x40c27
movl %eax, %r15d
leaq 0x2df01(%rip), %rax     # 0x6eba0
cmpl $0x0, (%rax)
setne %al
cmpl $0x40, %r15d
setge %cl
andb %al, %cl
cmpb $0x1, %cl
je 0x40ce8
cmpl $0x3f, %r15d
pushq $0x3f
popq %r12
cmovll %r15d, %r12d
movq %r14, %rdi
movl %ebp, %esi
callq 0x40bfa
movslq %r12d, %r14
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x3d170
movb $0x0, (%rbx,%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x28301(%rip), %rax     # 0x68ff0
movq (%rax), %rcx
leaq 0x12fbb(%rip), %rdi     # 0x53cb4
pushq $0x36
popq %rsi
pushq $0x1
popq %rdx
callq 0x3d1d0
jmp 0x40cb3
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: cff_int
static int cff_int(void *tab, int off, int sz)
{
	int i;
	int n = 0;
	for (i = 0; i < sz; i++)
		n = n * 256 + U8(tab, off + i);
	return n;
}

// Assembly:
movslq %esi, %rcx
xorl %esi, %esi
testl %edx, %edx
cmovlel %esi, %edx
addq %rdi, %rcx
xorl %eax, %eax
cmpq %rsi, %rdx
je 0x40d28
shll $0x8, %eax
movzbl (%rcx,%rsi), %edi
orl %edi, %eax
incq %rsi
jmp 0x40d15
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: cff_op
static int cff_op(void *tab, int off, int *val)
{
	int b0 = U8(tab, off);
	int i;
	if (b0 >= 32 && b0 <= 246) {
		*val = b0 - 139;
		return 1;
	}
	if (b0 >= 247 && b0 <= 250) {
		*val = (b0 - 247) * 256 + U8(tab, off + 1) + 108;
		return 2;
	}
	if (b0 >= 251 && b0 <= 254) {
		*val = -(b0 - 251) * 256 - U8(tab, off + 1) - 108;
		return 2;
	}
	if (b0 == 28) {
		*val = (U8(tab, off + 1) << 8) | U8(tab, off + 2);
		return 3;
	}
	if (b0 == 29) {
		*val = (U8(tab, off + 1) << 24) | (U8(tab, off + 2) << 16) |
			(U8(tab, off + 3) << 8) | U8(tab, off + 4);
		return 5;
	}
	if (b0 == 30) {
		for (i = 1; i < 32; i++) {
			int nib = U8(tab, off + i);
			if ((nib & 0x0f) == 0x0f || (nib & 0xf0) == 0xf0)
				break;
		}
		*val = 0;
		return i + 1;
	}
	*val = b0;
	return 1;
}

// Assembly:
movslq %esi, %rax
movzbl (%rdi,%rax), %ecx
leal -0x20(%rcx), %esi
cmpb $-0x2a, %sil
ja 0x40d43
addl $0xffffff75, %ecx       # imm = 0xFFFFFF75
pushq $0x1
jmp 0x40d7a
leal 0x9(%rcx), %esi
cmpb $0x3, %sil
ja 0x40d5e
shll $0x8, %ecx
movzbl 0x1(%rdi,%rax), %eax
addl %eax, %ecx
addl $0xffff096c, %ecx       # imm = 0xFFFF096C
jmp 0x40d78
leal 0x5(%rcx), %esi
cmpb $0x3, %sil
ja 0x40d7e
shll $0x8, %ecx
movzbl 0x1(%rdi,%rax), %eax
orl %ecx, %eax
movl $0xfa94, %ecx           # imm = 0xFA94
subl %eax, %ecx
pushq $0x2
popq %rax
movl %ecx, (%rdx)
retq
cmpl $0x1c, %ecx
je 0x40dcb
cmpl $0x1d, %ecx
je 0x40dc1
cmpl $0x1e, %ecx
jne 0x40d3f
addq %rax, %rdi
pushq $0x1
popq %rsi
pushq $0x21
popq %rax
xorl %ecx, %ecx
cmpq $0x20, %rsi
je 0x40d7b
movzbl (%rdi,%rsi), %r8d
movl %r8d, %r9d
notl %r9d
testb $0xf, %r9b
je 0x40ddb
andl $-0x10, %r8d
cmpl $0xf0, %r8d
je 0x40ddb
incq %rsi
jmp 0x40d96
movl 0x1(%rdi,%rax), %ecx
bswapl %ecx
pushq $0x5
jmp 0x40d7a
movzwl 0x1(%rdi,%rax), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
pushq $0x3
jmp 0x40d7a
incl %esi
movl %esi, %eax
jmp 0x40d7b
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: otf_gtab
static int otf_gtab(struct otf *otf, void *gpos, struct otflookup *lookups)
{
	void *scripts = gpos + U16(gpos, 4);
	int nscripts, nlangs;
	void *script;
	char stag[8], ltag[8];		/* script and language tags */
	int i, j;
	int n = 0;
	nscripts = U16(scripts, 0);
	for (i = 0; i < nscripts; i++) {
		void *grec = scripts + 2 + 6 * i;
		memcpy(stag, grec, 4);
		stag[4] = '\0';
		if (!mkfn_script(stag, nscripts))
			continue;
		script = scripts + U16(grec, 4);
		nlangs = U16(script, 2);
		if (U16(script, 0) && mkfn_lang(NULL, nlangs + (U16(script, 0) != 0)))
			n = otf_lang(otf, gpos, script + U16(script, 0),
						stag, "", lookups, n);
		for (j = 0; j < nlangs; j++) {
			void *lrec = script + 4 + 6 * j;
			memcpy(ltag, lrec, 4);
			ltag[4] = '\0';
			if (mkfn_lang(ltag, nlangs + (U16(script, 0) != 0)))
				n = otf_lang(otf, gpos, script + U16(lrec, 4),
						stag, ltag, lookups, n);
		}
	}
	qsort(lookups, n, sizeof(lookups[0]), (void *) lookupcmp);
	return n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, 0x10(%rsp)
movzwl 0x4(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
leaq (%rdi,%rax), %r14
movq %rdi, 0x18(%rsp)
addq %rdi, %rax
addq $0x8, %rax
movq %rax, 0x30(%rsp)
movzwl -0x8(%rax), %eax
rolw $0x8, %ax
movzwl %ax, %r15d
xorl %r12d, %r12d
movl $0x0, 0x4(%rsp)
movq %r14, 0x38(%rsp)
movq %r15, 0x28(%rsp)
cmpq %r15, %r12
je 0x40f7a
imulq $0x6, %r12, %rbx
movl 0x2(%r14,%rbx), %eax
movl %eax, 0x8(%rsp)
movb $0x0, 0xc(%rsp)
leaq 0x8(%rsp), %rdi
movl %r15d, %esi
callq 0x3d2fc
testl %eax, %eax
je 0x40f72
movq %r12, 0x40(%rsp)
movzwl 0x6(%r14,%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %r15d
movzwl 0x2(%r14,%r15), %eax
rolw $0x8, %ax
leaq (%r14,%r15), %r12
movzwl %ax, %ebx
cmpw $0x0, (%r14,%r15)
je 0x40ef1
leal 0x1(%rbx), %esi
xorl %edi, %edi
callq 0x3d3a4
testl %eax, %eax
je 0x40ef1
movzwl (%r12), %eax
rolw $0x8, %ax
movzwl %ax, %esi
addq %r12, %rsi
movq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rdx
leaq 0x182c(%rip), %rcx      # 0x4270a
movq 0x10(%rsp), %r8
movl 0x4(%rsp), %r9d
callq 0x41540
movl %eax, 0x4(%rsp)
movl %ebx, %eax
imulq $0x6, %rax, %r14
addq 0x30(%rsp), %r15
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x40f63
movl -0x4(%r15,%r13), %eax
movl %eax, 0x20(%rsp)
movb $0x0, 0x24(%rsp)
cmpw $0x1, (%r12)
movl %ebx, %esi
sbbl $-0x1, %esi
leaq 0x20(%rsp), %rbp
movq %rbp, %rdi
callq 0x3d3a4
testl %eax, %eax
je 0x40f5d
movzwl (%r15,%r13), %eax
rolw $0x8, %ax
movzwl %ax, %esi
addq %r12, %rsi
movq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %rbp, %rcx
movq 0x10(%rsp), %r8
movl 0x4(%rsp), %r9d
callq 0x41540
movl %eax, 0x4(%rsp)
addq $0x6, %r13
jmp 0x40eff
movq 0x38(%rsp), %r14
movq 0x28(%rsp), %r15
movq 0x40(%rsp), %r12
incq %r12
jmp 0x40e54
movl 0x4(%rsp), %ebx
movslq %ebx, %rsi
leaq 0x67a(%rip), %rcx       # 0x41602
pushq $0x1c
popq %rdx
movq 0x10(%rsp), %rdi
callq 0x3d080
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: lookuptag
static char *lookuptag(struct otflookup *lu)
{
	static char tag[16];
	sprintf(tag, "%s:%s", lu->feat, lu->scrp[0] ? lu->scrp : "DFLT");
	if (lu->lang[0])
		sprintf(strchr(tag, '\0'), ":%s", lu->lang);
	return tag;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, (%rdi)
leaq 0x10(%rdi), %rdx
leaq 0x10a5(%rip), %rcx      # 0x42060
cmovneq %rdi, %rcx
leaq 0x5b1c2a(%rip), %r14    # 0x5f2bf0
leaq 0x12d8d(%rip), %rsi     # 0x53d5a
movq %r14, %rdi
xorl %eax, %eax
callq 0x3d1c0
cmpb $0x0, 0x8(%rbx)
je 0x41007
addq $0x8, %rbx
movq %r14, %rdi
callq 0x3d0a0
addq %rax, %r14
leaq 0x12d69(%rip), %rsi     # 0x53d5c
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3d1c0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: otf_gsubtype1
static void otf_gsubtype1(struct otf *otf, void *sub, char *feat, struct gctx *ctx)
{
	int *cov;
	int fmt = U16(sub, 0);
	int ncov;
	int i;
	cov = coverage(sub + U16(sub, 2), &ncov);
	if (fmt == 1) {
		for (i = 0; i < ncov; i++) {
			int dst = cov[i] + S16(sub, 4);
			if (dst >= glyph_n || dst < 0)
				continue;
			printf("gsub %s %d", feat, 2 + gctx_len(ctx, 1));
			gctx_backtrack(ctx);
			printf(" -%s +%s", glyph_name[cov[i]], glyph_name[dst]);
			gctx_lookahead(ctx, 1);
			printf("\n");
		}
	}
	if (fmt == 2) {
		int n = U16(sub, 4);
		for (i = 0; i < n; i++) {
			printf("gsub %s %d", feat, 2 + gctx_len(ctx, 1));
			gctx_backtrack(ctx);
			printf(" -%s +%s", glyph_name[cov[i]],
				glyph_name[U16(sub, 6 + 2 * i)]);
			gctx_lookahead(ctx, 1);
			printf("\n");
		}
	}
	free(cov);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movzwl (%rdi), %r12d
movl %r12d, %ebp
rolw $0x8, %bp
movzwl 0x2(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %edi
addq %r14, %rdi
leaq 0x4(%rsp), %rsi
callq 0x417ca
movq %rax, %r15
cmpw $0x2, %bp
je 0x41125
movzwl %bp, %eax
cmpl $0x1, %eax
jne 0x411c7
movw %r12w, 0x2(%rsp)
xorl %r13d, %r13d
movslq 0x4(%rsp), %rax
cmpq %rax, %r13
jge 0x41118
movzwl 0x4(%r14), %eax
rolw $0x8, %ax
movslq (%r15,%r13,4), %rbp
movswl %ax, %r12d
addl %ebp, %r12d
sets %al
cmpl 0x31b43(%rip), %r12d    # 0x72bd4
setge %cl
orb %al, %cl
jne 0x41110
pushq $0x2
popq %rdx
testq %rbx, %rbx
je 0x410b7
movl 0xc0(%rbx), %eax
movl 0xc8(%rbx), %ecx
addl 0xc4(%rbx), %eax
leal (%rcx,%rax), %edx
incl %edx
leaq 0x12ca2(%rip), %rdi     # 0x53d60
leaq 0x5b1b2b(%rip), %rsi    # 0x5f2bf0
xorl %eax, %eax
callq 0x3d0c0
movq %rbx, %rdi
callq 0x41880
shlq $0x6, %rbp
leaq 0x31b01(%rip), %rax     # 0x72be0
addq %rax, %rbp
movl %r12d, %edx
shlq $0x6, %rdx
addq %rax, %rdx
leaq 0x12c78(%rip), %rdi     # 0x53d6b
movq %rbp, %rsi
xorl %eax, %eax
callq 0x3d0c0
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0x418e6
pushq $0xa
popq %rdi
callq 0x3d040
incq %r13
jmp 0x41065
cmpw $0x200, 0x2(%rsp)       # imm = 0x200
jne 0x411c7
movzwl 0x4(%r14), %eax
rolw $0x8, %ax
movzwl %ax, %ebp
leaq 0x31aa8(%rip), %r12     # 0x72be0
xorl %r13d, %r13d
cmpq %r13, %rbp
je 0x411c7
pushq $0x2
popq %rdx
testq %rbx, %rbx
je 0x41163
movl 0xc0(%rbx), %eax
movl 0xc8(%rbx), %ecx
addl 0xc4(%rbx), %eax
leal (%rcx,%rax), %edx
incl %edx
leaq 0x12bf6(%rip), %rdi     # 0x53d60
leaq 0x5b1a7f(%rip), %rsi    # 0x5f2bf0
xorl %eax, %eax
callq 0x3d0c0
movq %rbx, %rdi
callq 0x41880
movslq (%r15,%r13,4), %rsi
shlq $0x6, %rsi
movzwl 0x6(%r14,%r13,2), %eax
rolw $0x8, %ax
addq %r12, %rsi
movzwl %ax, %edx
shll $0x6, %edx
addq %r12, %rdx
leaq 0x12bc6(%rip), %rdi     # 0x53d6b
xorl %eax, %eax
callq 0x3d0c0
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0x418e6
pushq $0xa
popq %rdi
callq 0x3d040
incq %r13
jmp 0x4113b
movq %r15, %rdi
callq 0x3d030
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: otf_gsubtype3
static void otf_gsubtype3(struct otf *otf, void *sub, char *feat, struct gctx *ctx)
{
	int *cov;
	int fmt = U16(sub, 0);
	int n, i, j;
	if (fmt != 1)
		return;
	cov = coverage(sub + U16(sub, 2), NULL);
	n = U16(sub, 4);
	for (i = 0; i < n; i++) {
		void *alt = sub + U16(sub, 6 + 2 * i);
		int nalt = U16(alt, 0);
		for (j = 0; j < nalt; j++) {
			printf("gsub %s %d", feat, 2 + gctx_len(ctx, 1));
			gctx_backtrack(ctx);
			printf(" -%s +%s", glyph_name[cov[i]],
				glyph_name[U16(alt, 2 + 2 * j)]);
			gctx_lookahead(ctx, 1);
			printf("\n");
		}
	}
	free(cov);
}

// Assembly:
cmpw $0x100, (%rdi)          # imm = 0x100
jne 0x412fe
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r15
movzwl 0x2(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %edi
addq %r15, %rdi
xorl %esi, %esi
callq 0x417ca
movq %rax, (%rsp)
movzwl 0x4(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movq %rax, 0x10(%rsp)
leaq 0x319b2(%rip), %r13     # 0x72be0
xorl %ebp, %ebp
movq %r15, 0x8(%rsp)
cmpq 0x10(%rsp), %rbp
je 0x412ff
movzwl 0x6(%r15,%rbp,2), %eax
rolw $0x8, %ax
movzwl %ax, %eax
leaq (%r15,%rax), %r14
movzwl (%r15,%rax), %eax
rolw $0x8, %ax
movzwl %ax, %r12d
xorl %r15d, %r15d
cmpq %r15, %r12
je 0x412f1
pushq $0x2
popq %rdx
testq %rbx, %rbx
je 0x41289
movl 0xc0(%rbx), %eax
movl 0xc8(%rbx), %ecx
addl 0xc4(%rbx), %eax
leal (%rcx,%rax), %edx
incl %edx
leaq 0x12ad0(%rip), %rdi     # 0x53d60
leaq 0x5b1959(%rip), %rsi    # 0x5f2bf0
xorl %eax, %eax
callq 0x3d0c0
movq %rbx, %rdi
callq 0x41880
movq (%rsp), %rax
movslq (%rax,%rbp,4), %rsi
shlq $0x6, %rsi
movzwl 0x2(%r14,%r15,2), %eax
rolw $0x8, %ax
addq %r13, %rsi
movzwl %ax, %edx
shll $0x6, %edx
addq %r13, %rdx
leaq 0x12a9c(%rip), %rdi     # 0x53d6b
xorl %eax, %eax
callq 0x3d0c0
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0x418e6
pushq $0xa
popq %rdi
callq 0x3d040
incq %r15
jmp 0x41261
incq %rbp
movq 0x8(%rsp), %r15
jmp 0x41235
retq
movq (%rsp), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3d030
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: otf_gsubtype4
static void otf_gsubtype4(struct otf *otf, void *sub, char *feat, struct gctx *ctx)
{
	int fmt = U16(sub, 0);
	int *cov;
	int n, i, j, k;
	if (fmt != 1)
		return;
	cov = coverage(sub + U16(sub, 2), NULL);
	n = U16(sub, 4);
	for (i = 0; i < n; i++) {
		void *set = sub + U16(sub, 6 + 2 * i);
		int nset = U16(set, 0);
		for (j = 0; j < nset; j++) {
			void *lig = set + U16(set, 2 + 2 * j);
			int nlig = U16(lig, 2);
			printf("gsub %s %d", feat, nlig + 1 + gctx_len(ctx, nlig));
			gctx_backtrack(ctx);
			printf(" -%s", glyph_name[cov[i]]);
			for (k = 0; k < nlig - 1; k++)
				printf(" -%s", glyph_name[U16(lig, 4 + 2 * k)]);
			printf(" +%s", glyph_name[U16(lig, 0)]);
			gctx_lookahead(ctx, nlig);
			printf("\n");
		}
	}
	free(cov);
}

// Assembly:
cmpw $0x100, (%rdi)          # imm = 0x100
jne 0x414cc
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r12
movq %rdi, %rbx
movzwl 0x2(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %edi
addq %rbx, %rdi
xorl %esi, %esi
callq 0x417ca
movq %rax, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movzwl 0x4(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movq %rax, 0x18(%rsp)
leaq 0x31875(%rip), %r14     # 0x72be0
leaq 0x12a08(%rip), %rbp     # 0x53d7a
xorl %r13d, %r13d
movq %r12, 0x20(%rsp)
cmpq 0x18(%rsp), %r13
je 0x414cd
movq 0x10(%rsp), %rcx
movzwl 0x6(%rcx,%r13,2), %eax
rolw $0x8, %ax
movzwl %ax, %eax
leaq (%rcx,%rax), %rdx
movzwl (%rcx,%rax), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movq %rax, 0x38(%rsp)
xorl %eax, %eax
movq %r13, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
cmpq 0x38(%rsp), %rax
je 0x414c4
movq %rax, 0x40(%rsp)
movzwl 0x2(%rdx,%rax,2), %eax
rolw $0x8, %ax
movzwl %ax, %r15d
movzwl 0x2(%rdx,%r15), %eax
rolw $0x8, %ax
movzwl %ax, %ebx
testq %r12, %r12
je 0x41402
movl 0xc0(%r12), %eax
subl %ebx, %eax
addl 0xc4(%r12), %eax
addl 0xc8(%r12), %eax
jmp 0x41404
xorl %eax, %eax
addq %rdx, %r15
leal 0x1(%rbx), %edx
addl %eax, %edx
leaq 0x1294d(%rip), %rdi     # 0x53d60
leaq 0x5b17d6(%rip), %rsi    # 0x5f2bf0
xorl %eax, %eax
callq 0x3d0c0
movq %r12, %rdi
callq 0x41880
movq 0x8(%rsp), %rax
movslq (%rax,%r13,4), %rsi
shlq $0x6, %rsi
addq %r14, %rsi
movq %rbp, %rdi
xorl %eax, %eax
callq 0x3d0c0
cmpl $0x1, %ebx
movl %ebx, %r13d
adcl $-0x1, %r13d
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x41477
movzwl 0x4(%r15,%r12,2), %eax
rolw $0x8, %ax
movzwl %ax, %esi
shll $0x6, %esi
addq %r14, %rsi
movq %rbp, %rdi
xorl %eax, %eax
callq 0x3d0c0
incq %r12
jmp 0x41450
movzwl (%r15), %eax
rolw $0x8, %ax
movzwl %ax, %esi
shll $0x6, %esi
addq %r14, %rsi
leaq 0x128e0(%rip), %rdi     # 0x53d6f
xorl %eax, %eax
callq 0x3d0c0
movq 0x20(%rsp), %r12
movq %r12, %rdi
movl %ebx, %esi
callq 0x418e6
pushq $0xa
popq %rdi
callq 0x3d040
movq 0x40(%rsp), %rax
incq %rax
movq 0x30(%rsp), %r13
movq 0x28(%rsp), %rdx
jmp 0x413b7
incq %r13
jmp 0x4137a
retq
movq 0x8(%rsp), %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3d030
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: otf_unsupported
static void otf_unsupported(char *sub, int type, int fmt)
{
	if (mkfn_warn) {
		fprintf(stderr, "neatmkfn: unsupported %s lookup %d", sub, type);
		if (fmt > 0)
			fprintf(stderr, " format %d", fmt);
		fprintf(stderr, "\n");
	}
}

// Assembly:
leaq 0x2d6b4(%rip), %rax     # 0x6eba0
cmpl $0x0, (%rax)
jne 0x414f2
retq
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ecx
movq %rdi, %rdx
movq 0x27aec(%rip), %r14     # 0x68ff0
movq (%r14), %rdi
leaq 0x1287c(%rip), %rsi     # 0x53d8a
xorl %eax, %eax
callq 0x3d160
testl %ebx, %ebx
jg 0x4152b
movq (%r14), %rsi
pushq $0xa
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3d100
movq (%r14), %rdi
leaq 0x12878(%rip), %rsi     # 0x53dad
movl %ebx, %edx
xorl %eax, %eax
callq 0x3d160
jmp 0x41519
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: otf_lang
static int otf_lang(struct otf *otf, void *gtab, void *lang, char *stag, char *ltag,
		struct otflookup *lookups, int lookups_n)
{
	void *feats = gtab + U16(gtab, 6);
	int featidx = U16(lang, 2);
	int nfeat = U16(lang, 4);
	int i;
	if (featidx != 0xffff)
		lookups_n = otf_featrec(otf, gtab, feats + 2 + 6 * featidx,
				stag, ltag, lookups, lookups_n);
	for (i = 0; i < nfeat; i++)
		lookups_n = otf_featrec(otf, gtab, feats + 2 + 6 * U16(lang, 6 + 2 * i),
				stag, ltag, lookups, lookups_n);
	return lookups_n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %eax
movzwl 0x6(%rdi), %r9d
rolw $0x8, %r9w
movzwl %r9w, %ebp
addq %rdi, %rbp
movzwl 0x2(%rsi), %r9d
movq %rsi, 0x10(%rsp)
movzwl 0x4(%rsi), %ebx
rolw $0x8, %bx
cmpw $-0x1, %r9w
movq %rdi, 0x8(%rsp)
je 0x415a7
rolw $0x8, %r9w
movzwl %r9w, %esi
imulq $0x6, %rsi, %rsi
addq %rbp, %rsi
addq $0x2, %rsi
movq %rdx, %r13
movq %rcx, %r12
movq %r8, %r15
movl %eax, %r9d
callq 0x4166d
jmp 0x415b0
movq %rdx, %r13
movq %rcx, %r12
movq %r8, %r15
addq $0x2, %rbp
movzwl %bx, %ebx
xorl %r14d, %r14d
cmpq %r14, %rbx
je 0x415f3
movq 0x10(%rsp), %rcx
movzwl 0x6(%rcx,%r14,2), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
imulq $0x6, %rcx, %rsi
addq %rbp, %rsi
movq 0x8(%rsp), %rdi
movq %r13, %rdx
movq %r12, %rcx
movq %r15, %r8
movl %eax, %r9d
callq 0x4166d
incq %r14
jmp 0x415ba
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: lookupcmp
static int lookupcmp(void *v1, void *v2)
{
	struct otflookup *l1 = v1;
	struct otflookup *l2 = v2;
	if (strcmp(l1->scrp, l2->scrp))
		return strcmp(l1->scrp, l2->scrp);
	if (mkfn_featrank(l1->scrp, l1->feat) != mkfn_featrank(l1->scrp, l2->feat))
		return mkfn_featrank(l1->scrp, l1->feat) - mkfn_featrank(l1->scrp, l2->feat);
	return l1->lookup - l2->lookup;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
callq 0x3d150
movl %eax, %ebp
testl %eax, %eax
jne 0x41662
leaq 0x10(%rbx), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3d497
movl %eax, %ebp
leaq 0x10(%r14), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3d497
cmpl %eax, %ebp
jne 0x41648
movl 0x18(%rbx), %ebp
subl 0x18(%r14), %ebp
jmp 0x41662
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3d497
movl %eax, %ebp
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3d497
subl %eax, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: otf_featrec
static int otf_featrec(struct otf *otf, void *gtab, void *featrec,
			char *stag, char *ltag,
			struct otflookup *lookups, int lookups_n)
{
	void *feats = gtab + U16(gtab, 6);
	void *feat = feats + U16(featrec, 4);
	char ftag[8] = "";
	int n = U16(feat, 2);
	int i, j;
	memcpy(ftag, featrec, 4);
	for (i = 0; i < n; i++) {
		int lookup = U16(feat, 4 + 2 * i);	/* lookup index */
		/* do not store features common to all languages in a script */
		for (j = 0; j < lookups_n; j++)
			if (lookups[j].lookup == lookup && !lookups[j].lang[0])
				if (!strcmp(lookups[j].scrp, stag) &&
						!strcmp(lookups[j].feat, ftag))
					break;
		if (j == lookups_n) {
			strcpy(lookups[j].feat, ftag);
			strcpy(lookups[j].scrp, stag);
			strcpy(lookups[j].lang, ltag);
			lookups[j].lookup = U16(feat, 4 + 2 * i);
			lookups_n++;
		}
	}
	return lookups_n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r9d, %r14d
movq %rcx, 0x18(%rsp)
movq %rdx, %r12
movzwl 0x6(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
addq %rdi, %rax
movzwl 0x4(%rsi), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
leaq (%rax,%rcx), %rdx
movq %rdx, 0x8(%rsp)
leaq 0x10(%rsp), %rdx
andq $0x0, (%rdx)
movzwl 0x2(%rcx,%rax), %eax
rolw $0x8, %ax
movl (%rsi), %ecx
movl %ecx, (%rdx)
movzwl %ax, %eax
movq %rax, 0x30(%rsp)
movq %r8, 0x20(%rsp)
leaq 0x10(%r8), %rax
movq %rax, 0x28(%rsp)
xorl %r13d, %r13d
cmpq 0x30(%rsp), %r13
je 0x417b8
movq 0x8(%rsp), %rax
movzwl 0x4(%rax,%r13,2), %eax
rolw $0x8, %ax
movzwl %ax, %r15d
testl %r14d, %r14d
movl $0x0, %ebx
movl %r14d, 0x4(%rsp)
cmovgl %r14d, %ebx
movq 0x28(%rsp), %rbp
xorl %r14d, %r14d
cmpq %r14, %rbx
je 0x4174c
cmpl %r15d, 0x8(%rbp)
jne 0x41740
cmpb $0x0, -0x8(%rbp)
jne 0x41740
leaq -0x10(%rbp), %rdi
movq %r12, %rsi
callq 0x3d150
testl %eax, %eax
jne 0x41740
movq %rbp, %rdi
leaq 0x10(%rsp), %rsi
callq 0x3d150
testl %eax, %eax
je 0x41749
incq %r14
addq $0x1c, %rbp
jmp 0x4170e
movl %r14d, %ebx
movl 0x4(%rsp), %r14d
cmpl %r14d, %ebx
jne 0x417b0
movl %r14d, %eax
imulq $0x1c, %rax, %rbx
movq 0x20(%rsp), %r15
leaq (%r15,%rbx), %rbp
leaq (%r15,%rbx), %rdi
addq $0x10, %rdi
leaq 0x10(%rsp), %rsi
callq 0x3d060
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3d060
leaq (%r15,%rbx), %rbp
addq $0x8, %rbp
movq %rbp, %rdi
movq 0x18(%rsp), %rsi
callq 0x3d060
movq 0x8(%rsp), %rax
movzwl 0x4(%rax,%r13,2), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x10(%rbp)
incl %r14d
incq %r13
jmp 0x416d7
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: coverage
static int *coverage(void *cov, int *ncov)
{
	int fmt = U16(cov, 0);
	int n = U16(cov, 2);
	int beg, end;
	int i, j;
	int *out = malloc(glyph_n * sizeof(*out));
	int cnt = 0;
	if (fmt == 1) {
		for (i = 0; i < n; i++)
			out[cnt++] = U16(cov, 4 + 2 * i);
	}
	if (fmt == 2) {
		for (i = 0; i < n; i++) {
			beg = U16(cov, 4 + 6 * i);
			end = U16(cov, 4 + 6 * i + 2);
			for (j = beg; j <= end; j++)
				out[cnt++] = j;
		}
	}
	if (ncov)
		*ncov = cnt;
	return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movzwl 0x2(%rdi), %eax
rolw $0x8, %ax
movzwl (%rdi), %ebp
movzwl %ax, %r15d
movl 0x313e8(%rip), %edi     # 0x72bd4
shlq $0x2, %rdi
callq 0x3d180
xorl %edx, %edx
movl %r15d, %ecx
cmpw $0x100, %bp             # imm = 0x100
jne 0x41820
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x4181d
movzwl 0x4(%r14,%rdx,2), %esi
rolw $0x8, %si
movzwl %si, %esi
movl %esi, (%rax,%rdx,4)
incq %rdx
jmp 0x41803
movl %r15d, %edx
cmpw $0x200, %bp             # imm = 0x200
jne 0x4186e
xorl %esi, %esi
cmpq %rcx, %rsi
je 0x4186e
imulq $0x6, %rsi, %rdi
movzwl 0x4(%r14,%rdi), %r8d
movzwl 0x6(%r14,%rdi), %r9d
rolw $0x8, %r8w
rolw $0x8, %r9w
movzwl %r8w, %edi
movzwl %r9w, %r8d
movslq %edx, %r9
leaq (%rax,%r9,4), %r9
cmpl %r8d, %edi
ja 0x41869
movl %edi, (%r9)
incl %edi
incl %edx
addq $0x4, %r9
jmp 0x41857
incq %rsi
jmp 0x41829
testq %rbx, %rbx
je 0x41875
movl %edx, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: gctx_backtrack
static void gctx_backtrack(struct gctx *ctx)
{
	int i;
	if (!ctx)
		return;
	for (i = 0; i < ctx->bn; i++)
		printf(" =@%d", ctx->bgrp[i]);
	for (i = 0; i < ctx->seqidx; i++)
		printf(" =@%d", ctx->igrp[i]);
}

// Assembly:
testq %rdi, %rdi
je 0x418e5
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x124e0(%rip), %r14     # 0x53d74
xorl %r15d, %r15d
movslq 0xc0(%rbx), %rax
cmpq %rax, %r15
jge 0x418b6
movl (%rbx,%r15,4), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x3d0c0
incq %r15
jmp 0x41897
leaq 0x124b7(%rip), %r14     # 0x53d74
xorl %r15d, %r15d
movslq 0xcc(%rbx), %rax
cmpq %rax, %r15
jge 0x418e0
movl 0x40(%rbx,%r15,4), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x3d0c0
incq %r15
jmp 0x418c0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: gctx_lookahead
static void gctx_lookahead(struct gctx *ctx, int patlen)
{
	int i;
	if (!ctx)
		return;
	for (i = ctx->seqidx + patlen; i < ctx->in; i++)
		printf(" =@%d", ctx->igrp[i]);
	for (i = 0; i < ctx->ln; i++)
		printf(" =@%d", ctx->lgrp[i]);
}

// Assembly:
testq %rdi, %rdi
je 0x41955
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
addl 0xcc(%rdi), %esi
movslq %esi, %r15
leaq 0x12471(%rip), %r14     # 0x53d74
movslq 0xc4(%rbx), %rax
cmpq %rax, %r15
jge 0x41923
movl 0x40(%rbx,%r15,4), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x3d0c0
incq %r15
jmp 0x41903
leaq 0x1244a(%rip), %r14     # 0x53d74
xorl %r15d, %r15d
movslq 0xc8(%rbx), %rax
cmpq %rax, %r15
jge 0x41950
movl 0x80(%rbx,%r15,4), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x3d0c0
incq %r15
jmp 0x4192d
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: ggrp_make
static int ggrp_make(int *src, int n)
{
	int id = ggrp_find(src, n);
	int i;
	if (id >= 0)
		return id;
	id = ggrp_n++;
	ggrp_g[id] = malloc(n * sizeof(ggrp_g[id][0]));
	ggrp_len[id] = n;
	for (i = 0; i < n; i++)
		ggrp_g[id][i] = src[i];
	printf("ggrp %d %d", id, n);
	for (i = 0; i < n; i++)
		printf(" %s", glyph_name[src[i]]);
	printf("\n");
	return id;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %r14
movl 0x5b1263(%rip), %r8d    # 0x5f2c00
movslq %r8d, %r15
xorl %eax, %eax
testl %esi, %esi
movl $0x0, %r12d
cmovgl %esi, %r12d
testl %r15d, %r15d
movl $0x0, %ecx
cmovgl %r8d, %ecx
leaq 0x5b524f(%rip), %r13    # 0x5f6c10
leaq 0x5b1248(%rip), %rbx    # 0x5f2c10
cmpq %rcx, %rax
je 0x419fd
cmpl %ebp, (%r13,%rax,4)
jne 0x419f8
xorl %edx, %edx
cmpq %rdx, %r12
je 0x419ed
movl (%r14,%rdx,4), %esi
movq (%rbx,%rax,8), %rdi
cmpl (%rdi,%rdx,4), %esi
jne 0x419f0
incq %rdx
jmp 0x419d6
movl %r12d, %edx
cmpl %ebp, %edx
je 0x41a86
incq %rax
jmp 0x419c8
leal 0x1(%r15), %eax
movl %eax, 0x5b11f9(%rip)    # 0x5f2c00
movslq %ebp, %rdi
shlq $0x2, %rdi
movl %r8d, 0x4(%rsp)
callq 0x3d180
movl 0x4(%rsp), %esi
movq %rax, (%rbx,%r15,8)
movl %ebp, (%r13,%r15,4)
xorl %ecx, %ecx
cmpq %rcx, %r12
je 0x41a38
movl (%r14,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
incq %rcx
jmp 0x41a27
leaq 0x12340(%rip), %rdi     # 0x53d7f
movl %ebp, %edx
xorl %eax, %eax
callq 0x3d0c0
leaq 0x31191(%rip), %rbx     # 0x72be0
leaq 0x1236b(%rip), %r15     # 0x53dc1
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x41a78
movslq (%r14,%r13,4), %rsi
shlq $0x6, %rsi
addq %rbx, %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x3d0c0
incq %r13
jmp 0x41a59
pushq $0xa
popq %rdi
callq 0x3d040
movl 0x4(%rsp), %eax
jmp 0x41a86
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: valuerecord_len
static int valuerecord_len(int fmt)
{
	int off = 0;
	int i;
	for (i = 0; i < 8; i++)
		if (fmt & (1 << i))
			off += 2;
	return off;
}

// Assembly:
xorl %eax, %eax
xorl %ecx, %ecx
cmpl $0x8, %ecx
je 0x41aad
leal 0x2(%rax), %edx
btl %ecx, %edi
cmovael %eax, %edx
incl %ecx
movl %edx, %eax
jmp 0x41a99
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: valuerecord_small
static int valuerecord_small(int fmt, void *rec)
{
	int off = 0;
	int i;
	for (i = 0; i < 8; i++) {
		if (fmt & (1 << i)) {
			if (abs(uwid(S16(rec, off))) >= MAX(1, mkfn_kmin))
				return 0;
			off += 2;
		}
	}
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebp
leaq 0x2d0d3(%rip), %rax     # 0x6eb98
movl (%rax), %r15d
cmpl $0x2, %r15d
pushq $0x1
popq %rbx
cmovll %ebx, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpl $0x8, %r13d
je 0x41b10
btl %r13d, %ebp
jae 0x41b09
movslq %r12d, %rax
movzwl (%r14,%rax), %eax
rolw $0x8, %ax
movswl %ax, %edi
callq 0x40a75
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
cmpl %r15d, %ecx
jae 0x41b0e
addl $0x2, %r12d
incl %r13d
jmp 0x41ad9
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: valuerecord_print
static void valuerecord_print(int fmt, void *rec)
{
	int vals[8] = {0};
	int off = 0;
	int i;
	for (i = 0; i < 8; i++) {
		if (fmt & (1 << i)) {
			vals[i] = uwid(S16(rec, off));
			off += 2;
		}
	}
	if (fmt)
		printf(":%+d%+d%+d%+d", vals[0], vals[1], vals[2], vals[3]);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movl %edi, %ebx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
xorl %r15d, %r15d
xorl %r12d, %r12d
cmpq $0x8, %r15
je 0x41b70
btl %r15d, %ebx
jae 0x41b6b
movslq %r12d, %r12
movzwl (%r14,%r12), %eax
rolw $0x8, %ax
movswl %ax, %edi
callq 0x40a75
movl %eax, (%rsp,%r15,4)
addl $0x2, %r12d
incq %r15
jmp 0x41b43
testl %ebx, %ebx
je 0x41b9d
movl (%rsp), %esi
movl 0x4(%rsp), %edx
movl 0x8(%rsp), %ecx
movl 0xc(%rsp), %r8d
leaq 0x1223a(%rip), %rdi     # 0x53dc5
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x3d0c0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: classdef
static int classdef(void *tab, int *gl, int *cls)
{
	int fmt = U16(tab, 0);
	int ngl = 0;
	int i, j;
	if (fmt == 1) {
		int beg = U16(tab, 2);
		ngl = U16(tab, 4);
		for (i = 0; i < ngl; i++) {
			gl[i] = beg + i;
			cls[i] = U16(tab, 6 + 2 * i);
		}
	}
	if (fmt == 2) {
		int n = U16(tab, 2);
		for (i = 0; i < n; i++) {
			int beg = U16(tab, 4 + 6 * i);
			int end = U16(tab, 4 + 6 * i + 2);
			for (j = beg; j <= end; j++) {
				gl[ngl] = j;
				cls[ngl] = U16(tab, 4 + 6 * i + 4);
				ngl++;
			}
		}
	}
	return ngl;
}

// Assembly:
movzwl (%rdi), %ecx
xorl %eax, %eax
cmpw $0x100, %cx             # imm = 0x100
jne 0x41bf6
movzwl 0x2(%rdi), %r8d
movzwl 0x4(%rdi), %eax
rolw $0x8, %r8w
rolw $0x8, %ax
movzwl %ax, %eax
movzwl %r8w, %r8d
xorl %r9d, %r9d
cmpq %r9, %rax
je 0x41bf6
leal (%r8,%r9), %r10d
movl %r10d, (%rsi,%r9,4)
movzwl 0x6(%rdi,%r9,2), %r10d
rolw $0x8, %r10w
movzwl %r10w, %r10d
movl %r10d, (%rdx,%r9,4)
incq %r9
jmp 0x41bd1
cmpw $0x200, %cx             # imm = 0x200
jne 0x41c7a
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movzwl 0x2(%rdi), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
xorl %r8d, %r8d
cmpq %rcx, %r8
je 0x41c72
imulq $0x6, %r8, %r9
movzwl 0x4(%rdi,%r9), %ebp
movzwl 0x6(%rdi,%r9), %r10d
rolw $0x8, %bp
rolw $0x8, %r10w
movzwl %r10w, %r10d
movslq %eax, %rbx
leaq (%rsi,%rbx,4), %r11
leaq (%rdx,%rbx,4), %rbx
movzwl %bp, %r15d
xorl %r14d, %r14d
leaq (%r15,%r14), %r12
cmpl %r10d, %r12d
ja 0x41c6a
movl %r12d, (%r11,%r14,4)
movzwl 0x8(%rdi,%r9), %ebp
rolw $0x8, %bp
movzwl %bp, %ebp
movl %ebp, (%rbx,%r14,4)
incq %r14
jmp 0x41c47
addl %r14d, %eax
incq %r8
jmp 0x41c13
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/otf.c
// Function: ggrp_class
static int ggrp_class(int *src, int *cls, int nsrc, int id)
{
	int *g = malloc(nsrc * sizeof(g[0]));
	int n = 0;
	int i;
	int grp;
	for (i = 0; i < nsrc; i++)
		if (cls[i] == id)
			g[n++] = src[i];
	qsort(g, n, sizeof(g[0]), (void *) intcmp);
	grp = ggrp_make(g, n);
	free(g);
	return grp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movslq %edx, %r13
leaq (,%r13,4), %rdi
callq 0x3d180
movq %rax, %rbx
xorl %eax, %eax
testl %r13d, %r13d
cmovlel %eax, %r13d
xorl %ecx, %ecx
movslq %ecx, %r12
cmpq %rax, %r13
je 0x41ccc
cmpl %ebp, (%r14,%rax,4)
jne 0x41cc7
movl (%r15,%rax,4), %edx
leal 0x1(%r12), %ecx
movl %edx, (%rbx,%r12,4)
incq %rax
jmp 0x41cac
leaq -0x352(%rip), %rcx      # 0x41981
pushq $0x4
popq %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3d080
movq %rbx, %rdi
movl %r12d, %esi
callq 0x41986
movl %eax, %ebp
movq %rbx, %rdi
callq 0x3d030
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq