// File: /workspace/github_c_makefile_star2_O3/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 %r9d, 0xc(%rsp)
movl %r8d, 0x2c(%rsp)
movl %ecx, 0x14(%rsp)
movl %esi, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, 0x110(%rsp)
movaps %xmm0, 0x100(%rsp)
movaps %xmm0, 0xf0(%rsp)
movaps %xmm0, 0xe0(%rsp)
leaq 0x30(%rsp), %r15
movq %r15, 0x70(%rsp)
movq %r15, 0x20(%rsp)
testl %edx, %edx
movq %rdi, 0x18(%rsp)
je 0x3d966
leaq 0x70(%rsp), %rdi
movl %edx, %esi
callq 0x3e39e
jmp 0x3d98a
movl %ebp, 0x10(%rsp)
testq %rdi, %rdi
je 0x3d97e
movq 0x18(%rsp), %rax
movb (%rax), %al
cmpb $0x2e, %al
jne 0x3dd2b
movl 0x10(%rsp), %ebp
movl $0x2d2d2d, 0x30(%rsp)   # imm = 0x2D2D2D
movl 0x168(%rsp), %r13d
xorl %r15d, %r15d
leaq 0x2af54(%rip), %r12     # 0x688f0
leaq 0x30(%rsp), %rbx
movq (%r15,%r12), %rdi
movq %rbx, %rsi
callq 0x3d150
testl %eax, %eax
jne 0x3d9be
movq 0x8(%r15,%r12), %rsi
movq %rbx, %rdi
callq 0x3d060
addq $0x10, %r15
cmpq $0x40, %r15
jne 0x3d9a1
leaq 0x2c745(%rip), %rbx     # 0x6a114
movl (%rbx), %eax
testl %eax, %eax
sete %cl
cmpl $0x100, %ebp            # imm = 0x100
setae %dl
orb %cl, %dl
jne 0x3d9fd
leaq 0x5cfb(%rip), %rsi      # 0x436e5
leaq 0xe0(%rsp), %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x3d1b0
movl (%rbx), %eax
testl %eax, %eax
setne %al
testl %ebp, %ebp
sets %cl
movb 0x30(%rsp), %bl
cmpb $0x0, 0x31(%rsp)
sete %dl
andb %cl, %dl
leal -0x20(%rbx), %ecx
cmpb $0x5e, %cl
setb %cl
andb %dl, %cl
andb %al, %cl
cmpb $0x1, %cl
movq 0x18(%rsp), %r14
jne 0x3da5b
movq %r14, %rdi
movl $0x2e, %esi
callq 0x3d0b0
testq %rax, %rax
jne 0x3da5b
movsbl %bl, %edx
leaq 0x5c9d(%rip), %rsi      # 0x436e5
leaq 0xe0(%rsp), %rdi
xorl %eax, %eax
callq 0x3d1b0
movb 0x30(%rsp), %bl
movq %r14, %rdi
movl $0x2e, %esi
callq 0x3d0b0
testq %rax, %rax
setne %al
testb %bl, %bl
sete %dl
xorl %ecx, %ecx
orb %al, %dl
movl 0x3614b(%rip), %eax     # 0x73bc8
jne 0x3daed
xorl %edx, %edx
cmpb $0x0, 0x31(%rsp)
movzbl %bl, %ecx
cmovnel %edx, %ecx
cmpb $0x74, %cl
setne %dl
testl %eax, %eax
setne %sil
orb %dl, %sil
je 0x3dade
movzbl %cl, %ecx
movl %ecx, %edx
andl $-0x2, %edx
cmpl $0x70, %edx
je 0x3dabc
leal -0x67(%rcx), %edx
cmpl $0x12, %edx
ja 0x3daed
movl $0x40009, %esi          # imm = 0x40009
btl %edx, %esi
jae 0x3daed
movl 0x3610a(%rip), %edx     # 0x73bcc
testl %edx, %edx
setne %sil
movl 0xc(%rsp), %edi
cmpl %edi, %edx
setge %dl
testb %dl, %sil
jne 0x3daed
movl %edi, 0x360f0(%rip)     # 0x73bcc
jmp 0x3daed
movl %r13d, 0x360e3(%rip)    # 0x73bc8
movl $0x74, %ecx
movl %r13d, %eax
movl 0x360d9(%rip), %edx     # 0x73bcc
testl %edx, %edx
setne %sil
testl %eax, %eax
setne %dil
testb %dil, %sil
je 0x3db18
xorl %ecx, %ecx
cmpl 0xc(%rsp), %edx
setge %cl
leal 0x2(%rcx), %ebx
cmpl %r13d, %eax
cmovgl %ecx, %ebx
jmp 0x3db31
leal -0x1(%rcx), %eax
movl $0x3, %ebx
cmpl $0x7e, %eax
ja 0x3db31
movl %ecx, %eax
leaq 0x16e92(%rip), %rcx     # 0x549c0
movl (%rcx,%rax,4), %ebx
leaq 0x3206c(%rip), %rax     # 0x6fba4
cmpl $0x0, (%rax)
je 0x3db44
movb 0x30(%rsp), %bpl
jmp 0x3db68
movzwl 0x30(%rsp), %ebp
cmpw $0x20, %bp
je 0x3db62
movl $0xa0c2, %ecx           # imm = 0xA0C2
xorl 0x30(%rsp), %ecx
movzbl 0x32(%rsp), %edx
orw %cx, %dx
jne 0x3db68
movl 0x14(%rsp), %ecx
movl %ecx, (%rax)
callq 0x3d1e0
movq (%rax), %rax
movzbl %bpl, %ecx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x3db93
leaq 0x30(%rsp), %rdi
movl $0x20, %esi
callq 0x3d0b0
testq %rax, %rax
je 0x3dc78
movl $0x2d2d2d, 0x30(%rsp)   # imm = 0x2D2D2D
movq 0x3200e(%rip), %rdi     # 0x6fbb0
leaq 0x5b34(%rip), %rsi      # 0x436dd
leaq 0x30(%rsp), %rdx
movl 0x14(%rsp), %ecx
xorl %eax, %eax
callq 0x3e687
leaq 0x31fd4(%rip), %rax     # 0x6fb94
cmpl $0x0, (%rax)
movl 0xc(%rsp), %ecx
movl 0x2c(%rsp), %edx
movl 0x160(%rsp), %r8d
je 0x3dbf9
movl %ecx, %eax
orl %edx, %eax
orl %r8d, %eax
orl %r13d, %eax
je 0x3dbf9
movq 0x31fc8(%rip), %rdi     # 0x6fbb0
leaq 0x5af9(%rip), %rsi      # 0x436e8
movl %r13d, %r9d
xorl %eax, %eax
callq 0x3e687
movq 0x31fb0(%rip), %rdi     # 0x6fbb0
leaq 0x5aee(%rip), %rsi      # 0x436f5
leaq 0xe0(%rsp), %r8
movl %ebx, %edx
movq 0x18(%rsp), %rcx
xorl %eax, %eax
callq 0x3e687
movq 0x31f94(%rip), %rdi     # 0x6fbb8
leaq 0x30(%rsp), %rsi
callq 0x3e806
testq %rax, %rax
je 0x3dc66
movq %rax, %rbx
movq (%rax), %rdx
testq %rdx, %rdx
je 0x3dc66
addq $0x8, %rbx
leaq 0x5ab7(%rip), %r14      # 0x43700
movq 0x31f60(%rip), %rdi     # 0x6fbb0
movq %r14, %rsi
xorl %eax, %eax
callq 0x3e687
movq (%rbx), %rdx
addq $0x8, %rbx
testq %rdx, %rdx
jne 0x3dc49
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 0x3db9b
xorl %r14d, %r14d
leaq 0x30(%rsp), %r15
movq 0x8(%r14,%r12), %rdi
movq %r15, %rsi
callq 0x3d150
testl %eax, %eax
je 0x3db9b
addq $0x10, %r14
cmpq $0x40, %r14
jne 0x3dc90
testb %bpl, %bpl
setne %al
testl $0xff00, %ebp           # imm = 0xFF00
setne %cl
testb %cl, %al
je 0x3e04d
leaq 0x30(%rsp), %rdi
callq 0x3d0a0
movl $0x1, %ecx
testb %bpl, %bpl
jns 0x3dd13
movl $0x6, %ecx
cmpb $-0x5, %bpl
ja 0x3dd13
movl $0x5, %ecx
cmpb $-0x9, %bpl
ja 0x3dd13
movl $0x4, %ecx
cmpb $-0x11, %bpl
ja 0x3dd13
movl $0x3, %ecx
cmpb $-0x21, %bpl
ja 0x3dd13
cmpb $-0x40, %bpl
movl $0x1, %ecx
sbbq $-0x1, %rcx
cmpq %rcx, %rax
jbe 0x3e04d
leaq 0x30(%rsp), %rdi
callq 0x3e4a5
jmp 0x3db9b
leaq 0x20(%rsp), %rbx
movq 0x18(%rsp), %r13
cmpb $0x5f, %al
je 0x3dd4e
movzbl %al, %eax
testl %eax, %eax
je 0x3e00b
cmpl $0x2e, %eax
jne 0x3dd51
jmp 0x3e00b
incq %r13
xorl %r12d, %r12d
movzbl (%r13,%r12), %eax
testl %eax, %eax
je 0x3dd75
cmpl $0x2e, %eax
je 0x3dd75
cmpl $0x5f, %eax
je 0x3dd75
movb %al, 0x80(%rsp,%r12)
incq %r12
jmp 0x3dd54
movb $0x0, 0x80(%rsp,%r12)
movq 0x20(%rsp), %rbp
movq %rbp, 0xc0(%rsp)
movq 0x35e2e(%rip), %rdi     # 0x73bc0
leaq 0x80(%rsp), %rsi
callq 0x3e806
testq %rax, %rax
je 0x3de28
movq %rax, %r14
movzbl (%r14), %eax
cmpl $0x20, %eax
je 0x3ddba
testl %eax, %eax
jne 0x3ddca
jmp 0x3ddfb
movq %r14, %rax
leaq 0x1(%rax), %r14
cmpb $0x20, 0x1(%rax)
movq %r14, %rax
je 0x3ddbd
movq %r14, %rdi
movl $0x6, %esi
callq 0x3e43e
leaq 0xc0(%rsp), %rdi
movl %eax, %esi
callq 0x3e39e
movq %r14, %rdi
movl $0x20, %esi
callq 0x3d0b0
movq %rax, %r14
testq %rax, %rax
jne 0x3ddab
movq 0xc0(%rsp), %rax
movb $0x0, (%rax)
movq %rbp, %rdi
callq 0x3d0a0
addq %rbp, %rax
movq %rax, 0x20(%rsp)
movq %rbx, %rbp
addq %r12, %r13
movb (%r13), %al
movq %rbp, %rbx
jmp 0x3dd35
movb 0x80(%rsp), %al
cmpb $0x75, %al
jne 0x3dec8
cmpb $0x6e, 0x81(%rsp)
jne 0x3dec8
cmpb $0x69, 0x82(%rsp)
jne 0x3dec8
leaq 0x83(%rsp), %rdi
movl $0x4, %esi
callq 0x3e43e
testl %eax, %eax
jle 0x3decc
leaq 0x83(%rsp), %rdi
callq 0x3d0a0
cmpq $0x4, %rax
movq %rbx, %rbp
jb 0x3de19
movl $0x4, %ebx
leaq 0x83(%rsp), %r14
movq %r14, %rdi
movl $0x4, %esi
callq 0x3e43e
movq %rbp, %rdi
movl %eax, %esi
callq 0x3e39e
movl %ebx, %r14d
andl $-0x4, %r14d
leaq 0x83(%rsp), %rax
addq %rax, %r14
movq %r14, %rdi
callq 0x3d0a0
addq $0x4, %rbx
cmpq $0x3, %rax
ja 0x3de88
jmp 0x3de19
cmpb $0x75, %al
jne 0x3df03
leaq 0x81(%rsp), %rdi
movl $0x4, %esi
callq 0x3e43e
testl %eax, %eax
jle 0x3df03
leaq 0x81(%rsp), %rdi
movl $0x6, %esi
callq 0x3e43e
movq %rbx, %rdi
movl %eax, %esi
callq 0x3e39e
jmp 0x3de16
movl $0x18, %ebx
leaq 0x2a001(%rip), %rax     # 0x67f10
movq -0x18(%rbx,%rax), %rbp
movq %rbp, %rdi
callq 0x3d0a0
movq %rax, %r14
movq %rbp, %rdi
leaq 0x80(%rsp), %rsi
movq %rax, %rdx
callq 0x3d050
testl %eax, %eax
jne 0x3df9b
cmpb $0x0, 0x80(%rsp,%r14)
je 0x3dfe6
addq %rsp, %r14
addq $0x80, %r14
leaq 0x580d(%rip), %rdi      # 0x43763
movq %r14, %rsi
callq 0x3d150
testl %eax, %eax
je 0x3dfb1
leaq 0x5803(%rip), %rdi      # 0x4376c
movq %r14, %rsi
callq 0x3d150
testl %eax, %eax
je 0x3dfbe
leaq 0x57f8(%rip), %rdi      # 0x43774
movq %r14, %rsi
callq 0x3d150
testl %eax, %eax
je 0x3dfcb
leaq 0x131cb(%rip), %rdi     # 0x5115a
movq %r14, %rsi
callq 0x3d150
testl %eax, %eax
je 0x3dfd8
addq $0x20, %rbx
cmpq $0x9f8, %rbx            # imm = 0x9F8
jne 0x3df08
jmp 0x3d97e
leaq 0x29f58(%rip), %rax     # 0x67f10
movl -0xc(%rbx,%rax), %esi
jmp 0x3dfe2
leaq 0x29f4b(%rip), %rax     # 0x67f10
movl -0x8(%rbx,%rax), %esi
jmp 0x3dfe2
leaq 0x29f3e(%rip), %rax     # 0x67f10
movl -0x4(%rbx,%rax), %esi
jmp 0x3dfe2
leaq 0x29f31(%rip), %rax     # 0x67f10
movl (%rbx,%rax), %esi
testl %esi, %esi
jne 0x3dff9
leaq 0x29f23(%rip), %rax     # 0x67f10
movl -0x10(%rbx,%rax), %esi
testl %esi, %esi
je 0x3d97e
leaq 0x20(%rsp), %rbp
movq %rbp, %rdi
callq 0x3e39e
jmp 0x3de19
movq %r15, 0x78(%rsp)
leaq 0x5723(%rip), %rdi      # 0x4373a
movq %r13, %rsi
callq 0x3d150
testl %eax, %eax
je 0x3e088
leaq 0x5716(%rip), %rdi      # 0x43740
movq %r13, %rsi
callq 0x3d150
testl %eax, %eax
sete %bl
leaq 0x5708(%rip), %rdi      # 0x43746
movq %r13, %rsi
callq 0x3d150
testl %eax, %eax
sete %al
jmp 0x3e08c
movl $0x8, %r12d
leaq 0x2a8d6(%rip), %rbp     # 0x68930
leaq 0x30(%rsp), %r15
movq -0x8(%r12,%rbp), %rdi
movq %r15, %rsi
callq 0x3d150
testl %eax, %eax
jne 0x3e079
movq (%r12,%rbp), %rdi
callq 0x3e4a5
addq $0x10, %r12
cmpq $0x68, %r12
jne 0x3e05f
jmp 0x3db9b
movb $0x1, %bl
movb $0x1, %al
xorl %edx, %edx
movzbl (%r15), %esi
testl %esi, %esi
je 0x3e102
cmpb $-0x40, %sil
jb 0x3e0e6
movl $0x1, %ecx
movl %esi, %edi
shll %cl, %edi
testb $0x40, %dil
je 0x3e0b7
incl %ecx
cmpl $0x6, %ecx
jne 0x3e0a1
movl $0x6, %ecx
movl $0x3f, %edi
shrl %cl, %edi
andl %esi, %edi
xorl %esi, %esi
movl %edi, %r8d
shll $0x6, %r8d
movzbl 0x1(%r15,%rsi), %edi
andl $0x3f, %edi
orl %r8d, %edi
incq %rsi
cmpl %esi, %ecx
jne 0x3e0c2
movl %ecx, %ecx
addq %rcx, %r15
incq %r15
jmp 0x3e0eb
incq %r15
movl %esi, %edi
movl %edi, 0xc0(%rsp,%rdx,4)
incq %rdx
cmpq $0x8, %rdx
jne 0x3e08e
movl $0x8, %edx
jmp 0x3e10b
testq %rdx, %rdx
je 0x3e1cf
leal -0x1(%rdx), %ecx
movslq %ecx, %rcx
movl %edx, %r14d
xorl %edx, %edx
leaq 0x29df3(%rip), %r15     # 0x67f10
movl 0xc0(%rsp,%rdx,4), %esi
testq %rdx, %rdx
setne %dil
orb %bl, %dil
cmpq %rcx, %rdx
setl %r11b
orb %al, %r11b
movl %r11d, %r8d
orb %dil, %r8b
movl %edi, %r9d
xorb $0x1, %r9b
movl %r11d, %r10d
andb %r9b, %r10b
andb %r11b, %dil
orb %r11b, %r9b
movl $0x18, %r11d
cmpl %esi, -0x10(%r11,%r15)
jne 0x3e176
testb $0x1, %r8b
je 0x3e19c
testb $0x1, %r10b
jne 0x3e185
testb $0x1, %dil
jne 0x3e18c
testb $0x1, %r9b
je 0x3e193
addq $0x20, %r11
cmpq $0x9f8, %r11            # imm = 0x9F8
jne 0x3e157
jmp 0x3e19c
movl -0x8(%r11,%r15), %edi
jmp 0x3e197
movl -0x4(%r11,%r15), %edi
jmp 0x3e197
movl (%r11,%r15), %edi
testl %edi, %edi
cmovnel %edi, %esi
movl %esi, 0xc0(%rsp,%rdx,4)
incq %rdx
cmpq %r14, %rdx
jne 0x3e11d
xorl %r15d, %r15d
leaq 0x78(%rsp), %rbx
movl 0xc0(%rsp,%r15,4), %esi
movq %rbx, %rdi
callq 0x3e39e
incq %r15
cmpq %r15, %r14
jne 0x3e1b7
cmpb $0x0, (%r13)
movl 0x10(%rsp), %ebp
je 0x3d98a
leaq 0x5555(%rip), %rsi      # 0x4373a
movq %r13, %rdi
callq 0x3d150
testl %eax, %eax
je 0x3d98a
leaq 0x5544(%rip), %rsi      # 0x43740
movq %r13, %rdi
callq 0x3d150
testl %eax, %eax
je 0x3d98a
leaq 0x5533(%rip), %rsi      # 0x43746
movq %r13, %rdi
callq 0x3d150
testl %eax, %eax
je 0x3d98a
leaq 0x5522(%rip), %rsi      # 0x4374c
movq %r13, %rdi
callq 0x3d150
testl %eax, %eax
jne 0x3d982
jmp 0x3d98a