// File: /workspace/github_c_makefile_star2_O1/42Bastian[P]lyxass/pseudo.c
// Function: p_regmap
int p_regmap(int dummy)
{
  int i;
  (void)dummy;
  if ( sourceMode == LYNX ) {
    return Error(SYNTAX_ERR,"REGMAP only in RISC modes");
  }
  if ( jaguar_mode == 0 ){
    fprintf(my_stderr,"Reg %-32s %-32s\n","Bank0 - GPU","Bank 1 - GPU");
  } else {
    fprintf(my_stderr,"Reg %-32s %-32s\n","Bank0 - DSP","Bank 1 - DSP");
  }
  for(i = 31; i >= 0; --i ){
    if ( risc[jaguar_mode].regs[i].flag || risc[jaguar_mode].regs[i+32].flag ){
      fprintf(my_stderr," %2d ",i);
      if ( risc[jaguar_mode].regs[i].flag ) {
        if ( risc[jaguar_mode].regs[i].label){
          fprintf(my_stderr, "%-32s ",risc[jaguar_mode].regs[i].label->name);
        } else {
          fprintf(my_stderr, "%-32s ","<N/A>");
        }
      } else {
        fprintf(my_stderr, "%-32s "," ");
      }
      if ( risc[jaguar_mode].regs[i+32].flag ){
        if ( risc[jaguar_mode].regs[i+32].label){
          fprintf(my_stderr, "%-32s ",risc[jaguar_mode].regs[i+32].label->name);
        } else {
          fprintf(my_stderr, "%-32s ","<N/A>");
        }
      } else {
        fprintf(my_stderr, "%-32s "," ");
      }
      fprintf(my_stderr, "\n");
    }
  }
  return 0;
}

// Assembly:
leaq 0xc7c8(%rip), %rax      # 0x145f0
cmpl $0x1, (%rax)
jne 0x7e3e
leaq 0x54b5(%rip), %rsi      # 0xd2e9
movl $0x12, %edi
jmp 0xa2c8
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0xc7a4(%rip), %rbp      # 0x145f4
cmpl $0x0, (%rbp)
leaq 0xc79d(%rip), %r13      # 0x145f8
movq (%r13), %rdi
leaq 0x549d(%rip), %rsi      # 0xd303
je 0x7e78
leaq 0x54be(%rip), %rdx      # 0xd32d
leaq 0x54c3(%rip), %rcx      # 0xd339
jmp 0x7e86
leaq 0x5495(%rip), %rdx      # 0xd314
leaq 0x549a(%rip), %rcx      # 0xd320
xorl %eax, %eax
callq 0x3130
movl $0x1f, %ebx
leaq 0xb277(%rip), %r12      # 0x13110
leaq 0x54ac(%rip), %r15      # 0xd34c
xorl %r14d, %r14d
movslq (%rbp), %rax
movq %rax, %rcx
shlq $0xb, %rcx
leaq (%rcx,%rax,8), %rax
addq %r12, %rax
cmpl $0x0, 0x3e0(%r14,%rax)
jne 0x7ecf
cmpl $0x0, 0x7e0(%r14,%rax)
je 0x7fa1
movq (%r13), %rdi
leaq 0x546c(%rip), %rsi      # 0xd346
movl %ebx, %edx
xorl %eax, %eax
callq 0x3130
movslq (%rbp), %rax
movq %rax, %rcx
shlq $0xb, %rcx
leaq (%rcx,%rax,8), %rax
addq %r12, %rax
cmpl $0x0, 0x3e0(%r14,%rax)
je 0x7f1a
movq 0x3f0(%r14,%rax), %rdx
movq (%r13), %rdi
testq %rdx, %rdx
je 0x7f2a
addq $0x38, %rdx
movq %r15, %rsi
jmp 0x7f34
movq (%r13), %rdi
movq %r15, %rsi
leaq 0x5422(%rip), %rdx      # 0xd34a
jmp 0x7f34
movq %r15, %rsi
leaq 0x541f(%rip), %rdx      # 0xd353
xorl %eax, %eax
callq 0x3130
movslq (%rbp), %rax
movq %rax, %rcx
shlq $0xb, %rcx
leaq (%rcx,%rax,8), %rax
addq %r12, %rax
cmpl $0x0, 0x7e0(%r14,%rax)
je 0x7f72
movq 0x7f0(%r14,%rax), %rdx
movq (%r13), %rdi
testq %rdx, %rdx
je 0x7f82
addq $0x38, %rdx
movq %r15, %rsi
jmp 0x7f8c
movq (%r13), %rdi
movq %r15, %rsi
leaq 0x53ca(%rip), %rdx      # 0xd34a
jmp 0x7f8c
movq %r15, %rsi
leaq 0x53c7(%rip), %rdx      # 0xd353
xorl %eax, %eax
callq 0x3130
movq (%r13), %rsi
movl $0xa, %edi
callq 0x30e0
addq $-0x20, %r14
decl %ebx
cmpq $-0x400, %r14           # imm = 0xFC00
jne 0x7ea3
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq