// File: /workspace/github_c_makefile_star2_O2/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
movq %rsi, %rbx
movl %edi, %ebp
pushq $0x1
popq %r15
leaq 0x4a78(%rip), %r14      # 0x4206a
leaq 0x4a0b(%rip), %r13      # 0x42004
movl %r15d, %r12d
cmpl %ebp, %r15d
jge 0x3d7e7
movslq %r15d, %rax
movq (%rbx,%rax,8), %rsi
cmpb $0x2d, (%rsi)
jne 0x3d7e7
movzbl 0x1(%rsi), %ecx
leal -0x61(%rcx), %edx
cmpl $0x16, %edx
ja 0x3d634
movslq (%r13,%rdx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
pushq $0x1
popq %r12
jmp 0x3d7df
cmpl $0x46, %ecx
je 0x3d70a
cmpl $0x4c, %ecx
je 0x3d71d
cmpl $0x53, %ecx
jne 0x3d83d
cmpb $0x0, 0x2(%rsi)
je 0x3d7bb
addq $0x2, %rsi
jmp 0x3d7c3
cmpb $0x0, 0x2(%rsi)
je 0x3d730
addq $0x2, %rsi
jmp 0x3d738
xorl %r12d, %r12d
jmp 0x3d7df
movl $0x1, 0x31509(%rip)     # 0x6eb90
jmp 0x3d7df
movl $0x1, 0x3150a(%rip)     # 0x6eba0
jmp 0x3d7df
cmpb $0x0, 0x2(%rsi)
je 0x3d744
addq $0x2, %rsi
jmp 0x3d74c
movl $0x1, 0x314e4(%rip)     # 0x6eb9c
jmp 0x3d7df
andl $0x0, 0x2ba50(%rip)     # 0x69114
jmp 0x3d7df
movl $0x1, 0x314c1(%rip)     # 0x6eb94
jmp 0x3d7df
cmpb $0x0, 0x2(%rsi)
je 0x3d758
addq $0x2, %rsi
jmp 0x3d760
cmpb $0x0, 0x2(%rsi)
je 0x3d770
addq $0x2, %rsi
jmp 0x3d778
cmpb $0x0, 0x2(%rsi)
je 0x3d788
addq $0x2, %rsi
jmp 0x3d790
cmpb $0x0, 0x2(%rsi)
je 0x3d799
addq $0x2, %rsi
jmp 0x3d7a1
cmpb $0x0, 0x2(%rsi)
je 0x3d7aa
addq $0x2, %rsi
jmp 0x3d7b2
incl %r15d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, 0x31441(%rip)     # 0x6eb80
jmp 0x3d7df
incl %r15d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, 0x31435(%rip)     # 0x6eb88
jmp 0x3d7df
incl %r15d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, %rdi
callq 0x3d1b0
movl %eax, 0x3142a(%rip)     # 0x6eb98
jmp 0x3d7df
incl %r15d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, %rdi
callq 0x3d1b0
movl %eax, 0x2b98a(%rip)     # 0x69110
jmp 0x3d7df
incl %r15d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, 0x313e1(%rip)     # 0x6eb78
jmp 0x3d7df
incl %r15d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, 0x313b8(%rip)     # 0x6eb60
jmp 0x3d7ca
incl %r15d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, 0x31397(%rip)     # 0x6eb50
jmp 0x3d7ca
incl %r15d
movq 0x8(%rbx,%rax,8), %rsi
movq %rsi, 0x3137e(%rip)     # 0x6eb48
movq %r14, %rdi
callq 0x3d150
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, 0x31391(%rip)     # 0x6eb70
incl %r15d
jmp 0x3d5fc
callq 0x3e1ff
testl %r12d, %r12d
je 0x3d7f8
callq 0x3e75c
jmp 0x3d7fd
callq 0x40ab2
testl %eax, %eax
jne 0x3d817
callq 0x3e297
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2b7d2(%rip), %rax     # 0x68ff0
movq (%rax), %rcx
leaq 0x4861(%rip), %rdi      # 0x42089
pushq $0x20
popq %rsi
pushq $0x1
popq %rdx
callq 0x3d1d0
callq 0x3e297
pushq $0x1
popq %rax
jmp 0x3d808
movq 0x2b7ac(%rip), %rax     # 0x68ff0
movq (%rax), %rsi
leaq 0x4bc2(%rip), %rdi      # 0x42410
callq 0x3d0e0
jmp 0x3d838
nopl (%rax)