// File: /workspace/github_c_makefile_star2_O1/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, 0x10(%rsp)
movl %ecx, 0x28(%rsp)
movl %esi, 0x14(%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, 0x20(%rsp)
testl %edx, %edx
movq %rdi, 0x18(%rsp)
movl %r8d, 0x2c(%rsp)
je 0x3d958
leaq 0x70(%rsp), %rdi
movl %edx, %esi
callq 0x3e39e
jmp 0x3d973
testq %rdi, %rdi
je 0x3d96b
movq 0x18(%rsp), %rax
cmpb $0x2e, (%rax)
jne 0x3dd26
movl $0x2d2d2d, 0x30(%rsp)   # imm = 0x2D2D2D
movl 0x168(%rsp), %r13d
movl 0x160(%rsp), %r14d
xorl %r15d, %r15d
leaq 0x2af63(%rip), %r12     # 0x688f0
leaq 0x30(%rsp), %rbx
movq (%r15,%r12), %rdi
movq %rbx, %rsi
callq 0x3d140
testl %eax, %eax
jne 0x3d9af
movq 0x8(%r15,%r12), %rsi
movq %rbx, %rdi
callq 0x3d060
addq $0x10, %r15
cmpq $0x40, %r15
jne 0x3d992
leaq 0x2c744(%rip), %rbx     # 0x6a104
movl 0x14(%rsp), %ecx
cmpl $0xff, %ecx
ja 0x3d9ef
cmpl $0x0, (%rbx)
je 0x3d9ef
leaq 0x5d0d(%rip), %rsi      # 0x436e5
leaq 0xe0(%rsp), %rdi
movl 0x14(%rsp), %edx
xorl %eax, %eax
callq 0x3d1a0
movl 0x14(%rsp), %ecx
cmpl $0x0, (%rbx)
setne %al
testl %ecx, %ecx
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
jne 0x3da47
movq 0x18(%rsp), %rdi
movl $0x2e, %esi
callq 0x3d0b0
testq %rax, %rax
jne 0x3da47
movsbl %bl, %edx
leaq 0x5cad(%rip), %rsi      # 0x436e5
leaq 0xe0(%rsp), %rdi
xorl %eax, %eax
callq 0x3d1a0
movq 0x18(%rsp), %rdi
movl $0x2e, %esi
callq 0x3d0b0
movb 0x30(%rsp), %cl
xorl %edx, %edx
cmpb $0x0, 0x31(%rsp)
movzbl %cl, %ecx
movl $0x0, %esi
cmovel %ecx, %esi
testb %cl, %cl
movzbl %sil, %ecx
cmovel %edx, %ecx
testq %rax, %rax
cmovnel %edx, %ecx
cmpl $0x74, %ecx
jne 0x3da90
cmpl $0x0, 0x36131(%rip)     # 0x73bb8
jne 0x3da90
movl %r13d, 0x36128(%rip)    # 0x73bb8
movl %ecx, %eax
andl $-0x2, %eax
cmpl $0x70, %eax
je 0x3daac
leal -0x67(%rcx), %eax
cmpl $0x12, %eax
ja 0x3dacc
movl $0x40009, %edx          # imm = 0x40009
btl %eax, %edx
jae 0x3dacc
movl 0x3610a(%rip), %eax     # 0x73bbc
testl %eax, %eax
setne %dl
cmpl 0x10(%rsp), %eax
setge %al
testb %al, %dl
jne 0x3dacc
movl 0x10(%rsp), %eax
movl %eax, 0x360f0(%rip)     # 0x73bbc
movl 0x360ea(%rip), %edx     # 0x73bbc
testl %edx, %edx
setne %sil
movl 0x360da(%rip), %eax     # 0x73bb8
testl %eax, %eax
setne %dil
testb %dil, %sil
je 0x3dafd
xorl %ecx, %ecx
cmpl 0x10(%rsp), %edx
setge %cl
leal 0x2(%rcx), %ebx
cmpl %r13d, %eax
cmovgl %ecx, %ebx
jmp 0x3db16
leal -0x1(%rcx), %eax
movl $0x3, %ebx
cmpl $0x7e, %eax
ja 0x3db16
movl %ecx, %eax
leaq 0x16ead(%rip), %rcx     # 0x549c0
movl (%rcx,%rax,4), %ebx
leaq 0x32077(%rip), %rax     # 0x6fb94
cmpl $0x0, (%rax)
jne 0x3db43
cmpw $0x20, 0x30(%rsp)
je 0x3db3d
movl $0xa0c2, %ecx           # imm = 0xA0C2
xorl 0x30(%rsp), %ecx
movzbl 0x32(%rsp), %edx
orw %cx, %dx
jne 0x3db43
movl 0x28(%rsp), %ecx
movl %ecx, (%rax)
callq 0x3d1d0
movq (%rax), %rax
movzbl 0x30(%rsp), %ecx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x3db6b
leaq 0x30(%rsp), %rdi
movl $0x20, %esi
callq 0x3d0b0
testq %rax, %rax
je 0x3db73
movl $0x2d2d2d, 0x30(%rsp)   # imm = 0x2D2D2D
cmpl $0x2d2d2d, 0x30(%rsp)   # imm = 0x2D2D2D
je 0x3dc4c
xorl %ebp, %ebp
leaq 0x30(%rsp), %r15
movq 0x8(%rbp,%r12), %rdi
movq %r15, %rsi
callq 0x3d140
testl %eax, %eax
je 0x3dc4c
addq $0x10, %rbp
cmpq $0x40, %rbp
jne 0x3db88
movb 0x30(%rsp), %bpl
testb %bpl, %bpl
je 0x3dc16
cmpb $0x0, 0x31(%rsp)
je 0x3dc16
leaq 0x30(%rsp), %rdi
callq 0x3d0a0
movl $0x1, %ecx
testb %bpl, %bpl
jns 0x3dc05
movl $0x6, %ecx
cmpb $-0x5, %bpl
ja 0x3dc05
movl $0x5, %ecx
cmpb $-0x9, %bpl
ja 0x3dc05
movl $0x4, %ecx
cmpb $-0x11, %bpl
ja 0x3dc05
movl $0x3, %ecx
cmpb $-0x21, %bpl
ja 0x3dc05
cmpb $-0x40, %bpl
movl $0x1, %ecx
sbbq $-0x1, %rcx
cmpq %rcx, %rax
jbe 0x3dc16
leaq 0x30(%rsp), %rdi
callq 0x3e4b1
jmp 0x3dc4c
movl $0x8, %r12d
leaq 0x2ad0d(%rip), %rbp     # 0x68930
leaq 0x30(%rsp), %r15
movq -0x8(%r12,%rbp), %rdi
movq %r15, %rsi
callq 0x3d140
testl %eax, %eax
jne 0x3dc42
movq (%r12,%rbp), %rdi
callq 0x3e4b1
addq $0x10, %r12
cmpq $0x68, %r12
jne 0x3dc28
movq 0x31f4d(%rip), %rdi     # 0x6fba0
leaq 0x5a83(%rip), %rsi      # 0x436dd
leaq 0x30(%rsp), %rdx
movl 0x28(%rsp), %ecx
xorl %eax, %eax
callq 0x3e68e
leaq 0x31f13(%rip), %rax     # 0x6fb84
cmpl $0x0, (%rax)
movl 0x2c(%rsp), %edx
je 0x3dca7
movl 0x10(%rsp), %eax
orl %edx, %eax
orl %r14d, %eax
orl %r13d, %eax
je 0x3dca7
movq 0x31f11(%rip), %rdi     # 0x6fba0
leaq 0x5a52(%rip), %rsi      # 0x436e8
movl 0x10(%rsp), %ecx
movl %r14d, %r8d
movl %r13d, %r9d
xorl %eax, %eax
callq 0x3e68e
movq 0x31ef2(%rip), %rdi     # 0x6fba0
leaq 0x5a40(%rip), %rsi      # 0x436f5
leaq 0xe0(%rsp), %r8
movl %ebx, %edx
movq 0x18(%rsp), %rcx
xorl %eax, %eax
callq 0x3e68e
movq 0x31ed6(%rip), %rdi     # 0x6fba8
leaq 0x30(%rsp), %rsi
callq 0x3e818
testq %rax, %rax
je 0x3dd14
movq %rax, %rbx
movq (%rax), %rdx
testq %rdx, %rdx
je 0x3dd14
addq $0x8, %rbx
leaq 0x5a09(%rip), %r14      # 0x43700
movq 0x31ea2(%rip), %rdi     # 0x6fba0
movq %r14, %rsi
xorl %eax, %eax
callq 0x3e68e
movq (%rbx), %rdx
addq $0x8, %rbx
testq %rdx, %rdx
jne 0x3dcf7
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rsp), %r13
movzbl (%r13), %eax
cmpl $0x5f, %eax
je 0x3dd47
testl %eax, %eax
je 0x3e000
cmpl $0x2e, %eax
jne 0x3dd4a
jmp 0x3e000
incq %r13
xorl %r15d, %r15d
movzbl (%r13,%r15), %eax
testl %eax, %eax
je 0x3dd6e
cmpl $0x2e, %eax
je 0x3dd6e
cmpl $0x5f, %eax
je 0x3dd6e
movb %al, 0xa0(%rsp,%r15)
incq %r15
jmp 0x3dd4d
movb $0x0, 0xa0(%rsp,%r15)
movq 0x20(%rsp), %r12
movq %r12, 0x80(%rsp)
movq 0x35e25(%rip), %rdi     # 0x73bb0
leaq 0xa0(%rsp), %rsi
callq 0x3e818
addq %r15, %r13
testq %rax, %rax
je 0x3de12
movq %rax, %r14
movq %rax, %rbp
leaq 0x80(%rsp), %r15
cmpb $0x0, (%rbp)
je 0x3dded
decq %rbp
cmpb $0x20, 0x1(%rbp)
leaq 0x1(%rbp), %rbp
je 0x3ddb7
movq %rbp, %rdi
movl $0x6, %esi
callq 0x3e44a
movq %r15, %rdi
movl %eax, %esi
callq 0x3e39e
movq %rbp, %rdi
movl $0x20, %esi
callq 0x3d0b0
movq %rax, %rbp
testq %rax, %rax
jne 0x3ddae
movq 0x80(%rsp), %rax
movb $0x0, (%rax)
testq %r14, %r14
je 0x3de12
movq %r12, %rdi
callq 0x3d0a0
addq %r12, %rax
movq %rax, 0x20(%rsp)
jmp 0x3dd2b
movb 0xa0(%rsp), %bpl
cmpb $0x75, %bpl
leaq 0xa3(%rsp), %r12
jne 0x3dea5
cmpb $0x6e, 0xa1(%rsp)
jne 0x3dea5
cmpb $0x69, 0xa2(%rsp)
jne 0x3dea5
movq %r12, %rdi
movl $0x4, %esi
callq 0x3e44a
testl %eax, %eax
jle 0x3dea5
movq %r12, %rdi
callq 0x3d0a0
cmpq $0x4, %rax
leaq 0x20(%rsp), %rbp
jb 0x3dd2b
movl $0x4, %r15d
movq %r12, %r14
movq %r14, %rdi
movl $0x4, %esi
callq 0x3e44a
movq %rbp, %rdi
movl %eax, %esi
callq 0x3e39e
movl %r15d, %r14d
andl $-0x4, %r14d
addq %r12, %r14
movq %r14, %rdi
callq 0x3d0a0
addq $0x4, %r15
cmpq $0x3, %rax
ja 0x3de6d
jmp 0x3dd2b
cmpb $0x75, %bpl
jne 0x3dee4
leaq 0xa1(%rsp), %rdi
movl $0x4, %esi
callq 0x3e44a
testl %eax, %eax
jle 0x3dee4
leaq 0xa1(%rsp), %rdi
movl $0x6, %esi
callq 0x3e44a
leaq 0x20(%rsp), %rdi
movl %eax, %esi
callq 0x3e39e
jmp 0x3dd2b
movl $0x18, %r15d
leaq 0x2a01f(%rip), %rax     # 0x67f10
movq -0x18(%r15,%rax), %rbp
movq %rbp, %rdi
callq 0x3d0a0
movq %rax, %r14
movq %rbp, %rdi
leaq 0xa0(%rsp), %rsi
movq %rax, %rdx
callq 0x3d050
movb $0x1, %bpl
testl %eax, %eax
jne 0x3dfcc
cmpb $0x0, 0xa0(%rsp,%r14)
je 0x3dfbe
addq %rsp, %r14
addq $0xa0, %r14
leaq 0x5824(%rip), %rdi      # 0x43763
movq %r14, %rsi
callq 0x3d140
testl %eax, %eax
je 0x3df91
leaq 0x581a(%rip), %rdi      # 0x4376c
movq %r14, %rsi
callq 0x3d140
testl %eax, %eax
je 0x3df9f
leaq 0x580f(%rip), %rdi      # 0x43774
movq %r14, %rsi
callq 0x3d140
testl %eax, %eax
je 0x3dfad
leaq 0x131e2(%rip), %rdi     # 0x5115a
movq %r14, %rsi
callq 0x3d140
testl %eax, %eax
jne 0x3dfcc
leaq 0x29f85(%rip), %rax     # 0x67f10
movl (%r15,%rax), %r12d
jmp 0x3dfb9
leaq 0x29f78(%rip), %rax     # 0x67f10
movl -0xc(%r15,%rax), %r12d
jmp 0x3dfb9
leaq 0x29f6a(%rip), %rax     # 0x67f10
movl -0x8(%r15,%rax), %r12d
jmp 0x3dfb9
leaq 0x29f5c(%rip), %rax     # 0x67f10
movl -0x4(%r15,%rax), %r12d
testl %r12d, %r12d
jne 0x3dfca
leaq 0x29f4b(%rip), %rax     # 0x67f10
movl -0x10(%r15,%rax), %r12d
xorl %ebp, %ebp
testb %bpl, %bpl
je 0x3dfe5
addq $0x20, %r15
cmpq $0x9f8, %r15            # imm = 0x9F8
jne 0x3deea
xorl %r12d, %r12d
testl %r12d, %r12d
leaq 0x20(%rsp), %rdi
je 0x3d96b
movl %r12d, %esi
callq 0x3e39e
jmp 0x3dd2b
movq %rbx, 0x78(%rsp)
leaq 0x572e(%rip), %rdi      # 0x4373a
movq %r13, %rsi
callq 0x3d140
movl %eax, %ebp
movb $0x1, 0xf(%rsp)
movb $0x1, 0xe(%rsp)
testl %eax, %eax
je 0x3e03a
leaq 0x5715(%rip), %rdi      # 0x43740
movq %r13, %rsi
callq 0x3d140
testl %eax, %eax
sete 0xe(%rsp)
testl %ebp, %ebp
je 0x3e054
leaq 0x5701(%rip), %rdi      # 0x43746
movq %r13, %rsi
callq 0x3d140
testl %eax, %eax
sete 0xf(%rsp)
xorl %edx, %edx
movzbl (%rbx), %eax
testl %eax, %eax
je 0x3e0c1
cmpb $-0x40, %al
jb 0x3e0a7
movl $0x1, %ecx
movl %eax, %esi
shll %cl, %esi
testb $0x40, %sil
je 0x3e07c
incl %ecx
cmpl $0x6, %ecx
jne 0x3e066
movl $0x6, %ecx
movl $0x3f, %esi
shrl %cl, %esi
andl %eax, %esi
xorl %eax, %eax
movl %esi, %edi
shll $0x6, %edi
movzbl 0x1(%rbx,%rax), %esi
andl $0x3f, %esi
orl %edi, %esi
incq %rax
cmpl %eax, %ecx
jne 0x3e087
movl %ecx, %eax
addq %rax, %rbx
incq %rbx
jmp 0x3e0ac
incq %rbx
movl %eax, %esi
movl %esi, 0x80(%rsp,%rdx,4)
incq %rdx
cmpq $0x8, %rdx
jne 0x3e056
movl $0x8, %edx
testl %edx, %edx
je 0x3e1d3
leal -0x1(%rdx), %eax
cltq
movl %edx, %ebp
xorl %ecx, %ecx
movl 0x80(%rsp,%rcx,4), %edx
testq %rcx, %rcx
setne %sil
orb 0xe(%rsp), %sil
cmpq %rax, %rcx
setl %r10b
orb 0xf(%rsp), %r10b
movl %r10d, %edi
orb %sil, %dil
xorb $0x1, %dil
movl %esi, %r8d
xorb $0x1, %r8b
movl %r10d, %r9d
andb %r8b, %r9b
andb %r10b, %sil
orb %r10b, %r8b
movl $0x18, %r10d
leaq 0x29df5(%rip), %r11     # 0x67f10
movl -0x10(%r10,%r11), %r11d
cmpl %edx, %r11d
movl %r11d, %ebx
cmovnel %r15d, %ebx
setne %r14b
movl %r14d, %r12d
orb %dil, %r12b
testb $0x1, %r12b
jne 0x3e185
testb $0x1, %r9b
je 0x3e14e
leaq 0x29dc9(%rip), %rbx     # 0x67f10
movl -0x8(%r10,%rbx), %ebx
jmp 0x3e179
testb $0x1, %sil
je 0x3e162
leaq 0x29db5(%rip), %rbx     # 0x67f10
movl -0x4(%r10,%rbx), %ebx
jmp 0x3e179
movb $0x1, %r14b
movl %r15d, %ebx
testb $0x1, %r8b
jne 0x3e185
leaq 0x29d9b(%rip), %rbx     # 0x67f10
movl (%r10,%rbx), %ebx
testl %ebx, %ebx
cmovnel %ebx, %r11d
xorl %r14d, %r14d
movl %r11d, %ebx
testb %r14b, %r14b
je 0x3e1a0
addq $0x20, %r10
movl %ebx, %r15d
cmpq $0x9f8, %r10            # imm = 0x9F8
jne 0x3e114
movl %edx, %ebx
movl %ebx, 0x80(%rsp,%rcx,4)
incq %rcx
cmpq %rbp, %rcx
jne 0x3e0d2
xorl %r14d, %r14d
leaq 0x78(%rsp), %rbx
movl 0x80(%rsp,%r14,4), %esi
movq %rbx, %rdi
callq 0x3e39e
incq %r14
cmpq %r14, %rbp
jne 0x3e1bb
cmpb $0x0, (%r13)
je 0x3d973
leaq 0x5555(%rip), %rsi      # 0x4373a
movq %r13, %rdi
callq 0x3d140
testl %eax, %eax
je 0x3d973
leaq 0x5544(%rip), %rsi      # 0x43740
movq %r13, %rdi
callq 0x3d140
testl %eax, %eax
je 0x3d973
leaq 0x5533(%rip), %rsi      # 0x43746
movq %r13, %rdi
callq 0x3d140
testl %eax, %eax
je 0x3d973
leaq 0x5522(%rip), %rsi      # 0x4374c
movq %r13, %rdi
callq 0x3d140
testl %eax, %eax
jne 0x3d96b
jmp 0x3d973