
int __regparm3 classify_object_over_fdes(uint *param_1,int *param_2)

{
  ushort uVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  uint uVar6;
  undefined4 uVar7;
  int local_30;
  uint local_20 [4];
  
  local_30 = *param_2;
  if (local_30 != 0) {
    uVar7 = 0;
    uVar6 = 0;
    local_30 = 0;
    iVar3 = 0;
    do {
      iVar5 = iVar3;
      if (param_2[1] != 0) {
        iVar5 = (int)param_2 + (4 - param_2[1]);
        if (iVar5 != iVar3) {
          uVar6 = get_cie_encoding(uVar6,uVar7);
          if (uVar6 == 0xff) {
            return -1;
          }
          uVar7 = base_from_object();
          uVar1 = (ushort)param_1[4];
          if ((uVar1 & 0x7f8) == 0x7f8) {
            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;
          }
          else if ((byte)(uVar1 >> 3) != uVar6) {
            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;
          }
        }
        read_encoded_value_with_base(local_20);
        uVar2 = size_of_encoded_value();
        uVar4 = 0xffffffff;
        if (uVar2 < 4) {
          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;
        }
        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {
          *param_1 = local_20[0];
        }
      }
      param_2 = (int *)((int)param_2 + *param_2 + 4);
      iVar3 = iVar5;
    } while (*param_2 != 0);
  }
  return local_30;
}



int __regparm3 FUN_0027ec40(uint *param_1,int *param_2)

{
  ushort uVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  uint uVar6;
  undefined4 uVar7;
  int local_30;
  uint local_20 [4];
  
  local_30 = *param_2;
  if (local_30 != 0) {
    uVar7 = 0;
    uVar6 = 0;
    local_30 = 0;
    iVar3 = 0;
    do {
      iVar5 = iVar3;
      if (param_2[1] != 0) {
        iVar5 = (int)param_2 + (4 - param_2[1]);
        if (iVar5 != iVar3) {
          uVar6 = FUN_0027e410(uVar6,uVar7);
          if (uVar6 == 0xff) {
            return -1;
          }
          uVar7 = FUN_0027e180();
          uVar1 = (ushort)param_1[4];
          if ((uVar1 & 0x7f8) == 0x7f8) {
            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;
          }
          else if ((byte)(uVar1 >> 3) != uVar6) {
            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;
          }
        }
        FUN_0027e240(local_20);
        uVar2 = FUN_0027e120();
        uVar4 = 0xffffffff;
        if (uVar2 < 4) {
          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;
        }
        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {
          *param_1 = local_20[0];
        }
      }
      param_2 = (int *)((int)param_2 + *param_2 + 4);
      iVar3 = iVar5;
    } while (*param_2 != 0);
  }
  return local_30;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOV EAX,dword ptr [EDX]
MOV dword ptr [ESP + 0xc],EAX
TEST EAX,EAX
JZ 0x0027ed47
LEA EAX,[ESP + 0x1c]
MOV dword ptr [ESP + 0x4],0x0
MOV EBX,EDX
XOR ECX,ECX
MOV dword ptr [ESP],0x0
MOV dword ptr [ESP + 0xc],0x0
MOV dword ptr [ESP + 0x8],EAX
LEA ESI,[ESI]
MOV EAX,dword ptr [EBX + 0x4]
TEST EAX,EAX
JZ 0x0027ed37
LEA ESI,[EBX + 0x4]
MOVZX EDI,byte ptr [ESP]
SUB ESI,EAX
CMP ESI,ECX
JZ 0x0027ece4
MOV EAX,ESI
CALL 0x0027e410
MOV dword ptr [ESP],EAX
CMP EAX,0xff
JZ 0x0027ed70
MOVZX EDI,byte ptr [ESP]
MOV EDX,EBP
MOV EAX,EDI
CALL 0x0027e180
MOV dword ptr [ESP + 0x4],EAX
MOVZX EAX,word ptr [EBP + 0x10]
MOV EDX,EAX
AND DX,0x7f8
CMP DX,0x7f8
JZ 0x0027ed58
SHR AX,0x3
MOVZX EAX,AL
CMP EAX,dword ptr [ESP]
JZ 0x0027ece4
OR byte ptr [EBP + 0x10],0x4
SUB ESP,0xc
LEA ECX,[EBX + 0x8]
MOV EAX,EDI
PUSH dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x14]
CALL 0x0027e240
MOV EAX,EDI
CALL 0x0027e120
ADD ESP,0x10
MOV EDX,0xffffffff
CMP EAX,0x3
JA 0x0027ed1e
LEA ECX,[EAX*0x8 + 0x0]
MOV EDX,0x1
SHL EDX,CL
SUB EDX,0x1
MOV EAX,dword ptr [ESP + 0x1c]
MOV ECX,ESI
TEST EAX,EDX
JZ 0x0027ed37
ADD dword ptr [ESP + 0xc],0x1
CMP dword ptr [EBP],EAX
JBE 0x0027ed35
MOV dword ptr [EBP],EAX
MOV ECX,ESI
MOV EAX,dword ptr [EBX]
LEA EBX,[EBX + EAX*0x1 + 0x4]
MOV EAX,dword ptr [EBX]
TEST EAX,EAX
JNZ 0x0027ec80
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOVZX EDX,byte ptr [ESP]
AND AX,0xf807
SHL EDX,0x3
OR EAX,EDX
MOV word ptr [EBP + 0x10],AX
JMP 0x0027ece4
MOV dword ptr [ESP + 0xc],0xffffffff
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "int __regparm3 FUN_0027ec40(uint *param_1,int *param_2)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  int local_30;\n  uint local_20 [4];\n  \n  local_30 = *param_2;\n  if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }\n  return local_30;\n}\n\n" (function_definition "int __regparm3 FUN_0027ec40(uint *param_1,int *param_2)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  int local_30;\n  uint local_20 [4];\n  \n  local_30 = *param_2;\n  if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }\n  return local_30;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0027ec40(uint *param_1,int *param_2)" identifier (parameter_list "(uint *param_1,int *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  int local_30;\n  uint local_20 [4];\n  \n  local_30 = *param_2;\n  if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }\n  return local_30;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "uint local_20 [4];" type_identifier (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);" do (compound_statement "{\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    }" { (expression_statement "iVar5 = iVar3;" (assignment_expression "iVar5 = iVar3" identifier = identifier) ;) (if_statement "if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }" if (parenthesized_expression "(param_2[1] != 0)" ( (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }" { (expression_statement "iVar5 = (int)param_2 + (4 - param_2[1]);" (assignment_expression "iVar5 = (int)param_2 + (4 - param_2[1])" identifier = (binary_expression "(int)param_2 + (4 - param_2[1])" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(4 - param_2[1])" ( (binary_expression "4 - param_2[1]" number_literal - (subscript_expression "param_2[1]" identifier [ number_literal ])) )))) ;) (if_statement "if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }" if (parenthesized_expression "(iVar5 != iVar3)" ( (binary_expression "iVar5 != iVar3" identifier != identifier) )) (compound_statement "{\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }" { (expression_statement "uVar6 = FUN_0027e410(uVar6,uVar7);" (assignment_expression "uVar6 = FUN_0027e410(uVar6,uVar7)" identifier = (call_expression "FUN_0027e410(uVar6,uVar7)" identifier (argument_list "(uVar6,uVar7)" ( identifier , identifier )))) ;) (if_statement "if (uVar6 == 0xff) {\n            return -1;\n          }" if (parenthesized_expression "(uVar6 == 0xff)" ( (binary_expression "uVar6 == 0xff" identifier == number_literal) )) (compound_statement "{\n            return -1;\n          }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "uVar7 = FUN_0027e180();" (assignment_expression "uVar7 = FUN_0027e180()" identifier = (call_expression "FUN_0027e180()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = (ushort)param_1[4];" (assignment_expression "uVar1 = (ushort)param_1[4]" identifier = (cast_expression "(ushort)param_1[4]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) ;) (if_statement "if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" if (parenthesized_expression "((uVar1 & 0x7f8) == 0x7f8)" ( (binary_expression "(uVar1 & 0x7f8) == 0x7f8" (parenthesized_expression "(uVar1 & 0x7f8)" ( (binary_expression "uVar1 & 0x7f8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }" { (expression_statement "*(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;" (assignment_expression "*(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3" (pointer_expression "*(ushort *)(param_1 + 4)" * (cast_expression "(ushort *)(param_1 + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3" (binary_expression "uVar1 & 0xf807" identifier & number_literal) | (binary_expression "(ushort)(byte)uVar6 << 3" (cast_expression "(ushort)(byte)uVar6" ( (type_descriptor "ushort" type_identifier) ) (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) << number_literal))) ;) }) (else_clause "else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" else (if_statement "if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" if (parenthesized_expression "((byte)(uVar1 >> 3) != uVar6)" ( (binary_expression "(byte)(uVar1 >> 3) != uVar6" (call_expression "(byte)(uVar1 >> 3)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar1 >> 3)" ( (binary_expression "uVar1 >> 3" identifier >> number_literal) ))) != identifier) )) (compound_statement "{\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" { (expression_statement "*(byte *)(param_1 + 4) = (byte)param_1[4] | 4;" (assignment_expression "*(byte *)(param_1 + 4) = (byte)param_1[4] | 4" (pointer_expression "*(byte *)(param_1 + 4)" * (cast_expression "(byte *)(param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "(byte)param_1[4] | 4" (cast_expression "(byte)param_1[4]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) | number_literal)) ;) })))) })) (expression_statement "FUN_0027e240(local_20);" (call_expression "FUN_0027e240(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "uVar2 = FUN_0027e120();" (assignment_expression "uVar2 = FUN_0027e120()" identifier = (call_expression "FUN_0027e120()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }" if (parenthesized_expression "(uVar2 < 4)" ( (binary_expression "uVar2 < 4" identifier < number_literal) )) (compound_statement "{\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }" { (expression_statement "uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;" (assignment_expression "uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1" identifier = (binary_expression "(1 << ((char)uVar2 * '\b' & 0x1fU)) - 1" (parenthesized_expression "(1 << ((char)uVar2 * '\b' & 0x1fU))" ( (binary_expression "1 << ((char)uVar2 * '\b' & 0x1fU)" number_literal << (parenthesized_expression "((char)uVar2 * '\b' & 0x1fU)" ( (binary_expression "(char)uVar2 * '\b' & 0x1fU" (binary_expression "(char)uVar2 * '\b'" (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\b'" ' escape_sequence ')) & number_literal) ))) )) - number_literal)) ;) })) (if_statement "if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }" if (parenthesized_expression "(((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1))" ( (binary_expression "((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)" (parenthesized_expression "((local_20[0] & uVar4) != 0)" ( (binary_expression "(local_20[0] & uVar4) != 0" (parenthesized_expression "(local_20[0] & uVar4)" ( (binary_expression "local_20[0] & uVar4" (subscript_expression "local_20[0]" identifier [ number_literal ]) & identifier) )) != number_literal) )) && (parenthesized_expression "(local_30 = local_30 + 1, local_20[0] < *param_1)" ( (comma_expression "local_30 = local_30 + 1, local_20[0] < *param_1" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) , (binary_expression "local_20[0] < *param_1" (subscript_expression "local_20[0]" identifier [ number_literal ]) < (pointer_expression "*param_1" * identifier))) ))) )) (compound_statement "{\n          *param_1 = local_20[0];\n        }" { (expression_statement "*param_1 = local_20[0];" (assignment_expression "*param_1 = local_20[0]" (pointer_expression "*param_1" * identifier) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) })) })) (expression_statement "param_2 = (int *)((int)param_2 + *param_2 + 4);" (assignment_expression "param_2 = (int *)((int)param_2 + *param_2 + 4)" identifier = (cast_expression "(int *)((int)param_2 + *param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + *param_2 + 4)" ( (binary_expression "(int)param_2 + *param_2 + 4" (binary_expression "(int)param_2 + *param_2" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*param_2" * identifier)) + number_literal) )))) ;) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(*param_2 != 0)" ( (binary_expression "*param_2 != 0" (pointer_expression "*param_2" * identifier) != number_literal) )) ;) })) (return_statement "return local_30;" return identifier ;) })))
(translation_unit "int __regparm3 classify_object_over_fdes(uint *param_1,int *param_2)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  int local_30;\n  uint local_20 [4];\n  \n  local_30 = *param_2;\n  if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = get_cie_encoding(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = base_from_object();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        read_encoded_value_with_base(local_20);\n        uVar2 = size_of_encoded_value();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }\n  return local_30;\n}\n\n" (function_definition "int __regparm3 classify_object_over_fdes(uint *param_1,int *param_2)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  int local_30;\n  uint local_20 [4];\n  \n  local_30 = *param_2;\n  if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = get_cie_encoding(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = base_from_object();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        read_encoded_value_with_base(local_20);\n        uVar2 = size_of_encoded_value();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }\n  return local_30;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "classify_object_over_fdes(uint *param_1,int *param_2)" identifier (parameter_list "(uint *param_1,int *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  int local_30;\n  uint local_20 [4];\n  \n  local_30 = *param_2;\n  if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = get_cie_encoding(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = base_from_object();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        read_encoded_value_with_base(local_20);\n        uVar2 = size_of_encoded_value();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }\n  return local_30;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "uint local_20 [4];" type_identifier (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = get_cie_encoding(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = base_from_object();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        read_encoded_value_with_base(local_20);\n        uVar2 = size_of_encoded_value();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = get_cie_encoding(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = base_from_object();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        read_encoded_value_with_base(local_20);\n        uVar2 = size_of_encoded_value();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = get_cie_encoding(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = base_from_object();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        read_encoded_value_with_base(local_20);\n        uVar2 = size_of_encoded_value();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);" do (compound_statement "{\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = get_cie_encoding(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = base_from_object();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        read_encoded_value_with_base(local_20);\n        uVar2 = size_of_encoded_value();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    }" { (expression_statement "iVar5 = iVar3;" (assignment_expression "iVar5 = iVar3" identifier = identifier) ;) (if_statement "if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = get_cie_encoding(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = base_from_object();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        read_encoded_value_with_base(local_20);\n        uVar2 = size_of_encoded_value();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }" if (parenthesized_expression "(param_2[1] != 0)" ( (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = get_cie_encoding(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = base_from_object();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        read_encoded_value_with_base(local_20);\n        uVar2 = size_of_encoded_value();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }" { (expression_statement "iVar5 = (int)param_2 + (4 - param_2[1]);" (assignment_expression "iVar5 = (int)param_2 + (4 - param_2[1])" identifier = (binary_expression "(int)param_2 + (4 - param_2[1])" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(4 - param_2[1])" ( (binary_expression "4 - param_2[1]" number_literal - (subscript_expression "param_2[1]" identifier [ number_literal ])) )))) ;) (if_statement "if (iVar5 != iVar3) {\n          uVar6 = get_cie_encoding(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = base_from_object();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }" if (parenthesized_expression "(iVar5 != iVar3)" ( (binary_expression "iVar5 != iVar3" identifier != identifier) )) (compound_statement "{\n          uVar6 = get_cie_encoding(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = base_from_object();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }" { (expression_statement "uVar6 = get_cie_encoding(uVar6,uVar7);" (assignment_expression "uVar6 = get_cie_encoding(uVar6,uVar7)" identifier = (call_expression "get_cie_encoding(uVar6,uVar7)" identifier (argument_list "(uVar6,uVar7)" ( identifier , identifier )))) ;) (if_statement "if (uVar6 == 0xff) {\n            return -1;\n          }" if (parenthesized_expression "(uVar6 == 0xff)" ( (binary_expression "uVar6 == 0xff" identifier == number_literal) )) (compound_statement "{\n            return -1;\n          }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "uVar7 = base_from_object();" (assignment_expression "uVar7 = base_from_object()" identifier = (call_expression "base_from_object()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = (ushort)param_1[4];" (assignment_expression "uVar1 = (ushort)param_1[4]" identifier = (cast_expression "(ushort)param_1[4]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) ;) (if_statement "if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" if (parenthesized_expression "((uVar1 & 0x7f8) == 0x7f8)" ( (binary_expression "(uVar1 & 0x7f8) == 0x7f8" (parenthesized_expression "(uVar1 & 0x7f8)" ( (binary_expression "uVar1 & 0x7f8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }" { (expression_statement "*(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;" (assignment_expression "*(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3" (pointer_expression "*(ushort *)(param_1 + 4)" * (cast_expression "(ushort *)(param_1 + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3" (binary_expression "uVar1 & 0xf807" identifier & number_literal) | (binary_expression "(ushort)(byte)uVar6 << 3" (cast_expression "(ushort)(byte)uVar6" ( (type_descriptor "ushort" type_identifier) ) (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) << number_literal))) ;) }) (else_clause "else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" else (if_statement "if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" if (parenthesized_expression "((byte)(uVar1 >> 3) != uVar6)" ( (binary_expression "(byte)(uVar1 >> 3) != uVar6" (call_expression "(byte)(uVar1 >> 3)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar1 >> 3)" ( (binary_expression "uVar1 >> 3" identifier >> number_literal) ))) != identifier) )) (compound_statement "{\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" { (expression_statement "*(byte *)(param_1 + 4) = (byte)param_1[4] | 4;" (assignment_expression "*(byte *)(param_1 + 4) = (byte)param_1[4] | 4" (pointer_expression "*(byte *)(param_1 + 4)" * (cast_expression "(byte *)(param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "(byte)param_1[4] | 4" (cast_expression "(byte)param_1[4]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) | number_literal)) ;) })))) })) (expression_statement "read_encoded_value_with_base(local_20);" (call_expression "read_encoded_value_with_base(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "uVar2 = size_of_encoded_value();" (assignment_expression "uVar2 = size_of_encoded_value()" identifier = (call_expression "size_of_encoded_value()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }" if (parenthesized_expression "(uVar2 < 4)" ( (binary_expression "uVar2 < 4" identifier < number_literal) )) (compound_statement "{\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }" { (expression_statement "uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;" (assignment_expression "uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1" identifier = (binary_expression "(1 << ((char)uVar2 * '\b' & 0x1fU)) - 1" (parenthesized_expression "(1 << ((char)uVar2 * '\b' & 0x1fU))" ( (binary_expression "1 << ((char)uVar2 * '\b' & 0x1fU)" number_literal << (parenthesized_expression "((char)uVar2 * '\b' & 0x1fU)" ( (binary_expression "(char)uVar2 * '\b' & 0x1fU" (binary_expression "(char)uVar2 * '\b'" (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\b'" ' escape_sequence ')) & number_literal) ))) )) - number_literal)) ;) })) (if_statement "if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }" if (parenthesized_expression "(((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1))" ( (binary_expression "((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)" (parenthesized_expression "((local_20[0] & uVar4) != 0)" ( (binary_expression "(local_20[0] & uVar4) != 0" (parenthesized_expression "(local_20[0] & uVar4)" ( (binary_expression "local_20[0] & uVar4" (subscript_expression "local_20[0]" identifier [ number_literal ]) & identifier) )) != number_literal) )) && (parenthesized_expression "(local_30 = local_30 + 1, local_20[0] < *param_1)" ( (comma_expression "local_30 = local_30 + 1, local_20[0] < *param_1" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) , (binary_expression "local_20[0] < *param_1" (subscript_expression "local_20[0]" identifier [ number_literal ]) < (pointer_expression "*param_1" * identifier))) ))) )) (compound_statement "{\n          *param_1 = local_20[0];\n        }" { (expression_statement "*param_1 = local_20[0];" (assignment_expression "*param_1 = local_20[0]" (pointer_expression "*param_1" * identifier) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) })) })) (expression_statement "param_2 = (int *)((int)param_2 + *param_2 + 4);" (assignment_expression "param_2 = (int *)((int)param_2 + *param_2 + 4)" identifier = (cast_expression "(int *)((int)param_2 + *param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + *param_2 + 4)" ( (binary_expression "(int)param_2 + *param_2 + 4" (binary_expression "(int)param_2 + *param_2" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*param_2" * identifier)) + number_literal) )))) ;) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(*param_2 != 0)" ( (binary_expression "*param_2 != 0" (pointer_expression "*param_2" * identifier) != number_literal) )) ;) })) (return_statement "return local_30;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_0027ec40(uint *param_1,int *param_2)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  int local_30;\n  uint local_20 [4];\n  \n  local_30 = *param_2;\n  if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }\n  return local_30;\n}\n\n" (function_definition "int __regparm3 FUN_0027ec40(uint *param_1,int *param_2)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  int local_30;\n  uint local_20 [4];\n  \n  local_30 = *param_2;\n  if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }\n  return local_30;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0027ec40(uint *param_1,int *param_2)" identifier (parameter_list "(uint *param_1,int *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  int local_30;\n  uint local_20 [4];\n  \n  local_30 = *param_2;\n  if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }\n  return local_30;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "uint local_20 [4];" type_identifier (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);" do (compound_statement "{\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    }" { (expression_statement "iVar5 = iVar3;" (assignment_expression "iVar5 = iVar3" identifier = identifier) ;) (if_statement "if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }" if (parenthesized_expression "(param_2[1] != 0)" ( (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }" { (expression_statement "iVar5 = (int)param_2 + (4 - param_2[1]);" (assignment_expression "iVar5 = (int)param_2 + (4 - param_2[1])" identifier = (binary_expression "(int)param_2 + (4 - param_2[1])" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(4 - param_2[1])" ( (binary_expression "4 - param_2[1]" number_literal - (subscript_expression "param_2[1]" identifier [ number_literal ])) )))) ;) (if_statement "if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }" if (parenthesized_expression "(iVar5 != iVar3)" ( (binary_expression "iVar5 != iVar3" identifier != identifier) )) (compound_statement "{\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }" { (expression_statement "uVar6 = FUN_0027e410(uVar6,uVar7);" (assignment_expression "uVar6 = FUN_0027e410(uVar6,uVar7)" identifier = (call_expression "FUN_0027e410(uVar6,uVar7)" identifier (argument_list "(uVar6,uVar7)" ( identifier , identifier )))) ;) (if_statement "if (uVar6 == 0xff) {\n            return -1;\n          }" if (parenthesized_expression "(uVar6 == 0xff)" ( (binary_expression "uVar6 == 0xff" identifier == number_literal) )) (compound_statement "{\n            return -1;\n          }" { (return_statement "return -1;" return number_literal ;) })) (expression_statement "uVar7 = FUN_0027e180();" (assignment_expression "uVar7 = FUN_0027e180()" identifier = (call_expression "FUN_0027e180()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = (ushort)param_1[4];" (assignment_expression "uVar1 = (ushort)param_1[4]" identifier = (cast_expression "(ushort)param_1[4]" ( (type_descriptor "ushort" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) ;) (if_statement "if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" if (parenthesized_expression "((uVar1 & 0x7f8) == 0x7f8)" ( (binary_expression "(uVar1 & 0x7f8) == 0x7f8" (parenthesized_expression "(uVar1 & 0x7f8)" ( (binary_expression "uVar1 & 0x7f8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }" { (expression_statement "*(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;" (assignment_expression "*(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3" (pointer_expression "*(ushort *)(param_1 + 4)" * (cast_expression "(ushort *)(param_1 + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3" (binary_expression "uVar1 & 0xf807" identifier & number_literal) | (binary_expression "(ushort)(byte)uVar6 << 3" (cast_expression "(ushort)(byte)uVar6" ( (type_descriptor "ushort" type_identifier) ) (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) << number_literal))) ;) }) (else_clause "else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" else (if_statement "if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" if (parenthesized_expression "((byte)(uVar1 >> 3) != uVar6)" ( (binary_expression "(byte)(uVar1 >> 3) != uVar6" (call_expression "(byte)(uVar1 >> 3)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar1 >> 3)" ( (binary_expression "uVar1 >> 3" identifier >> number_literal) ))) != identifier) )) (compound_statement "{\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" { (expression_statement "*(byte *)(param_1 + 4) = (byte)param_1[4] | 4;" (assignment_expression "*(byte *)(param_1 + 4) = (byte)param_1[4] | 4" (pointer_expression "*(byte *)(param_1 + 4)" * (cast_expression "(byte *)(param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "(byte)param_1[4] | 4" (cast_expression "(byte)param_1[4]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) | number_literal)) ;) })))) })) (expression_statement "FUN_0027e240(local_20);" (call_expression "FUN_0027e240(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "uVar2 = FUN_0027e120();" (assignment_expression "uVar2 = FUN_0027e120()" identifier = (call_expression "FUN_0027e120()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }" if (parenthesized_expression "(uVar2 < 4)" ( (binary_expression "uVar2 < 4" identifier < number_literal) )) (compound_statement "{\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }" { (expression_statement "uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;" (assignment_expression "uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1" identifier = (binary_expression "(1 << ((char)uVar2 * '\b' & 0x1fU)) - 1" (parenthesized_expression "(1 << ((char)uVar2 * '\b' & 0x1fU))" ( (binary_expression "1 << ((char)uVar2 * '\b' & 0x1fU)" number_literal << (parenthesized_expression "((char)uVar2 * '\b' & 0x1fU)" ( (binary_expression "(char)uVar2 * '\b' & 0x1fU" (binary_expression "(char)uVar2 * '\b'" (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\b'" ' escape_sequence ')) & number_literal) ))) )) - number_literal)) ;) })) (if_statement "if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }" if (parenthesized_expression "(((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1))" ( (binary_expression "((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)" (parenthesized_expression "((local_20[0] & uVar4) != 0)" ( (binary_expression "(local_20[0] & uVar4) != 0" (parenthesized_expression "(local_20[0] & uVar4)" ( (binary_expression "local_20[0] & uVar4" (subscript_expression "local_20[0]" identifier [ number_literal ]) & identifier) )) != number_literal) )) && (parenthesized_expression "(local_30 = local_30 + 1, local_20[0] < *param_1)" ( (comma_expression "local_30 = local_30 + 1, local_20[0] < *param_1" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) , (binary_expression "local_20[0] < *param_1" (subscript_expression "local_20[0]" identifier [ number_literal ]) < (pointer_expression "*param_1" * identifier))) ))) )) (compound_statement "{\n          *param_1 = local_20[0];\n        }" { (expression_statement "*param_1 = local_20[0];" (assignment_expression "*param_1 = local_20[0]" (pointer_expression "*param_1" * identifier) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) })) })) (expression_statement "param_2 = (int *)((int)param_2 + *param_2 + 4);" (assignment_expression "param_2 = (int *)((int)param_2 + *param_2 + 4)" identifier = (cast_expression "(int *)((int)param_2 + *param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + *param_2 + 4)" ( (binary_expression "(int)param_2 + *param_2 + 4" (binary_expression "(int)param_2 + *param_2" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*param_2" * identifier)) + number_literal) )))) ;) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(*param_2 != 0)" ( (binary_expression "*param_2 != 0" (pointer_expression "*param_2" * identifier) != number_literal) )) ;) })) (return_statement "return local_30;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE 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 ]) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (subscript_expression IDENT [ LIT ])) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT & LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) << LIT))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) != IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) | LIT)) ;) })))) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (char_literal ' escape_sequence ')) & LIT) ))) )) - LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & IDENT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression (subscript_expression IDENT [ LIT ]) < (pointer_expression * IDENT))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * IDENT)) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_0027ec40(uint *param_1,int *param_2)\n\n{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  int local_30;\n  uint local_20 [4];\n  \n  local_30 = *param_2;\n  if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }\n  return local_30;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0027ec40(uint *param_1,int *param_2)" (identifier "FUN_0027ec40") (parameter_list "(uint *param_1,int *param_2)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  ushort uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  int local_30;\n  uint local_20 [4];\n  \n  local_30 = *param_2;\n  if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }\n  return local_30;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "uint local_20 [4];" (type_identifier "uint") (array_declarator "local_20 [4]" (identifier "local_20") ([ "[") (number_literal "4") (] "]")) (; ";")) (expression_statement "local_30 = *param_2;" (assignment_expression "local_30 = *param_2" (identifier "local_30") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (local_30 != 0) {\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar7 = 0;\n    uVar6 = 0;\n    local_30 = 0;\n    iVar3 = 0;\n    do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);\n  }" ({ "{") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    } while (*param_2 != 0);" (do "do") (compound_statement "{\n      iVar5 = iVar3;\n      if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }\n      param_2 = (int *)((int)param_2 + *param_2 + 4);\n      iVar3 = iVar5;\n    }" ({ "{") (expression_statement "iVar5 = iVar3;" (assignment_expression "iVar5 = iVar3" (identifier "iVar5") (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (param_2[1] != 0) {\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }" (if "if") (parenthesized_expression "(param_2[1] != 0)" (( "(") (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar5 = (int)param_2 + (4 - param_2[1]);\n        if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }\n        FUN_0027e240(local_20);\n        uVar2 = FUN_0027e120();\n        uVar4 = 0xffffffff;\n        if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }\n      }" ({ "{") (expression_statement "iVar5 = (int)param_2 + (4 - param_2[1]);" (assignment_expression "iVar5 = (int)param_2 + (4 - param_2[1])" (identifier "iVar5") (= "=") (binary_expression "(int)param_2 + (4 - param_2[1])" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (parenthesized_expression "(4 - param_2[1])" (( "(") (binary_expression "4 - param_2[1]" (number_literal "4") (- "-") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) () ")")))) (; ";")) (if_statement "if (iVar5 != iVar3) {\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }" (if "if") (parenthesized_expression "(iVar5 != iVar3)" (( "(") (binary_expression "iVar5 != iVar3" (identifier "iVar5") (!= "!=") (identifier "iVar3")) () ")")) (compound_statement "{\n          uVar6 = FUN_0027e410(uVar6,uVar7);\n          if (uVar6 == 0xff) {\n            return -1;\n          }\n          uVar7 = FUN_0027e180();\n          uVar1 = (ushort)param_1[4];\n          if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }\n        }" ({ "{") (expression_statement "uVar6 = FUN_0027e410(uVar6,uVar7);" (assignment_expression "uVar6 = FUN_0027e410(uVar6,uVar7)" (identifier "uVar6") (= "=") (call_expression "FUN_0027e410(uVar6,uVar7)" (identifier "FUN_0027e410") (argument_list "(uVar6,uVar7)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar7") () ")")))) (; ";")) (if_statement "if (uVar6 == 0xff) {\n            return -1;\n          }" (if "if") (parenthesized_expression "(uVar6 == 0xff)" (( "(") (binary_expression "uVar6 == 0xff" (identifier "uVar6") (== "==") (number_literal "0xff")) () ")")) (compound_statement "{\n            return -1;\n          }" ({ "{") (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}"))) (expression_statement "uVar7 = FUN_0027e180();" (assignment_expression "uVar7 = FUN_0027e180()" (identifier "uVar7") (= "=") (call_expression "FUN_0027e180()" (identifier "FUN_0027e180") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar1 = (ushort)param_1[4];" (assignment_expression "uVar1 = (ushort)param_1[4]" (identifier "uVar1") (= "=") (cast_expression "(ushort)param_1[4]" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")))) (; ";")) (if_statement "if ((uVar1 & 0x7f8) == 0x7f8) {\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }\n          else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" (if "if") (parenthesized_expression "((uVar1 & 0x7f8) == 0x7f8)" (( "(") (binary_expression "(uVar1 & 0x7f8) == 0x7f8" (parenthesized_expression "(uVar1 & 0x7f8)" (( "(") (binary_expression "uVar1 & 0x7f8" (identifier "uVar1") (& "&") (number_literal "0x7f8")) () ")")) (== "==") (number_literal "0x7f8")) () ")")) (compound_statement "{\n            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;\n          }" ({ "{") (expression_statement "*(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;" (assignment_expression "*(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3" (pointer_expression "*(ushort *)(param_1 + 4)" (* "*") (cast_expression "(ushort *)(param_1 + 4)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3" (binary_expression "uVar1 & 0xf807" (identifier "uVar1") (& "&") (number_literal "0xf807")) (| "|") (binary_expression "(ushort)(byte)uVar6 << 3" (cast_expression "(ushort)(byte)uVar6" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6"))) (<< "<<") (number_literal "3")))) (; ";")) (} "}")) (else_clause "else if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" (else "else") (if_statement "if ((byte)(uVar1 >> 3) != uVar6) {\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" (if "if") (parenthesized_expression "((byte)(uVar1 >> 3) != uVar6)" (( "(") (binary_expression "(byte)(uVar1 >> 3) != uVar6" (call_expression "(byte)(uVar1 >> 3)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar1 >> 3)" (( "(") (binary_expression "uVar1 >> 3" (identifier "uVar1") (>> ">>") (number_literal "3")) () ")"))) (!= "!=") (identifier "uVar6")) () ")")) (compound_statement "{\n            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;\n          }" ({ "{") (expression_statement "*(byte *)(param_1 + 4) = (byte)param_1[4] | 4;" (assignment_expression "*(byte *)(param_1 + 4) = (byte)param_1[4] | 4" (pointer_expression "*(byte *)(param_1 + 4)" (* "*") (cast_expression "(byte *)(param_1 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "(byte)param_1[4] | 4" (cast_expression "(byte)param_1[4]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (| "|") (number_literal "4"))) (; ";")) (} "}"))))) (} "}"))) (expression_statement "FUN_0027e240(local_20);" (call_expression "FUN_0027e240(local_20)" (identifier "FUN_0027e240") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")"))) (; ";")) (expression_statement "uVar2 = FUN_0027e120();" (assignment_expression "uVar2 = FUN_0027e120()" (identifier "uVar2") (= "=") (call_expression "FUN_0027e120()" (identifier "FUN_0027e120") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" (identifier "uVar4") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (uVar2 < 4) {\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }" (if "if") (parenthesized_expression "(uVar2 < 4)" (( "(") (binary_expression "uVar2 < 4" (identifier "uVar2") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;\n        }" ({ "{") (expression_statement "uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;" (assignment_expression "uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1" (identifier "uVar4") (= "=") (binary_expression "(1 << ((char)uVar2 * '\b' & 0x1fU)) - 1" (parenthesized_expression "(1 << ((char)uVar2 * '\b' & 0x1fU))" (( "(") (binary_expression "1 << ((char)uVar2 * '\b' & 0x1fU)" (number_literal "1") (<< "<<") (parenthesized_expression "((char)uVar2 * '\b' & 0x1fU)" (( "(") (binary_expression "(char)uVar2 * '\b' & 0x1fU" (binary_expression "(char)uVar2 * '\b'" (cast_expression "(char)uVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar2")) (* "*") (char_literal "'\b'" (' "'") (escape_sequence "\b") (' "'"))) (& "&") (number_literal "0x1fU")) () ")"))) () ")")) (- "-") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {\n          *param_1 = local_20[0];\n        }" (if "if") (parenthesized_expression "(((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1))" (( "(") (binary_expression "((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)" (parenthesized_expression "((local_20[0] & uVar4) != 0)" (( "(") (binary_expression "(local_20[0] & uVar4) != 0" (parenthesized_expression "(local_20[0] & uVar4)" (( "(") (binary_expression "local_20[0] & uVar4" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (& "&") (identifier "uVar4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(local_30 = local_30 + 1, local_20[0] < *param_1)" (( "(") (comma_expression "local_30 = local_30 + 1, local_20[0] < *param_1" (assignment_expression "local_30 = local_30 + 1" (identifier "local_30") (= "=") (binary_expression "local_30 + 1" (identifier "local_30") (+ "+") (number_literal "1"))) (, ",") (binary_expression "local_20[0] < *param_1" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (< "<") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")"))) () ")")) (compound_statement "{\n          *param_1 = local_20[0];\n        }" ({ "{") (expression_statement "*param_1 = local_20[0];" (assignment_expression "*param_1 = local_20[0]" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "param_2 = (int *)((int)param_2 + *param_2 + 4);" (assignment_expression "param_2 = (int *)((int)param_2 + *param_2 + 4)" (identifier "param_2") (= "=") (cast_expression "(int *)((int)param_2 + *param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + *param_2 + 4)" (( "(") (binary_expression "(int)param_2 + *param_2 + 4" (binary_expression "(int)param_2 + *param_2" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" (identifier "iVar3") (= "=") (identifier "iVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*param_2 != 0)" (( "(") (binary_expression "*param_2 != 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return local_30;" (return "return") (identifier "local_30") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *var_8,int *param_2)

{
  type_2 var_7;
  type_1 var_11;
  int var_3;
  type_1 var_12;
  int var_2;
  type_1 var_5;
  type_3 uVar7;
  int var_1;
  type_1 local_20 [4];
  
  var_1 = *param_2;
  if (var_1 != 0) {
    uVar7 = 0;
    var_5 = 0;
    var_1 = 0;
    var_3 = 0;
    do {
      var_2 = var_3;
      if (param_2[1] != 0) {
        var_2 = (int)param_2 + (4 - param_2[1]);
        if (var_2 != var_3) {
          var_5 = var_4(var_5,uVar7);
          if (var_5 == 0xff) {
            return -1;
          }
          uVar7 = var_6();
          var_7 = (type_2)var_8[4];
          if ((var_7 & 0x7f8) == 0x7f8) {
            *(type_2 *)(var_8 + 4) = var_7 & 0xf807 | (type_2)(type_4)var_5 << 3;
          }
          else if ((type_4)(var_7 >> 3) != var_5) {
            *(type_4 *)(var_8 + 4) = (type_4)var_8[4] | 4;
          }
        }
        var_9(local_20);
        var_11 = var_10();
        var_12 = 0xffffffff;
        if (var_11 < 4) {
          var_12 = (1 << ((char)var_11 * '\b' & 0x1fU)) - 1;
        }
        if (((local_20[0] & var_12) != 0) && (var_1 = var_1 + 1, local_20[0] < *var_8)) {
          *var_8 = local_20[0];
        }
      }
      param_2 = (int *)((int)param_2 + *param_2 + 4);
      var_3 = var_2;
    } while (*param_2 != 0);
  }
  return var_1;
}


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

int __regparm3 MASKED(uint *param_1,int *param_2)

{
  ushort uVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  uint uVar6;
  undefined4 uVar7;
  int local_30;
  uint local_20 [4];
  
  local_30 = *param_2;
  if (local_30 != 0) {
    uVar7 = 0;
    uVar6 = 0;
    local_30 = 0;
    iVar3 = 0;
    do {
      iVar5 = iVar3;
      if (param_2[1] != 0) {
        iVar5 = (int)param_2 + (4 - param_2[1]);
        if (iVar5 != iVar3) {
          uVar6 = FUN_0027e410(uVar6,uVar7);
          if (uVar6 == 0xff) {
            return -1;
          }
          uVar7 = FUN_0027e180();
          uVar1 = (ushort)param_1[4];
          if ((uVar1 & 0x7f8) == 0x7f8) {
            *(ushort *)(param_1 + 4) = uVar1 & 0xf807 | (ushort)(byte)uVar6 << 3;
          }
          else if ((byte)(uVar1 >> 3) != uVar6) {
            *(byte *)(param_1 + 4) = (byte)param_1[4] | 4;
          }
        }
        FUN_0027e240(local_20);
        uVar2 = FUN_0027e120();
        uVar4 = 0xffffffff;
        if (uVar2 < 4) {
          uVar4 = (1 << ((char)uVar2 * '\b' & 0x1fU)) - 1;
        }
        if (((local_20[0] & uVar4) != 0) && (local_30 = local_30 + 1, local_20[0] < *param_1)) {
          *param_1 = local_20[0];
        }
      }
      param_2 = (int *)((int)param_2 + *param_2 + 4);
      iVar3 = iVar5;
    } while (*param_2 != 0);
  }
  return local_30;
}

