// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/oprocess.c
// Function: out_var
static void out_var(LOCAL_VAR *pVar)
{
  char *p;
  char temp[50];
  char text[80];

  sprintf(text, "\"%s\"",pVar->vname);
  switch (pVar->class) {
  case 7:
       out_line("; (instance of typed variable)",text,"","");
       return;
  case 6:                           /* local typedef ? */
       out_line("; (local typedef)", text, "","");
       return;
  case 4:                          /* register variable */
       switch (pVar->bInfo1) {
       case 0x06: p = "si"; break;
       case 0x07: p = "di"; break;
       default  : p = "[unknown]"; break;
       }
       sprintf(temp,": variable in register %s",p);
       strcat(text, temp);
       out_line(";",text,"","");
       break;
  case 2:                        /* variable */
       if ((pVar->bInfo1&8)==8)
         p = "argument";
       else
         p = "local";
       sprintf(temp,": (var) %s stored in ",p);
       strcat(text,temp);
       switch (pVar->bInfo2) {
       case 1 :                          /* stored on stack */
            if ((int)pVar->wInfo1<0)
              sprintf(temp,"[bp-%04X]",-pVar->wInfo1);
            else
              sprintf(temp,"[bp+%04X]",pVar->wInfo1);
            break;
       default :
            strcpy(temp,"[unknown]");
            break;
       }
       strcat(text,temp);
       out_line(";",text,"","");
       return;
  case 0:                  /* static function */
       out_line(";",temp," (static function) ","");
  }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
leaq 0xc(%rdi), %rdx
leaq 0x6063(%rip), %rsi      # 0x13e72
leaq 0x40(%rsp), %rdi
xorl %eax, %eax
callq 0x91b0
movl (%rbx), %eax
cmpq $0x7, %rax
ja 0xdf70
leaq 0x5e0e(%rip), %rcx      # 0x13c3c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x608e(%rip), %rdi      # 0x13ecc
leaq 0x60c2(%rip), %rdx      # 0x13f07
leaq 0x62c0(%rip), %rcx      # 0x1410c
movq %rsp, %rsi
jmp 0xdf6b
movb 0x4(%rbx), %al
cmpb $0x7, %al
leaq 0x52b2(%rip), %rcx      # 0x13112
leaq 0x6041(%rip), %rsi      # 0x13ea8
cmoveq %rcx, %rsi
cmpb $0x6, %al
leaq 0x5297(%rip), %rdx      # 0x1310b
cmovneq %rsi, %rdx
leaq 0x6033(%rip), %rsi      # 0x13eb2
movq %rsp, %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x91b0
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x91a0
leaq 0x6029(%rip), %rdi      # 0x13ecc
leaq 0x6262(%rip), %rcx      # 0x1410c
movq %r14, %rsi
jmp 0xdf68
testb $0x8, 0x4(%rbx)
leaq 0x601a(%rip), %rax      # 0x13ed7
leaq 0x600a(%rip), %rdx      # 0x13ece
cmoveq %rax, %rdx
leaq 0x600e(%rip), %rsi      # 0x13edd
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x91b0
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x91a0
cmpb $0x1, 0x5(%rbx)
jne 0xdf1d
movl 0x8(%rbx), %edx
testl %edx, %edx
js 0xdf34
leaq 0x6000(%rip), %rsi      # 0x13efd
jmp 0xdf3d
leaq 0x5f90(%rip), %rdi      # 0x13e96
jmp 0xdf0f
leaq 0x5f68(%rip), %rdi      # 0x13e77
leaq 0x61f6(%rip), %rcx      # 0x1410c
leaq 0x40(%rsp), %rsi
jmp 0xdf68
movabsq $0x6e776f6e6b6e755b, %rax # imm = 0x6E776F6E6B6E755B
movq %rax, (%rsp)
movw $0x5d, 0x8(%rsp)
jmp 0xdf47
negl %edx
leaq 0x5fb6(%rip), %rsi      # 0x13ef3
movq %rsp, %rdi
xorl %eax, %eax
callq 0x91b0
leaq 0x40(%rsp), %rbx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x91a0
leaq 0x5f6e(%rip), %rdi      # 0x13ecc
leaq 0x61a7(%rip), %rcx      # 0x1410c
movq %rbx, %rsi
movq %rcx, %rdx
callq 0xcb44
addq $0x98, %rsp
popq %rbx
popq %r14
retq