// File: /workspace/github_c_makefile_star2_O1/aligrudi[P]neatmkfn/mkfn.c
// Function: main
int main(int argc, char *argv[])
{
	int afm = 1;
	int i;
	for (i = 1; i < argc && argv[i][0] == '-'; i++) {
		switch (argv[i][1]) {
		case 'a':
			afm = 1;
			break;
		case 'b':
			mkfn_bbox = 1;
			break;
		case 'f':
			mkfn_path = argv[i][2] ? argv[i] + 2 : argv[++i];
			break;
		case 'F':
			mkfn_subfont = argv[i][2] ? argv[i] + 2 : argv[++i];
			mkfn_dry = !strcmp("list", mkfn_subfont);
			break;
		case 'k':
			mkfn_kmin = atoi(argv[i][2] ? argv[i] + 2 : argv[++i]);
			break;
		case 'l':
			mkfn_noligs = 1;
			break;
		case 'L':
			mkfn_langs = argv[i][2] ? argv[i] + 2 : argv[++i];
			mkfn_dry = !strcmp("list", mkfn_langs);
			break;
		case 'n':
			mkfn_pos = 0;
			break;
		case 'o':
			afm = 0;
			break;
		case 'p':
			mkfn_psname = argv[i][2] ? argv[i] + 2 : argv[++i];
			break;
		case 'r':
			mkfn_res = atoi(argv[i][2] ? argv[i] + 2 : argv[++i]);
			break;
		case 's':
			mkfn_special = 1;
			break;
		case 'S':
			mkfn_scripts = argv[i][2] ? argv[i] + 2 : argv[++i];
			mkfn_dry = !strcmp("list", mkfn_scripts);
			break;
		case 't':
			mkfn_trname = argv[i][2] ? argv[i] + 2 : argv[++i];
			break;
		case 'w':
			mkfn_warn = 1;
			break;
		default:
			fprintf(stderr, "%s", usage);
			return 1;
		}
	}
	trfn_init();
	if ((afm ? afm_read() : otf_read())) {
		fprintf(stderr, "neatmkfn: cannot parse the font\n");
		trfn_done();
		return 1;
	}
	trfn_done();
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x2, %edi
jl 0x3d8b2
movq %rsi, %rbx
movl %edi, %ebp
movl $0x1, %r13d
leaq 0x59d8(%rip), %r14      # 0x4306a
leaq 0x596b(%rip), %r12      # 0x43004
movl $0x1, %r15d
movslq %r13d, %rax
movq (%rbx,%rax,8), %rsi
cmpb $0x2d, (%rsi)
jne 0x3d8a1
movzbl 0x1(%rsi), %ecx
cmpl $0x60, %ecx
jle 0x3d6d8
addl $-0x61, %ecx
cmpl $0x16, %ecx
ja 0x3d8e2
movslq (%r12,%rcx,4), %rcx
addq %r12, %rcx
jmpq *%rcx
movl $0x1, %r15d
jmp 0x3d895
cmpl $0x46, %ecx
je 0x3d7b8
cmpl $0x4c, %ecx
je 0x3d7cb
cmpl $0x53, %ecx
jne 0x3d8e2
cmpb $0x0, 0x2(%rsi)
je 0x3d870
addq $0x2, %rsi
jmp 0x3d879
movl $0x1, 0x32480(%rip)     # 0x6fb90
jmp 0x3d895
cmpb $0x0, 0x2(%rsi)
je 0x3d7de
addq $0x2, %rsi
jmp 0x3d7e7
cmpb $0x0, 0x2(%rsi)
je 0x3d7f3
addq $0x2, %rsi
jmp 0x3d7fc
movl $0x1, 0x3243b(%rip)     # 0x6fb80
jmp 0x3d895
cmpb $0x0, 0x2(%rsi)
je 0x3d808
addq $0x2, %rsi
jmp 0x3d811
movl $0x1, 0x3241d(%rip)     # 0x6fb84
jmp 0x3d895
cmpb $0x0, 0x2(%rsi)
je 0x3d821
addq $0x2, %rsi
jmp 0x3d82a
movl $0x1, 0x32403(%rip)     # 0x6fb8c
jmp 0x3d895
cmpb $0x0, 0x2(%rsi)
je 0x3d833
addq $0x2, %rsi
jmp 0x3d83c
movl $0x0, 0x2c959(%rip)     # 0x6a104
jmp 0x3d895
xorl %r15d, %r15d
jmp 0x3d895
cmpb $0x0, 0x2(%rsi)
je 0x3d84c
addq $0x2, %rsi
jmp 0x3d855
cmpb $0x0, 0x2(%rsi)
je 0x3d85e
addq $0x2, %rsi
jmp 0x3d867
leal 0x1(%rax), %r13d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, 0x32382(%rip)     # 0x6fb70
jmp 0x3d895
leal 0x1(%rax), %r13d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, 0x32375(%rip)     # 0x6fb78
jmp 0x3d895
leal 0x1(%rax), %r13d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, %rdi
callq 0x3d190
movl %eax, 0x32369(%rip)     # 0x6fb88
jmp 0x3d895
leal 0x1(%rax), %r13d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, 0x32337(%rip)     # 0x6fb68
jmp 0x3d895
leal 0x1(%rax), %r13d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, %rdi
callq 0x3d190
movl %eax, 0x2c8b6(%rip)     # 0x6a100
jmp 0x3d895
leal 0x1(%rax), %r13d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, 0x322f4(%rip)     # 0x6fb50
jmp 0x3d880
leal 0x1(%rax), %r13d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, 0x322d2(%rip)     # 0x6fb40
jmp 0x3d880
leal 0x1(%rax), %r13d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, 0x322b8(%rip)     # 0x6fb38
movq %r14, %rdi
callq 0x3d140
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, 0x322cb(%rip)     # 0x6fb60
incl %r13d
cmpl %ebp, %r13d
jl 0x3d69f
callq 0x3e2db
testl %r15d, %r15d
jne 0x3d8b7
callq 0x4133c
jmp 0x3d8bc
callq 0x3e2db
callq 0x3e884
testl %eax, %eax
jne 0x3d8d6
callq 0x3e371
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3d1f0
movl $0x1, %eax
jmp 0x3d8c7
callq 0x3d213
jmp 0x3d8db
nopl (%rax)