
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uchar * __regparm3 unw_decode_p2_p5(uchar *dp,uint code,void *arg,uchar *end)

{
  uchar *puVar1;
  ushort uVar2;
  undefined *puVar3;
  byte bVar4;
  FILE *__stream;
  int iVar5;
  uint uVar6;
  uint uVar7;
  char *pcVar8;
  char *pcVar9;
  bool bVar10;
  longlong lVar11;
  uint local_110;
  char grstr [20];
  char frstr [200];
  
  if ((code & 8) == 0) {
    puVar1 = dp + 1;
    bVar4 = *dp & 0x7f;
    uVar6 = code * 2 & 0xe | (uint)(*dp >> 7);
    switch(uVar6) {
    case 0:
      pcVar9 = "psp";
      break;
    case 1:
      pcVar9 = "rp";
      break;
    case 2:
      pcVar9 = "pfs";
      break;
    case 3:
      pcVar9 = "pr";
      break;
    case 4:
      pcVar9 = "unat";
      break;
    case 5:
      pcVar9 = "lc";
      break;
    case 6:
      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar4);
      return puVar1;
    case 7:
      pcVar9 = "rnat";
      break;
    case 8:
      pcVar9 = "bsp";
      break;
    case 9:
      pcVar9 = "bspstore";
      break;
    case 10:
      pcVar9 = "fpsr";
      break;
    case 0xb:
      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar4);
      return puVar1;
    default:
      printf("Unknown code 0x%02x\n",uVar6);
      return puVar1;
    }
    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar9,(uint)bVar4);
    return puVar1;
  }
  if ((code & 7) != 0) {
    if ((code & 7) == 1) {
      bVar4 = *dp;
      uVar2 = *(ushort *)(dp + 1);
      bVar10 = false;
      uVar6 = (uint)(bVar4 >> 4);
      iVar5 = 4;
      pcVar9 = grstr;
      do {
        if ((uVar6 & 1) != 0) {
          pcVar8 = pcVar9;
          if (bVar10) {
            *pcVar9 = ',';
            pcVar8 = pcVar9 + 1;
          }
          *pcVar8 = 'r';
          bVar10 = true;
          pcVar9 = pcVar8 + 2;
          pcVar8[1] = '8' - (char)iVar5;
        }
        uVar6 = uVar6 >> 1;
        iVar5 = iVar5 + -1;
      } while (iVar5 != 0);
      *pcVar9 = '\0';
      unw_print_frmask(frstr,(bVar4 & 0xf) << 0x10 | (uint)(ushort)(uVar2 << 8 | uVar2 >> 8));
      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",grstr,frstr);
      return dp + 3;
    }
    printf("Unknown code 0x%02x\n",code);
    return dp;
  }
  uVar6 = (uint)unw_rlen >> 2 | unw_rlen._4_4_ << 0x1e;
  if (arg < dp + uVar6) {
    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)arg - (int)dp);
    return dp;
  }
  printf("\t%s:spill_mask(imask=[","P4");
  puVar3 = PTR_stdout_000b3fd8;
  if (unw_rlen._4_4_ != 0 || (uint)unw_rlen != 0) {
    local_110 = 0;
    uVar6 = 0;
    uVar7 = 0;
    do {
      if ((uVar6 & 3) == 0) {
        bVar4 = *dp;
        dp = dp + 1;
        local_110 = (uint)bVar4;
        __stream = *(FILE **)puVar3;
        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;
      }
      else {
        __stream = *(FILE **)puVar3;
LAB_0004b7e2:
        lVar11 = __umoddi3(uVar6,uVar7,3,0);
        if (lVar11 == 0) {
          putc(0x2c,__stream);
          __stream = *(FILE **)puVar3;
        }
      }
      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);
      bVar10 = 0xfffffffe < uVar6;
      uVar6 = uVar6 + 1;
      uVar7 = uVar7 + bVar10;
    } while (uVar7 < unw_rlen._4_4_ || uVar7 - unw_rlen._4_4_ < (uint)(uVar6 < (uint)unw_rlen));
  }
  puts("])");
  return dp;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

byte * __regparm3 FUN_0004b6a0(byte *param_1,uint param_2,byte *param_3)

{
  byte *pbVar1;
  undefined *puVar2;
  byte bVar3;
  char *pcVar4;
  FILE *__stream;
  int iVar5;
  uint uVar6;
  uint uVar7;
  undefined1 *puVar8;
  undefined1 *puVar9;
  bool bVar10;
  longlong lVar11;
  uint local_110;
  undefined1 local_f8 [20];
  undefined1 local_e4 [208];
  undefined4 uStack_14;
  
  uStack_14 = 0x4b6ab;
  if ((param_2 & 8) == 0) {
    pbVar1 = param_1 + 1;
    bVar3 = *param_1 & 0x7f;
    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);
    switch(uVar6) {
    case 0:
      pcVar4 = "psp";
      break;
    case 1:
      pcVar4 = "rp";
      break;
    case 2:
      pcVar4 = "pfs";
      break;
    case 3:
      pcVar4 = "pr";
      break;
    case 4:
      pcVar4 = "unat";
      break;
    case 5:
      pcVar4 = "lc";
      break;
    case 6:
      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);
      return pbVar1;
    case 7:
      pcVar4 = "rnat";
      break;
    case 8:
      pcVar4 = "bsp";
      break;
    case 9:
      pcVar4 = "bspstore";
      break;
    case 10:
      pcVar4 = "fpsr";
      break;
    case 0xb:
      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);
      return pbVar1;
    default:
      printf("Unknown code 0x%02x\n",uVar6);
      return pbVar1;
    }
    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);
    return pbVar1;
  }
  if ((param_2 & 7) != 0) {
    if ((param_2 & 7) == 1) {
      bVar10 = false;
      uVar6 = (uint)(*param_1 >> 4);
      iVar5 = 4;
      puVar9 = local_f8;
      do {
        if ((uVar6 & 1) != 0) {
          puVar8 = puVar9;
          if (bVar10) {
            *puVar9 = 0x2c;
            puVar8 = puVar9 + 1;
          }
          *puVar8 = 0x72;
          bVar10 = true;
          puVar9 = puVar8 + 2;
          puVar8[1] = '8' - (char)iVar5;
        }
        uVar6 = uVar6 >> 1;
        iVar5 = iVar5 + -1;
      } while (iVar5 != 0);
      *puVar9 = 0;
      FUN_0004ac50();
      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);
      return param_1 + 3;
    }
    printf("Unknown code 0x%02x\n",param_2);
    return param_1;
  }
  uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e;
  if (param_3 < param_1 + uVar6) {
    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);
    return param_1;
  }
  printf("\t%s:spill_mask(imask=[","P4");
  puVar2 = PTR_stdout_000b3fd8;
  if (DAT_000b755c != 0 || DAT_000b7558 != 0) {
    local_110 = 0;
    uVar6 = 0;
    uVar7 = 0;
    do {
      if ((uVar6 & 3) == 0) {
        bVar3 = *param_1;
        param_1 = param_1 + 1;
        local_110 = (uint)bVar3;
        __stream = *(FILE **)puVar2;
        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;
      }
      else {
        __stream = *(FILE **)puVar2;
LAB_0004b7e2:
        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);
        if (lVar11 == 0) {
          putc(0x2c,__stream);
          __stream = *(FILE **)puVar2;
        }
      }
      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);
      bVar10 = 0xfffffffe < uVar6;
      uVar6 = uVar6 + 1;
      uVar7 = uVar7 + bVar10;
    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));
  }
  puts("])");
  return param_1;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013f70
ADD EBX,0x68955
SUB ESP,0x10c
TEST DL,0x8
JNZ 0x0004b6f8
LEA ECX,[EAX + 0x1]
MOVZX EAX,byte ptr [EAX]
ADD EDX,EDX
MOV EDI,EDX
MOV EDX,EAX
AND EDI,0xe
AND EAX,0x7f
SHR DL,0x7
MOV ESI,EDX
OR EDI,ESI
MOV EDX,EDI
CMP DL,0xb
JA 0x0004b938
MOVZX EDX,DL
MOV dword ptr [ESP + 0xc],ECX
MOV EDI,dword ptr [EBX + EDX*0x4 + 0xfffdab34]
ADD EDI,EBX
JMP EDI
MOV EAX,EDX
AND EAX,0x7
JNZ 0x0004b818
MOV EAX,dword ptr [EBX + 0x3558]
MOV EDX,dword ptr [EBX + 0x355c]
SHRD EAX,EDX,0x2
LEA ESI,[EBP + EAX*0x1]
CMP ECX,ESI
JC 0x0004b8c0
SUB ESP,0x8
LEA EAX,[EBX + 0xfffbc8cd]
PUSH EAX
LEA EAX,[EBX + 0xfffda6db]
PUSH EAX
CALL 0x00013060
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0x355c]
OR EAX,dword ptr [EBX + 0x3558]
JZ 0x0004b910
MOV EAX,dword ptr [EBX + 0xffffffd8]
MOV byte ptr [ESP + 0xc],0x0
XOR ESI,ESI
XOR EDI,EDI
MOV dword ptr [ESP + 0x10],EAX
LEA EAX,[0x3558]
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[0x355c]
MOV dword ptr [ESP + 0x14],EAX
JMP 0x0004b7d5
MOVZX EAX,byte ptr [EBP]
LEA EDX,[EBP + 0x1]
MOV EBP,EDI
OR EBP,ESI
MOV EBP,EDX
MOV byte ptr [ESP + 0xc],AL
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [EAX]
JNZ 0x0004b7e2
SUB ESP,0x8
PUSH ECX
MOV ECX,ESI
MOVZX EAX,byte ptr [ESP + 0x18]
NOT ECX
AND ECX,0x3
ADD ECX,ECX
SAR EAX,CL
AND EAX,0x3
MOVSX EAX,byte ptr [EAX + EBX*0x1 + 0xfffda6f2]
PUSH EAX
CALL 0x00013360
ADD ESI,0x1
ADC EDI,0x0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x18]
MOV EDX,EDI
CMP ESI,dword ptr [EAX + EBX*0x1]
MOV EAX,dword ptr [ESP + 0x14]
SBB EDX,dword ptr [EAX + EBX*0x1]
JNC 0x0004b910
MOV EAX,ESI
AND EAX,0x3
JZ 0x0004b778
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [EAX]
MOV dword ptr [ESP + 0x1c],ECX
PUSH 0x0
PUSH 0x3
PUSH EDI
PUSH ESI
CALL 0x0006b6c0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x1c]
OR EDX,EAX
JNZ 0x0004b791
SUB ESP,0x8
PUSH ECX
PUSH 0x2c
CALL 0x00013360
MOV EAX,dword ptr [ESP + 0x20]
ADD ESP,0x10
MOV ECX,dword ptr [EAX]
JMP 0x0004b791
CMP EAX,0x1
JNZ 0x0004b8e8
MOVZX EAX,byte ptr [EBP]
MOVZX EDI,word ptr [EBP + 0x1]
LEA ECX,[EBP + 0x3]
XOR EDX,EDX
MOV dword ptr [ESP + 0x10],ECX
XOR EBP,EBP
MOV ESI,EAX
ROL DI,0x8
SHL ESI,0x10
MOVZX EDI,DI
SHRD EAX,EDX,0x4
MOV EDX,0x4
AND ESI,0xf0000
OR ESI,EDI
MOV dword ptr [ESP + 0xc],ESI
LEA ESI,[ESP + 0x24]
MOV EDI,ESI
TEST AL,0x1
JZ 0x0004b87e
TEST EBP,EBP
JZ 0x0004b869
MOV byte ptr [EDI],0x2c
ADD EDI,0x1
MOV ECX,0x38
MOV byte ptr [EDI],0x72
MOV EBP,0x1
ADD EDI,0x2
SUB ECX,EDX
MOV byte ptr [EDI + -0x1],CL
SHR EAX,0x1
SUB EDX,0x1
JNZ 0x0004b85b
MOV byte ptr [EDI],0x0
MOV EDX,dword ptr [ESP + 0xc]
LEA EDI,[ESP + 0x38]
MOV EAX,EDI
CALL 0x0004ac50
LEA EAX,[EBX + 0xfffbc8df]
PUSH EDI
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xfffda998]
PUSH EAX
CALL 0x00013060
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x10]
ADD ESP,0x10c
MOV EAX,ECX
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
SUB ECX,EBP
PUSH ECX
PUSH EAX
LEA EAX,[EBX + 0xfffda964]
PUSH EAX
CALL 0x00013060
ADD ESP,0x10
MOV ECX,EBP
ADD ESP,0x10c
MOV EAX,ECX
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
LEA EAX,[EBX + 0xfffda6c6]
PUSH EDX
PUSH EAX
CALL 0x00013060
ADD ESP,0x10
MOV ECX,EBP
ADD ESP,0x10c
MOV EAX,ECX
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfffda6f7]
PUSH EAX
CALL 0x000131d0
ADD ESP,0x10
MOV ECX,EBP
ADD ESP,0x10c
MOV EAX,ECX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],ECX
MOVZX EDX,DL
SUB ESP,0x8
LEA EAX,[EBX + 0xfffda6c6]
PUSH EDX
PUSH EAX
CALL 0x00013060
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
JMP 0x0004b8b3
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbyte * __regparm3 FUN_0004b6a0(byte *param_1,uint param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  undefined *puVar2;\n  byte bVar3;\n  char *pcVar4;\n  FILE *__stream;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  bool bVar10;\n  longlong lVar11;\n  uint local_110;\n  undefined1 local_f8 [20];\n  undefined1 local_e4 [208];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4b6ab;\n  if ((param_2 & 8) == 0) {\n    pbVar1 = param_1 + 1;\n    bVar3 = *param_1 & 0x7f;\n    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);\n    return pbVar1;\n  }\n  if ((param_2 & 7) != 0) {\n    if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }\n    printf("Unknown code 0x%02x\n",param_2);\n    return param_1;\n  }\n  uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e;\n  if (param_3 < param_1 + uVar6) {\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);\n    return param_1;\n  }\n  printf("\t%s:spill_mask(imask=[","P4");\n  puVar2 = PTR_stdout_000b3fd8;\n  if (DAT_000b755c != 0 || DAT_000b7558 != 0) {\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));\n  }\n  puts("])");\n  return param_1;\n}\n\n" comment (ERROR "byte * __regparm3 FUN_0004b6a0(byte *param_1,uint param_2,byte *param_3)" (binary_expression "byte * __regparm3 FUN_0004b6a0(byte *param_1,uint param_2,byte *param_3)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0004b6a0(byte *param_1,uint param_2,byte *param_3)" identifier (argument_list "(byte *param_1,uint param_2,byte *param_3)" ( (binary_expression "byte *param_1" identifier * identifier) , (ERROR "uint" identifier) identifier , (binary_expression "byte *param_3" identifier * identifier) ))))) (compound_statement "{\n  byte *pbVar1;\n  undefined *puVar2;\n  byte bVar3;\n  char *pcVar4;\n  FILE *__stream;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  bool bVar10;\n  longlong lVar11;\n  uint local_110;\n  undefined1 local_f8 [20];\n  undefined1 local_e4 [208];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4b6ab;\n  if ((param_2 & 8) == 0) {\n    pbVar1 = param_1 + 1;\n    bVar3 = *param_1 & 0x7f;\n    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);\n    return pbVar1;\n  }\n  if ((param_2 & 7) != 0) {\n    if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }\n    printf("Unknown code 0x%02x\n",param_2);\n    return param_1;\n  }\n  uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e;\n  if (param_3 < param_1 + uVar6) {\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);\n    return param_1;\n  }\n  printf("\t%s:spill_mask(imask=[","P4");\n  puVar2 = PTR_stdout_000b3fd8;\n  if (DAT_000b755c != 0 || DAT_000b7558 != 0) {\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));\n  }\n  puts("])");\n  return param_1;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "bool bVar10;" primitive_type identifier ;) (declaration "longlong lVar11;" type_identifier identifier ;) (declaration "uint local_110;" type_identifier identifier ;) (declaration "undefined1 local_f8 [20];" type_identifier (array_declarator "local_f8 [20]" identifier [ number_literal ]) ;) (declaration "undefined1 local_e4 [208];" type_identifier (array_declarator "local_e4 [208]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x4b6ab;" (assignment_expression "uStack_14 = 0x4b6ab" identifier = number_literal) ;) (if_statement "if ((param_2 & 8) == 0) {\n    pbVar1 = param_1 + 1;\n    bVar3 = *param_1 & 0x7f;\n    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);\n    return pbVar1;\n  }" if (parenthesized_expression "((param_2 & 8) == 0)" ( (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    pbVar1 = param_1 + 1;\n    bVar3 = *param_1 & 0x7f;\n    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);\n    return pbVar1;\n  }" { (expression_statement "pbVar1 = param_1 + 1;" (assignment_expression "pbVar1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = *param_1 & 0x7f;" (assignment_expression "bVar3 = *param_1 & 0x7f" identifier = (binary_expression "*param_1 & 0x7f" (pointer_expression "*param_1" * identifier) & number_literal)) ;) (expression_statement "uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);" (assignment_expression "uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7)" identifier = (binary_expression "param_2 * 2 & 0xe | (uint)(*param_1 >> 7)" (binary_expression "param_2 * 2 & 0xe" (binary_expression "param_2 * 2" identifier * number_literal) & number_literal) | (call_expression "(uint)(*param_1 >> 7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_1 >> 7)" ( (binary_expression "*param_1 >> 7" (pointer_expression "*param_1" * identifier) >> number_literal) ))))) ;) (switch_statement "switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }" switch (parenthesized_expression "(uVar6)" ( identifier )) (compound_statement "{\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }" { (case_statement "case 0:\n      pcVar4 = "psp";\n      break;" case number_literal : (expression_statement "pcVar4 = "psp";" (assignment_expression "pcVar4 = "psp"" identifier = (string_literal ""psp"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 1:\n      pcVar4 = "rp";\n      break;" case number_literal : (expression_statement "pcVar4 = "rp";" (assignment_expression "pcVar4 = "rp"" identifier = (string_literal ""rp"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n      pcVar4 = "pfs";\n      break;" case number_literal : (expression_statement "pcVar4 = "pfs";" (assignment_expression "pcVar4 = "pfs"" identifier = (string_literal ""pfs"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n      pcVar4 = "pr";\n      break;" case number_literal : (expression_statement "pcVar4 = "pr";" (assignment_expression "pcVar4 = "pr"" identifier = (string_literal ""pr"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 4:\n      pcVar4 = "unat";\n      break;" case number_literal : (expression_statement "pcVar4 = "unat";" (assignment_expression "pcVar4 = "unat"" identifier = (string_literal ""unat"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 5:\n      pcVar4 = "lc";\n      break;" case number_literal : (expression_statement "pcVar4 = "lc";" (assignment_expression "pcVar4 = "lc"" identifier = (string_literal ""lc"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;" case number_literal : (expression_statement "printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);" (call_expression "printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3)" identifier (argument_list "("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3)" ( (string_literal ""\t%s:rp_br(reg=b%u)\n"" " escape_sequence string_content escape_sequence ") , (string_literal ""P3"" " string_content ") , (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (return_statement "return pbVar1;" return identifier ;)) (case_statement "case 7:\n      pcVar4 = "rnat";\n      break;" case number_literal : (expression_statement "pcVar4 = "rnat";" (assignment_expression "pcVar4 = "rnat"" identifier = (string_literal ""rnat"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 8:\n      pcVar4 = "bsp";\n      break;" case number_literal : (expression_statement "pcVar4 = "bsp";" (assignment_expression "pcVar4 = "bsp"" identifier = (string_literal ""bsp"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 9:\n      pcVar4 = "bspstore";\n      break;" case number_literal : (expression_statement "pcVar4 = "bspstore";" (assignment_expression "pcVar4 = "bspstore"" identifier = (string_literal ""bspstore"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 10:\n      pcVar4 = "fpsr";\n      break;" case number_literal : (expression_statement "pcVar4 = "fpsr";" (assignment_expression "pcVar4 = "fpsr"" identifier = (string_literal ""fpsr"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;" case number_literal : (expression_statement "printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);" (call_expression "printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3)" identifier (argument_list "("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3)" ( (string_literal ""\t%s:priunat_gr(reg=r%u)\n"" " escape_sequence string_content escape_sequence ") , (string_literal ""P3"" " string_content ") , (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (return_statement "return pbVar1;" return identifier ;)) (case_statement "default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;" default : (expression_statement "printf("Unknown code 0x%02x\n",uVar6);" (call_expression "printf("Unknown code 0x%02x\n",uVar6)" identifier (argument_list "("Unknown code 0x%02x\n",uVar6)" ( (string_literal ""Unknown code 0x%02x\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return pbVar1;" return identifier ;)) })) (expression_statement "printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);" (call_expression "printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3)" identifier (argument_list "("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3)" ( (string_literal ""\t%s:%s_gr(reg=r%u)\n"" " escape_sequence string_content escape_sequence ") , (string_literal ""P3"" " string_content ") , identifier , (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (return_statement "return pbVar1;" return identifier ;) })) (if_statement "if ((param_2 & 7) != 0) {\n    if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }\n    printf("Unknown code 0x%02x\n",param_2);\n    return param_1;\n  }" if (parenthesized_expression "((param_2 & 7) != 0)" ( (binary_expression "(param_2 & 7) != 0" (parenthesized_expression "(param_2 & 7)" ( (binary_expression "param_2 & 7" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }\n    printf("Unknown code 0x%02x\n",param_2);\n    return param_1;\n  }" { (if_statement "if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }" if (parenthesized_expression "((param_2 & 7) == 1)" ( (binary_expression "(param_2 & 7) == 1" (parenthesized_expression "(param_2 & 7)" ( (binary_expression "param_2 & 7" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }" { (expression_statement "bVar10 = false;" (assignment_expression "bVar10 = false" identifier = false) ;) (expression_statement "uVar6 = (uint)(*param_1 >> 4);" (assignment_expression "uVar6 = (uint)(*param_1 >> 4)" identifier = (call_expression "(uint)(*param_1 >> 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_1 >> 4)" ( (binary_expression "*param_1 >> 4" (pointer_expression "*param_1" * identifier) >> number_literal) )))) ;) (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" identifier = number_literal) ;) (expression_statement "puVar9 = local_f8;" (assignment_expression "puVar9 = local_f8" identifier = identifier) ;) (do_statement "do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);" do (compound_statement "{\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      }" { (if_statement "if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }" if (parenthesized_expression "((uVar6 & 1) != 0)" ( (binary_expression "(uVar6 & 1) != 0" (parenthesized_expression "(uVar6 & 1)" ( (binary_expression "uVar6 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }" { (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) (if_statement "if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }" if (parenthesized_expression "(bVar10)" ( identifier )) (compound_statement "{\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }" { (expression_statement "*puVar9 = 0x2c;" (assignment_expression "*puVar9 = 0x2c" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "puVar8 = puVar9 + 1;" (assignment_expression "puVar8 = puVar9 + 1" identifier = (binary_expression "puVar9 + 1" identifier + number_literal)) ;) })) (expression_statement "*puVar8 = 0x72;" (assignment_expression "*puVar8 = 0x72" (pointer_expression "*puVar8" * identifier) = number_literal) ;) (expression_statement "bVar10 = true;" (assignment_expression "bVar10 = true" identifier = true) ;) (expression_statement "puVar9 = puVar8 + 2;" (assignment_expression "puVar9 = puVar8 + 2" identifier = (binary_expression "puVar8 + 2" identifier + number_literal)) ;) (expression_statement "puVar8[1] = '8' - (char)iVar5;" (assignment_expression "puVar8[1] = '8' - (char)iVar5" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = (binary_expression "'8' - (char)iVar5" (char_literal "'8'" ' character ') - (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier))) ;) })) (expression_statement "uVar6 = uVar6 >> 1;" (assignment_expression "uVar6 = uVar6 >> 1" identifier = (binary_expression "uVar6 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "FUN_0004ac50();" (call_expression "FUN_0004ac50()" identifier (argument_list "()" ( ))) ;) (expression_statement "printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);" (call_expression "printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4)" identifier (argument_list "("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4)" ( (string_literal ""\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n"" " escape_sequence string_content escape_sequence ") , (string_literal ""P5"" " string_content ") , identifier , identifier ))) ;) (return_statement "return param_1 + 3;" return (binary_expression "param_1 + 3" identifier + number_literal) ;) })) (expression_statement "printf("Unknown code 0x%02x\n",param_2);" (call_expression "printf("Unknown code 0x%02x\n",param_2)" identifier (argument_list "("Unknown code 0x%02x\n",param_2)" ( (string_literal ""Unknown code 0x%02x\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e;" (assignment_expression "uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e" identifier = (binary_expression "DAT_000b7558 >> 2 | DAT_000b755c << 0x1e" (binary_expression "DAT_000b7558 >> 2" identifier >> number_literal) | (binary_expression "DAT_000b755c << 0x1e" identifier << number_literal))) ;) (if_statement "if (param_3 < param_1 + uVar6) {\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);\n    return param_1;\n  }" if (parenthesized_expression "(param_3 < param_1 + uVar6)" ( (binary_expression "param_3 < param_1 + uVar6" identifier < (binary_expression "param_1 + uVar6" identifier + identifier)) )) (compound_statement "{\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);\n    return param_1;\n  }" { (expression_statement "printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);" (call_expression "printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1)" identifier (argument_list "("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1)" ( (string_literal ""\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n"" " escape_sequence string_content escape_sequence escape_sequence ") , identifier , (binary_expression "(int)param_3 - (int)param_1" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "printf("\t%s:spill_mask(imask=[","P4");" (call_expression "printf("\t%s:spill_mask(imask=[","P4")" identifier (argument_list "("\t%s:spill_mask(imask=[","P4")" ( (string_literal ""\t%s:spill_mask(imask=["" " escape_sequence string_content ") , (string_literal ""P4"" " string_content ") ))) ;) (expression_statement "puVar2 = PTR_stdout_000b3fd8;" (assignment_expression "puVar2 = PTR_stdout_000b3fd8" identifier = identifier) ;) (if_statement "if (DAT_000b755c != 0 || DAT_000b7558 != 0) {\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));\n  }" if (parenthesized_expression "(DAT_000b755c != 0 || DAT_000b7558 != 0)" ( (binary_expression "DAT_000b755c != 0 || DAT_000b7558 != 0" (binary_expression "DAT_000b755c != 0" identifier != number_literal) || (binary_expression "DAT_000b7558 != 0" identifier != number_literal)) )) (compound_statement "{\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));\n  }" { (expression_statement "local_110 = 0;" (assignment_expression "local_110 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));" do (compound_statement "{\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    }" { (if_statement "if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }" if (parenthesized_expression "((uVar6 & 3) == 0)" ( (binary_expression "(uVar6 & 3) == 0" (parenthesized_expression "(uVar6 & 3)" ( (binary_expression "uVar6 & 3" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }" { (expression_statement "bVar3 = *param_1;" (assignment_expression "bVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "local_110 = (uint)bVar3;" (assignment_expression "local_110 = (uint)bVar3" identifier = (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "__stream = *(FILE **)puVar2;" (assignment_expression "__stream = *(FILE **)puVar2" identifier = (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;" if (parenthesized_expression "(uVar7 != 0 || uVar6 != 0)" ( (binary_expression "uVar7 != 0 || uVar6 != 0" (binary_expression "uVar7 != 0" identifier != number_literal) || (binary_expression "uVar6 != 0" identifier != number_literal)) )) (goto_statement "goto LAB_0004b7e2;" goto statement_identifier ;)) }) (else_clause "else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }" else (compound_statement "{\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }" { (expression_statement "__stream = *(FILE **)puVar2;" (assignment_expression "__stream = *(FILE **)puVar2" identifier = (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (labeled_statement "LAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);" statement_identifier : (expression_statement "lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);" (assignment_expression "lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0)" identifier = (call_expression "FUN_0006b6c0(uVar6,uVar7,3,0)" identifier (argument_list "(uVar6,uVar7,3,0)" ( identifier , identifier , number_literal , number_literal )))) ;)) (if_statement "if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }" if (parenthesized_expression "(lVar11 == 0)" ( (binary_expression "lVar11 == 0" identifier == number_literal) )) (compound_statement "{\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }" { (expression_statement "putc(0x2c,__stream);" (call_expression "putc(0x2c,__stream)" identifier (argument_list "(0x2c,__stream)" ( number_literal , identifier ))) ;) (expression_statement "__stream = *(FILE **)puVar2;" (assignment_expression "__stream = *(FILE **)puVar2" identifier = (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) })) }))) (expression_statement "putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);" (call_expression "putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream)" identifier (argument_list "((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream)" ( (cast_expression "(int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3]" (parenthesized_expression "(&DAT_0008e6f2)" ( (pointer_expression "&DAT_0008e6f2" & identifier) )) [ (binary_expression "(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3" (binary_expression "(int)local_110 >> (~(byte)uVar6 & 3) * '\x02'" (cast_expression "(int)local_110" ( (type_descriptor "int" primitive_type) ) identifier) >> (binary_expression "(~(byte)uVar6 & 3) * '\x02'" (parenthesized_expression "(~(byte)uVar6 & 3)" ( (binary_expression "~(byte)uVar6 & 3" (unary_expression "~(byte)uVar6" ~ (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) & number_literal) )) * (char_literal "'\x02'" ' escape_sequence '))) & number_literal) ]))) , identifier ))) ;) (expression_statement "bVar10 = 0xfffffffe < uVar6;" (assignment_expression "bVar10 = 0xfffffffe < uVar6" identifier = (binary_expression "0xfffffffe < uVar6" number_literal < identifier)) ;) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = uVar7 + bVar10;" (assignment_expression "uVar7 = uVar7 + bVar10" identifier = (binary_expression "uVar7 + bVar10" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558))" ( (binary_expression "uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558)" (binary_expression "uVar7 < DAT_000b755c" identifier < identifier) || (binary_expression "uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558)" (binary_expression "uVar7 - DAT_000b755c" identifier - identifier) < (call_expression "(uint)(uVar6 < DAT_000b7558)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < DAT_000b7558)" ( (binary_expression "uVar6 < DAT_000b7558" identifier < identifier) ))))) )) ;) })) (expression_statement "puts("])");" (call_expression "puts("])")" identifier (argument_list "("])")" ( (string_literal ""])"" " string_content ") ))) ;) (return_statement "return param_1;" return identifier ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuchar * __regparm3 unw_decode_p2_p5(uchar *dp,uint code,void *arg,uchar *end)\n\n{\n  uchar *puVar1;\n  ushort uVar2;\n  undefined *puVar3;\n  byte bVar4;\n  FILE *__stream;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  char *pcVar8;\n  char *pcVar9;\n  bool bVar10;\n  longlong lVar11;\n  uint local_110;\n  char grstr [20];\n  char frstr [200];\n  \n  if ((code & 8) == 0) {\n    puVar1 = dp + 1;\n    bVar4 = *dp & 0x7f;\n    uVar6 = code * 2 & 0xe | (uint)(*dp >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar9 = "psp";\n      break;\n    case 1:\n      pcVar9 = "rp";\n      break;\n    case 2:\n      pcVar9 = "pfs";\n      break;\n    case 3:\n      pcVar9 = "pr";\n      break;\n    case 4:\n      pcVar9 = "unat";\n      break;\n    case 5:\n      pcVar9 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar4);\n      return puVar1;\n    case 7:\n      pcVar9 = "rnat";\n      break;\n    case 8:\n      pcVar9 = "bsp";\n      break;\n    case 9:\n      pcVar9 = "bspstore";\n      break;\n    case 10:\n      pcVar9 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar4);\n      return puVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return puVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar9,(uint)bVar4);\n    return puVar1;\n  }\n  if ((code & 7) != 0) {\n    if ((code & 7) == 1) {\n      bVar4 = *dp;\n      uVar2 = *(ushort *)(dp + 1);\n      bVar10 = false;\n      uVar6 = (uint)(bVar4 >> 4);\n      iVar5 = 4;\n      pcVar9 = grstr;\n      do {\n        if ((uVar6 & 1) != 0) {\n          pcVar8 = pcVar9;\n          if (bVar10) {\n            *pcVar9 = ',';\n            pcVar8 = pcVar9 + 1;\n          }\n          *pcVar8 = 'r';\n          bVar10 = true;\n          pcVar9 = pcVar8 + 2;\n          pcVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *pcVar9 = '\0';\n      unw_print_frmask(frstr,(bVar4 & 0xf) << 0x10 | (uint)(ushort)(uVar2 << 8 | uVar2 >> 8));\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",grstr,frstr);\n      return dp + 3;\n    }\n    printf("Unknown code 0x%02x\n",code);\n    return dp;\n  }\n  uVar6 = (uint)unw_rlen >> 2 | unw_rlen._4_4_ << 0x1e;\n  if (arg < dp + uVar6) {\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)arg - (int)dp);\n    return dp;\n  }\n  printf("\t%s:spill_mask(imask=[","P4");\n  puVar3 = PTR_stdout_000b3fd8;\n  if (unw_rlen._4_4_ != 0 || (uint)unw_rlen != 0) {\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar4 = *dp;\n        dp = dp + 1;\n        local_110 = (uint)bVar4;\n        __stream = *(FILE **)puVar3;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar3;\nLAB_0004b7e2:\n        lVar11 = __umoddi3(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar3;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < unw_rlen._4_4_ || uVar7 - unw_rlen._4_4_ < (uint)(uVar6 < (uint)unw_rlen));\n  }\n  puts("])");\n  return dp;\n}\n\n" comment (ERROR "uchar * __regparm3 unw_decode_p2_p5(uchar *dp,uint code,void *arg,uchar *end)" (binary_expression "uchar * __regparm3 unw_decode_p2_p5(uchar *dp,uint code,void *arg,uchar *end)" identifier * (ERROR "__regparm3" identifier) (call_expression "unw_decode_p2_p5(uchar *dp,uint code,void *arg,uchar *end)" identifier (argument_list "(uchar *dp,uint code,void *arg,uchar *end)" ( (binary_expression "uchar *dp" identifier * identifier) , identifier (ERROR "code" identifier) , (binary_expression "void *arg" identifier * identifier) , (binary_expression "uchar *end" identifier * identifier) ))))) (compound_statement "{\n  uchar *puVar1;\n  ushort uVar2;\n  undefined *puVar3;\n  byte bVar4;\n  FILE *__stream;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  char *pcVar8;\n  char *pcVar9;\n  bool bVar10;\n  longlong lVar11;\n  uint local_110;\n  char grstr [20];\n  char frstr [200];\n  \n  if ((code & 8) == 0) {\n    puVar1 = dp + 1;\n    bVar4 = *dp & 0x7f;\n    uVar6 = code * 2 & 0xe | (uint)(*dp >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar9 = "psp";\n      break;\n    case 1:\n      pcVar9 = "rp";\n      break;\n    case 2:\n      pcVar9 = "pfs";\n      break;\n    case 3:\n      pcVar9 = "pr";\n      break;\n    case 4:\n      pcVar9 = "unat";\n      break;\n    case 5:\n      pcVar9 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar4);\n      return puVar1;\n    case 7:\n      pcVar9 = "rnat";\n      break;\n    case 8:\n      pcVar9 = "bsp";\n      break;\n    case 9:\n      pcVar9 = "bspstore";\n      break;\n    case 10:\n      pcVar9 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar4);\n      return puVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return puVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar9,(uint)bVar4);\n    return puVar1;\n  }\n  if ((code & 7) != 0) {\n    if ((code & 7) == 1) {\n      bVar4 = *dp;\n      uVar2 = *(ushort *)(dp + 1);\n      bVar10 = false;\n      uVar6 = (uint)(bVar4 >> 4);\n      iVar5 = 4;\n      pcVar9 = grstr;\n      do {\n        if ((uVar6 & 1) != 0) {\n          pcVar8 = pcVar9;\n          if (bVar10) {\n            *pcVar9 = ',';\n            pcVar8 = pcVar9 + 1;\n          }\n          *pcVar8 = 'r';\n          bVar10 = true;\n          pcVar9 = pcVar8 + 2;\n          pcVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *pcVar9 = '\0';\n      unw_print_frmask(frstr,(bVar4 & 0xf) << 0x10 | (uint)(ushort)(uVar2 << 8 | uVar2 >> 8));\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",grstr,frstr);\n      return dp + 3;\n    }\n    printf("Unknown code 0x%02x\n",code);\n    return dp;\n  }\n  uVar6 = (uint)unw_rlen >> 2 | unw_rlen._4_4_ << 0x1e;\n  if (arg < dp + uVar6) {\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)arg - (int)dp);\n    return dp;\n  }\n  printf("\t%s:spill_mask(imask=[","P4");\n  puVar3 = PTR_stdout_000b3fd8;\n  if (unw_rlen._4_4_ != 0 || (uint)unw_rlen != 0) {\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar4 = *dp;\n        dp = dp + 1;\n        local_110 = (uint)bVar4;\n        __stream = *(FILE **)puVar3;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar3;\nLAB_0004b7e2:\n        lVar11 = __umoddi3(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar3;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < unw_rlen._4_4_ || uVar7 - unw_rlen._4_4_ < (uint)(uVar6 < (uint)unw_rlen));\n  }\n  puts("])");\n  return dp;\n}" { (declaration "uchar *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "bool bVar10;" primitive_type identifier ;) (declaration "longlong lVar11;" type_identifier identifier ;) (declaration "uint local_110;" type_identifier identifier ;) (declaration "char grstr [20];" primitive_type (array_declarator "grstr [20]" identifier [ number_literal ]) ;) (declaration "char frstr [200];" primitive_type (array_declarator "frstr [200]" identifier [ number_literal ]) ;) (if_statement "if ((code & 8) == 0) {\n    puVar1 = dp + 1;\n    bVar4 = *dp & 0x7f;\n    uVar6 = code * 2 & 0xe | (uint)(*dp >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar9 = "psp";\n      break;\n    case 1:\n      pcVar9 = "rp";\n      break;\n    case 2:\n      pcVar9 = "pfs";\n      break;\n    case 3:\n      pcVar9 = "pr";\n      break;\n    case 4:\n      pcVar9 = "unat";\n      break;\n    case 5:\n      pcVar9 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar4);\n      return puVar1;\n    case 7:\n      pcVar9 = "rnat";\n      break;\n    case 8:\n      pcVar9 = "bsp";\n      break;\n    case 9:\n      pcVar9 = "bspstore";\n      break;\n    case 10:\n      pcVar9 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar4);\n      return puVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return puVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar9,(uint)bVar4);\n    return puVar1;\n  }" if (parenthesized_expression "((code & 8) == 0)" ( (binary_expression "(code & 8) == 0" (parenthesized_expression "(code & 8)" ( (binary_expression "code & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    puVar1 = dp + 1;\n    bVar4 = *dp & 0x7f;\n    uVar6 = code * 2 & 0xe | (uint)(*dp >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar9 = "psp";\n      break;\n    case 1:\n      pcVar9 = "rp";\n      break;\n    case 2:\n      pcVar9 = "pfs";\n      break;\n    case 3:\n      pcVar9 = "pr";\n      break;\n    case 4:\n      pcVar9 = "unat";\n      break;\n    case 5:\n      pcVar9 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar4);\n      return puVar1;\n    case 7:\n      pcVar9 = "rnat";\n      break;\n    case 8:\n      pcVar9 = "bsp";\n      break;\n    case 9:\n      pcVar9 = "bspstore";\n      break;\n    case 10:\n      pcVar9 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar4);\n      return puVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return puVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar9,(uint)bVar4);\n    return puVar1;\n  }" { (expression_statement "puVar1 = dp + 1;" (assignment_expression "puVar1 = dp + 1" identifier = (binary_expression "dp + 1" identifier + number_literal)) ;) (expression_statement "bVar4 = *dp & 0x7f;" (assignment_expression "bVar4 = *dp & 0x7f" identifier = (binary_expression "*dp & 0x7f" (pointer_expression "*dp" * identifier) & number_literal)) ;) (expression_statement "uVar6 = code * 2 & 0xe | (uint)(*dp >> 7);" (assignment_expression "uVar6 = code * 2 & 0xe | (uint)(*dp >> 7)" identifier = (binary_expression "code * 2 & 0xe | (uint)(*dp >> 7)" (binary_expression "code * 2 & 0xe" (binary_expression "code * 2" identifier * number_literal) & number_literal) | (call_expression "(uint)(*dp >> 7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*dp >> 7)" ( (binary_expression "*dp >> 7" (pointer_expression "*dp" * identifier) >> number_literal) ))))) ;) (switch_statement "switch(uVar6) {\n    case 0:\n      pcVar9 = "psp";\n      break;\n    case 1:\n      pcVar9 = "rp";\n      break;\n    case 2:\n      pcVar9 = "pfs";\n      break;\n    case 3:\n      pcVar9 = "pr";\n      break;\n    case 4:\n      pcVar9 = "unat";\n      break;\n    case 5:\n      pcVar9 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar4);\n      return puVar1;\n    case 7:\n      pcVar9 = "rnat";\n      break;\n    case 8:\n      pcVar9 = "bsp";\n      break;\n    case 9:\n      pcVar9 = "bspstore";\n      break;\n    case 10:\n      pcVar9 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar4);\n      return puVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return puVar1;\n    }" switch (parenthesized_expression "(uVar6)" ( identifier )) (compound_statement "{\n    case 0:\n      pcVar9 = "psp";\n      break;\n    case 1:\n      pcVar9 = "rp";\n      break;\n    case 2:\n      pcVar9 = "pfs";\n      break;\n    case 3:\n      pcVar9 = "pr";\n      break;\n    case 4:\n      pcVar9 = "unat";\n      break;\n    case 5:\n      pcVar9 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar4);\n      return puVar1;\n    case 7:\n      pcVar9 = "rnat";\n      break;\n    case 8:\n      pcVar9 = "bsp";\n      break;\n    case 9:\n      pcVar9 = "bspstore";\n      break;\n    case 10:\n      pcVar9 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar4);\n      return puVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return puVar1;\n    }" { (case_statement "case 0:\n      pcVar9 = "psp";\n      break;" case number_literal : (expression_statement "pcVar9 = "psp";" (assignment_expression "pcVar9 = "psp"" identifier = (string_literal ""psp"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 1:\n      pcVar9 = "rp";\n      break;" case number_literal : (expression_statement "pcVar9 = "rp";" (assignment_expression "pcVar9 = "rp"" identifier = (string_literal ""rp"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n      pcVar9 = "pfs";\n      break;" case number_literal : (expression_statement "pcVar9 = "pfs";" (assignment_expression "pcVar9 = "pfs"" identifier = (string_literal ""pfs"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n      pcVar9 = "pr";\n      break;" case number_literal : (expression_statement "pcVar9 = "pr";" (assignment_expression "pcVar9 = "pr"" identifier = (string_literal ""pr"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 4:\n      pcVar9 = "unat";\n      break;" case number_literal : (expression_statement "pcVar9 = "unat";" (assignment_expression "pcVar9 = "unat"" identifier = (string_literal ""unat"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 5:\n      pcVar9 = "lc";\n      break;" case number_literal : (expression_statement "pcVar9 = "lc";" (assignment_expression "pcVar9 = "lc"" identifier = (string_literal ""lc"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar4);\n      return puVar1;" case number_literal : (expression_statement "printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar4);" (call_expression "printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar4)" identifier (argument_list "("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar4)" ( (string_literal ""\t%s:rp_br(reg=b%u)\n"" " escape_sequence string_content escape_sequence ") , (string_literal ""P3"" " string_content ") , (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (return_statement "return puVar1;" return identifier ;)) (case_statement "case 7:\n      pcVar9 = "rnat";\n      break;" case number_literal : (expression_statement "pcVar9 = "rnat";" (assignment_expression "pcVar9 = "rnat"" identifier = (string_literal ""rnat"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 8:\n      pcVar9 = "bsp";\n      break;" case number_literal : (expression_statement "pcVar9 = "bsp";" (assignment_expression "pcVar9 = "bsp"" identifier = (string_literal ""bsp"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 9:\n      pcVar9 = "bspstore";\n      break;" case number_literal : (expression_statement "pcVar9 = "bspstore";" (assignment_expression "pcVar9 = "bspstore"" identifier = (string_literal ""bspstore"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 10:\n      pcVar9 = "fpsr";\n      break;" case number_literal : (expression_statement "pcVar9 = "fpsr";" (assignment_expression "pcVar9 = "fpsr"" identifier = (string_literal ""fpsr"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar4);\n      return puVar1;" case number_literal : (expression_statement "printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar4);" (call_expression "printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar4)" identifier (argument_list "("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar4)" ( (string_literal ""\t%s:priunat_gr(reg=r%u)\n"" " escape_sequence string_content escape_sequence ") , (string_literal ""P3"" " string_content ") , (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (return_statement "return puVar1;" return identifier ;)) (case_statement "default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return puVar1;" default : (expression_statement "printf("Unknown code 0x%02x\n",uVar6);" (call_expression "printf("Unknown code 0x%02x\n",uVar6)" identifier (argument_list "("Unknown code 0x%02x\n",uVar6)" ( (string_literal ""Unknown code 0x%02x\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return puVar1;" return identifier ;)) })) (expression_statement "printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar9,(uint)bVar4);" (call_expression "printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar9,(uint)bVar4)" identifier (argument_list "("\t%s:%s_gr(reg=r%u)\n","P3",pcVar9,(uint)bVar4)" ( (string_literal ""\t%s:%s_gr(reg=r%u)\n"" " escape_sequence string_content escape_sequence ") , (string_literal ""P3"" " string_content ") , identifier , (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (return_statement "return puVar1;" return identifier ;) })) (if_statement "if ((code & 7) != 0) {\n    if ((code & 7) == 1) {\n      bVar4 = *dp;\n      uVar2 = *(ushort *)(dp + 1);\n      bVar10 = false;\n      uVar6 = (uint)(bVar4 >> 4);\n      iVar5 = 4;\n      pcVar9 = grstr;\n      do {\n        if ((uVar6 & 1) != 0) {\n          pcVar8 = pcVar9;\n          if (bVar10) {\n            *pcVar9 = ',';\n            pcVar8 = pcVar9 + 1;\n          }\n          *pcVar8 = 'r';\n          bVar10 = true;\n          pcVar9 = pcVar8 + 2;\n          pcVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *pcVar9 = '\0';\n      unw_print_frmask(frstr,(bVar4 & 0xf) << 0x10 | (uint)(ushort)(uVar2 << 8 | uVar2 >> 8));\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",grstr,frstr);\n      return dp + 3;\n    }\n    printf("Unknown code 0x%02x\n",code);\n    return dp;\n  }" if (parenthesized_expression "((code & 7) != 0)" ( (binary_expression "(code & 7) != 0" (parenthesized_expression "(code & 7)" ( (binary_expression "code & 7" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    if ((code & 7) == 1) {\n      bVar4 = *dp;\n      uVar2 = *(ushort *)(dp + 1);\n      bVar10 = false;\n      uVar6 = (uint)(bVar4 >> 4);\n      iVar5 = 4;\n      pcVar9 = grstr;\n      do {\n        if ((uVar6 & 1) != 0) {\n          pcVar8 = pcVar9;\n          if (bVar10) {\n            *pcVar9 = ',';\n            pcVar8 = pcVar9 + 1;\n          }\n          *pcVar8 = 'r';\n          bVar10 = true;\n          pcVar9 = pcVar8 + 2;\n          pcVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *pcVar9 = '\0';\n      unw_print_frmask(frstr,(bVar4 & 0xf) << 0x10 | (uint)(ushort)(uVar2 << 8 | uVar2 >> 8));\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",grstr,frstr);\n      return dp + 3;\n    }\n    printf("Unknown code 0x%02x\n",code);\n    return dp;\n  }" { (if_statement "if ((code & 7) == 1) {\n      bVar4 = *dp;\n      uVar2 = *(ushort *)(dp + 1);\n      bVar10 = false;\n      uVar6 = (uint)(bVar4 >> 4);\n      iVar5 = 4;\n      pcVar9 = grstr;\n      do {\n        if ((uVar6 & 1) != 0) {\n          pcVar8 = pcVar9;\n          if (bVar10) {\n            *pcVar9 = ',';\n            pcVar8 = pcVar9 + 1;\n          }\n          *pcVar8 = 'r';\n          bVar10 = true;\n          pcVar9 = pcVar8 + 2;\n          pcVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *pcVar9 = '\0';\n      unw_print_frmask(frstr,(bVar4 & 0xf) << 0x10 | (uint)(ushort)(uVar2 << 8 | uVar2 >> 8));\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",grstr,frstr);\n      return dp + 3;\n    }" if (parenthesized_expression "((code & 7) == 1)" ( (binary_expression "(code & 7) == 1" (parenthesized_expression "(code & 7)" ( (binary_expression "code & 7" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      bVar4 = *dp;\n      uVar2 = *(ushort *)(dp + 1);\n      bVar10 = false;\n      uVar6 = (uint)(bVar4 >> 4);\n      iVar5 = 4;\n      pcVar9 = grstr;\n      do {\n        if ((uVar6 & 1) != 0) {\n          pcVar8 = pcVar9;\n          if (bVar10) {\n            *pcVar9 = ',';\n            pcVar8 = pcVar9 + 1;\n          }\n          *pcVar8 = 'r';\n          bVar10 = true;\n          pcVar9 = pcVar8 + 2;\n          pcVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *pcVar9 = '\0';\n      unw_print_frmask(frstr,(bVar4 & 0xf) << 0x10 | (uint)(ushort)(uVar2 << 8 | uVar2 >> 8));\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",grstr,frstr);\n      return dp + 3;\n    }" { (expression_statement "bVar4 = *dp;" (assignment_expression "bVar4 = *dp" identifier = (pointer_expression "*dp" * identifier)) ;) (expression_statement "uVar2 = *(ushort *)(dp + 1);" (assignment_expression "uVar2 = *(ushort *)(dp + 1)" identifier = (pointer_expression "*(ushort *)(dp + 1)" * (cast_expression "(ushort *)(dp + 1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(dp + 1)" ( (binary_expression "dp + 1" identifier + number_literal) ))))) ;) (expression_statement "bVar10 = false;" (assignment_expression "bVar10 = false" identifier = false) ;) (expression_statement "uVar6 = (uint)(bVar4 >> 4);" (assignment_expression "uVar6 = (uint)(bVar4 >> 4)" identifier = (call_expression "(uint)(bVar4 >> 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar4 >> 4)" ( (binary_expression "bVar4 >> 4" identifier >> number_literal) )))) ;) (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" identifier = number_literal) ;) (expression_statement "pcVar9 = grstr;" (assignment_expression "pcVar9 = grstr" identifier = identifier) ;) (do_statement "do {\n        if ((uVar6 & 1) != 0) {\n          pcVar8 = pcVar9;\n          if (bVar10) {\n            *pcVar9 = ',';\n            pcVar8 = pcVar9 + 1;\n          }\n          *pcVar8 = 'r';\n          bVar10 = true;\n          pcVar9 = pcVar8 + 2;\n          pcVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);" do (compound_statement "{\n        if ((uVar6 & 1) != 0) {\n          pcVar8 = pcVar9;\n          if (bVar10) {\n            *pcVar9 = ',';\n            pcVar8 = pcVar9 + 1;\n          }\n          *pcVar8 = 'r';\n          bVar10 = true;\n          pcVar9 = pcVar8 + 2;\n          pcVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      }" { (if_statement "if ((uVar6 & 1) != 0) {\n          pcVar8 = pcVar9;\n          if (bVar10) {\n            *pcVar9 = ',';\n            pcVar8 = pcVar9 + 1;\n          }\n          *pcVar8 = 'r';\n          bVar10 = true;\n          pcVar9 = pcVar8 + 2;\n          pcVar8[1] = '8' - (char)iVar5;\n        }" if (parenthesized_expression "((uVar6 & 1) != 0)" ( (binary_expression "(uVar6 & 1) != 0" (parenthesized_expression "(uVar6 & 1)" ( (binary_expression "uVar6 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          pcVar8 = pcVar9;\n          if (bVar10) {\n            *pcVar9 = ',';\n            pcVar8 = pcVar9 + 1;\n          }\n          *pcVar8 = 'r';\n          bVar10 = true;\n          pcVar9 = pcVar8 + 2;\n          pcVar8[1] = '8' - (char)iVar5;\n        }" { (expression_statement "pcVar8 = pcVar9;" (assignment_expression "pcVar8 = pcVar9" identifier = identifier) ;) (if_statement "if (bVar10) {\n            *pcVar9 = ',';\n            pcVar8 = pcVar9 + 1;\n          }" if (parenthesized_expression "(bVar10)" ( identifier )) (compound_statement "{\n            *pcVar9 = ',';\n            pcVar8 = pcVar9 + 1;\n          }" { (expression_statement "*pcVar9 = ',';" (assignment_expression "*pcVar9 = ','" (pointer_expression "*pcVar9" * identifier) = (char_literal "','" ' character ')) ;) (expression_statement "pcVar8 = pcVar9 + 1;" (assignment_expression "pcVar8 = pcVar9 + 1" identifier = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) })) (expression_statement "*pcVar8 = 'r';" (assignment_expression "*pcVar8 = 'r'" (pointer_expression "*pcVar8" * identifier) = (char_literal "'r'" ' character ')) ;) (expression_statement "bVar10 = true;" (assignment_expression "bVar10 = true" identifier = true) ;) (expression_statement "pcVar9 = pcVar8 + 2;" (assignment_expression "pcVar9 = pcVar8 + 2" identifier = (binary_expression "pcVar8 + 2" identifier + number_literal)) ;) (expression_statement "pcVar8[1] = '8' - (char)iVar5;" (assignment_expression "pcVar8[1] = '8' - (char)iVar5" (subscript_expression "pcVar8[1]" identifier [ number_literal ]) = (binary_expression "'8' - (char)iVar5" (char_literal "'8'" ' character ') - (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier))) ;) })) (expression_statement "uVar6 = uVar6 >> 1;" (assignment_expression "uVar6 = uVar6 >> 1" identifier = (binary_expression "uVar6 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "*pcVar9 = '\0';" (assignment_expression "*pcVar9 = '\0'" (pointer_expression "*pcVar9" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "unw_print_frmask(frstr,(bVar4 & 0xf) << 0x10 | (uint)(ushort)(uVar2 << 8 | uVar2 >> 8));" (call_expression "unw_print_frmask(frstr,(bVar4 & 0xf) << 0x10 | (uint)(ushort)(uVar2 << 8 | uVar2 >> 8))" identifier (argument_list "(frstr,(bVar4 & 0xf) << 0x10 | (uint)(ushort)(uVar2 << 8 | uVar2 >> 8))" ( identifier , (binary_expression "(bVar4 & 0xf) << 0x10 | (uint)(ushort)(uVar2 << 8 | uVar2 >> 8)" (binary_expression "(bVar4 & 0xf) << 0x10" (parenthesized_expression "(bVar4 & 0xf)" ( (binary_expression "bVar4 & 0xf" identifier & number_literal) )) << number_literal) | (call_expression "(uint)(ushort)(uVar2 << 8 | uVar2 >> 8)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(uVar2 << 8 | uVar2 >> 8)" ( (binary_expression "uVar2 << 8 | uVar2 >> 8" (binary_expression "uVar2 << 8" identifier << number_literal) | (binary_expression "uVar2 >> 8" identifier >> number_literal)) )))) ))) ;) (expression_statement "printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",grstr,frstr);" (call_expression "printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",grstr,frstr)" identifier (argument_list "("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",grstr,frstr)" ( (string_literal ""\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n"" " escape_sequence string_content escape_sequence ") , (string_literal ""P5"" " string_content ") , identifier , identifier ))) ;) (return_statement "return dp + 3;" return (binary_expression "dp + 3" identifier + number_literal) ;) })) (expression_statement "printf("Unknown code 0x%02x\n",code);" (call_expression "printf("Unknown code 0x%02x\n",code)" identifier (argument_list "("Unknown code 0x%02x\n",code)" ( (string_literal ""Unknown code 0x%02x\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return dp;" return identifier ;) })) (expression_statement "uVar6 = (uint)unw_rlen >> 2 | unw_rlen._4_4_ << 0x1e;" (assignment_expression "uVar6 = (uint)unw_rlen >> 2 | unw_rlen._4_4_ << 0x1e" identifier = (binary_expression "(uint)unw_rlen >> 2 | unw_rlen._4_4_ << 0x1e" (binary_expression "(uint)unw_rlen >> 2" (cast_expression "(uint)unw_rlen" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) | (binary_expression "unw_rlen._4_4_ << 0x1e" (field_expression "unw_rlen._4_4_" identifier . field_identifier) << number_literal))) ;) (if_statement "if (arg < dp + uVar6) {\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)arg - (int)dp);\n    return dp;\n  }" if (parenthesized_expression "(arg < dp + uVar6)" ( (binary_expression "arg < dp + uVar6" identifier < (binary_expression "dp + uVar6" identifier + identifier)) )) (compound_statement "{\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)arg - (int)dp);\n    return dp;\n  }" { (expression_statement "printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)arg - (int)dp);" (call_expression "printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)arg - (int)dp)" identifier (argument_list "("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)arg - (int)dp)" ( (string_literal ""\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n"" " escape_sequence string_content escape_sequence escape_sequence ") , identifier , (binary_expression "(int)arg - (int)dp" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)dp" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (return_statement "return dp;" return identifier ;) })) (expression_statement "printf("\t%s:spill_mask(imask=[","P4");" (call_expression "printf("\t%s:spill_mask(imask=[","P4")" identifier (argument_list "("\t%s:spill_mask(imask=[","P4")" ( (string_literal ""\t%s:spill_mask(imask=["" " escape_sequence string_content ") , (string_literal ""P4"" " string_content ") ))) ;) (expression_statement "puVar3 = PTR_stdout_000b3fd8;" (assignment_expression "puVar3 = PTR_stdout_000b3fd8" identifier = identifier) ;) (if_statement "if (unw_rlen._4_4_ != 0 || (uint)unw_rlen != 0) {\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar4 = *dp;\n        dp = dp + 1;\n        local_110 = (uint)bVar4;\n        __stream = *(FILE **)puVar3;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar3;\nLAB_0004b7e2:\n        lVar11 = __umoddi3(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar3;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < unw_rlen._4_4_ || uVar7 - unw_rlen._4_4_ < (uint)(uVar6 < (uint)unw_rlen));\n  }" if (parenthesized_expression "(unw_rlen._4_4_ != 0 || (uint)unw_rlen != 0)" ( (binary_expression "unw_rlen._4_4_ != 0 || (uint)unw_rlen != 0" (binary_expression "unw_rlen._4_4_ != 0" (field_expression "unw_rlen._4_4_" identifier . field_identifier) != number_literal) || (binary_expression "(uint)unw_rlen != 0" (cast_expression "(uint)unw_rlen" ( (type_descriptor "uint" type_identifier) ) identifier) != number_literal)) )) (compound_statement "{\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar4 = *dp;\n        dp = dp + 1;\n        local_110 = (uint)bVar4;\n        __stream = *(FILE **)puVar3;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar3;\nLAB_0004b7e2:\n        lVar11 = __umoddi3(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar3;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < unw_rlen._4_4_ || uVar7 - unw_rlen._4_4_ < (uint)(uVar6 < (uint)unw_rlen));\n  }" { (expression_statement "local_110 = 0;" (assignment_expression "local_110 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      if ((uVar6 & 3) == 0) {\n        bVar4 = *dp;\n        dp = dp + 1;\n        local_110 = (uint)bVar4;\n        __stream = *(FILE **)puVar3;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar3;\nLAB_0004b7e2:\n        lVar11 = __umoddi3(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar3;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < unw_rlen._4_4_ || uVar7 - unw_rlen._4_4_ < (uint)(uVar6 < (uint)unw_rlen));" do (compound_statement "{\n      if ((uVar6 & 3) == 0) {\n        bVar4 = *dp;\n        dp = dp + 1;\n        local_110 = (uint)bVar4;\n        __stream = *(FILE **)puVar3;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar3;\nLAB_0004b7e2:\n        lVar11 = __umoddi3(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar3;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    }" { (if_statement "if ((uVar6 & 3) == 0) {\n        bVar4 = *dp;\n        dp = dp + 1;\n        local_110 = (uint)bVar4;\n        __stream = *(FILE **)puVar3;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar3;\nLAB_0004b7e2:\n        lVar11 = __umoddi3(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar3;\n        }\n      }" if (parenthesized_expression "((uVar6 & 3) == 0)" ( (binary_expression "(uVar6 & 3) == 0" (parenthesized_expression "(uVar6 & 3)" ( (binary_expression "uVar6 & 3" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        bVar4 = *dp;\n        dp = dp + 1;\n        local_110 = (uint)bVar4;\n        __stream = *(FILE **)puVar3;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }" { (expression_statement "bVar4 = *dp;" (assignment_expression "bVar4 = *dp" identifier = (pointer_expression "*dp" * identifier)) ;) (expression_statement "dp = dp + 1;" (assignment_expression "dp = dp + 1" identifier = (binary_expression "dp + 1" identifier + number_literal)) ;) (expression_statement "local_110 = (uint)bVar4;" (assignment_expression "local_110 = (uint)bVar4" identifier = (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "__stream = *(FILE **)puVar3;" (assignment_expression "__stream = *(FILE **)puVar3" identifier = (pointer_expression "*(FILE **)puVar3" * (cast_expression "(FILE **)puVar3" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;" if (parenthesized_expression "(uVar7 != 0 || uVar6 != 0)" ( (binary_expression "uVar7 != 0 || uVar6 != 0" (binary_expression "uVar7 != 0" identifier != number_literal) || (binary_expression "uVar6 != 0" identifier != number_literal)) )) (goto_statement "goto LAB_0004b7e2;" goto statement_identifier ;)) }) (else_clause "else {\n        __stream = *(FILE **)puVar3;\nLAB_0004b7e2:\n        lVar11 = __umoddi3(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar3;\n        }\n      }" else (compound_statement "{\n        __stream = *(FILE **)puVar3;\nLAB_0004b7e2:\n        lVar11 = __umoddi3(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar3;\n        }\n      }" { (expression_statement "__stream = *(FILE **)puVar3;" (assignment_expression "__stream = *(FILE **)puVar3" identifier = (pointer_expression "*(FILE **)puVar3" * (cast_expression "(FILE **)puVar3" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (labeled_statement "LAB_0004b7e2:\n        lVar11 = __umoddi3(uVar6,uVar7,3,0);" statement_identifier : (expression_statement "lVar11 = __umoddi3(uVar6,uVar7,3,0);" (assignment_expression "lVar11 = __umoddi3(uVar6,uVar7,3,0)" identifier = (call_expression "__umoddi3(uVar6,uVar7,3,0)" identifier (argument_list "(uVar6,uVar7,3,0)" ( identifier , identifier , number_literal , number_literal )))) ;)) (if_statement "if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar3;\n        }" if (parenthesized_expression "(lVar11 == 0)" ( (binary_expression "lVar11 == 0" identifier == number_literal) )) (compound_statement "{\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar3;\n        }" { (expression_statement "putc(0x2c,__stream);" (call_expression "putc(0x2c,__stream)" identifier (argument_list "(0x2c,__stream)" ( number_literal , identifier ))) ;) (expression_statement "__stream = *(FILE **)puVar3;" (assignment_expression "__stream = *(FILE **)puVar3" identifier = (pointer_expression "*(FILE **)puVar3" * (cast_expression "(FILE **)puVar3" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) })) }))) (expression_statement "putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);" (call_expression "putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream)" identifier (argument_list "((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream)" ( (cast_expression "(int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3]" (parenthesized_expression "(&DAT_0008e6f2)" ( (pointer_expression "&DAT_0008e6f2" & identifier) )) [ (binary_expression "(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3" (binary_expression "(int)local_110 >> (~(byte)uVar6 & 3) * '\x02'" (cast_expression "(int)local_110" ( (type_descriptor "int" primitive_type) ) identifier) >> (binary_expression "(~(byte)uVar6 & 3) * '\x02'" (parenthesized_expression "(~(byte)uVar6 & 3)" ( (binary_expression "~(byte)uVar6 & 3" (unary_expression "~(byte)uVar6" ~ (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) & number_literal) )) * (char_literal "'\x02'" ' escape_sequence '))) & number_literal) ]))) , identifier ))) ;) (expression_statement "bVar10 = 0xfffffffe < uVar6;" (assignment_expression "bVar10 = 0xfffffffe < uVar6" identifier = (binary_expression "0xfffffffe < uVar6" number_literal < identifier)) ;) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = uVar7 + bVar10;" (assignment_expression "uVar7 = uVar7 + bVar10" identifier = (binary_expression "uVar7 + bVar10" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar7 < unw_rlen._4_4_ || uVar7 - unw_rlen._4_4_ < (uint)(uVar6 < (uint)unw_rlen))" ( (binary_expression "uVar7 < unw_rlen._4_4_ || uVar7 - unw_rlen._4_4_ < (uint)(uVar6 < (uint)unw_rlen)" (binary_expression "uVar7 < unw_rlen._4_4_" identifier < (field_expression "unw_rlen._4_4_" identifier . field_identifier)) || (binary_expression "uVar7 - unw_rlen._4_4_ < (uint)(uVar6 < (uint)unw_rlen)" (binary_expression "uVar7 - unw_rlen._4_4_" identifier - (field_expression "unw_rlen._4_4_" identifier . field_identifier)) < (call_expression "(uint)(uVar6 < (uint)unw_rlen)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < (uint)unw_rlen)" ( (binary_expression "uVar6 < (uint)unw_rlen" identifier < (cast_expression "(uint)unw_rlen" ( (type_descriptor "uint" type_identifier) ) identifier)) ))))) )) ;) })) (expression_statement "puts("])");" (call_expression "puts("])")" identifier (argument_list "("])")" ( (string_literal ""])"" " string_content ") ))) ;) (return_statement "return dp;" return identifier ;) }))
(translation_unit "byte * __regparm3 FUN_0004b6a0(byte *param_1,uint param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  undefined *puVar2;\n  byte bVar3;\n  char *pcVar4;\n  FILE *__stream;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  bool bVar10;\n  longlong lVar11;\n  uint local_110;\n  undefined1 local_f8 [20];\n  undefined1 local_e4 [208];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4b6ab;\n  if ((param_2 & 8) == 0) {\n    pbVar1 = param_1 + 1;\n    bVar3 = *param_1 & 0x7f;\n    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);\n    return pbVar1;\n  }\n  if ((param_2 & 7) != 0) {\n    if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }\n    printf("Unknown code 0x%02x\n",param_2);\n    return param_1;\n  }\n  uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e;\n  if (param_3 < param_1 + uVar6) {\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);\n    return param_1;\n  }\n  printf("\t%s:spill_mask(imask=[","P4");\n  puVar2 = PTR_stdout_000b3fd8;\n  if (DAT_000b755c != 0 || DAT_000b7558 != 0) {\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));\n  }\n  puts("])");\n  return param_1;\n}\n\n" (ERROR "byte * __regparm3 FUN_0004b6a0(byte *param_1,uint param_2,byte *param_3)" (binary_expression "byte * __regparm3 FUN_0004b6a0(byte *param_1,uint param_2,byte *param_3)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0004b6a0(byte *param_1,uint param_2,byte *param_3)" identifier (argument_list "(byte *param_1,uint param_2,byte *param_3)" ( (binary_expression "byte *param_1" identifier * identifier) , (ERROR "uint" identifier) identifier , (binary_expression "byte *param_3" identifier * identifier) ))))) (compound_statement "{\n  byte *pbVar1;\n  undefined *puVar2;\n  byte bVar3;\n  char *pcVar4;\n  FILE *__stream;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  bool bVar10;\n  longlong lVar11;\n  uint local_110;\n  undefined1 local_f8 [20];\n  undefined1 local_e4 [208];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4b6ab;\n  if ((param_2 & 8) == 0) {\n    pbVar1 = param_1 + 1;\n    bVar3 = *param_1 & 0x7f;\n    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);\n    return pbVar1;\n  }\n  if ((param_2 & 7) != 0) {\n    if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }\n    printf("Unknown code 0x%02x\n",param_2);\n    return param_1;\n  }\n  uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e;\n  if (param_3 < param_1 + uVar6) {\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);\n    return param_1;\n  }\n  printf("\t%s:spill_mask(imask=[","P4");\n  puVar2 = PTR_stdout_000b3fd8;\n  if (DAT_000b755c != 0 || DAT_000b7558 != 0) {\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));\n  }\n  puts("])");\n  return param_1;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "undefined1 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "bool bVar10;" primitive_type identifier ;) (declaration "longlong lVar11;" type_identifier identifier ;) (declaration "uint local_110;" type_identifier identifier ;) (declaration "undefined1 local_f8 [20];" type_identifier (array_declarator "local_f8 [20]" identifier [ number_literal ]) ;) (declaration "undefined1 local_e4 [208];" type_identifier (array_declarator "local_e4 [208]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x4b6ab;" (assignment_expression "uStack_14 = 0x4b6ab" identifier = number_literal) ;) (if_statement "if ((param_2 & 8) == 0) {\n    pbVar1 = param_1 + 1;\n    bVar3 = *param_1 & 0x7f;\n    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);\n    return pbVar1;\n  }" if (parenthesized_expression "((param_2 & 8) == 0)" ( (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    pbVar1 = param_1 + 1;\n    bVar3 = *param_1 & 0x7f;\n    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);\n    return pbVar1;\n  }" { (expression_statement "pbVar1 = param_1 + 1;" (assignment_expression "pbVar1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = *param_1 & 0x7f;" (assignment_expression "bVar3 = *param_1 & 0x7f" identifier = (binary_expression "*param_1 & 0x7f" (pointer_expression "*param_1" * identifier) & number_literal)) ;) (expression_statement "uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);" (assignment_expression "uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7)" identifier = (binary_expression "param_2 * 2 & 0xe | (uint)(*param_1 >> 7)" (binary_expression "param_2 * 2 & 0xe" (binary_expression "param_2 * 2" identifier * number_literal) & number_literal) | (call_expression "(uint)(*param_1 >> 7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_1 >> 7)" ( (binary_expression "*param_1 >> 7" (pointer_expression "*param_1" * identifier) >> number_literal) ))))) ;) (switch_statement "switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }" switch (parenthesized_expression "(uVar6)" ( identifier )) (compound_statement "{\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }" { (case_statement "case 0:\n      pcVar4 = "psp";\n      break;" case number_literal : (expression_statement "pcVar4 = "psp";" (assignment_expression "pcVar4 = "psp"" identifier = (string_literal ""psp"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 1:\n      pcVar4 = "rp";\n      break;" case number_literal : (expression_statement "pcVar4 = "rp";" (assignment_expression "pcVar4 = "rp"" identifier = (string_literal ""rp"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 2:\n      pcVar4 = "pfs";\n      break;" case number_literal : (expression_statement "pcVar4 = "pfs";" (assignment_expression "pcVar4 = "pfs"" identifier = (string_literal ""pfs"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n      pcVar4 = "pr";\n      break;" case number_literal : (expression_statement "pcVar4 = "pr";" (assignment_expression "pcVar4 = "pr"" identifier = (string_literal ""pr"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 4:\n      pcVar4 = "unat";\n      break;" case number_literal : (expression_statement "pcVar4 = "unat";" (assignment_expression "pcVar4 = "unat"" identifier = (string_literal ""unat"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 5:\n      pcVar4 = "lc";\n      break;" case number_literal : (expression_statement "pcVar4 = "lc";" (assignment_expression "pcVar4 = "lc"" identifier = (string_literal ""lc"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;" case number_literal : (expression_statement "printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);" (call_expression "printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3)" identifier (argument_list "("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3)" ( (string_literal ""\t%s:rp_br(reg=b%u)\n"" " escape_sequence string_content escape_sequence ") , (string_literal ""P3"" " string_content ") , (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (return_statement "return pbVar1;" return identifier ;)) (case_statement "case 7:\n      pcVar4 = "rnat";\n      break;" case number_literal : (expression_statement "pcVar4 = "rnat";" (assignment_expression "pcVar4 = "rnat"" identifier = (string_literal ""rnat"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 8:\n      pcVar4 = "bsp";\n      break;" case number_literal : (expression_statement "pcVar4 = "bsp";" (assignment_expression "pcVar4 = "bsp"" identifier = (string_literal ""bsp"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 9:\n      pcVar4 = "bspstore";\n      break;" case number_literal : (expression_statement "pcVar4 = "bspstore";" (assignment_expression "pcVar4 = "bspstore"" identifier = (string_literal ""bspstore"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 10:\n      pcVar4 = "fpsr";\n      break;" case number_literal : (expression_statement "pcVar4 = "fpsr";" (assignment_expression "pcVar4 = "fpsr"" identifier = (string_literal ""fpsr"" " string_content ")) ;) (break_statement "break;" break ;)) (case_statement "case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;" case number_literal : (expression_statement "printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);" (call_expression "printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3)" identifier (argument_list "("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3)" ( (string_literal ""\t%s:priunat_gr(reg=r%u)\n"" " escape_sequence string_content escape_sequence ") , (string_literal ""P3"" " string_content ") , (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (return_statement "return pbVar1;" return identifier ;)) (case_statement "default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;" default : (expression_statement "printf("Unknown code 0x%02x\n",uVar6);" (call_expression "printf("Unknown code 0x%02x\n",uVar6)" identifier (argument_list "("Unknown code 0x%02x\n",uVar6)" ( (string_literal ""Unknown code 0x%02x\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return pbVar1;" return identifier ;)) })) (expression_statement "printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);" (call_expression "printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3)" identifier (argument_list "("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3)" ( (string_literal ""\t%s:%s_gr(reg=r%u)\n"" " escape_sequence string_content escape_sequence ") , (string_literal ""P3"" " string_content ") , identifier , (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (return_statement "return pbVar1;" return identifier ;) })) (if_statement "if ((param_2 & 7) != 0) {\n    if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }\n    printf("Unknown code 0x%02x\n",param_2);\n    return param_1;\n  }" if (parenthesized_expression "((param_2 & 7) != 0)" ( (binary_expression "(param_2 & 7) != 0" (parenthesized_expression "(param_2 & 7)" ( (binary_expression "param_2 & 7" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }\n    printf("Unknown code 0x%02x\n",param_2);\n    return param_1;\n  }" { (if_statement "if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }" if (parenthesized_expression "((param_2 & 7) == 1)" ( (binary_expression "(param_2 & 7) == 1" (parenthesized_expression "(param_2 & 7)" ( (binary_expression "param_2 & 7" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }" { (expression_statement "bVar10 = false;" (assignment_expression "bVar10 = false" identifier = false) ;) (expression_statement "uVar6 = (uint)(*param_1 >> 4);" (assignment_expression "uVar6 = (uint)(*param_1 >> 4)" identifier = (call_expression "(uint)(*param_1 >> 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_1 >> 4)" ( (binary_expression "*param_1 >> 4" (pointer_expression "*param_1" * identifier) >> number_literal) )))) ;) (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" identifier = number_literal) ;) (expression_statement "puVar9 = local_f8;" (assignment_expression "puVar9 = local_f8" identifier = identifier) ;) (do_statement "do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);" do (compound_statement "{\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      }" { (if_statement "if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }" if (parenthesized_expression "((uVar6 & 1) != 0)" ( (binary_expression "(uVar6 & 1) != 0" (parenthesized_expression "(uVar6 & 1)" ( (binary_expression "uVar6 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }" { (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) (if_statement "if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }" if (parenthesized_expression "(bVar10)" ( identifier )) (compound_statement "{\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }" { (expression_statement "*puVar9 = 0x2c;" (assignment_expression "*puVar9 = 0x2c" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "puVar8 = puVar9 + 1;" (assignment_expression "puVar8 = puVar9 + 1" identifier = (binary_expression "puVar9 + 1" identifier + number_literal)) ;) })) (expression_statement "*puVar8 = 0x72;" (assignment_expression "*puVar8 = 0x72" (pointer_expression "*puVar8" * identifier) = number_literal) ;) (expression_statement "bVar10 = true;" (assignment_expression "bVar10 = true" identifier = true) ;) (expression_statement "puVar9 = puVar8 + 2;" (assignment_expression "puVar9 = puVar8 + 2" identifier = (binary_expression "puVar8 + 2" identifier + number_literal)) ;) (expression_statement "puVar8[1] = '8' - (char)iVar5;" (assignment_expression "puVar8[1] = '8' - (char)iVar5" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = (binary_expression "'8' - (char)iVar5" (char_literal "'8'" ' character ') - (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier))) ;) })) (expression_statement "uVar6 = uVar6 >> 1;" (assignment_expression "uVar6 = uVar6 >> 1" identifier = (binary_expression "uVar6 >> 1" identifier >> number_literal)) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "FUN_0004ac50();" (call_expression "FUN_0004ac50()" identifier (argument_list "()" ( ))) ;) (expression_statement "printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);" (call_expression "printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4)" identifier (argument_list "("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4)" ( (string_literal ""\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n"" " escape_sequence string_content escape_sequence ") , (string_literal ""P5"" " string_content ") , identifier , identifier ))) ;) (return_statement "return param_1 + 3;" return (binary_expression "param_1 + 3" identifier + number_literal) ;) })) (expression_statement "printf("Unknown code 0x%02x\n",param_2);" (call_expression "printf("Unknown code 0x%02x\n",param_2)" identifier (argument_list "("Unknown code 0x%02x\n",param_2)" ( (string_literal ""Unknown code 0x%02x\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e;" (assignment_expression "uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e" identifier = (binary_expression "DAT_000b7558 >> 2 | DAT_000b755c << 0x1e" (binary_expression "DAT_000b7558 >> 2" identifier >> number_literal) | (binary_expression "DAT_000b755c << 0x1e" identifier << number_literal))) ;) (if_statement "if (param_3 < param_1 + uVar6) {\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);\n    return param_1;\n  }" if (parenthesized_expression "(param_3 < param_1 + uVar6)" ( (binary_expression "param_3 < param_1 + uVar6" identifier < (binary_expression "param_1 + uVar6" identifier + identifier)) )) (compound_statement "{\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);\n    return param_1;\n  }" { (expression_statement "printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);" (call_expression "printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1)" identifier (argument_list "("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1)" ( (string_literal ""\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n"" " escape_sequence string_content escape_sequence escape_sequence ") , identifier , (binary_expression "(int)param_3 - (int)param_1" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "printf("\t%s:spill_mask(imask=[","P4");" (call_expression "printf("\t%s:spill_mask(imask=[","P4")" identifier (argument_list "("\t%s:spill_mask(imask=[","P4")" ( (string_literal ""\t%s:spill_mask(imask=["" " escape_sequence string_content ") , (string_literal ""P4"" " string_content ") ))) ;) (expression_statement "puVar2 = PTR_stdout_000b3fd8;" (assignment_expression "puVar2 = PTR_stdout_000b3fd8" identifier = identifier) ;) (if_statement "if (DAT_000b755c != 0 || DAT_000b7558 != 0) {\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));\n  }" if (parenthesized_expression "(DAT_000b755c != 0 || DAT_000b7558 != 0)" ( (binary_expression "DAT_000b755c != 0 || DAT_000b7558 != 0" (binary_expression "DAT_000b755c != 0" identifier != number_literal) || (binary_expression "DAT_000b7558 != 0" identifier != number_literal)) )) (compound_statement "{\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));\n  }" { (expression_statement "local_110 = 0;" (assignment_expression "local_110 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));" do (compound_statement "{\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    }" { (if_statement "if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }" if (parenthesized_expression "((uVar6 & 3) == 0)" ( (binary_expression "(uVar6 & 3) == 0" (parenthesized_expression "(uVar6 & 3)" ( (binary_expression "uVar6 & 3" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }" { (expression_statement "bVar3 = *param_1;" (assignment_expression "bVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "local_110 = (uint)bVar3;" (assignment_expression "local_110 = (uint)bVar3" identifier = (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "__stream = *(FILE **)puVar2;" (assignment_expression "__stream = *(FILE **)puVar2" identifier = (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;" if (parenthesized_expression "(uVar7 != 0 || uVar6 != 0)" ( (binary_expression "uVar7 != 0 || uVar6 != 0" (binary_expression "uVar7 != 0" identifier != number_literal) || (binary_expression "uVar6 != 0" identifier != number_literal)) )) (goto_statement "goto LAB_0004b7e2;" goto statement_identifier ;)) }) (else_clause "else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }" else (compound_statement "{\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }" { (expression_statement "__stream = *(FILE **)puVar2;" (assignment_expression "__stream = *(FILE **)puVar2" identifier = (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (labeled_statement "LAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);" statement_identifier : (expression_statement "lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);" (assignment_expression "lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0)" identifier = (call_expression "FUN_0006b6c0(uVar6,uVar7,3,0)" identifier (argument_list "(uVar6,uVar7,3,0)" ( identifier , identifier , number_literal , number_literal )))) ;)) (if_statement "if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }" if (parenthesized_expression "(lVar11 == 0)" ( (binary_expression "lVar11 == 0" identifier == number_literal) )) (compound_statement "{\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }" { (expression_statement "putc(0x2c,__stream);" (call_expression "putc(0x2c,__stream)" identifier (argument_list "(0x2c,__stream)" ( number_literal , identifier ))) ;) (expression_statement "__stream = *(FILE **)puVar2;" (assignment_expression "__stream = *(FILE **)puVar2" identifier = (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) })) }))) (expression_statement "putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);" (call_expression "putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream)" identifier (argument_list "((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream)" ( (cast_expression "(int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3]" (parenthesized_expression "(&DAT_0008e6f2)" ( (pointer_expression "&DAT_0008e6f2" & identifier) )) [ (binary_expression "(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3" (binary_expression "(int)local_110 >> (~(byte)uVar6 & 3) * '\x02'" (cast_expression "(int)local_110" ( (type_descriptor "int" primitive_type) ) identifier) >> (binary_expression "(~(byte)uVar6 & 3) * '\x02'" (parenthesized_expression "(~(byte)uVar6 & 3)" ( (binary_expression "~(byte)uVar6 & 3" (unary_expression "~(byte)uVar6" ~ (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) & number_literal) )) * (char_literal "'\x02'" ' escape_sequence '))) & number_literal) ]))) , identifier ))) ;) (expression_statement "bVar10 = 0xfffffffe < uVar6;" (assignment_expression "bVar10 = 0xfffffffe < uVar6" identifier = (binary_expression "0xfffffffe < uVar6" number_literal < identifier)) ;) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = uVar7 + bVar10;" (assignment_expression "uVar7 = uVar7 + bVar10" identifier = (binary_expression "uVar7 + bVar10" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558))" ( (binary_expression "uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558)" (binary_expression "uVar7 < DAT_000b755c" identifier < identifier) || (binary_expression "uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558)" (binary_expression "uVar7 - DAT_000b755c" identifier - identifier) < (call_expression "(uint)(uVar6 < DAT_000b7558)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < DAT_000b7558)" ( (binary_expression "uVar6 < DAT_000b7558" identifier < identifier) ))))) )) ;) })) (expression_statement "puts("])");" (call_expression "puts("])")" identifier (argument_list "("])")" ( (string_literal ""])"" " string_content ") ))) ;) (return_statement "return param_1;" return identifier ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) , (ERROR IDENT) IDENT , (binary_expression IDENT * IDENT) ))))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression IDENT * LIT) & LIT) | (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * IDENT) >> LIT) ))))) ;) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (call_expression IDENT (argument_list ( (string_literal " escape_sequence string_content escape_sequence ") , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (return_statement return IDENT ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (call_expression IDENT (argument_list ( (string_literal " escape_sequence string_content escape_sequence ") , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (return_statement return IDENT ;)) (case_statement default : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , IDENT ))) ;) (return_statement return IDENT ;)) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " escape_sequence string_content escape_sequence ") , (string_literal " string_content ") , IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (char_literal ' character ') - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " escape_sequence string_content escape_sequence ") , (string_literal " string_content ") , IDENT , IDENT ))) ;) (return_statement return (binary_expression IDENT + LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> LIT) | (binary_expression IDENT << LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " escape_sequence string_content escape_sequence escape_sequence ") , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " escape_sequence string_content ") , (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ~ (cast_expression ( (type_descriptor TYPE) ) IDENT)) & LIT) )) * (char_literal ' escape_sequence '))) & LIT) ]))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) || (binary_expression (binary_expression IDENT - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (return_statement return IDENT ;) }))
(ERROR "byte * __regparm3 FUN_0004b6a0(byte *param_1,uint param_2,byte *param_3)" (binary_expression "byte * __regparm3 FUN_0004b6a0(byte *param_1,uint param_2,byte *param_3)" (identifier "byte") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_0004b6a0(byte *param_1,uint param_2,byte *param_3)" (identifier "FUN_0004b6a0") (argument_list "(byte *param_1,uint param_2,byte *param_3)" (( "(") (binary_expression "byte *param_1" (identifier "byte") (* "*") (identifier "param_1")) (, ",") (ERROR "uint" (identifier "uint")) (identifier "param_2") (, ",") (binary_expression "byte *param_3" (identifier "byte") (* "*") (identifier "param_3")) () ")"))))) (compound_statement "{\n  byte *pbVar1;\n  undefined *puVar2;\n  byte bVar3;\n  char *pcVar4;\n  FILE *__stream;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  undefined1 *puVar8;\n  undefined1 *puVar9;\n  bool bVar10;\n  longlong lVar11;\n  uint local_110;\n  undefined1 local_f8 [20];\n  undefined1 local_e4 [208];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4b6ab;\n  if ((param_2 & 8) == 0) {\n    pbVar1 = param_1 + 1;\n    bVar3 = *param_1 & 0x7f;\n    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);\n    return pbVar1;\n  }\n  if ((param_2 & 7) != 0) {\n    if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }\n    printf("Unknown code 0x%02x\n",param_2);\n    return param_1;\n  }\n  uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e;\n  if (param_3 < param_1 + uVar6) {\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);\n    return param_1;\n  }\n  printf("\t%s:spill_mask(imask=[","P4");\n  puVar2 = PTR_stdout_000b3fd8;\n  if (DAT_000b755c != 0 || DAT_000b7558 != 0) {\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));\n  }\n  puts("])");\n  return param_1;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "FILE *__stream;" (type_identifier "FILE") (pointer_declarator "*__stream" (* "*") (identifier "__stream")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "undefined1 *puVar8;" (type_identifier "undefined1") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined1 *puVar9;" (type_identifier "undefined1") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "bool bVar10;" (primitive_type "bool") (identifier "bVar10") (; ";")) (declaration "longlong lVar11;" (type_identifier "longlong") (identifier "lVar11") (; ";")) (declaration "uint local_110;" (type_identifier "uint") (identifier "local_110") (; ";")) (declaration "undefined1 local_f8 [20];" (type_identifier "undefined1") (array_declarator "local_f8 [20]" (identifier "local_f8") ([ "[") (number_literal "20") (] "]")) (; ";")) (declaration "undefined1 local_e4 [208];" (type_identifier "undefined1") (array_declarator "local_e4 [208]" (identifier "local_e4") ([ "[") (number_literal "208") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x4b6ab;" (assignment_expression "uStack_14 = 0x4b6ab" (identifier "uStack_14") (= "=") (number_literal "0x4b6ab")) (; ";")) (if_statement "if ((param_2 & 8) == 0) {\n    pbVar1 = param_1 + 1;\n    bVar3 = *param_1 & 0x7f;\n    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);\n    return pbVar1;\n  }" (if "if") (parenthesized_expression "((param_2 & 8) == 0)" (( "(") (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" (( "(") (binary_expression "param_2 & 8" (identifier "param_2") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pbVar1 = param_1 + 1;\n    bVar3 = *param_1 & 0x7f;\n    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);\n    switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }\n    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);\n    return pbVar1;\n  }" ({ "{") (expression_statement "pbVar1 = param_1 + 1;" (assignment_expression "pbVar1 = param_1 + 1" (identifier "pbVar1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar3 = *param_1 & 0x7f;" (assignment_expression "bVar3 = *param_1 & 0x7f" (identifier "bVar3") (= "=") (binary_expression "*param_1 & 0x7f" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);" (assignment_expression "uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7)" (identifier "uVar6") (= "=") (binary_expression "param_2 * 2 & 0xe | (uint)(*param_1 >> 7)" (binary_expression "param_2 * 2 & 0xe" (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2")) (& "&") (number_literal "0xe")) (| "|") (call_expression "(uint)(*param_1 >> 7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*param_1 >> 7)" (( "(") (binary_expression "*param_1 >> 7" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (>> ">>") (number_literal "7")) () ")"))))) (; ";")) (switch_statement "switch(uVar6) {\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }" (switch "switch") (parenthesized_expression "(uVar6)" (( "(") (identifier "uVar6") () ")")) (compound_statement "{\n    case 0:\n      pcVar4 = "psp";\n      break;\n    case 1:\n      pcVar4 = "rp";\n      break;\n    case 2:\n      pcVar4 = "pfs";\n      break;\n    case 3:\n      pcVar4 = "pr";\n      break;\n    case 4:\n      pcVar4 = "unat";\n      break;\n    case 5:\n      pcVar4 = "lc";\n      break;\n    case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    case 7:\n      pcVar4 = "rnat";\n      break;\n    case 8:\n      pcVar4 = "bsp";\n      break;\n    case 9:\n      pcVar4 = "bspstore";\n      break;\n    case 10:\n      pcVar4 = "fpsr";\n      break;\n    case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;\n    default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;\n    }" ({ "{") (case_statement "case 0:\n      pcVar4 = "psp";\n      break;" (case "case") (number_literal "0") (: ":") (expression_statement "pcVar4 = "psp";" (assignment_expression "pcVar4 = "psp"" (identifier "pcVar4") (= "=") (string_literal ""psp"" (" """) (string_content "psp") (" """))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 1:\n      pcVar4 = "rp";\n      break;" (case "case") (number_literal "1") (: ":") (expression_statement "pcVar4 = "rp";" (assignment_expression "pcVar4 = "rp"" (identifier "pcVar4") (= "=") (string_literal ""rp"" (" """) (string_content "rp") (" """))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 2:\n      pcVar4 = "pfs";\n      break;" (case "case") (number_literal "2") (: ":") (expression_statement "pcVar4 = "pfs";" (assignment_expression "pcVar4 = "pfs"" (identifier "pcVar4") (= "=") (string_literal ""pfs"" (" """) (string_content "pfs") (" """))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 3:\n      pcVar4 = "pr";\n      break;" (case "case") (number_literal "3") (: ":") (expression_statement "pcVar4 = "pr";" (assignment_expression "pcVar4 = "pr"" (identifier "pcVar4") (= "=") (string_literal ""pr"" (" """) (string_content "pr") (" """))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 4:\n      pcVar4 = "unat";\n      break;" (case "case") (number_literal "4") (: ":") (expression_statement "pcVar4 = "unat";" (assignment_expression "pcVar4 = "unat"" (identifier "pcVar4") (= "=") (string_literal ""unat"" (" """) (string_content "unat") (" """))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 5:\n      pcVar4 = "lc";\n      break;" (case "case") (number_literal "5") (: ":") (expression_statement "pcVar4 = "lc";" (assignment_expression "pcVar4 = "lc"" (identifier "pcVar4") (= "=") (string_literal ""lc"" (" """) (string_content "lc") (" """))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 6:\n      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);\n      return pbVar1;" (case "case") (number_literal "6") (: ":") (expression_statement "printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);" (call_expression "printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3)" (identifier "printf") (argument_list "("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3)" (( "(") (string_literal ""\t%s:rp_br(reg=b%u)\n"" (" """) (escape_sequence "\t") (string_content "%s:rp_br(reg=b%u)") (escape_sequence "\n") (" """)) (, ",") (string_literal ""P3"" (" """) (string_content "P3") (" """)) (, ",") (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3")) () ")"))) (; ";")) (return_statement "return pbVar1;" (return "return") (identifier "pbVar1") (; ";"))) (case_statement "case 7:\n      pcVar4 = "rnat";\n      break;" (case "case") (number_literal "7") (: ":") (expression_statement "pcVar4 = "rnat";" (assignment_expression "pcVar4 = "rnat"" (identifier "pcVar4") (= "=") (string_literal ""rnat"" (" """) (string_content "rnat") (" """))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 8:\n      pcVar4 = "bsp";\n      break;" (case "case") (number_literal "8") (: ":") (expression_statement "pcVar4 = "bsp";" (assignment_expression "pcVar4 = "bsp"" (identifier "pcVar4") (= "=") (string_literal ""bsp"" (" """) (string_content "bsp") (" """))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 9:\n      pcVar4 = "bspstore";\n      break;" (case "case") (number_literal "9") (: ":") (expression_statement "pcVar4 = "bspstore";" (assignment_expression "pcVar4 = "bspstore"" (identifier "pcVar4") (= "=") (string_literal ""bspstore"" (" """) (string_content "bspstore") (" """))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 10:\n      pcVar4 = "fpsr";\n      break;" (case "case") (number_literal "10") (: ":") (expression_statement "pcVar4 = "fpsr";" (assignment_expression "pcVar4 = "fpsr"" (identifier "pcVar4") (= "=") (string_literal ""fpsr"" (" """) (string_content "fpsr") (" """))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0xb:\n      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);\n      return pbVar1;" (case "case") (number_literal "0xb") (: ":") (expression_statement "printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);" (call_expression "printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3)" (identifier "printf") (argument_list "("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3)" (( "(") (string_literal ""\t%s:priunat_gr(reg=r%u)\n"" (" """) (escape_sequence "\t") (string_content "%s:priunat_gr(reg=r%u)") (escape_sequence "\n") (" """)) (, ",") (string_literal ""P3"" (" """) (string_content "P3") (" """)) (, ",") (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3")) () ")"))) (; ";")) (return_statement "return pbVar1;" (return "return") (identifier "pbVar1") (; ";"))) (case_statement "default:\n      printf("Unknown code 0x%02x\n",uVar6);\n      return pbVar1;" (default "default") (: ":") (expression_statement "printf("Unknown code 0x%02x\n",uVar6);" (call_expression "printf("Unknown code 0x%02x\n",uVar6)" (identifier "printf") (argument_list "("Unknown code 0x%02x\n",uVar6)" (( "(") (string_literal ""Unknown code 0x%02x\n"" (" """) (string_content "Unknown code 0x%02x") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar6") () ")"))) (; ";")) (return_statement "return pbVar1;" (return "return") (identifier "pbVar1") (; ";"))) (} "}"))) (expression_statement "printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);" (call_expression "printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3)" (identifier "printf") (argument_list "("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3)" (( "(") (string_literal ""\t%s:%s_gr(reg=r%u)\n"" (" """) (escape_sequence "\t") (string_content "%s:%s_gr(reg=r%u)") (escape_sequence "\n") (" """)) (, ",") (string_literal ""P3"" (" """) (string_content "P3") (" """)) (, ",") (identifier "pcVar4") (, ",") (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3")) () ")"))) (; ";")) (return_statement "return pbVar1;" (return "return") (identifier "pbVar1") (; ";")) (} "}"))) (if_statement "if ((param_2 & 7) != 0) {\n    if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }\n    printf("Unknown code 0x%02x\n",param_2);\n    return param_1;\n  }" (if "if") (parenthesized_expression "((param_2 & 7) != 0)" (( "(") (binary_expression "(param_2 & 7) != 0" (parenthesized_expression "(param_2 & 7)" (( "(") (binary_expression "param_2 & 7" (identifier "param_2") (& "&") (number_literal "7")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }\n    printf("Unknown code 0x%02x\n",param_2);\n    return param_1;\n  }" ({ "{") (if_statement "if ((param_2 & 7) == 1) {\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }" (if "if") (parenthesized_expression "((param_2 & 7) == 1)" (( "(") (binary_expression "(param_2 & 7) == 1" (parenthesized_expression "(param_2 & 7)" (( "(") (binary_expression "param_2 & 7" (identifier "param_2") (& "&") (number_literal "7")) () ")")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      bVar10 = false;\n      uVar6 = (uint)(*param_1 >> 4);\n      iVar5 = 4;\n      puVar9 = local_f8;\n      do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      *puVar9 = 0;\n      FUN_0004ac50();\n      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);\n      return param_1 + 3;\n    }" ({ "{") (expression_statement "bVar10 = false;" (assignment_expression "bVar10 = false" (identifier "bVar10") (= "=") (false "false")) (; ";")) (expression_statement "uVar6 = (uint)(*param_1 >> 4);" (assignment_expression "uVar6 = (uint)(*param_1 >> 4)" (identifier "uVar6") (= "=") (call_expression "(uint)(*param_1 >> 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*param_1 >> 4)" (( "(") (binary_expression "*param_1 >> 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (>> ">>") (number_literal "4")) () ")")))) (; ";")) (expression_statement "iVar5 = 4;" (assignment_expression "iVar5 = 4" (identifier "iVar5") (= "=") (number_literal "4")) (; ";")) (expression_statement "puVar9 = local_f8;" (assignment_expression "puVar9 = local_f8" (identifier "puVar9") (= "=") (identifier "local_f8")) (; ";")) (do_statement "do {\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);" (do "do") (compound_statement "{\n        if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }\n        uVar6 = uVar6 >> 1;\n        iVar5 = iVar5 + -1;\n      }" ({ "{") (if_statement "if ((uVar6 & 1) != 0) {\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }" (if "if") (parenthesized_expression "((uVar6 & 1) != 0)" (( "(") (binary_expression "(uVar6 & 1) != 0" (parenthesized_expression "(uVar6 & 1)" (( "(") (binary_expression "uVar6 & 1" (identifier "uVar6") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          puVar8 = puVar9;\n          if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }\n          *puVar8 = 0x72;\n          bVar10 = true;\n          puVar9 = puVar8 + 2;\n          puVar8[1] = '8' - (char)iVar5;\n        }" ({ "{") (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" (identifier "puVar8") (= "=") (identifier "puVar9")) (; ";")) (if_statement "if (bVar10) {\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }" (if "if") (parenthesized_expression "(bVar10)" (( "(") (identifier "bVar10") () ")")) (compound_statement "{\n            *puVar9 = 0x2c;\n            puVar8 = puVar9 + 1;\n          }" ({ "{") (expression_statement "*puVar9 = 0x2c;" (assignment_expression "*puVar9 = 0x2c" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (number_literal "0x2c")) (; ";")) (expression_statement "puVar8 = puVar9 + 1;" (assignment_expression "puVar8 = puVar9 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar9 + 1" (identifier "puVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*puVar8 = 0x72;" (assignment_expression "*puVar8 = 0x72" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (number_literal "0x72")) (; ";")) (expression_statement "bVar10 = true;" (assignment_expression "bVar10 = true" (identifier "bVar10") (= "=") (true "true")) (; ";")) (expression_statement "puVar9 = puVar8 + 2;" (assignment_expression "puVar9 = puVar8 + 2" (identifier "puVar9") (= "=") (binary_expression "puVar8 + 2" (identifier "puVar8") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar8[1] = '8' - (char)iVar5;" (assignment_expression "puVar8[1] = '8' - (char)iVar5" (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "'8' - (char)iVar5" (char_literal "'8'" (' "'") (character "8") (' "'")) (- "-") (cast_expression "(char)iVar5" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar5")))) (; ";")) (} "}"))) (expression_statement "uVar6 = uVar6 >> 1;" (assignment_expression "uVar6 = uVar6 >> 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 >> 1" (identifier "uVar6") (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0004ac50();" (call_expression "FUN_0004ac50()" (identifier "FUN_0004ac50") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);" (call_expression "printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4)" (identifier "printf") (argument_list "("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4)" (( "(") (string_literal ""\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n"" (" """) (escape_sequence "\t") (string_content "%s:frgr_mem(grmask=[%s],frmask=[%s])") (escape_sequence "\n") (" """)) (, ",") (string_literal ""P5"" (" """) (string_content "P5") (" """)) (, ",") (identifier "local_f8") (, ",") (identifier "local_e4") () ")"))) (; ";")) (return_statement "return param_1 + 3;" (return "return") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) (; ";")) (} "}"))) (expression_statement "printf("Unknown code 0x%02x\n",param_2);" (call_expression "printf("Unknown code 0x%02x\n",param_2)" (identifier "printf") (argument_list "("Unknown code 0x%02x\n",param_2)" (( "(") (string_literal ""Unknown code 0x%02x\n"" (" """) (string_content "Unknown code 0x%02x") (escape_sequence "\n") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e;" (assignment_expression "uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e" (identifier "uVar6") (= "=") (binary_expression "DAT_000b7558 >> 2 | DAT_000b755c << 0x1e" (binary_expression "DAT_000b7558 >> 2" (identifier "DAT_000b7558") (>> ">>") (number_literal "2")) (| "|") (binary_expression "DAT_000b755c << 0x1e" (identifier "DAT_000b755c") (<< "<<") (number_literal "0x1e")))) (; ";")) (if_statement "if (param_3 < param_1 + uVar6) {\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_3 < param_1 + uVar6)" (( "(") (binary_expression "param_3 < param_1 + uVar6" (identifier "param_3") (< "<") (binary_expression "param_1 + uVar6" (identifier "param_1") (+ "+") (identifier "uVar6"))) () ")")) (compound_statement "{\n    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);\n    return param_1;\n  }" ({ "{") (expression_statement "printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);" (call_expression "printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1)" (identifier "printf") (argument_list "("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1)" (( "(") (string_literal ""\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n"" (" """) (escape_sequence "\n") (string_content "ERROR: unwind length too long (0x%lx > 0x%lx)") (escape_sequence "\n") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar6") (, ",") (binary_expression "(int)param_3 - (int)param_1" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "printf("\t%s:spill_mask(imask=[","P4");" (call_expression "printf("\t%s:spill_mask(imask=[","P4")" (identifier "printf") (argument_list "("\t%s:spill_mask(imask=[","P4")" (( "(") (string_literal ""\t%s:spill_mask(imask=["" (" """) (escape_sequence "\t") (string_content "%s:spill_mask(imask=[") (" """)) (, ",") (string_literal ""P4"" (" """) (string_content "P4") (" """)) () ")"))) (; ";")) (expression_statement "puVar2 = PTR_stdout_000b3fd8;" (assignment_expression "puVar2 = PTR_stdout_000b3fd8" (identifier "puVar2") (= "=") (identifier "PTR_stdout_000b3fd8")) (; ";")) (if_statement "if (DAT_000b755c != 0 || DAT_000b7558 != 0) {\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));\n  }" (if "if") (parenthesized_expression "(DAT_000b755c != 0 || DAT_000b7558 != 0)" (( "(") (binary_expression "DAT_000b755c != 0 || DAT_000b7558 != 0" (binary_expression "DAT_000b755c != 0" (identifier "DAT_000b755c") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "DAT_000b7558 != 0" (identifier "DAT_000b7558") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n    local_110 = 0;\n    uVar6 = 0;\n    uVar7 = 0;\n    do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));\n  }" ({ "{") (expression_statement "local_110 = 0;" (assignment_expression "local_110 = 0" (identifier "local_110") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));" (do "do") (compound_statement "{\n      if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }\n      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);\n      bVar10 = 0xfffffffe < uVar6;\n      uVar6 = uVar6 + 1;\n      uVar7 = uVar7 + bVar10;\n    }" ({ "{") (if_statement "if ((uVar6 & 3) == 0) {\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }\n      else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }" (if "if") (parenthesized_expression "((uVar6 & 3) == 0)" (( "(") (binary_expression "(uVar6 & 3) == 0" (parenthesized_expression "(uVar6 & 3)" (( "(") (binary_expression "uVar6 & 3" (identifier "uVar6") (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        bVar3 = *param_1;\n        param_1 = param_1 + 1;\n        local_110 = (uint)bVar3;\n        __stream = *(FILE **)puVar2;\n        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;\n      }" ({ "{") (expression_statement "bVar3 = *param_1;" (assignment_expression "bVar3 = *param_1" (identifier "bVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_110 = (uint)bVar3;" (assignment_expression "local_110 = (uint)bVar3" (identifier "local_110") (= "=") (cast_expression "(uint)bVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar3"))) (; ";")) (expression_statement "__stream = *(FILE **)puVar2;" (assignment_expression "__stream = *(FILE **)puVar2" (identifier "__stream") (= "=") (pointer_expression "*(FILE **)puVar2" (* "*") (cast_expression "(FILE **)puVar2" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar2")))) (; ";")) (if_statement "if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;" (if "if") (parenthesized_expression "(uVar7 != 0 || uVar6 != 0)" (( "(") (binary_expression "uVar7 != 0 || uVar6 != 0" (binary_expression "uVar7 != 0" (identifier "uVar7") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0"))) () ")")) (goto_statement "goto LAB_0004b7e2;" (goto "goto") (statement_identifier "LAB_0004b7e2") (; ";"))) (} "}")) (else_clause "else {\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }" (else "else") (compound_statement "{\n        __stream = *(FILE **)puVar2;\nLAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);\n        if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }\n      }" ({ "{") (expression_statement "__stream = *(FILE **)puVar2;" (assignment_expression "__stream = *(FILE **)puVar2" (identifier "__stream") (= "=") (pointer_expression "*(FILE **)puVar2" (* "*") (cast_expression "(FILE **)puVar2" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar2")))) (; ";")) (labeled_statement "LAB_0004b7e2:\n        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);" (statement_identifier "LAB_0004b7e2") (: ":") (expression_statement "lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);" (assignment_expression "lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0)" (identifier "lVar11") (= "=") (call_expression "FUN_0006b6c0(uVar6,uVar7,3,0)" (identifier "FUN_0006b6c0") (argument_list "(uVar6,uVar7,3,0)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar7") (, ",") (number_literal "3") (, ",") (number_literal "0") () ")")))) (; ";"))) (if_statement "if (lVar11 == 0) {\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }" (if "if") (parenthesized_expression "(lVar11 == 0)" (( "(") (binary_expression "lVar11 == 0" (identifier "lVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          putc(0x2c,__stream);\n          __stream = *(FILE **)puVar2;\n        }" ({ "{") (expression_statement "putc(0x2c,__stream);" (call_expression "putc(0x2c,__stream)" (identifier "putc") (argument_list "(0x2c,__stream)" (( "(") (number_literal "0x2c") (, ",") (identifier "__stream") () ")"))) (; ";")) (expression_statement "__stream = *(FILE **)puVar2;" (assignment_expression "__stream = *(FILE **)puVar2" (identifier "__stream") (= "=") (pointer_expression "*(FILE **)puVar2" (* "*") (cast_expression "(FILE **)puVar2" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar2")))) (; ";")) (} "}"))) (} "}")))) (expression_statement "putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);" (call_expression "putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream)" (identifier "putc") (argument_list "((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream)" (( "(") (cast_expression "(int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3]" (parenthesized_expression "(&DAT_0008e6f2)" (( "(") (pointer_expression "&DAT_0008e6f2" (& "&") (identifier "DAT_0008e6f2")) () ")")) ([ "[") (binary_expression "(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3" (binary_expression "(int)local_110 >> (~(byte)uVar6 & 3) * '\x02'" (cast_expression "(int)local_110" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_110")) (>> ">>") (binary_expression "(~(byte)uVar6 & 3) * '\x02'" (parenthesized_expression "(~(byte)uVar6 & 3)" (( "(") (binary_expression "~(byte)uVar6 & 3" (unary_expression "~(byte)uVar6" (~ "~") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6"))) (& "&") (number_literal "3")) () ")")) (* "*") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'")))) (& "&") (number_literal "3")) (] "]")))) (, ",") (identifier "__stream") () ")"))) (; ";")) (expression_statement "bVar10 = 0xfffffffe < uVar6;" (assignment_expression "bVar10 = 0xfffffffe < uVar6" (identifier "bVar10") (= "=") (binary_expression "0xfffffffe < uVar6" (number_literal "0xfffffffe") (< "<") (identifier "uVar6"))) (; ";")) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = uVar7 + bVar10;" (assignment_expression "uVar7 = uVar7 + bVar10" (identifier "uVar7") (= "=") (binary_expression "uVar7 + bVar10" (identifier "uVar7") (+ "+") (identifier "bVar10"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558))" (( "(") (binary_expression "uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558)" (binary_expression "uVar7 < DAT_000b755c" (identifier "uVar7") (< "<") (identifier "DAT_000b755c")) (|| "||") (binary_expression "uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558)" (binary_expression "uVar7 - DAT_000b755c" (identifier "uVar7") (- "-") (identifier "DAT_000b755c")) (< "<") (call_expression "(uint)(uVar6 < DAT_000b7558)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar6 < DAT_000b7558)" (( "(") (binary_expression "uVar6 < DAT_000b7558" (identifier "uVar6") (< "<") (identifier "DAT_000b7558")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "puts("])");" (call_expression "puts("])")" (identifier "puts") (argument_list "("])")" (( "(") (string_literal ""])"" (" """) (string_content "])") (" """)) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 * __regparm3 unw_decode_p2_p5(type_1 *var_2,type_6 var_1,void *var_11,type_1 *end)

{
  type_1 *puVar1;
  type_2 var_10;
  type_3 *puVar3;
  type_4 var_4;
  type_5 *__stream;
  int var_8;
  type_6 var_5;
  type_6 var_12;
  char *var_7;
  char *var_6;
  bool var_16;
  type_7 var_14;
  type_6 local_110;
  char grstr [20];
  char frstr [200];
  
  if ((var_1 & 8) == 0) {
    puVar1 = var_2 + 1;
    var_4 = *var_2 & 0x7f;
    var_5 = var_1 * 2 & 0xe | (type_6)(*var_2 >> 7);
    switch(var_5) {
    case 0:
      var_6 = "psp";
      break;
    case 1:
      var_6 = "rp";
      break;
    case 2:
      var_6 = "pfs";
      break;
    case 3:
      var_6 = "pr";
      break;
    case 4:
      var_6 = "unat";
      break;
    case 5:
      var_6 = "lc";
      break;
    case 6:
      var_3("\t%s:rp_br(reg=b%u)\n","P3",(type_6)var_4);
      return puVar1;
    case 7:
      var_6 = "rnat";
      break;
    case 8:
      var_6 = "bsp";
      break;
    case 9:
      var_6 = "bspstore";
      break;
    case 10:
      var_6 = "fpsr";
      break;
    case 0xb:
      var_3("\t%s:priunat_gr(reg=r%u)\n","P3",(type_6)var_4);
      return puVar1;
    default:
      var_3("Unknown code 0x%02x\n",var_5);
      return puVar1;
    }
    var_3("\t%s:%s_gr(reg=r%u)\n","P3",var_6,(type_6)var_4);
    return puVar1;
  }
  if ((var_1 & 7) != 0) {
    if ((var_1 & 7) == 1) {
      var_4 = *var_2;
      var_10 = *(type_2 *)(var_2 + 1);
      var_16 = false;
      var_5 = (type_6)(var_4 >> 4);
      var_8 = 4;
      var_6 = grstr;
      do {
        if ((var_5 & 1) != 0) {
          var_7 = var_6;
          if (var_16) {
            *var_6 = ',';
            var_7 = var_6 + 1;
          }
          *var_7 = 'r';
          var_16 = true;
          var_6 = var_7 + 2;
          var_7[1] = '8' - (char)var_8;
        }
        var_5 = var_5 >> 1;
        var_8 = var_8 + -1;
      } while (var_8 != 0);
      *var_6 = '\0';
      var_9(frstr,(var_4 & 0xf) << 0x10 | (type_6)(type_2)(var_10 << 8 | var_10 >> 8));
      var_3("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",grstr,frstr);
      return var_2 + 3;
    }
    var_3("Unknown code 0x%02x\n",var_1);
    return var_2;
  }
  var_5 = (type_6)unw_rlen >> 2 | unw_rlen._4_4_ << 0x1e;
  if (var_11 < var_2 + var_5) {
    var_3("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",var_5,(int)var_11 - (int)var_2);
    return var_2;
  }
  var_3("\t%s:spill_mask(imask=[","P4");
  puVar3 = PTR_stdout_000b3fd8;
  if (unw_rlen._4_4_ != 0 || (type_6)unw_rlen != 0) {
    local_110 = 0;
    var_5 = 0;
    var_12 = 0;
    do {
      if ((var_5 & 3) == 0) {
        var_4 = *var_2;
        var_2 = var_2 + 1;
        local_110 = (type_6)var_4;
        __stream = *(type_5 **)puVar3;
        if (var_12 != 0 || var_5 != 0) goto LAB_0004b7e2;
      }
      else {
        __stream = *(type_5 **)puVar3;
LAB_0004b7e2:
        var_14 = var_13(var_5,var_12,3,0);
        if (var_14 == 0) {
          var_15(0x2c,__stream);
          __stream = *(type_5 **)puVar3;
        }
      }
      var_15((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(type_4)var_5 & 3) * '\x02' & 3],__stream);
      var_16 = 0xfffffffe < var_5;
      var_5 = var_5 + 1;
      var_12 = var_12 + var_16;
    } while (var_12 < unw_rlen._4_4_ || var_12 - unw_rlen._4_4_ < (type_6)(var_5 < (type_6)unw_rlen));
  }
  var_17("])");
  return var_2;
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (ERROR (identifier)) (identifier) (binary_expression left: (identifier) right: (identifier)))))) (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) (switch_statement condition: (parenthesized_expression (identifier)) body: (compound_statement (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (escape_sequence) (string_content) (escape_sequence)) (string_literal (string_content)) (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (return_statement (identifier))) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (break_statement)) (case_statement value: (number_literal) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (escape_sequence) (string_content) (escape_sequence)) (string_literal (string_content)) (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (return_statement (identifier))) (case_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence)) (identifier)))) (return_statement (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (escape_sequence) (string_content) (escape_sequence)) (string_literal (string_content)) (identifier) (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (char_literal (character)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (escape_sequence) (string_content) (escape_sequence)) (string_literal (string_content)) (identifier) (identifier)))) (return_statement (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence)) (identifier)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (escape_sequence) (string_content) (escape_sequence) (escape_sequence)) (identifier) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (escape_sequence) (string_content)) (string_literal (string_content))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (number_literal))) right: (char_literal (escape_sequence)))) right: (number_literal))))) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))) (return_statement (identifier))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

byte * __regparm3 MASKED(byte *param_1,uint param_2,byte *param_3)

{
  byte *pbVar1;
  undefined *puVar2;
  byte bVar3;
  char *pcVar4;
  FILE *__stream;
  int iVar5;
  uint uVar6;
  uint uVar7;
  undefined1 *puVar8;
  undefined1 *puVar9;
  bool bVar10;
  longlong lVar11;
  uint local_110;
  undefined1 local_f8 [20];
  undefined1 local_e4 [208];
  undefined4 uStack_14;
  
  uStack_14 = 0x4b6ab;
  if ((param_2 & 8) == 0) {
    pbVar1 = param_1 + 1;
    bVar3 = *param_1 & 0x7f;
    uVar6 = param_2 * 2 & 0xe | (uint)(*param_1 >> 7);
    switch(uVar6) {
    case 0:
      pcVar4 = "psp";
      break;
    case 1:
      pcVar4 = "rp";
      break;
    case 2:
      pcVar4 = "pfs";
      break;
    case 3:
      pcVar4 = "pr";
      break;
    case 4:
      pcVar4 = "unat";
      break;
    case 5:
      pcVar4 = "lc";
      break;
    case 6:
      printf("\t%s:rp_br(reg=b%u)\n","P3",(uint)bVar3);
      return pbVar1;
    case 7:
      pcVar4 = "rnat";
      break;
    case 8:
      pcVar4 = "bsp";
      break;
    case 9:
      pcVar4 = "bspstore";
      break;
    case 10:
      pcVar4 = "fpsr";
      break;
    case 0xb:
      printf("\t%s:priunat_gr(reg=r%u)\n","P3",(uint)bVar3);
      return pbVar1;
    default:
      printf("Unknown code 0x%02x\n",uVar6);
      return pbVar1;
    }
    printf("\t%s:%s_gr(reg=r%u)\n","P3",pcVar4,(uint)bVar3);
    return pbVar1;
  }
  if ((param_2 & 7) != 0) {
    if ((param_2 & 7) == 1) {
      bVar10 = false;
      uVar6 = (uint)(*param_1 >> 4);
      iVar5 = 4;
      puVar9 = local_f8;
      do {
        if ((uVar6 & 1) != 0) {
          puVar8 = puVar9;
          if (bVar10) {
            *puVar9 = 0x2c;
            puVar8 = puVar9 + 1;
          }
          *puVar8 = 0x72;
          bVar10 = true;
          puVar9 = puVar8 + 2;
          puVar8[1] = '8' - (char)iVar5;
        }
        uVar6 = uVar6 >> 1;
        iVar5 = iVar5 + -1;
      } while (iVar5 != 0);
      *puVar9 = 0;
      FUN_0004ac50();
      printf("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n","P5",local_f8,local_e4);
      return param_1 + 3;
    }
    printf("Unknown code 0x%02x\n",param_2);
    return param_1;
  }
  uVar6 = DAT_000b7558 >> 2 | DAT_000b755c << 0x1e;
  if (param_3 < param_1 + uVar6) {
    printf("\nERROR: unwind length too long (0x%lx > 0x%lx)\n\n",uVar6,(int)param_3 - (int)param_1);
    return param_1;
  }
  printf("\t%s:spill_mask(imask=[","P4");
  puVar2 = PTR_stdout_000b3fd8;
  if (DAT_000b755c != 0 || DAT_000b7558 != 0) {
    local_110 = 0;
    uVar6 = 0;
    uVar7 = 0;
    do {
      if ((uVar6 & 3) == 0) {
        bVar3 = *param_1;
        param_1 = param_1 + 1;
        local_110 = (uint)bVar3;
        __stream = *(FILE **)puVar2;
        if (uVar7 != 0 || uVar6 != 0) goto LAB_0004b7e2;
      }
      else {
        __stream = *(FILE **)puVar2;
LAB_0004b7e2:
        lVar11 = FUN_0006b6c0(uVar6,uVar7,3,0);
        if (lVar11 == 0) {
          putc(0x2c,__stream);
          __stream = *(FILE **)puVar2;
        }
      }
      putc((int)(char)(&DAT_0008e6f2)[(int)local_110 >> (~(byte)uVar6 & 3) * '\x02' & 3],__stream);
      bVar10 = 0xfffffffe < uVar6;
      uVar6 = uVar6 + 1;
      uVar7 = uVar7 + bVar10;
    } while (uVar7 < DAT_000b755c || uVar7 - DAT_000b755c < (uint)(uVar6 < DAT_000b7558));
  }
  puts("])");
  return param_1;
}

