
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Removing unreachable block (ram,0x00047c55) */

uint __regparm2 insert_operand(uint insn,alpha_operand *operand,offsetT val,char *file,uint line)

{
  _func_uint_uint_int_char_ptr_ptr *p_Var1;
  char *prefix;
  uint uVar2;
  int iVar3;
  uint local_3c;
  int local_38;
  char *errmsg;
  undefined4 uStack_14;
  
  uStack_14 = 0x47adb;
  if ((*(ushort *)&operand->field_0x4 & 0x100) == 0) {
    if ((*(ushort *)&operand->field_0x4 & 0x40) == 0) {
      iVar3 = 0;
      uVar2 = 0;
      local_3c = (1 << (*(byte *)operand & 0x1f)) - 1;
      local_38 = (int)local_3c >> 0x1f;
      if (-1 < val) {
LAB_00047bf7:
        if ((SBORROW4(local_38,val._4_4_) !=
            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==
            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0) {
          p_Var1 = operand->insert;
          goto joined_r0x00047c12;
        }
      }
    }
    else {
      iVar3 = 1 << ((*(byte *)operand & 0x1f) - 1 & 0x1f);
      local_3c = iVar3 - 1;
      uVar2 = -iVar3;
      local_38 = (int)local_3c >> 0x1f;
      iVar3 = (int)uVar2 >> 0x1f;
      if ((SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))) ==
          (int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0) goto LAB_00047bf7;
    }
    prefix = (char *)dcgettext(0,"operand",5);
    as_bad_value_out_of_range
              (prefix,val,CONCAT44(iVar3,uVar2),CONCAT44(local_38,local_3c),file,line);
  }
  p_Var1 = operand->insert;
joined_r0x00047c12:
  if (p_Var1 != (_func_uint_uint_int_char_ptr_ptr *)0x0) {
    errmsg = (char *)0x0;
    uVar2 = (*p_Var1)(insn,(uint)val,&errmsg);
    if (errmsg != (char *)0x0) {
      as_warn("%s",errmsg);
    }
    return uVar2;
  }
  return ((1 << (*(byte *)operand & 0x1f)) - 1U & (uint)val) <<
         ((byte)(*(ushort *)operand >> 5) & 0x1f) | insn;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Removing unreachable block (ram,0x00047c55) */

uint __regparm2
FUN_00047ad0(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,
            undefined4 param_6)

{
  code *pcVar1;
  undefined4 uVar2;
  byte bVar3;
  uint uVar4;
  int iVar5;
  uint local_3c;
  int local_38;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x47adb;
  if ((param_2[2] & 0x100) == 0) {
    bVar3 = (byte)*param_2 & 0x1f;
    if ((param_2[2] & 0x40) == 0) {
      iVar5 = 0;
      uVar4 = 0;
      local_3c = (1 << bVar3) - 1;
      local_38 = (int)local_3c >> 0x1f;
      if (-1 < param_4) {
LAB_00047bf7:
        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))
            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {
          pcVar1 = *(code **)(param_2 + 4);
          goto joined_r0x00047c12;
        }
      }
    }
    else {
      iVar5 = 1 << (bVar3 - 1 & 0x1f);
      local_3c = iVar5 - 1;
      uVar4 = -iVar5;
      local_38 = (int)local_3c >> 0x1f;
      iVar5 = (int)uVar4 >> 0x1f;
      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==
          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;
    }
    uVar2 = dcgettext(0,"operand",5);
    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);
  }
  pcVar1 = *(code **)(param_2 + 4);
joined_r0x00047c12:
  if (pcVar1 != (code *)0x0) {
    local_20[0] = 0;
    uVar4 = (*pcVar1)(param_1,param_3,local_20);
    if (local_20[0] != 0) {
      FUN_00031540("%s",local_20[0]);
    }
    return uVar4;
  }
  return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1
  ;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016070
ADD EBX,0x30525
SUB ESP,0x3c
MOVZX EAX,word ptr [EDX + 0x4]
MOV ESI,dword ptr [ESP + 0x50]
MOV EDI,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x8],ESI
MOV dword ptr [ESP + 0xc],EDI
TEST AH,0x1
JNZ 0x00047b76
MOVZX ECX,byte ptr [EDX]
AND ECX,0x1f
MOVZX ESI,CL
TEST AL,0x40
JNZ 0x00047bc8
MOV EAX,0x1
XOR EDI,EDI
XOR ESI,ESI
SHL EAX,CL
SUB EAX,0x1
MOV dword ptr [ESP + 0x10],EAX
SAR EAX,0x1f
CMP dword ptr [ESP + 0x8],ESI
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [ESP + 0xc]
SBB EAX,EDI
JGE 0x00047bf7
MOV dword ptr [ESP + 0x1c],EDX
LEA EAX,[EBX + 0xfffe4df6]
SUB ESP,0x4
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141e0
POP EDX
PUSH dword ptr [ESP + 0x68]
PUSH dword ptr [ESP + 0x68]
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH EDI
PUSH ESI
PUSH dword ptr [ESP + 0x30]
PUSH dword ptr [ESP + 0x30]
PUSH EAX
CALL 0x00031b90
ADD ESP,0x30
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [EDX + 0x8]
TEST EAX,EAX
JZ 0x00047c18
MOV dword ptr [ESP + 0x2c],0x0
SUB ESP,0x4
LEA EDX,[ESP + 0x30]
PUSH EDX
PUSH dword ptr [ESP + 0x10]
PUSH EBP
CALL EAX
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x3c]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00047bb8
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xfffe1a28]
PUSH EAX
CALL 0x00031540
ADD ESP,0x10
ADD ESP,0x3c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ECX,[ESI + -0x1]
MOV ESI,0x1
SHL ESI,CL
LEA EAX,[ESI + -0x1]
NEG ESI
MOV dword ptr [ESP + 0x10],EAX
SAR EAX,0x1f
MOV EDI,ESI
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [ESP + 0xc]
SAR EDI,0x1f
CMP dword ptr [ESP + 0x8],ESI
SBB EAX,EDI
JL 0x00047b37
MOV EAX,dword ptr [ESP + 0x8]
CMP dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x14]
SBB EAX,dword ptr [ESP + 0xc]
JL 0x00047b37
MOV EAX,dword ptr [EDX + 0x8]
TEST EAX,EAX
JNZ 0x00047b81
MOVZX ECX,byte ptr [EDX]
MOV EAX,0x1
MOV ESI,dword ptr [ESP + 0x8]
MOV EDI,dword ptr [ESP + 0xc]
SHL EAX,CL
MOVZX ECX,word ptr [EDX]
SUB EAX,0x1
MOV EBX,EAX
AND EAX,ESI
SHR CX,0x5
SAR EBX,0x1f
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,EDI
MOV ESI,dword ptr [ESP + 0x10]
AND EAX,EBX
AND ECX,0x1f
MOV dword ptr [ESP + 0x14],EAX
SHL ESI,CL
XOR EAX,EAX
AND ECX,0x20
CMOVNZ ESI,EAX
ADD ESP,0x3c
POP EBX
OR ESI,EBP
MOV EAX,ESI
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Removing unreachable block (ram,0x00047c55) */\n\nuint __regparm2\nFUN_00047ad0(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  byte bVar3;\n  uint uVar4;\n  int iVar5;\n  uint local_3c;\n  int local_38;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x47adb;\n  if ((param_2[2] & 0x100) == 0) {\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }\n  pcVar1 = *(code **)(param_2 + 4);\njoined_r0x00047c12:\n  if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }\n  return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1\n  ;\n}\n\n" comment comment (function_definition "uint __regparm2\nFUN_00047ad0(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  byte bVar3;\n  uint uVar4;\n  int iVar5;\n  uint local_3c;\n  int local_38;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x47adb;\n  if ((param_2[2] & 0x100) == 0) {\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }\n  pcVar1 = *(code **)(param_2 + 4);\njoined_r0x00047c12:\n  if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }\n  return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1\n  ;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_00047ad0(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" identifier (parameter_list "(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "ushort *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  byte bVar3;\n  uint uVar4;\n  int iVar5;\n  uint local_3c;\n  int local_38;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x47adb;\n  if ((param_2[2] & 0x100) == 0) {\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }\n  pcVar1 = *(code **)(param_2 + 4);\njoined_r0x00047c12:\n  if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }\n  return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1\n  ;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint local_3c;" type_identifier identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x47adb;" (assignment_expression "uStack_14 = 0x47adb" identifier = number_literal) ;) (if_statement "if ((param_2[2] & 0x100) == 0) {\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }" if (parenthesized_expression "((param_2[2] & 0x100) == 0)" ( (binary_expression "(param_2[2] & 0x100) == 0" (parenthesized_expression "(param_2[2] & 0x100)" ( (binary_expression "param_2[2] & 0x100" (subscript_expression "param_2[2]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }" { (expression_statement "bVar3 = (byte)*param_2 & 0x1f;" (assignment_expression "bVar3 = (byte)*param_2 & 0x1f" identifier = (binary_expression "(byte)*param_2 & 0x1f" (binary_expression "(byte)*param_2" (parenthesized_expression "(byte)" ( identifier )) * identifier) & number_literal)) ;) (if_statement "if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }" if (parenthesized_expression "((param_2[2] & 0x40) == 0)" ( (binary_expression "(param_2[2] & 0x40) == 0" (parenthesized_expression "(param_2[2] & 0x40)" ( (binary_expression "param_2[2] & 0x40" (subscript_expression "param_2[2]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "local_3c = (1 << bVar3) - 1;" (assignment_expression "local_3c = (1 << bVar3) - 1" identifier = (binary_expression "(1 << bVar3) - 1" (parenthesized_expression "(1 << bVar3)" ( (binary_expression "1 << bVar3" number_literal << identifier) )) - number_literal)) ;) (expression_statement "local_38 = (int)local_3c >> 0x1f;" (assignment_expression "local_38 = (int)local_3c >> 0x1f" identifier = (binary_expression "(int)local_3c >> 0x1f" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }" if (parenthesized_expression "(-1 < param_4)" ( (binary_expression "-1 < param_4" number_literal < identifier) )) (compound_statement "{\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }" { (labeled_statement "LAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }" statement_identifier : (if_statement "if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }" if (parenthesized_expression "((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0)" ( (binary_expression "(SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0" (parenthesized_expression "(SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))" ( (binary_expression "SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3))" (call_expression "SBORROW4(local_38,param_4)" identifier (argument_list "(local_38,param_4)" ( identifier , identifier ))) != (call_expression "SBORROW4(local_38 - param_4,(uint)(local_3c < param_3))" identifier (argument_list "(local_38 - param_4,(uint)(local_3c < param_3))" ( (binary_expression "local_38 - param_4" identifier - identifier) , (call_expression "(uint)(local_3c < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_3c < param_3)" ( (binary_expression "local_3c < param_3" identifier < identifier) ))) )))) )) == (binary_expression "(int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0" (cast_expression "(int)((local_38 - param_4) - (uint)(local_3c < param_3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((local_38 - param_4) - (uint)(local_3c < param_3))" ( (binary_expression "(local_38 - param_4) - (uint)(local_3c < param_3)" (parenthesized_expression "(local_38 - param_4)" ( (binary_expression "local_38 - param_4" identifier - identifier) )) - (call_expression "(uint)(local_3c < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_3c < param_3)" ( (binary_expression "local_3c < param_3" identifier < identifier) )))) ))) < number_literal)) )) (compound_statement "{\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }" { (expression_statement "pcVar1 = *(code **)(param_2 + 4);" (assignment_expression "pcVar1 = *(code **)(param_2 + 4)" identifier = (pointer_expression "*(code **)(param_2 + 4)" * (cast_expression "(code **)(param_2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x00047c12;" goto statement_identifier ;) }))) })) }) (else_clause "else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }" else (compound_statement "{\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }" { (expression_statement "iVar5 = 1 << (bVar3 - 1 & 0x1f);" (assignment_expression "iVar5 = 1 << (bVar3 - 1 & 0x1f)" identifier = (binary_expression "1 << (bVar3 - 1 & 0x1f)" number_literal << (parenthesized_expression "(bVar3 - 1 & 0x1f)" ( (binary_expression "bVar3 - 1 & 0x1f" (binary_expression "bVar3 - 1" identifier - number_literal) & number_literal) )))) ;) (expression_statement "local_3c = iVar5 - 1;" (assignment_expression "local_3c = iVar5 - 1" identifier = (binary_expression "iVar5 - 1" identifier - number_literal)) ;) (expression_statement "uVar4 = -iVar5;" (assignment_expression "uVar4 = -iVar5" identifier = (unary_expression "-iVar5" - identifier)) ;) (expression_statement "local_38 = (int)local_3c >> 0x1f;" (assignment_expression "local_38 = (int)local_3c >> 0x1f" identifier = (binary_expression "(int)local_3c >> 0x1f" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "iVar5 = (int)uVar4 >> 0x1f;" (assignment_expression "iVar5 = (int)uVar4 >> 0x1f" identifier = (binary_expression "(int)uVar4 >> 0x1f" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;" if (parenthesized_expression "((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0)" ( (binary_expression "(SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0" (parenthesized_expression "(SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4)))" ( (binary_expression "SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))" (call_expression "SBORROW4(param_4,iVar5)" identifier (argument_list "(param_4,iVar5)" ( identifier , identifier ))) != (call_expression "SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))" identifier (argument_list "(param_4 - iVar5,(uint)(param_3 < uVar4))" ( (binary_expression "param_4 - iVar5" identifier - identifier) , (call_expression "(uint)(param_3 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 < uVar4)" ( (binary_expression "param_3 < uVar4" identifier < identifier) ))) )))) )) == (binary_expression "(int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0" (cast_expression "(int)((param_4 - iVar5) - (uint)(param_3 < uVar4))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((param_4 - iVar5) - (uint)(param_3 < uVar4))" ( (binary_expression "(param_4 - iVar5) - (uint)(param_3 < uVar4)" (parenthesized_expression "(param_4 - iVar5)" ( (binary_expression "param_4 - iVar5" identifier - identifier) )) - (call_expression "(uint)(param_3 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 < uVar4)" ( (binary_expression "param_3 < uVar4" identifier < identifier) )))) ))) < number_literal)) )) (goto_statement "goto LAB_00047bf7;" goto statement_identifier ;)) }))) (expression_statement "uVar2 = dcgettext(0,"operand",5);" (assignment_expression "uVar2 = dcgettext(0,"operand",5)" identifier = (call_expression "dcgettext(0,"operand",5)" identifier (argument_list "(0,"operand",5)" ( number_literal , (string_literal ""operand"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);" (call_expression "FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6)" identifier (argument_list "(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "pcVar1 = *(code **)(param_2 + 4);" (assignment_expression "pcVar1 = *(code **)(param_2 + 4)" identifier = (pointer_expression "*(code **)(param_2 + 4)" * (cast_expression "(code **)(param_2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x00047c12:\n  if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }" statement_identifier : (if_statement "if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }" if (parenthesized_expression "(pcVar1 != (code *)0x0)" ( (binary_expression "pcVar1 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }" { (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar4 = (*pcVar1)(param_1,param_3,local_20);" (assignment_expression "uVar4 = (*pcVar1)(param_1,param_3,local_20)" identifier = (call_expression "(*pcVar1)(param_1,param_3,local_20)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1,param_3,local_20)" ( identifier , identifier , identifier )))) ;) (if_statement "if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }" if (parenthesized_expression "(local_20[0] != 0)" ( (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_00031540("%s",local_20[0]);\n    }" { (expression_statement "FUN_00031540("%s",local_20[0]);" (call_expression "FUN_00031540("%s",local_20[0])" identifier (argument_list "("%s",local_20[0])" ( (string_literal ""%s"" " string_content ") , (subscript_expression "local_20[0]" identifier [ number_literal ]) ))) ;) })) (return_statement "return uVar4;" return identifier ;) }))) (return_statement "return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1\n  ;" return (binary_expression "((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1" (binary_expression "((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f)" (parenthesized_expression "((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3)" ( (binary_expression "(1 << ((byte)*param_2 & 0x1f)) - 1U & param_3" (binary_expression "(1 << ((byte)*param_2 & 0x1f)) - 1U" (parenthesized_expression "(1 << ((byte)*param_2 & 0x1f))" ( (binary_expression "1 << ((byte)*param_2 & 0x1f)" number_literal << (parenthesized_expression "((byte)*param_2 & 0x1f)" ( (binary_expression "(byte)*param_2 & 0x1f" (binary_expression "(byte)*param_2" (parenthesized_expression "(byte)" ( identifier )) * identifier) & number_literal) ))) )) - number_literal) & identifier) )) << (parenthesized_expression "((byte)(*param_2 >> 5) & 0x1f)" ( (binary_expression "(byte)(*param_2 >> 5) & 0x1f" (call_expression "(byte)(*param_2 >> 5)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*param_2 >> 5)" ( (binary_expression "*param_2 >> 5" (pointer_expression "*param_2" * identifier) >> number_literal) ))) & number_literal) ))) | identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Removing unreachable block (ram,0x00047c55) */\n\nuint __regparm2 insert_operand(uint insn,alpha_operand *operand,offsetT val,char *file,uint line)\n\n{\n  _func_uint_uint_int_char_ptr_ptr *p_Var1;\n  char *prefix;\n  uint uVar2;\n  int iVar3;\n  uint local_3c;\n  int local_38;\n  char *errmsg;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x47adb;\n  if ((*(ushort *)&operand->field_0x4 & 0x100) == 0) {\n    if ((*(ushort *)&operand->field_0x4 & 0x40) == 0) {\n      iVar3 = 0;\n      uVar2 = 0;\n      local_3c = (1 << (*(byte *)operand & 0x1f)) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < val) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0) {\n          p_Var1 = operand->insert;\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar3 = 1 << ((*(byte *)operand & 0x1f) - 1 & 0x1f);\n      local_3c = iVar3 - 1;\n      uVar2 = -iVar3;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar3 = (int)uVar2 >> 0x1f;\n      if ((SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))) ==\n          (int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0) goto LAB_00047bf7;\n    }\n    prefix = (char *)dcgettext(0,"operand",5);\n    as_bad_value_out_of_range\n              (prefix,val,CONCAT44(iVar3,uVar2),CONCAT44(local_38,local_3c),file,line);\n  }\n  p_Var1 = operand->insert;\njoined_r0x00047c12:\n  if (p_Var1 != (_func_uint_uint_int_char_ptr_ptr *)0x0) {\n    errmsg = (char *)0x0;\n    uVar2 = (*p_Var1)(insn,(uint)val,&errmsg);\n    if (errmsg != (char *)0x0) {\n      as_warn("%s",errmsg);\n    }\n    return uVar2;\n  }\n  return ((1 << (*(byte *)operand & 0x1f)) - 1U & (uint)val) <<\n         ((byte)(*(ushort *)operand >> 5) & 0x1f) | insn;\n}\n\n" comment comment (function_definition "uint __regparm2 insert_operand(uint insn,alpha_operand *operand,offsetT val,char *file,uint line)\n\n{\n  _func_uint_uint_int_char_ptr_ptr *p_Var1;\n  char *prefix;\n  uint uVar2;\n  int iVar3;\n  uint local_3c;\n  int local_38;\n  char *errmsg;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x47adb;\n  if ((*(ushort *)&operand->field_0x4 & 0x100) == 0) {\n    if ((*(ushort *)&operand->field_0x4 & 0x40) == 0) {\n      iVar3 = 0;\n      uVar2 = 0;\n      local_3c = (1 << (*(byte *)operand & 0x1f)) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < val) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0) {\n          p_Var1 = operand->insert;\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar3 = 1 << ((*(byte *)operand & 0x1f) - 1 & 0x1f);\n      local_3c = iVar3 - 1;\n      uVar2 = -iVar3;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar3 = (int)uVar2 >> 0x1f;\n      if ((SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))) ==\n          (int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0) goto LAB_00047bf7;\n    }\n    prefix = (char *)dcgettext(0,"operand",5);\n    as_bad_value_out_of_range\n              (prefix,val,CONCAT44(iVar3,uVar2),CONCAT44(local_38,local_3c),file,line);\n  }\n  p_Var1 = operand->insert;\njoined_r0x00047c12:\n  if (p_Var1 != (_func_uint_uint_int_char_ptr_ptr *)0x0) {\n    errmsg = (char *)0x0;\n    uVar2 = (*p_Var1)(insn,(uint)val,&errmsg);\n    if (errmsg != (char *)0x0) {\n      as_warn("%s",errmsg);\n    }\n    return uVar2;\n  }\n  return ((1 << (*(byte *)operand & 0x1f)) - 1U & (uint)val) <<\n         ((byte)(*(ushort *)operand >> 5) & 0x1f) | insn;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "insert_operand(uint insn,alpha_operand *operand,offsetT val,char *file,uint line)" identifier (parameter_list "(uint insn,alpha_operand *operand,offsetT val,char *file,uint line)" ( (parameter_declaration "uint insn" type_identifier identifier) , (parameter_declaration "alpha_operand *operand" type_identifier (pointer_declarator "*operand" * identifier)) , (parameter_declaration "offsetT val" type_identifier identifier) , (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "uint line" type_identifier identifier) ))) (compound_statement "{\n  _func_uint_uint_int_char_ptr_ptr *p_Var1;\n  char *prefix;\n  uint uVar2;\n  int iVar3;\n  uint local_3c;\n  int local_38;\n  char *errmsg;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x47adb;\n  if ((*(ushort *)&operand->field_0x4 & 0x100) == 0) {\n    if ((*(ushort *)&operand->field_0x4 & 0x40) == 0) {\n      iVar3 = 0;\n      uVar2 = 0;\n      local_3c = (1 << (*(byte *)operand & 0x1f)) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < val) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0) {\n          p_Var1 = operand->insert;\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar3 = 1 << ((*(byte *)operand & 0x1f) - 1 & 0x1f);\n      local_3c = iVar3 - 1;\n      uVar2 = -iVar3;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar3 = (int)uVar2 >> 0x1f;\n      if ((SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))) ==\n          (int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0) goto LAB_00047bf7;\n    }\n    prefix = (char *)dcgettext(0,"operand",5);\n    as_bad_value_out_of_range\n              (prefix,val,CONCAT44(iVar3,uVar2),CONCAT44(local_38,local_3c),file,line);\n  }\n  p_Var1 = operand->insert;\njoined_r0x00047c12:\n  if (p_Var1 != (_func_uint_uint_int_char_ptr_ptr *)0x0) {\n    errmsg = (char *)0x0;\n    uVar2 = (*p_Var1)(insn,(uint)val,&errmsg);\n    if (errmsg != (char *)0x0) {\n      as_warn("%s",errmsg);\n    }\n    return uVar2;\n  }\n  return ((1 << (*(byte *)operand & 0x1f)) - 1U & (uint)val) <<\n         ((byte)(*(ushort *)operand >> 5) & 0x1f) | insn;\n}" { (declaration "_func_uint_uint_int_char_ptr_ptr *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "char *prefix;" primitive_type (pointer_declarator "*prefix" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint local_3c;" type_identifier identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "char *errmsg;" primitive_type (pointer_declarator "*errmsg" * identifier) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x47adb;" (assignment_expression "uStack_14 = 0x47adb" identifier = number_literal) ;) (if_statement "if ((*(ushort *)&operand->field_0x4 & 0x100) == 0) {\n    if ((*(ushort *)&operand->field_0x4 & 0x40) == 0) {\n      iVar3 = 0;\n      uVar2 = 0;\n      local_3c = (1 << (*(byte *)operand & 0x1f)) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < val) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0) {\n          p_Var1 = operand->insert;\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar3 = 1 << ((*(byte *)operand & 0x1f) - 1 & 0x1f);\n      local_3c = iVar3 - 1;\n      uVar2 = -iVar3;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar3 = (int)uVar2 >> 0x1f;\n      if ((SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))) ==\n          (int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0) goto LAB_00047bf7;\n    }\n    prefix = (char *)dcgettext(0,"operand",5);\n    as_bad_value_out_of_range\n              (prefix,val,CONCAT44(iVar3,uVar2),CONCAT44(local_38,local_3c),file,line);\n  }" if (parenthesized_expression "((*(ushort *)&operand->field_0x4 & 0x100) == 0)" ( (binary_expression "(*(ushort *)&operand->field_0x4 & 0x100) == 0" (parenthesized_expression "(*(ushort *)&operand->field_0x4 & 0x100)" ( (binary_expression "*(ushort *)&operand->field_0x4 & 0x100" (pointer_expression "*(ushort *)&operand->field_0x4" * (cast_expression "(ushort *)&operand->field_0x4" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&operand->field_0x4" & (field_expression "operand->field_0x4" identifier -> field_identifier)))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((*(ushort *)&operand->field_0x4 & 0x40) == 0) {\n      iVar3 = 0;\n      uVar2 = 0;\n      local_3c = (1 << (*(byte *)operand & 0x1f)) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < val) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0) {\n          p_Var1 = operand->insert;\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar3 = 1 << ((*(byte *)operand & 0x1f) - 1 & 0x1f);\n      local_3c = iVar3 - 1;\n      uVar2 = -iVar3;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar3 = (int)uVar2 >> 0x1f;\n      if ((SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))) ==\n          (int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0) goto LAB_00047bf7;\n    }\n    prefix = (char *)dcgettext(0,"operand",5);\n    as_bad_value_out_of_range\n              (prefix,val,CONCAT44(iVar3,uVar2),CONCAT44(local_38,local_3c),file,line);\n  }" { (if_statement "if ((*(ushort *)&operand->field_0x4 & 0x40) == 0) {\n      iVar3 = 0;\n      uVar2 = 0;\n      local_3c = (1 << (*(byte *)operand & 0x1f)) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < val) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0) {\n          p_Var1 = operand->insert;\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar3 = 1 << ((*(byte *)operand & 0x1f) - 1 & 0x1f);\n      local_3c = iVar3 - 1;\n      uVar2 = -iVar3;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar3 = (int)uVar2 >> 0x1f;\n      if ((SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))) ==\n          (int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0) goto LAB_00047bf7;\n    }" if (parenthesized_expression "((*(ushort *)&operand->field_0x4 & 0x40) == 0)" ( (binary_expression "(*(ushort *)&operand->field_0x4 & 0x40) == 0" (parenthesized_expression "(*(ushort *)&operand->field_0x4 & 0x40)" ( (binary_expression "*(ushort *)&operand->field_0x4 & 0x40" (pointer_expression "*(ushort *)&operand->field_0x4" * (cast_expression "(ushort *)&operand->field_0x4" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&operand->field_0x4" & (field_expression "operand->field_0x4" identifier -> field_identifier)))) & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n      uVar2 = 0;\n      local_3c = (1 << (*(byte *)operand & 0x1f)) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < val) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0) {\n          p_Var1 = operand->insert;\n          goto joined_r0x00047c12;\n        }\n      }\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "local_3c = (1 << (*(byte *)operand & 0x1f)) - 1;" (assignment_expression "local_3c = (1 << (*(byte *)operand & 0x1f)) - 1" identifier = (binary_expression "(1 << (*(byte *)operand & 0x1f)) - 1" (parenthesized_expression "(1 << (*(byte *)operand & 0x1f))" ( (binary_expression "1 << (*(byte *)operand & 0x1f)" number_literal << (parenthesized_expression "(*(byte *)operand & 0x1f)" ( (binary_expression "*(byte *)operand & 0x1f" (pointer_expression "*(byte *)operand" * (cast_expression "(byte *)operand" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) & number_literal) ))) )) - number_literal)) ;) (expression_statement "local_38 = (int)local_3c >> 0x1f;" (assignment_expression "local_38 = (int)local_3c >> 0x1f" identifier = (binary_expression "(int)local_3c >> 0x1f" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if (-1 < val) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0) {\n          p_Var1 = operand->insert;\n          goto joined_r0x00047c12;\n        }\n      }" if (parenthesized_expression "(-1 < val)" ( (binary_expression "-1 < val" number_literal < identifier) )) (compound_statement "{\nLAB_00047bf7:\n        if ((SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0) {\n          p_Var1 = operand->insert;\n          goto joined_r0x00047c12;\n        }\n      }" { (labeled_statement "LAB_00047bf7:\n        if ((SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0) {\n          p_Var1 = operand->insert;\n          goto joined_r0x00047c12;\n        }" statement_identifier : (if_statement "if ((SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0) {\n          p_Var1 = operand->insert;\n          goto joined_r0x00047c12;\n        }" if (parenthesized_expression "((SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0)" ( (binary_expression "(SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))) ==\n            (int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0" (parenthesized_expression "(SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val)))" ( (binary_expression "SBORROW4(local_38,val._4_4_) !=\n            SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))" (call_expression "SBORROW4(local_38,val._4_4_)" identifier (argument_list "(local_38,val._4_4_)" ( identifier , (field_expression "val._4_4_" identifier . field_identifier) ))) != (call_expression "SBORROW4(local_38 - val._4_4_,(uint)(local_3c < (uint)val))" identifier (argument_list "(local_38 - val._4_4_,(uint)(local_3c < (uint)val))" ( (binary_expression "local_38 - val._4_4_" identifier - (field_expression "val._4_4_" identifier . field_identifier)) , (call_expression "(uint)(local_3c < (uint)val)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_3c < (uint)val)" ( (binary_expression "local_3c < (uint)val" identifier < (cast_expression "(uint)val" ( (type_descriptor "uint" type_identifier) ) identifier)) ))) )))) )) == (binary_expression "(int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val)) < 0" (cast_expression "(int)((local_38 - val._4_4_) - (uint)(local_3c < (uint)val))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((local_38 - val._4_4_) - (uint)(local_3c < (uint)val))" ( (binary_expression "(local_38 - val._4_4_) - (uint)(local_3c < (uint)val)" (parenthesized_expression "(local_38 - val._4_4_)" ( (binary_expression "local_38 - val._4_4_" identifier - (field_expression "val._4_4_" identifier . field_identifier)) )) - (call_expression "(uint)(local_3c < (uint)val)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_3c < (uint)val)" ( (binary_expression "local_3c < (uint)val" identifier < (cast_expression "(uint)val" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) ))) < number_literal)) )) (compound_statement "{\n          p_Var1 = operand->insert;\n          goto joined_r0x00047c12;\n        }" { (expression_statement "p_Var1 = operand->insert;" (assignment_expression "p_Var1 = operand->insert" identifier = (field_expression "operand->insert" identifier -> field_identifier)) ;) (goto_statement "goto joined_r0x00047c12;" goto statement_identifier ;) }))) })) }) (else_clause "else {\n      iVar3 = 1 << ((*(byte *)operand & 0x1f) - 1 & 0x1f);\n      local_3c = iVar3 - 1;\n      uVar2 = -iVar3;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar3 = (int)uVar2 >> 0x1f;\n      if ((SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))) ==\n          (int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0) goto LAB_00047bf7;\n    }" else (compound_statement "{\n      iVar3 = 1 << ((*(byte *)operand & 0x1f) - 1 & 0x1f);\n      local_3c = iVar3 - 1;\n      uVar2 = -iVar3;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar3 = (int)uVar2 >> 0x1f;\n      if ((SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))) ==\n          (int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0) goto LAB_00047bf7;\n    }" { (expression_statement "iVar3 = 1 << ((*(byte *)operand & 0x1f) - 1 & 0x1f);" (assignment_expression "iVar3 = 1 << ((*(byte *)operand & 0x1f) - 1 & 0x1f)" identifier = (binary_expression "1 << ((*(byte *)operand & 0x1f) - 1 & 0x1f)" number_literal << (parenthesized_expression "((*(byte *)operand & 0x1f) - 1 & 0x1f)" ( (binary_expression "(*(byte *)operand & 0x1f) - 1 & 0x1f" (binary_expression "(*(byte *)operand & 0x1f) - 1" (parenthesized_expression "(*(byte *)operand & 0x1f)" ( (binary_expression "*(byte *)operand & 0x1f" (pointer_expression "*(byte *)operand" * (cast_expression "(byte *)operand" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) & number_literal) )) - number_literal) & number_literal) )))) ;) (expression_statement "local_3c = iVar3 - 1;" (assignment_expression "local_3c = iVar3 - 1" identifier = (binary_expression "iVar3 - 1" identifier - number_literal)) ;) (expression_statement "uVar2 = -iVar3;" (assignment_expression "uVar2 = -iVar3" identifier = (unary_expression "-iVar3" - identifier)) ;) (expression_statement "local_38 = (int)local_3c >> 0x1f;" (assignment_expression "local_38 = (int)local_3c >> 0x1f" identifier = (binary_expression "(int)local_3c >> 0x1f" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "iVar3 = (int)uVar2 >> 0x1f;" (assignment_expression "iVar3 = (int)uVar2 >> 0x1f" identifier = (binary_expression "(int)uVar2 >> 0x1f" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if ((SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))) ==\n          (int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0) goto LAB_00047bf7;" if (parenthesized_expression "((SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))) ==\n          (int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0)" ( (binary_expression "(SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))) ==\n          (int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0" (parenthesized_expression "(SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2)))" ( (binary_expression "SBORROW4(val._4_4_,iVar3) != SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))" (call_expression "SBORROW4(val._4_4_,iVar3)" identifier (argument_list "(val._4_4_,iVar3)" ( (field_expression "val._4_4_" identifier . field_identifier) , identifier ))) != (call_expression "SBORROW4(val._4_4_ - iVar3,(uint)((uint)val < uVar2))" identifier (argument_list "(val._4_4_ - iVar3,(uint)((uint)val < uVar2))" ( (binary_expression "val._4_4_ - iVar3" (field_expression "val._4_4_" identifier . field_identifier) - identifier) , (call_expression "(uint)((uint)val < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)val < uVar2)" ( (binary_expression "(uint)val < uVar2" (cast_expression "(uint)val" ( (type_descriptor "uint" type_identifier) ) identifier) < identifier) ))) )))) )) == (binary_expression "(int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2)) < 0" (cast_expression "(int)((val._4_4_ - iVar3) - (uint)((uint)val < uVar2))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((val._4_4_ - iVar3) - (uint)((uint)val < uVar2))" ( (binary_expression "(val._4_4_ - iVar3) - (uint)((uint)val < uVar2)" (parenthesized_expression "(val._4_4_ - iVar3)" ( (binary_expression "val._4_4_ - iVar3" (field_expression "val._4_4_" identifier . field_identifier) - identifier) )) - (call_expression "(uint)((uint)val < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)val < uVar2)" ( (binary_expression "(uint)val < uVar2" (cast_expression "(uint)val" ( (type_descriptor "uint" type_identifier) ) identifier) < identifier) )))) ))) < number_literal)) )) (goto_statement "goto LAB_00047bf7;" goto statement_identifier ;)) }))) (expression_statement "prefix = (char *)dcgettext(0,"operand",5);" (assignment_expression "prefix = (char *)dcgettext(0,"operand",5)" identifier = (cast_expression "(char *)dcgettext(0,"operand",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"operand",5)" identifier (argument_list "(0,"operand",5)" ( number_literal , (string_literal ""operand"" " string_content ") , number_literal ))))) ;) (expression_statement "as_bad_value_out_of_range\n              (prefix,val,CONCAT44(iVar3,uVar2),CONCAT44(local_38,local_3c),file,line);" (call_expression "as_bad_value_out_of_range\n              (prefix,val,CONCAT44(iVar3,uVar2),CONCAT44(local_38,local_3c),file,line)" identifier (argument_list "(prefix,val,CONCAT44(iVar3,uVar2),CONCAT44(local_38,local_3c),file,line)" ( identifier , identifier , (call_expression "CONCAT44(iVar3,uVar2)" identifier (argument_list "(iVar3,uVar2)" ( identifier , identifier ))) , (call_expression "CONCAT44(local_38,local_3c)" identifier (argument_list "(local_38,local_3c)" ( identifier , identifier ))) , identifier , identifier ))) ;) })) (expression_statement "p_Var1 = operand->insert;" (assignment_expression "p_Var1 = operand->insert" identifier = (field_expression "operand->insert" identifier -> field_identifier)) ;) (labeled_statement "joined_r0x00047c12:\n  if (p_Var1 != (_func_uint_uint_int_char_ptr_ptr *)0x0) {\n    errmsg = (char *)0x0;\n    uVar2 = (*p_Var1)(insn,(uint)val,&errmsg);\n    if (errmsg != (char *)0x0) {\n      as_warn("%s",errmsg);\n    }\n    return uVar2;\n  }" statement_identifier : (if_statement "if (p_Var1 != (_func_uint_uint_int_char_ptr_ptr *)0x0) {\n    errmsg = (char *)0x0;\n    uVar2 = (*p_Var1)(insn,(uint)val,&errmsg);\n    if (errmsg != (char *)0x0) {\n      as_warn("%s",errmsg);\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(p_Var1 != (_func_uint_uint_int_char_ptr_ptr *)0x0)" ( (binary_expression "p_Var1 != (_func_uint_uint_int_char_ptr_ptr *)0x0" identifier != (cast_expression "(_func_uint_uint_int_char_ptr_ptr *)0x0" ( (type_descriptor "_func_uint_uint_int_char_ptr_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    errmsg = (char *)0x0;\n    uVar2 = (*p_Var1)(insn,(uint)val,&errmsg);\n    if (errmsg != (char *)0x0) {\n      as_warn("%s",errmsg);\n    }\n    return uVar2;\n  }" { (expression_statement "errmsg = (char *)0x0;" (assignment_expression "errmsg = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar2 = (*p_Var1)(insn,(uint)val,&errmsg);" (assignment_expression "uVar2 = (*p_Var1)(insn,(uint)val,&errmsg)" identifier = (call_expression "(*p_Var1)(insn,(uint)val,&errmsg)" (parenthesized_expression "(*p_Var1)" ( (pointer_expression "*p_Var1" * identifier) )) (argument_list "(insn,(uint)val,&errmsg)" ( identifier , (cast_expression "(uint)val" ( (type_descriptor "uint" type_identifier) ) identifier) , (pointer_expression "&errmsg" & identifier) )))) ;) (if_statement "if (errmsg != (char *)0x0) {\n      as_warn("%s",errmsg);\n    }" if (parenthesized_expression "(errmsg != (char *)0x0)" ( (binary_expression "errmsg != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      as_warn("%s",errmsg);\n    }" { (expression_statement "as_warn("%s",errmsg);" (call_expression "as_warn("%s",errmsg)" identifier (argument_list "("%s",errmsg)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (return_statement "return uVar2;" return identifier ;) }))) (return_statement "return ((1 << (*(byte *)operand & 0x1f)) - 1U & (uint)val) <<\n         ((byte)(*(ushort *)operand >> 5) & 0x1f) | insn;" return (binary_expression "((1 << (*(byte *)operand & 0x1f)) - 1U & (uint)val) <<\n         ((byte)(*(ushort *)operand >> 5) & 0x1f) | insn" (binary_expression "((1 << (*(byte *)operand & 0x1f)) - 1U & (uint)val) <<\n         ((byte)(*(ushort *)operand >> 5) & 0x1f)" (parenthesized_expression "((1 << (*(byte *)operand & 0x1f)) - 1U & (uint)val)" ( (binary_expression "(1 << (*(byte *)operand & 0x1f)) - 1U & (uint)val" (binary_expression "(1 << (*(byte *)operand & 0x1f)) - 1U" (parenthesized_expression "(1 << (*(byte *)operand & 0x1f))" ( (binary_expression "1 << (*(byte *)operand & 0x1f)" number_literal << (parenthesized_expression "(*(byte *)operand & 0x1f)" ( (binary_expression "*(byte *)operand & 0x1f" (pointer_expression "*(byte *)operand" * (cast_expression "(byte *)operand" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) & number_literal) ))) )) - number_literal) & (cast_expression "(uint)val" ( (type_descriptor "uint" type_identifier) ) identifier)) )) << (parenthesized_expression "((byte)(*(ushort *)operand >> 5) & 0x1f)" ( (binary_expression "(byte)(*(ushort *)operand >> 5) & 0x1f" (call_expression "(byte)(*(ushort *)operand >> 5)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*(ushort *)operand >> 5)" ( (binary_expression "*(ushort *)operand >> 5" (pointer_expression "*(ushort *)operand" * (cast_expression "(ushort *)operand" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) >> number_literal) ))) & number_literal) ))) | identifier) ;) })))
(translation_unit "uint __regparm2\nFUN_00047ad0(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  byte bVar3;\n  uint uVar4;\n  int iVar5;\n  uint local_3c;\n  int local_38;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x47adb;\n  if ((param_2[2] & 0x100) == 0) {\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }\n  pcVar1 = *(code **)(param_2 + 4);\njoined_r0x00047c12:\n  if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }\n  return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1\n  ;\n}\n\n" (function_definition "uint __regparm2\nFUN_00047ad0(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  byte bVar3;\n  uint uVar4;\n  int iVar5;\n  uint local_3c;\n  int local_38;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x47adb;\n  if ((param_2[2] & 0x100) == 0) {\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }\n  pcVar1 = *(code **)(param_2 + 4);\njoined_r0x00047c12:\n  if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }\n  return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1\n  ;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_00047ad0(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" identifier (parameter_list "(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "ushort *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  byte bVar3;\n  uint uVar4;\n  int iVar5;\n  uint local_3c;\n  int local_38;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x47adb;\n  if ((param_2[2] & 0x100) == 0) {\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }\n  pcVar1 = *(code **)(param_2 + 4);\njoined_r0x00047c12:\n  if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }\n  return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1\n  ;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint local_3c;" type_identifier identifier ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x47adb;" (assignment_expression "uStack_14 = 0x47adb" identifier = number_literal) ;) (if_statement "if ((param_2[2] & 0x100) == 0) {\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }" if (parenthesized_expression "((param_2[2] & 0x100) == 0)" ( (binary_expression "(param_2[2] & 0x100) == 0" (parenthesized_expression "(param_2[2] & 0x100)" ( (binary_expression "param_2[2] & 0x100" (subscript_expression "param_2[2]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }" { (expression_statement "bVar3 = (byte)*param_2 & 0x1f;" (assignment_expression "bVar3 = (byte)*param_2 & 0x1f" identifier = (binary_expression "(byte)*param_2 & 0x1f" (binary_expression "(byte)*param_2" (parenthesized_expression "(byte)" ( identifier )) * identifier) & number_literal)) ;) (if_statement "if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }" if (parenthesized_expression "((param_2[2] & 0x40) == 0)" ( (binary_expression "(param_2[2] & 0x40) == 0" (parenthesized_expression "(param_2[2] & 0x40)" ( (binary_expression "param_2[2] & 0x40" (subscript_expression "param_2[2]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "local_3c = (1 << bVar3) - 1;" (assignment_expression "local_3c = (1 << bVar3) - 1" identifier = (binary_expression "(1 << bVar3) - 1" (parenthesized_expression "(1 << bVar3)" ( (binary_expression "1 << bVar3" number_literal << identifier) )) - number_literal)) ;) (expression_statement "local_38 = (int)local_3c >> 0x1f;" (assignment_expression "local_38 = (int)local_3c >> 0x1f" identifier = (binary_expression "(int)local_3c >> 0x1f" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }" if (parenthesized_expression "(-1 < param_4)" ( (binary_expression "-1 < param_4" number_literal < identifier) )) (compound_statement "{\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }" { (labeled_statement "LAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }" statement_identifier : (if_statement "if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }" if (parenthesized_expression "((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0)" ( (binary_expression "(SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0" (parenthesized_expression "(SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))" ( (binary_expression "SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3))" (call_expression "SBORROW4(local_38,param_4)" identifier (argument_list "(local_38,param_4)" ( identifier , identifier ))) != (call_expression "SBORROW4(local_38 - param_4,(uint)(local_3c < param_3))" identifier (argument_list "(local_38 - param_4,(uint)(local_3c < param_3))" ( (binary_expression "local_38 - param_4" identifier - identifier) , (call_expression "(uint)(local_3c < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_3c < param_3)" ( (binary_expression "local_3c < param_3" identifier < identifier) ))) )))) )) == (binary_expression "(int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0" (cast_expression "(int)((local_38 - param_4) - (uint)(local_3c < param_3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((local_38 - param_4) - (uint)(local_3c < param_3))" ( (binary_expression "(local_38 - param_4) - (uint)(local_3c < param_3)" (parenthesized_expression "(local_38 - param_4)" ( (binary_expression "local_38 - param_4" identifier - identifier) )) - (call_expression "(uint)(local_3c < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_3c < param_3)" ( (binary_expression "local_3c < param_3" identifier < identifier) )))) ))) < number_literal)) )) (compound_statement "{\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }" { (expression_statement "pcVar1 = *(code **)(param_2 + 4);" (assignment_expression "pcVar1 = *(code **)(param_2 + 4)" identifier = (pointer_expression "*(code **)(param_2 + 4)" * (cast_expression "(code **)(param_2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x00047c12;" goto statement_identifier ;) }))) })) }) (else_clause "else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }" else (compound_statement "{\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }" { (expression_statement "iVar5 = 1 << (bVar3 - 1 & 0x1f);" (assignment_expression "iVar5 = 1 << (bVar3 - 1 & 0x1f)" identifier = (binary_expression "1 << (bVar3 - 1 & 0x1f)" number_literal << (parenthesized_expression "(bVar3 - 1 & 0x1f)" ( (binary_expression "bVar3 - 1 & 0x1f" (binary_expression "bVar3 - 1" identifier - number_literal) & number_literal) )))) ;) (expression_statement "local_3c = iVar5 - 1;" (assignment_expression "local_3c = iVar5 - 1" identifier = (binary_expression "iVar5 - 1" identifier - number_literal)) ;) (expression_statement "uVar4 = -iVar5;" (assignment_expression "uVar4 = -iVar5" identifier = (unary_expression "-iVar5" - identifier)) ;) (expression_statement "local_38 = (int)local_3c >> 0x1f;" (assignment_expression "local_38 = (int)local_3c >> 0x1f" identifier = (binary_expression "(int)local_3c >> 0x1f" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "iVar5 = (int)uVar4 >> 0x1f;" (assignment_expression "iVar5 = (int)uVar4 >> 0x1f" identifier = (binary_expression "(int)uVar4 >> 0x1f" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;" if (parenthesized_expression "((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0)" ( (binary_expression "(SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0" (parenthesized_expression "(SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4)))" ( (binary_expression "SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))" (call_expression "SBORROW4(param_4,iVar5)" identifier (argument_list "(param_4,iVar5)" ( identifier , identifier ))) != (call_expression "SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))" identifier (argument_list "(param_4 - iVar5,(uint)(param_3 < uVar4))" ( (binary_expression "param_4 - iVar5" identifier - identifier) , (call_expression "(uint)(param_3 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 < uVar4)" ( (binary_expression "param_3 < uVar4" identifier < identifier) ))) )))) )) == (binary_expression "(int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0" (cast_expression "(int)((param_4 - iVar5) - (uint)(param_3 < uVar4))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((param_4 - iVar5) - (uint)(param_3 < uVar4))" ( (binary_expression "(param_4 - iVar5) - (uint)(param_3 < uVar4)" (parenthesized_expression "(param_4 - iVar5)" ( (binary_expression "param_4 - iVar5" identifier - identifier) )) - (call_expression "(uint)(param_3 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 < uVar4)" ( (binary_expression "param_3 < uVar4" identifier < identifier) )))) ))) < number_literal)) )) (goto_statement "goto LAB_00047bf7;" goto statement_identifier ;)) }))) (expression_statement "uVar2 = dcgettext(0,"operand",5);" (assignment_expression "uVar2 = dcgettext(0,"operand",5)" identifier = (call_expression "dcgettext(0,"operand",5)" identifier (argument_list "(0,"operand",5)" ( number_literal , (string_literal ""operand"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);" (call_expression "FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6)" identifier (argument_list "(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "pcVar1 = *(code **)(param_2 + 4);" (assignment_expression "pcVar1 = *(code **)(param_2 + 4)" identifier = (pointer_expression "*(code **)(param_2 + 4)" * (cast_expression "(code **)(param_2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x00047c12:\n  if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }" statement_identifier : (if_statement "if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }" if (parenthesized_expression "(pcVar1 != (code *)0x0)" ( (binary_expression "pcVar1 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }" { (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar4 = (*pcVar1)(param_1,param_3,local_20);" (assignment_expression "uVar4 = (*pcVar1)(param_1,param_3,local_20)" identifier = (call_expression "(*pcVar1)(param_1,param_3,local_20)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1,param_3,local_20)" ( identifier , identifier , identifier )))) ;) (if_statement "if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }" if (parenthesized_expression "(local_20[0] != 0)" ( (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_00031540("%s",local_20[0]);\n    }" { (expression_statement "FUN_00031540("%s",local_20[0]);" (call_expression "FUN_00031540("%s",local_20[0])" identifier (argument_list "("%s",local_20[0])" ( (string_literal ""%s"" " string_content ") , (subscript_expression "local_20[0]" identifier [ number_literal ]) ))) ;) })) (return_statement "return uVar4;" return identifier ;) }))) (return_statement "return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1\n  ;" return (binary_expression "((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1" (binary_expression "((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f)" (parenthesized_expression "((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3)" ( (binary_expression "(1 << ((byte)*param_2 & 0x1f)) - 1U & param_3" (binary_expression "(1 << ((byte)*param_2 & 0x1f)) - 1U" (parenthesized_expression "(1 << ((byte)*param_2 & 0x1f))" ( (binary_expression "1 << ((byte)*param_2 & 0x1f)" number_literal << (parenthesized_expression "((byte)*param_2 & 0x1f)" ( (binary_expression "(byte)*param_2 & 0x1f" (binary_expression "(byte)*param_2" (parenthesized_expression "(byte)" ( identifier )) * identifier) & number_literal) ))) )) - number_literal) & identifier) )) << (parenthesized_expression "((byte)(*param_2 >> 5) & 0x1f)" ( (binary_expression "(byte)(*param_2 >> 5) & 0x1f" (call_expression "(byte)(*param_2 >> 5)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(*param_2 >> 5)" ( (binary_expression "*param_2 >> 5" (pointer_expression "*param_2" * identifier) >> number_literal) ))) & number_literal) ))) | identifier) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression LIT << IDENT) )) - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) != (call_expression IDENT (argument_list ( (binary_expression IDENT - IDENT) , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) )))) )) == (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) ))) < LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) }))) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) != (call_expression IDENT (argument_list ( (binary_expression IDENT - IDENT) , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) )))) )) == (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) ))) < LIT)) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (subscript_expression IDENT [ LIT ]) ))) ;) })) (return_statement return IDENT ;) }))) (return_statement return (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) & LIT) ))) )) - LIT) & IDENT) )) << (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * IDENT) >> LIT) ))) & LIT) ))) | IDENT) ;) })))
(function_definition "uint __regparm2\nFUN_00047ad0(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  byte bVar3;\n  uint uVar4;\n  int iVar5;\n  uint local_3c;\n  int local_38;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x47adb;\n  if ((param_2[2] & 0x100) == 0) {\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }\n  pcVar1 = *(code **)(param_2 + 4);\njoined_r0x00047c12:\n  if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }\n  return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1\n  ;\n}" (type_identifier "uint") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00047ad0(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" (identifier "FUN_00047ad0") (parameter_list "(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "ushort *param_2" (type_identifier "ushort") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  byte bVar3;\n  uint uVar4;\n  int iVar5;\n  uint local_3c;\n  int local_38;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x47adb;\n  if ((param_2[2] & 0x100) == 0) {\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }\n  pcVar1 = *(code **)(param_2 + 4);\njoined_r0x00047c12:\n  if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }\n  return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1\n  ;\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint local_3c;" (type_identifier "uint") (identifier "local_3c") (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "int local_20 [3];" (primitive_type "int") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x47adb;" (assignment_expression "uStack_14 = 0x47adb" (identifier "uStack_14") (= "=") (number_literal "0x47adb")) (; ";")) (if_statement "if ((param_2[2] & 0x100) == 0) {\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }" (if "if") (parenthesized_expression "((param_2[2] & 0x100) == 0)" (( "(") (binary_expression "(param_2[2] & 0x100) == 0" (parenthesized_expression "(param_2[2] & 0x100)" (( "(") (binary_expression "param_2[2] & 0x100" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (& "&") (number_literal "0x100")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    bVar3 = (byte)*param_2 & 0x1f;\n    if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }\n    uVar2 = dcgettext(0,"operand",5);\n    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);\n  }" ({ "{") (expression_statement "bVar3 = (byte)*param_2 & 0x1f;" (assignment_expression "bVar3 = (byte)*param_2 & 0x1f" (identifier "bVar3") (= "=") (binary_expression "(byte)*param_2 & 0x1f" (binary_expression "(byte)*param_2" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (* "*") (identifier "param_2")) (& "&") (number_literal "0x1f"))) (; ";")) (if_statement "if ((param_2[2] & 0x40) == 0) {\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }\n    else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }" (if "if") (parenthesized_expression "((param_2[2] & 0x40) == 0)" (( "(") (binary_expression "(param_2[2] & 0x40) == 0" (parenthesized_expression "(param_2[2] & 0x40)" (( "(") (binary_expression "param_2[2] & 0x40" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = 0;\n      uVar4 = 0;\n      local_3c = (1 << bVar3) - 1;\n      local_38 = (int)local_3c >> 0x1f;\n      if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }\n    }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_3c = (1 << bVar3) - 1;" (assignment_expression "local_3c = (1 << bVar3) - 1" (identifier "local_3c") (= "=") (binary_expression "(1 << bVar3) - 1" (parenthesized_expression "(1 << bVar3)" (( "(") (binary_expression "1 << bVar3" (number_literal "1") (<< "<<") (identifier "bVar3")) () ")")) (- "-") (number_literal "1"))) (; ";")) (expression_statement "local_38 = (int)local_3c >> 0x1f;" (assignment_expression "local_38 = (int)local_3c >> 0x1f" (identifier "local_38") (= "=") (binary_expression "(int)local_3c >> 0x1f" (cast_expression "(int)local_3c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_3c")) (>> ">>") (number_literal "0x1f"))) (; ";")) (if_statement "if (-1 < param_4) {\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }" (if "if") (parenthesized_expression "(-1 < param_4)" (( "(") (binary_expression "-1 < param_4" (number_literal "-1") (< "<") (identifier "param_4")) () ")")) (compound_statement "{\nLAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }\n      }" ({ "{") (labeled_statement "LAB_00047bf7:\n        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }" (statement_identifier "LAB_00047bf7") (: ":") (if_statement "if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }" (if "if") (parenthesized_expression "((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0)" (( "(") (binary_expression "(SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))\n            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0" (parenthesized_expression "(SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))" (( "(") (binary_expression "SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3))" (call_expression "SBORROW4(local_38,param_4)" (identifier "SBORROW4") (argument_list "(local_38,param_4)" (( "(") (identifier "local_38") (, ",") (identifier "param_4") () ")"))) (!= "!=") (call_expression "SBORROW4(local_38 - param_4,(uint)(local_3c < param_3))" (identifier "SBORROW4") (argument_list "(local_38 - param_4,(uint)(local_3c < param_3))" (( "(") (binary_expression "local_38 - param_4" (identifier "local_38") (- "-") (identifier "param_4")) (, ",") (call_expression "(uint)(local_3c < param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_3c < param_3)" (( "(") (binary_expression "local_3c < param_3" (identifier "local_3c") (< "<") (identifier "param_3")) () ")"))) () ")")))) () ")")) (== "==") (binary_expression "(int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0" (cast_expression "(int)((local_38 - param_4) - (uint)(local_3c < param_3))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((local_38 - param_4) - (uint)(local_3c < param_3))" (( "(") (binary_expression "(local_38 - param_4) - (uint)(local_3c < param_3)" (parenthesized_expression "(local_38 - param_4)" (( "(") (binary_expression "local_38 - param_4" (identifier "local_38") (- "-") (identifier "param_4")) () ")")) (- "-") (call_expression "(uint)(local_3c < param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_3c < param_3)" (( "(") (binary_expression "local_3c < param_3" (identifier "local_3c") (< "<") (identifier "param_3")) () ")")))) () ")"))) (< "<") (number_literal "0"))) () ")")) (compound_statement "{\n          pcVar1 = *(code **)(param_2 + 4);\n          goto joined_r0x00047c12;\n        }" ({ "{") (expression_statement "pcVar1 = *(code **)(param_2 + 4);" (assignment_expression "pcVar1 = *(code **)(param_2 + 4)" (identifier "pcVar1") (= "=") (pointer_expression "*(code **)(param_2 + 4)" (* "*") (cast_expression "(code **)(param_2 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (goto_statement "goto joined_r0x00047c12;" (goto "goto") (statement_identifier "joined_r0x00047c12") (; ";")) (} "}")))) (} "}"))) (} "}")) (else_clause "else {\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }" (else "else") (compound_statement "{\n      iVar5 = 1 << (bVar3 - 1 & 0x1f);\n      local_3c = iVar5 - 1;\n      uVar4 = -iVar5;\n      local_38 = (int)local_3c >> 0x1f;\n      iVar5 = (int)uVar4 >> 0x1f;\n      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;\n    }" ({ "{") (expression_statement "iVar5 = 1 << (bVar3 - 1 & 0x1f);" (assignment_expression "iVar5 = 1 << (bVar3 - 1 & 0x1f)" (identifier "iVar5") (= "=") (binary_expression "1 << (bVar3 - 1 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(bVar3 - 1 & 0x1f)" (( "(") (binary_expression "bVar3 - 1 & 0x1f" (binary_expression "bVar3 - 1" (identifier "bVar3") (- "-") (number_literal "1")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "local_3c = iVar5 - 1;" (assignment_expression "local_3c = iVar5 - 1" (identifier "local_3c") (= "=") (binary_expression "iVar5 - 1" (identifier "iVar5") (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = -iVar5;" (assignment_expression "uVar4 = -iVar5" (identifier "uVar4") (= "=") (unary_expression "-iVar5" (- "-") (identifier "iVar5"))) (; ";")) (expression_statement "local_38 = (int)local_3c >> 0x1f;" (assignment_expression "local_38 = (int)local_3c >> 0x1f" (identifier "local_38") (= "=") (binary_expression "(int)local_3c >> 0x1f" (cast_expression "(int)local_3c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_3c")) (>> ">>") (number_literal "0x1f"))) (; ";")) (expression_statement "iVar5 = (int)uVar4 >> 0x1f;" (assignment_expression "iVar5 = (int)uVar4 >> 0x1f" (identifier "iVar5") (= "=") (binary_expression "(int)uVar4 >> 0x1f" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (>> ">>") (number_literal "0x1f"))) (; ";")) (if_statement "if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;" (if "if") (parenthesized_expression "((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0)" (( "(") (binary_expression "(SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==\n          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0" (parenthesized_expression "(SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4)))" (( "(") (binary_expression "SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))" (call_expression "SBORROW4(param_4,iVar5)" (identifier "SBORROW4") (argument_list "(param_4,iVar5)" (( "(") (identifier "param_4") (, ",") (identifier "iVar5") () ")"))) (!= "!=") (call_expression "SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))" (identifier "SBORROW4") (argument_list "(param_4 - iVar5,(uint)(param_3 < uVar4))" (( "(") (binary_expression "param_4 - iVar5" (identifier "param_4") (- "-") (identifier "iVar5")) (, ",") (call_expression "(uint)(param_3 < uVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 < uVar4)" (( "(") (binary_expression "param_3 < uVar4" (identifier "param_3") (< "<") (identifier "uVar4")) () ")"))) () ")")))) () ")")) (== "==") (binary_expression "(int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0" (cast_expression "(int)((param_4 - iVar5) - (uint)(param_3 < uVar4))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((param_4 - iVar5) - (uint)(param_3 < uVar4))" (( "(") (binary_expression "(param_4 - iVar5) - (uint)(param_3 < uVar4)" (parenthesized_expression "(param_4 - iVar5)" (( "(") (binary_expression "param_4 - iVar5" (identifier "param_4") (- "-") (identifier "iVar5")) () ")")) (- "-") (call_expression "(uint)(param_3 < uVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 < uVar4)" (( "(") (binary_expression "param_3 < uVar4" (identifier "param_3") (< "<") (identifier "uVar4")) () ")")))) () ")"))) (< "<") (number_literal "0"))) () ")")) (goto_statement "goto LAB_00047bf7;" (goto "goto") (statement_identifier "LAB_00047bf7") (; ";"))) (} "}")))) (expression_statement "uVar2 = dcgettext(0,"operand",5);" (assignment_expression "uVar2 = dcgettext(0,"operand",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"operand",5)" (identifier "dcgettext") (argument_list "(0,"operand",5)" (( "(") (number_literal "0") (, ",") (string_literal ""operand"" (" """) (string_content "operand") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);" (call_expression "FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6)" (identifier "FUN_00031b90") (argument_list "(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6)" (( "(") (identifier "uVar2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "uVar4") (, ",") (identifier "iVar5") (, ",") (identifier "local_3c") (, ",") (identifier "local_38") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar1 = *(code **)(param_2 + 4);" (assignment_expression "pcVar1 = *(code **)(param_2 + 4)" (identifier "pcVar1") (= "=") (pointer_expression "*(code **)(param_2 + 4)" (* "*") (cast_expression "(code **)(param_2 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (labeled_statement "joined_r0x00047c12:\n  if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }" (statement_identifier "joined_r0x00047c12") (: ":") (if_statement "if (pcVar1 != (code *)0x0) {\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(pcVar1 != (code *)0x0)" (( "(") (binary_expression "pcVar1 != (code *)0x0" (identifier "pcVar1") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_20[0] = 0;\n    uVar4 = (*pcVar1)(param_1,param_3,local_20);\n    if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }\n    return uVar4;\n  }" ({ "{") (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = (*pcVar1)(param_1,param_3,local_20);" (assignment_expression "uVar4 = (*pcVar1)(param_1,param_3,local_20)" (identifier "uVar4") (= "=") (call_expression "(*pcVar1)(param_1,param_3,local_20)" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "(param_1,param_3,local_20)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "local_20") () ")")))) (; ";")) (if_statement "if (local_20[0] != 0) {\n      FUN_00031540("%s",local_20[0]);\n    }" (if "if") (parenthesized_expression "(local_20[0] != 0)" (( "(") (binary_expression "local_20[0] != 0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00031540("%s",local_20[0]);\n    }" ({ "{") (expression_statement "FUN_00031540("%s",local_20[0]);" (call_expression "FUN_00031540("%s",local_20[0])" (identifier "FUN_00031540") (argument_list "("%s",local_20[0])" (( "(") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (} "}"))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))) (return_statement "return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1\n  ;" (return "return") (binary_expression "((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1" (binary_expression "((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f)" (parenthesized_expression "((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3)" (( "(") (binary_expression "(1 << ((byte)*param_2 & 0x1f)) - 1U & param_3" (binary_expression "(1 << ((byte)*param_2 & 0x1f)) - 1U" (parenthesized_expression "(1 << ((byte)*param_2 & 0x1f))" (( "(") (binary_expression "1 << ((byte)*param_2 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)*param_2 & 0x1f)" (( "(") (binary_expression "(byte)*param_2 & 0x1f" (binary_expression "(byte)*param_2" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (* "*") (identifier "param_2")) (& "&") (number_literal "0x1f")) () ")"))) () ")")) (- "-") (number_literal "1U")) (& "&") (identifier "param_3")) () ")")) (<< "<<") (parenthesized_expression "((byte)(*param_2 >> 5) & 0x1f)" (( "(") (binary_expression "(byte)(*param_2 >> 5) & 0x1f" (call_expression "(byte)(*param_2 >> 5)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(*param_2 >> 5)" (( "(") (binary_expression "*param_2 >> 5" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (>> ">>") (number_literal "5")) () ")"))) (& "&") (number_literal "0x1f")) () ")"))) (| "|") (identifier "param_1")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Removing unreachable block (ram,0x00047c55) */

type_1 __regparm2 function_1(type_1 var_13,type_2 *operand,type_3 var_1,char *file,type_1 line)

{
  type_4 *var_10;
  char *prefix;
  type_1 var_6;
  int var_5;
  type_1 var_4;
  int var_3;
  char *var_11;
  type_5 uStack_14;
  
  uStack_14 = 0x47adb;
  if ((*(type_6 *)&operand->field_0x4 & 0x100) == 0) {
    if ((*(type_6 *)&operand->field_0x4 & 0x40) == 0) {
      var_5 = 0;
      var_6 = 0;
      var_4 = (1 << (*(type_7 *)operand & 0x1f)) - 1;
      var_3 = (int)var_4 >> 0x1f;
      if (-1 < var_1) {
LAB_00047bf7:
        if ((var_2(var_3,var_1._4_4_) !=
            var_2(var_3 - var_1._4_4_,(type_1)(var_4 < (type_1)var_1))) ==
            (int)((var_3 - var_1._4_4_) - (type_1)(var_4 < (type_1)var_1)) < 0) {
          var_10 = operand->insert;
          goto joined_r0x00047c12;
        }
      }
    }
    else {
      var_5 = 1 << ((*(type_7 *)operand & 0x1f) - 1 & 0x1f);
      var_4 = var_5 - 1;
      var_6 = -var_5;
      var_3 = (int)var_4 >> 0x1f;
      var_5 = (int)var_6 >> 0x1f;
      if ((var_2(var_1._4_4_,var_5) != var_2(var_1._4_4_ - var_5,(type_1)((type_1)var_1 < var_6))) ==
          (int)((var_1._4_4_ - var_5) - (type_1)((type_1)var_1 < var_6)) < 0) goto LAB_00047bf7;
    }
    prefix = (char *)var_7(0,"operand",5);
    var_8
              (prefix,var_1,var_9(var_5,var_6),var_9(var_3,var_4),file,line);
  }
  var_10 = operand->insert;
joined_r0x00047c12:
  if (var_10 != (type_4 *)0x0) {
    var_11 = (char *)0x0;
    var_6 = (*var_10)(var_13,(type_1)var_1,&var_11);
    if (var_11 != (char *)0x0) {
      var_12("%s",var_11);
    }
    return var_6;
  }
  return ((1 << (*(type_7 *)operand & 0x1f)) - 1U & (type_1)var_1) <<
         ((type_7)(*(type_6 *)operand >> 5) & 0x1f) | var_13;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) 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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) 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: (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) right: (number_literal)))) consequence: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_identifier)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) right: (number_literal)))) consequence: (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (subscript_expression argument: (identifier) index: (number_literal))))))) (return_statement (identifier))))) (return_statement (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal))))) right: (number_literal)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) right: (number_literal)))) right: (identifier))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Removing unreachable block (ram,0x00047c55) */

uint __regparm2
MASKED(uint param_1,ushort *param_2,uint param_3,int param_4,undefined4 param_5,
            undefined4 param_6)

{
  code *pcVar1;
  undefined4 uVar2;
  byte bVar3;
  uint uVar4;
  int iVar5;
  uint local_3c;
  int local_38;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x47adb;
  if ((param_2[2] & 0x100) == 0) {
    bVar3 = (byte)*param_2 & 0x1f;
    if ((param_2[2] & 0x40) == 0) {
      iVar5 = 0;
      uVar4 = 0;
      local_3c = (1 << bVar3) - 1;
      local_38 = (int)local_3c >> 0x1f;
      if (-1 < param_4) {
LAB_00047bf7:
        if ((SBORROW4(local_38,param_4) != SBORROW4(local_38 - param_4,(uint)(local_3c < param_3)))
            == (int)((local_38 - param_4) - (uint)(local_3c < param_3)) < 0) {
          pcVar1 = *(code **)(param_2 + 4);
          goto joined_r0x00047c12;
        }
      }
    }
    else {
      iVar5 = 1 << (bVar3 - 1 & 0x1f);
      local_3c = iVar5 - 1;
      uVar4 = -iVar5;
      local_38 = (int)local_3c >> 0x1f;
      iVar5 = (int)uVar4 >> 0x1f;
      if ((SBORROW4(param_4,iVar5) != SBORROW4(param_4 - iVar5,(uint)(param_3 < uVar4))) ==
          (int)((param_4 - iVar5) - (uint)(param_3 < uVar4)) < 0) goto LAB_00047bf7;
    }
    uVar2 = dcgettext(0,"operand",5);
    FUN_00031b90(uVar2,param_3,param_4,uVar4,iVar5,local_3c,local_38,param_5,param_6);
  }
  pcVar1 = *(code **)(param_2 + 4);
joined_r0x00047c12:
  if (pcVar1 != (code *)0x0) {
    local_20[0] = 0;
    uVar4 = (*pcVar1)(param_1,param_3,local_20);
    if (local_20[0] != 0) {
      FUN_00031540("%s",local_20[0]);
    }
    return uVar4;
  }
  return ((1 << ((byte)*param_2 & 0x1f)) - 1U & param_3) << ((byte)(*param_2 >> 5) & 0x1f) | param_1
  ;
}

