// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/src/tekmsc.c
// Function: mprintf
void
mprintf(short x,short y,char prop,char shade,char palnum,char *stg,...)
{
     int  i,n,pic,propx;
     va_list vargs;

     va_start(vargs,stg);
     vsprintf((char *)tempbuf,stg,vargs);
     va_end(vargs);
     Bstrupr((char *)tempbuf);
     n=(int)strlen((char *)tempbuf);
     if (x == -1) {
          if (prop) {
               pic=MFONT_A;
               propx=0;
               for (i=0 ; i < n ; i++) {
                    if (isalpha(tempbuf[i])) {
                         pic=MFONT_A+tempbuf[i]-'A';
                    }
                    else if (isdigit(tempbuf[i])) {
                         pic=MFONT_0+tempbuf[i]-'0';
                    }
                    else if (tempbuf[i] > ' ' && tempbuf[i] < '0') {
                         pic=MFONT_SPECIAL1+tempbuf[i]-'!';
                    }
                    propx+=tilesizx[pic];
               }
               x=(xdim>>1)-(propx>>1);
          }
          else {
               x=(xdim>>1)-(n<<3);
          }
     }
     if (y == -1) {
          y=(ydim>>1)-(MFONTYSTEP>>1);
     }
     else {
          y=MFONTYSTEP*y;
          if (ydim >= 400) {
               y<<=1;
          }
     }
     pic=MFONT_A;
     for (i=0 ; i < n ; i++) {
          if (isalpha(tempbuf[i])) {
               pic=MFONT_A+tempbuf[i]-'A';
               rotatesprite(x<<16, y<<16, 65536l, 0, pic, shade, palnum, 8+16, 0, 0, xdim-1, ydim-1);
          }
          else if (isdigit(tempbuf[i])) {
               pic=MFONT_0+tempbuf[i]-'0';
               rotatesprite(x<<16, y<<16, 65536l, 0, pic, shade, palnum, 8+16, 0, 0, xdim-1, ydim-1);
          }
          else if (tempbuf[i] > ' ' && tempbuf[i] < '0') {
               pic=MFONT_SPECIAL1+tempbuf[i]-'!';
               rotatesprite(x<<16, y<<16, 65536l, 0, pic, shade, palnum, 8+16, 0, 0, xdim-1, ydim-1);
          }
          if (prop) {
               x+=tilesizx[pic];
          }
          else {
               if (tempbuf[i] == ' ') {
                    x+=8;
               }
               else {
                    x+=16;
               }
          }
     }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
testb %al, %al
je 0x1e11b
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
movb %r8b, %al
movw %di, -0x2(%rbp)
movw %si, -0x4(%rbp)
movb %dl, -0x5(%rbp)
movb %cl, -0x6(%rbp)
movb %al, -0x7(%rbp)
movq %r9, -0x10(%rbp)
leaq -0x40(%rbp), %rax
leaq -0xf0(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x30, (%rax)
movq -0x10(%rbp), %rsi
leaq -0x40(%rbp), %rdx
leaq 0x10f80a(%rip), %rdi    # 0x12d970
callq 0x9110
leaq -0x40(%rbp), %rax
leaq 0x10f7fa(%rip), %rdi    # 0x12d970
callq 0x4fbf0
leaq 0x10f7ee(%rip), %rdi    # 0x12d970
callq 0x8540
movl %eax, -0x18(%rbp)
movswl -0x2(%rbp), %eax
cmpl $-0x1, %eax
jne 0x1e2e7
cmpb $0x0, -0x5(%rbp)
je 0x1e2ce
movl $0x5d5, -0x1c(%rbp)     # imm = 0x5D5
movl $0x0, -0x20(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x1e2b6
callq 0x81b0
movq (%rax), %rax
movslq -0x14(%rbp), %rdx
leaq 0x10f79b(%rip), %rcx    # 0x12d970
movzbl (%rcx,%rdx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x1e209
movslq -0x14(%rbp), %rcx
leaq 0x10f77b(%rip), %rax    # 0x12d970
movzbl (%rax,%rcx), %eax
addl $0x5d5, %eax            # imm = 0x5D5
subl $0x41, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1e293
callq 0x81b0
movq (%rax), %rax
movslq -0x14(%rbp), %rdx
leaq 0x10f754(%rip), %rcx    # 0x12d970
movzbl (%rcx,%rdx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x1e24d
movslq -0x14(%rbp), %rcx
leaq 0x10f734(%rip), %rax    # 0x12d970
movzbl (%rax,%rcx), %eax
addl $0x5ef, %eax            # imm = 0x5EF
subl $0x30, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1e291
movslq -0x14(%rbp), %rcx
leaq 0x10f718(%rip), %rax    # 0x12d970
movzbl (%rax,%rcx), %eax
cmpl $0x20, %eax
jle 0x1e28f
movslq -0x14(%rbp), %rcx
leaq 0x10f704(%rip), %rax    # 0x12d970
movzbl (%rax,%rcx), %eax
cmpl $0x30, %eax
jge 0x1e28f
movslq -0x14(%rbp), %rcx
leaq 0x10f6f0(%rip), %rax    # 0x12d970
movzbl (%rax,%rcx), %eax
addl $0x5fb, %eax            # imm = 0x5FB
subl $0x21, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1e291
jmp 0x1e293
movslq -0x1c(%rbp), %rcx
leaq 0x5e9db2(%rip), %rax    # 0x608050
movswl (%rax,%rcx,2), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1e1b6
leaq 0x5e1d5f(%rip), %rax    # 0x60001c
movl (%rax), %eax
sarl %eax
movl -0x20(%rbp), %ecx
sarl %ecx
subl %ecx, %eax
movw %ax, -0x2(%rbp)
jmp 0x1e2e5
leaq 0x5e1d47(%rip), %rax    # 0x60001c
movl (%rax), %eax
sarl %eax
movl -0x18(%rbp), %ecx
shll $0x3, %ecx
subl %ecx, %eax
movw %ax, -0x2(%rbp)
jmp 0x1e2e7
movswl -0x4(%rbp), %eax
cmpl $-0x1, %eax
jne 0x1e304
leaq 0x5e1d29(%rip), %rax    # 0x600020
movl (%rax), %eax
sarl %eax
subl $0x6, %eax
movw %ax, -0x4(%rbp)
jmp 0x1e32a
movswl -0x4(%rbp), %eax
imull $0xc, %eax, %eax
movw %ax, -0x4(%rbp)
leaq 0x5e1d0a(%rip), %rax    # 0x600020
cmpl $0x190, (%rax)          # imm = 0x190
jl 0x1e328
movswl -0x4(%rbp), %eax
shll %eax
movw %ax, -0x4(%rbp)
jmp 0x1e32a
movl $0x5d5, -0x1c(%rbp)     # imm = 0x5D5
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x1e5e3
callq 0x81b0
movq (%rax), %rax
movslq -0x14(%rbp), %rdx
leaq 0x10f619(%rip), %rcx    # 0x12d970
movzbl (%rcx,%rdx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x1e403
movslq -0x14(%rbp), %rcx
leaq 0x10f5f5(%rip), %rax    # 0x12d970
movzbl (%rax,%rcx), %eax
addl $0x5d5, %eax            # imm = 0x5D5
subl $0x41, %eax
movl %eax, -0x1c(%rbp)
movswl -0x2(%rbp), %edi
shll $0x10, %edi
movswl -0x4(%rbp), %esi
shll $0x10, %esi
movl -0x1c(%rbp), %eax
movw %ax, %r8w
movb -0x6(%rbp), %r9b
movb -0x7(%rbp), %r11b
leaq 0x5e1c6e(%rip), %rax    # 0x60001c
movl (%rax), %r10d
subl $0x1, %r10d
leaq 0x5e1c64(%rip), %rax    # 0x600020
movl (%rax), %eax
subl $0x1, %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movswl %r8w, %r8d
movsbl %r9b, %r9d
movzbl %r11b, %r11d
movl %r11d, (%rsp)
movl $0x18, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
jmp 0x1e584
callq 0x81b0
movq (%rax), %rax
movslq -0x14(%rbp), %rdx
leaq 0x10f55a(%rip), %rcx    # 0x12d970
movzbl (%rcx,%rdx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x1e4c2
movslq -0x14(%rbp), %rcx
leaq 0x10f536(%rip), %rax    # 0x12d970
movzbl (%rax,%rcx), %eax
addl $0x5ef, %eax            # imm = 0x5EF
subl $0x30, %eax
movl %eax, -0x1c(%rbp)
movswl -0x2(%rbp), %edi
shll $0x10, %edi
movswl -0x4(%rbp), %esi
shll $0x10, %esi
movl -0x1c(%rbp), %eax
movw %ax, %r8w
movb -0x6(%rbp), %r9b
movb -0x7(%rbp), %r11b
leaq 0x5e1baf(%rip), %rax    # 0x60001c
movl (%rax), %r10d
subl $0x1, %r10d
leaq 0x5e1ba5(%rip), %rax    # 0x600020
movl (%rax), %eax
subl $0x1, %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movswl %r8w, %r8d
movsbl %r9b, %r9d
movzbl %r11b, %r11d
movl %r11d, (%rsp)
movl $0x18, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
jmp 0x1e582
movslq -0x14(%rbp), %rcx
leaq 0x10f4a3(%rip), %rax    # 0x12d970
movzbl (%rax,%rcx), %eax
cmpl $0x20, %eax
jle 0x1e580
movslq -0x14(%rbp), %rcx
leaq 0x10f48b(%rip), %rax    # 0x12d970
movzbl (%rax,%rcx), %eax
cmpl $0x30, %eax
jge 0x1e580
movslq -0x14(%rbp), %rcx
leaq 0x10f473(%rip), %rax    # 0x12d970
movzbl (%rax,%rcx), %eax
addl $0x5fb, %eax            # imm = 0x5FB
subl $0x21, %eax
movl %eax, -0x1c(%rbp)
movswl -0x2(%rbp), %edi
shll $0x10, %edi
movswl -0x4(%rbp), %esi
shll $0x10, %esi
movl -0x1c(%rbp), %eax
movw %ax, %r8w
movb -0x6(%rbp), %r9b
movb -0x7(%rbp), %r11b
leaq 0x5e1aec(%rip), %rax    # 0x60001c
movl (%rax), %r10d
subl $0x1, %r10d
leaq 0x5e1ae2(%rip), %rax    # 0x600020
movl (%rax), %eax
subl $0x1, %eax
movl $0x10000, %edx          # imm = 0x10000
xorl %ecx, %ecx
movswl %r8w, %r8d
movsbl %r9b, %r9d
movzbl %r11b, %r11d
movl %r11d, (%rsp)
movl $0x18, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movl %eax, 0x28(%rsp)
callq 0x718a0
jmp 0x1e582
jmp 0x1e584
cmpb $0x0, -0x5(%rbp)
je 0x1e5a5
movslq -0x1c(%rbp), %rcx
leaq 0x5e9abb(%rip), %rax    # 0x608050
movswl (%rax,%rcx,2), %ecx
movswl -0x2(%rbp), %eax
addl %ecx, %eax
movw %ax, -0x2(%rbp)
jmp 0x1e5d3
movslq -0x14(%rbp), %rcx
leaq 0x10f3c0(%rip), %rax    # 0x12d970
movzbl (%rax,%rcx), %eax
cmpl $0x20, %eax
jne 0x1e5c6
movswl -0x2(%rbp), %eax
addl $0x8, %eax
movw %ax, -0x2(%rbp)
jmp 0x1e5d1
movswl -0x2(%rbp), %eax
addl $0x10, %eax
movw %ax, -0x2(%rbp)
jmp 0x1e5d3
jmp 0x1e5d5
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1e338
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopl (%rax)