// File: /workspace/github_c_makefile_star2_O2/aligrudi[P]neatmkfn/trfn.c
// Function: mkfn_char
void mkfn_char(char *psname, int n, int u, int wid,
		int llx, int lly, int urx, int ury)
{
	char uc[GNLEN];			/* mapping unicode character */
	char **a_tr;			/* troff character names */
	char pos[GNLEN] = "";		/* postscript character position/name */
	int typ;			/* character type */
	/* initializing character attributes */
	if (trfn_name(uc, psname, u))
		strcpy(uc, "---");
	trfn_aglexceptions(uc);
	if (mkfn_pos && n >= 0 && n < 256)
		sprintf(pos, "%d", n);
	if (mkfn_pos && n < 0 && !uc[1] && uc[0] >= 32 && uc[0] <= 125)
		if (!strchr(psname, '.'))
			sprintf(pos, "%d", uc[0]);
	typ = trfn_type(!strchr(psname, '.') ? uc : "", lly, ury);
	if (!mkfn_swid && (!strcmp(" ", uc) || !strcmp(" ", uc)))
		mkfn_swid = wid;
	/* printing troff charset */
	if (isspace((unsigned char) uc[0]) || strchr(uc, ' '))
		strcpy(uc, "---");	/* space not allowed in char names */
	if (strcmp("---", uc))
		trfn_lig(uc);
	sbuf_printf(sbuf_char, "char %s\t%d", uc, wid);
	if (mkfn_bbox && (llx || lly || urx || ury))
		sbuf_printf(sbuf_char, ",%d,%d,%d,%d", llx, lly, urx, ury);
	sbuf_printf(sbuf_char, "\t%d\t%s\t%s\n", typ, psname, pos);
	a_tr = tab_get(tab_alts, uc);
	while (a_tr && *a_tr)
		sbuf_printf(sbuf_char, "char %s\t\"\n", *a_tr++);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movl %r8d, 0x2c(%rsp)
movl %ecx, 0x24(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x110(%rsp)
movaps %xmm0, 0x100(%rsp)
movaps %xmm0, 0xf0(%rsp)
movaps %xmm0, 0xe0(%rsp)
leaq 0x30(%rsp), %rbx
movq %rbx, 0x70(%rsp)
movq %rbx, 0x18(%rsp)
testl %edx, %edx
movq %rdi, 0x10(%rsp)
movl %r9d, 0xc(%rsp)
movl %esi, 0x28(%rsp)
je 0x3d8c7
movl %r9d, %r14d
leaq 0x70(%rsp), %rdi
movl %edx, %esi
callq 0x3e2c4
jmp 0x3d8e8
testq %rdi, %rdi
je 0x3d8db
movq 0x10(%rsp), %rax
movb (%rax), %al
cmpb $0x2e, %al
jne 0x3dc0f
movl 0xc(%rsp), %r14d
movl $0x2d2d2d, 0x30(%rsp)   # imm = 0x2D2D2D
movl 0x168(%rsp), %r13d
xorl %r15d, %r15d
leaq 0x29ff6(%rip), %r12     # 0x678f0
leaq 0x30(%rsp), %rbx
cmpq $0x40, %r15
je 0x3d928
movq (%r15,%r12), %rdi
movq %rbx, %rsi
callq 0x3d150
testl %eax, %eax
jne 0x3d922
movq 0x8(%r15,%r12), %rsi
movq %rbx, %rdi
callq 0x3d060
addq $0x10, %r15
jmp 0x3d8ff
leaq 0x2b7e5(%rip), %rbx     # 0x69114
movl (%rbx), %eax
testl %eax, %eax
sete %cl
movl 0x28(%rsp), %ebp
cmpl $0x100, %ebp            # imm = 0x100
setae %dl
orb %cl, %dl
jne 0x3d961
leaq 0x4d97(%rip), %rsi      # 0x426e5
leaq 0xe0(%rsp), %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x3d1c0
movl (%rbx), %eax
testl %eax, %eax
setne %al
testl %ebp, %ebp
sets %cl
movb 0x30(%rsp), %bl
movb 0x31(%rsp), %bpl
testb %bpl, %bpl
sete %dl
andb %cl, %dl
leal -0x20(%rbx), %ecx
cmpb $0x5e, %cl
setb %cl
andb %dl, %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x3d9c6
pushq $0x2e
popq %rsi
movq 0x10(%rsp), %rdi
callq 0x3d0b0
testq %rax, %rax
je 0x3d9a4
xorl %ebp, %ebp
jmp 0x3d9c6
movsbl %bl, %edx
leaq 0x4d37(%rip), %rsi      # 0x426e5
leaq 0xe0(%rsp), %rdi
xorl %eax, %eax
callq 0x3d1c0
movb 0x30(%rsp), %bl
movb 0x31(%rsp), %bpl
movq 0x10(%rsp), %rdi
pushq $0x2e
popq %rsi
callq 0x3d0b0
xorl %edx, %edx
testb %bpl, %bpl
movzbl %bl, %ecx
movl $0x0, %esi
cmovel %ecx, %esi
testb %cl, %cl
movzbl %sil, %ecx
cmovel %edx, %ecx
testq %rax, %rax
cmovnel %edx, %ecx
movl %ecx, %edx
xorl $0x74, %edx
movl 0x351cb(%rip), %eax     # 0x72bc8
orl %eax, %edx
je 0x3da3d
movl %ecx, %edx
andl $-0x2, %edx
cmpl $0x70, %edx
je 0x3da1d
leal -0x67(%rcx), %edx
cmpl $0x12, %edx
ja 0x3da47
movl $0x40009, %esi          # imm = 0x40009
btl %edx, %esi
jae 0x3da47
movl 0x351a9(%rip), %edx     # 0x72bcc
testl %edx, %edx
setne %sil
cmpl %r14d, %edx
setge %dl
testb %dl, %sil
jne 0x3da47
movl %r14d, 0x35191(%rip)    # 0x72bcc
jmp 0x3da47
movl %r13d, 0x35184(%rip)    # 0x72bc8
movl %r13d, %eax
movl 0x3517f(%rip), %edx     # 0x72bcc
testl %edx, %edx
setne %sil
testl %eax, %eax
setne %dil
testb %dil, %sil
je 0x3da71
xorl %ecx, %ecx
cmpl %r14d, %edx
setge %cl
leal 0x2(%rcx), %ebx
cmpl %r13d, %eax
cmovgl %ecx, %ebx
jmp 0x3da8a
leal -0x1(%rcx), %eax
cmpl $0x7e, %eax
ja 0x3da87
movl %ecx, %eax
leaq 0x15f3e(%rip), %rcx     # 0x539c0
movl (%rcx,%rax,4), %ebx
jmp 0x3da8a
pushq $0x3
popq %rbx
leaq 0x31113(%rip), %r15     # 0x6eba4
cmpl $0x0, (%r15)
je 0x3da9e
movb 0x30(%rsp), %bpl
jmp 0x3dac8
movzwl 0x30(%rsp), %ebp
cmpw $0x20, %bp
je 0x3dac1
leaq 0x4c2a(%rip), %rdi      # 0x426da
leaq 0x30(%rsp), %rsi
pushq $0x3
popq %rdx
callq 0x3d1a0
testl %eax, %eax
jne 0x3dac8
movl 0x24(%rsp), %eax
movl %eax, (%r15)
callq 0x3d1f0
movq (%rax), %rax
movzbl %bpl, %ecx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x3daf1
leaq 0x30(%rsp), %rdi
pushq $0x20
popq %rsi
callq 0x3d0b0
testq %rax, %rax
je 0x3dbcc
movl $0x2d2d2d, 0x30(%rsp)   # imm = 0x2D2D2D
movq 0x310b0(%rip), %rdi     # 0x6ebb0
leaq 0x4bd6(%rip), %rsi      # 0x426dd
leaq 0x30(%rsp), %rdx
movl 0x24(%rsp), %ecx
xorl %eax, %eax
callq 0x3e586
leaq 0x31076(%rip), %rax     # 0x6eb94
cmpl $0x0, (%rax)
movl 0x2c(%rsp), %edx
movl 0x160(%rsp), %r8d
je 0x3db57
movl %r14d, %eax
orl %edx, %eax
orl %r8d, %eax
orl %r13d, %eax
je 0x3db57
movq 0x3106d(%rip), %rdi     # 0x6ebb0
leaq 0x4b9e(%rip), %rsi      # 0x426e8
movl %r14d, %ecx
movl %r13d, %r9d
xorl %eax, %eax
callq 0x3e586
movq 0x31052(%rip), %rdi     # 0x6ebb0
leaq 0x4b90(%rip), %rsi      # 0x426f5
leaq 0xe0(%rsp), %r8
movl %ebx, %edx
movq 0x10(%rsp), %rcx
xorl %eax, %eax
callq 0x3e586
movq 0x31036(%rip), %rdi     # 0x6ebb8
leaq 0x30(%rsp), %rsi
callq 0x3e6f9
movq %rax, %rbx
leaq 0x4b6a(%rip), %r14      # 0x42700
testq %rbx, %rbx
je 0x3dbba
movq (%rbx), %rdx
testq %rdx, %rdx
je 0x3dbba
movq 0x31006(%rip), %rdi     # 0x6ebb0
addq $0x8, %rbx
movq %r14, %rsi
xorl %eax, %eax
callq 0x3e586
jmp 0x3db96
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x30(%rsp), %ebp
cmpl $0x2d2d2d, %ebp         # imm = 0x2D2D2D
je 0x3daf9
pushq $0x8
popq %rcx
leaq 0x30(%rsp), %r15
leaq 0x10(%rcx), %r14
cmpq $0x58, %r14
je 0x3dea9
movq (%rcx,%r12), %rdi
movq %r15, %rsi
callq 0x3d150
movq %r14, %rcx
testl %eax, %eax
movl 0xc(%rsp), %r14d
jne 0x3dbe4
jmp 0x3daf9
leaq 0xa1(%rsp), %r14
leaq 0x292f2(%rip), %r12     # 0x66f10
movq 0x10(%rsp), %r13
cmpb $0x5f, %al
je 0x3dc3c
movzbl %al, %eax
testl %eax, %eax
je 0x3dede
cmpl $0x2e, %eax
jne 0x3dc3f
jmp 0x3dede
incq %r13
xorl %r12d, %r12d
movzbl (%r13,%r12), %eax
testl %eax, %eax
je 0x3dc63
cmpl $0x2e, %eax
je 0x3dc63
cmpl $0x5f, %eax
je 0x3dc63
movb %al, 0xa0(%rsp,%r12)
incq %r12
jmp 0x3dc42
movb $0x0, 0xa0(%rsp,%r12)
movq 0x18(%rsp), %rbp
movq %rbp, 0x80(%rsp)
movq 0x34f40(%rip), %rdi     # 0x72bc0
leaq 0xa0(%rsp), %rsi
callq 0x3e6f9
testq %rax, %rax
je 0x3dd03
movq %rax, %r15
testq %rax, %rax
je 0x3dcd5
movb (%r15), %al
testb %al, %al
jne 0x3dcaa
jmp 0x3dcd5
movb 0x1(%r15), %al
incq %r15
cmpb $0x20, %al
je 0x3dca3
movq %r15, %rdi
pushq $0x6
popq %rsi
callq 0x3e357
leaq 0x80(%rsp), %rdi
movl %eax, %esi
callq 0x3e2c4
movq %r15, %rdi
pushq $0x20
popq %rsi
callq 0x3d0b0
jmp 0x3dc92
movq 0x80(%rsp), %rax
movb $0x0, (%rax)
movq %rbp, %rdi
callq 0x3d0a0
addq %rbp, %rax
movq %rax, 0x18(%rsp)
addq %r12, %r13
movb (%r13), %al
leaq 0x29212(%rip), %r12     # 0x66f10
jmp 0x3dc23
movb 0xa0(%rsp), %al
cmpb $0x75, %al
jne 0x3dd69
cmpb $0x6e, 0xa1(%rsp)
jne 0x3dd69
cmpb $0x69, 0xa2(%rsp)
jne 0x3dd69
leaq 0xa3(%rsp), %rdi
pushq $0x4
popq %rsi
callq 0x3e357
testl %eax, %eax
jle 0x3dd6d
leaq 0xa3(%rsp), %r15
movq %r15, %rdi
callq 0x3d0a0
cmpq $0x4, %rax
jb 0x3dcf0
movq %r15, %rdi
pushq $0x4
popq %rsi
callq 0x3e357
leaq 0x18(%rsp), %rdi
movl %eax, %esi
callq 0x3e2c4
addq $0x4, %r15
jmp 0x3dd3e
cmpb $0x75, %al
jne 0x3dd98
movq %r14, %rdi
pushq $0x4
popq %rsi
callq 0x3e357
testl %eax, %eax
jle 0x3dd98
movq %r14, %rdi
pushq $0x6
popq %rsi
callq 0x3e357
leaq 0x18(%rsp), %rdi
movl %eax, %esi
callq 0x3e2c4
jmp 0x3dcf0
pushq $0x18
popq %r14
cmpq $0x9f8, %r14            # imm = 0x9F8
je 0x3d8db
leaq 0x29160(%rip), %rax     # 0x66f10
movq -0x18(%r14,%rax), %rbp
movq %rbp, %rdi
callq 0x3d0a0
movq %rax, %r15
movq %rbp, %rdi
leaq 0xa0(%rsp), %rsi
movq %rax, %rdx
callq 0x3d050
testl %eax, %eax
jne 0x3de3c
cmpb $0x0, 0xa0(%rsp,%r15)
je 0x3de7e
addq %rsp, %r15
addq $0xa0, %r15
leaq 0x496c(%rip), %rdi      # 0x42763
movq %r15, %rsi
callq 0x3d150
testl %eax, %eax
je 0x3de45
leaq 0x4962(%rip), %rdi      # 0x4276c
movq %r15, %rsi
callq 0x3d150
testl %eax, %eax
je 0x3de53
leaq 0x4957(%rip), %rdi      # 0x42774
movq %r15, %rsi
callq 0x3d150
testl %eax, %eax
je 0x3de61
leaq 0x1232a(%rip), %rdi     # 0x5015a
movq %r15, %rsi
callq 0x3d150
testl %eax, %eax
je 0x3de6f
addq $0x20, %r14
jmp 0x3dd9c
leaq 0x290c4(%rip), %rax     # 0x66f10
movl -0xc(%r14,%rax), %esi
jmp 0x3de7a
leaq 0x290b6(%rip), %rax     # 0x66f10
movl -0x8(%r14,%rax), %esi
jmp 0x3de7a
leaq 0x290a8(%rip), %rax     # 0x66f10
movl -0x4(%r14,%rax), %esi
jmp 0x3de7a
leaq 0x2909a(%rip), %rax     # 0x66f10
movl (%r14,%rax), %esi
testl %esi, %esi
jne 0x3de92
leaq 0x2908b(%rip), %rax     # 0x66f10
movl -0x10(%r14,%rax), %esi
testl %esi, %esi
je 0x3d8db
leaq 0x18(%rsp), %rdi
callq 0x3e2c4
leaq 0xa1(%rsp), %r14
jmp 0x3dcf0
testb %bpl, %bpl
setne %al
testw $0xff00, %bp            # imm = 0xFF00
setne %cl
testb %cl, %al
movl 0xc(%rsp), %r14d
je 0x3e11c
leaq 0x30(%rsp), %rdi
callq 0x3d0a0
testb %bpl, %bpl
js 0x3e0e1
pushq $0x1
jmp 0x3e107
movq %rbx, 0x78(%rsp)
leaq 0x4850(%rip), %rdi      # 0x4273a
movq %r13, %rsi
callq 0x3d150
testl %eax, %eax
je 0x3df21
leaq 0x4843(%rip), %rdi      # 0x42740
movq %r13, %rsi
callq 0x3d150
testl %eax, %eax
sete %bpl
leaq 0x4834(%rip), %rdi      # 0x42746
movq %r13, %rsi
callq 0x3d150
testl %eax, %eax
sete %al
jmp 0x3df26
movb $0x1, %bpl
movb $0x1, %al
xorl %esi, %esi
pushq $0x8
popq %rdx
pushq $0x1
popq %rdi
pushq $-0x1
popq %r8
pushq $0x3f
popq %r9
cmpq $0x8, %rsi
je 0x3dfac
movzbl (%rbx), %r14d
testl %r14d, %r14d
je 0x3dfaa
cmpb $-0x40, %r14b
jb 0x3df6f
leaq 0x2(%rbx), %r10
movl %r8d, %r11d
movl %edi, %ecx
cmpl $0x6, %ecx
je 0x3df77
movl %r14d, %r15d
shll %cl, %r15d
testb $0x40, %r15b
je 0x3df77
incl %ecx
incq %r10
decl %r11d
jmp 0x3df54
incq %rbx
movl %r14d, %r15d
jmp 0x3df9d
movl %r9d, %r15d
shrl %cl, %r15d
andl %r14d, %r15d
incq %rbx
testl %r11d, %r11d
je 0x3df9a
shll $0x6, %r15d
movzbl (%rbx), %ecx
andl $0x3f, %ecx
orl %ecx, %r15d
incl %r11d
jmp 0x3df80
movq %r10, %rbx
movl %r15d, 0x80(%rsp,%rsi,4)
incq %rsi
jmp 0x3df36
movl %esi, %edx
leal -0x1(%rdx), %ecx
movslq %ecx, %rcx
movl %edx, %r14d
xorl %edx, %edx
pushq $0x18
popq %rsi
cmpq %r14, %rdx
je 0x3e04e
movl 0x80(%rsp,%rdx,4), %edi
testq %rdx, %rdx
setne %r8b
orb %bpl, %r8b
cmpq %rcx, %rdx
setl %bl
orb %al, %bl
movl %ebx, %r9d
orb %r8b, %r9b
movl %r8d, %r10d
xorb $0x1, %r10b
movl %ebx, %r11d
andb %r10b, %r11b
andb %bl, %r8b
orb %bl, %r10b
movq %rsi, %rbx
cmpq $0x9f8, %rbx            # imm = 0x9F8
je 0x3e03f
cmpl %edi, -0x10(%rbx,%r12)
jne 0x3e020
testb $0x1, %r9b
je 0x3e03f
testb $0x1, %r11b
jne 0x3e026
testb $0x1, %r8b
jne 0x3e02d
testb $0x1, %r10b
je 0x3e034
addq $0x20, %rbx
jmp 0x3dff8
movl -0x8(%rbx,%r12), %r8d
jmp 0x3e038
movl -0x4(%rbx,%r12), %r8d
jmp 0x3e038
movl (%rbx,%r12), %r8d
testl %r8d, %r8d
cmovnel %r8d, %edi
movl %edi, 0x80(%rsp,%rdx,4)
incq %rdx
jmp 0x3dfba
xorl %r15d, %r15d
leaq 0x78(%rsp), %rbx
cmpq %r15, %r14
je 0x3e070
movl 0x80(%rsp,%r15,4), %esi
movq %rbx, %rdi
callq 0x3e2c4
incq %r15
jmp 0x3e056
cmpb $0x0, (%r13)
movl 0xc(%rsp), %r14d
je 0x3d8e8
leaq 0x46b3(%rip), %rsi      # 0x4273a
movq %r13, %rdi
callq 0x3d150
testl %eax, %eax
je 0x3d8e8
leaq 0x46a2(%rip), %rsi      # 0x42740
movq %r13, %rdi
callq 0x3d150
testl %eax, %eax
je 0x3d8e8
leaq 0x4691(%rip), %rsi      # 0x42746
movq %r13, %rdi
callq 0x3d150
testl %eax, %eax
je 0x3d8e8
leaq 0x4680(%rip), %rsi      # 0x4274c
movq %r13, %rdi
callq 0x3d150
testl %eax, %eax
jne 0x3d8e0
jmp 0x3d8e8
cmpb $-0x5, %bpl
jbe 0x3e0eb
pushq $0x6
jmp 0x3e107
cmpb $-0x9, %bpl
jbe 0x3e0f5
pushq $0x5
jmp 0x3e107
cmpb $-0x11, %bpl
jbe 0x3e0ff
pushq $0x4
jmp 0x3e107
cmpb $-0x21, %bpl
jbe 0x3e156
pushq $0x3
popq %rcx
cmpq %rcx, %rax
jbe 0x3e11c
leaq 0x30(%rsp), %rdi
callq 0x3e3c5
jmp 0x3daf9
pushq $0x8
popq %r12
leaq 0x29809(%rip), %rbp     # 0x67930
leaq 0x30(%rsp), %r15
cmpq $0x68, %r12
je 0x3daf9
movq -0x8(%r12,%rbp), %rdi
movq %r15, %rsi
callq 0x3d150
testl %eax, %eax
jne 0x3e150
movq (%r12,%rbp), %rdi
callq 0x3e3c5
addq $0x10, %r12
jmp 0x3e12c
cmpb $-0x40, %bpl
pushq $0x1
popq %rcx
sbbq $-0x1, %rcx
jmp 0x3e108