
int * __regparm3 linear_search_fdes(int param_1,int *param_2,int param_3)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  int local_40;
  uint local_24;
  uint local_20 [4];
  
  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);
  base_from_object();
  iVar4 = *param_2;
  local_40 = 0;
  do {
    if (iVar4 == 0) {
      return (int *)0x0;
    }
    if (param_2[1] != 0) {
      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&
         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {
        uVar3 = get_cie_encoding();
        base_from_object();
        local_40 = iVar4;
      }
      if (uVar3 == 0) {
        local_24 = param_2[2];
        local_20[0] = param_2[3];
        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {
          return param_2;
        }
      }
      else {
        read_encoded_value_with_base(&local_24);
        read_encoded_value_with_base(local_20);
        uVar1 = size_of_encoded_value();
        uVar2 = 0xffffffff;
        if (uVar1 < 4) {
          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;
        }
        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {
          return param_2;
        }
      }
    }
    param_2 = (int *)((int)param_2 + *param_2 + 4);
    iVar4 = *param_2;
  } while( true );
}



int * __regparm3 FUN_002df990(int param_1,int *param_2,int param_3)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  int local_40;
  uint local_24;
  uint local_20 [4];
  
  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);
  FUN_002df5f0();
  iVar4 = *param_2;
  local_40 = 0;
  do {
    if (iVar4 == 0) {
      return (int *)0x0;
    }
    if (param_2[1] != 0) {
      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&
         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {
        uVar3 = FUN_002df880();
        FUN_002df5f0();
        local_40 = iVar4;
      }
      if (uVar3 == 0) {
        local_24 = param_2[2];
        local_20[0] = param_2[3];
        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {
          return param_2;
        }
      }
      else {
        FUN_002df6b0(&local_24);
        FUN_002df6b0(local_20);
        uVar1 = FUN_002df590();
        uVar2 = 0xffffffff;
        if (uVar1 < 4) {
          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;
        }
        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {
          return param_2;
        }
      }
    }
    param_2 = (int *)((int)param_2 + *param_2 + 4);
    iVar4 = *param_2;
  } while( true );
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,EDX
MOV EDX,EBP
SUB ESP,0x3c
MOVZX EAX,word ptr [EAX + 0x10]
MOV dword ptr [ESP + 0x10],ECX
SHR AX,0x3
MOVZX ESI,AL
MOV EAX,ESI
CALL 0x002df5f0
MOV ECX,dword ptr [EBX]
MOV dword ptr [ESP + 0xc],0x0
MOV dword ptr [ESP + 0x14],EAX
LEA EAX,[ESP + 0x28]
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[ESP + 0x2c]
MOV dword ptr [ESP + 0x1c],EAX
TEST ECX,ECX
JNZ 0x002dfa10
JMP 0x002dfac8
MOV EAX,dword ptr [EBX + 0x8]
MOV EDX,dword ptr [EBX + 0xc]
MOV dword ptr [ESP + 0x28],EAX
MOV dword ptr [ESP + 0x2c],EDX
TEST EAX,EAX
JZ 0x002dfa00
MOV ECX,dword ptr [ESP + 0x10]
SUB ECX,EAX
CMP ECX,EDX
JC 0x002dfab7
MOV EAX,dword ptr [EBX]
LEA EBX,[EBX + EAX*0x1 + 0x4]
MOV EAX,dword ptr [EBX]
TEST EAX,EAX
JZ 0x002dfac8
MOV EDX,dword ptr [EBX + 0x4]
TEST EDX,EDX
JZ 0x002dfa00
TEST byte ptr [EBP + 0x10],0x4
JZ 0x002dfa43
LEA EDI,[EBX + 0x4]
SUB EDI,EDX
CMP EDI,dword ptr [ESP + 0xc]
JZ 0x002dfa43
MOV EAX,EDI
CALL 0x002df880
MOV EDX,EBP
MOV ESI,EAX
MOVZX EAX,AL
CALL 0x002df5f0
MOV dword ptr [ESP + 0xc],EDI
MOV dword ptr [ESP + 0x14],EAX
TEST ESI,ESI
JZ 0x002df9e0
SUB ESP,0xc
MOV EAX,ESI
LEA ECX,[EBX + 0x8]
PUSH dword ptr [ESP + 0x24]
MOVZX EDI,AL
MOV EDX,dword ptr [ESP + 0x24]
MOV EAX,EDI
CALL 0x002df6b0
POP EDX
PUSH dword ptr [ESP + 0x28]
XOR EDX,EDX
MOV ECX,EAX
MOV EAX,ESI
AND EAX,0xf
CALL 0x002df6b0
MOV EAX,EDI
CALL 0x002df590
ADD ESP,0x10
MOV EDX,0xffffffff
CMP EAX,0x3
JA 0x002dfa99
LEA ECX,[EAX*0x8 + 0x0]
MOV EDX,0x1
SHL EDX,CL
SUB EDX,0x1
MOV EAX,dword ptr [ESP + 0x28]
TEST EAX,EDX
JZ 0x002dfa00
MOV ECX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x2c]
SUB ECX,EAX
CMP ECX,EDX
JNC 0x002dfa00
ADD ESP,0x3c
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x3c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "int * __regparm3 FUN_002df990(int param_1,int *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int local_40;\n  uint local_24;\n  uint local_20 [4];\n  \n  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);\n  FUN_002df5f0();\n  iVar4 = *param_2;\n  local_40 = 0;\n  do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );\n}\n\n" (function_definition "int * __regparm3 FUN_002df990(int param_1,int *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int local_40;\n  uint local_24;\n  uint local_20 [4];\n  \n  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);\n  FUN_002df5f0();\n  iVar4 = *param_2;\n  local_40 = 0;\n  do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );\n}" primitive_type (pointer_declarator "* __regparm3 FUN_002df990(int param_1,int *param_2,int param_3)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_002df990(int param_1,int *param_2,int param_3)" identifier (parameter_list "(int param_1,int *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int local_40;\n  uint local_24;\n  uint local_20 [4];\n  \n  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);\n  FUN_002df5f0();\n  iVar4 = *param_2;\n  local_40 = 0;\n  do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "uint local_20 [4];" type_identifier (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);" (assignment_expression "uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3)" identifier = (call_expression "(uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(*(ushort *)(param_1 + 0x10) >> 3)" ( (binary_expression "*(ushort *)(param_1 + 0x10) >> 3" (pointer_expression "*(ushort *)(param_1 + 0x10)" * (cast_expression "(ushort *)(param_1 + 0x10)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) >> number_literal) )))) ;) (expression_statement "FUN_002df5f0();" (call_expression "FUN_002df5f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (do_statement "do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );" do (compound_statement "{\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  }" { (if_statement "if (iVar4 == 0) {\n      return (int *)0x0;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return (int *)0x0;\n    }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\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      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }" { (if_statement "if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40))" ( (binary_expression "((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)" (parenthesized_expression "((*(byte *)(param_1 + 0x10) & 4) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x10) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x10) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x10) & 4" (pointer_expression "*(byte *)(param_1 + 0x10)" * (cast_expression "(byte *)(param_1 + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)" ( (comma_expression "iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40" (assignment_expression "iVar4 = (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 ])) )))) , (binary_expression "iVar4 != local_40" identifier != identifier)) ))) )) (compound_statement "{\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }" { (expression_statement "uVar3 = FUN_002df880();" (assignment_expression "uVar3 = FUN_002df880()" identifier = (call_expression "FUN_002df880()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_002df5f0();" (call_expression "FUN_002df5f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_40 = iVar4;" (assignment_expression "local_40 = iVar4" identifier = identifier) ;) })) (if_statement "if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" { (expression_statement "local_24 = param_2[2];" (assignment_expression "local_24 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "local_20[0] = param_2[3];" (assignment_expression "local_20[0] = param_2[3]" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (if_statement "if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }" if (parenthesized_expression "((local_24 != 0) && (param_3 - local_24 < local_20[0]))" ( (binary_expression "(local_24 != 0) && (param_3 - local_24 < local_20[0])" (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 - local_24 < local_20[0])" ( (binary_expression "param_3 - local_24 < local_20[0]" (binary_expression "param_3 - local_24" identifier - identifier) < (subscript_expression "local_20[0]" identifier [ number_literal ])) ))) )) (compound_statement "{\n          return param_2;\n        }" { (return_statement "return param_2;" return identifier ;) })) }) (else_clause "else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" else (compound_statement "{\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" { (expression_statement "FUN_002df6b0(&local_24);" (call_expression "FUN_002df6b0(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "FUN_002df6b0(local_20);" (call_expression "FUN_002df6b0(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "uVar1 = FUN_002df590();" (assignment_expression "uVar1 = FUN_002df590()" identifier = (call_expression "FUN_002df590()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }" if (parenthesized_expression "(uVar1 < 4)" ( (binary_expression "uVar1 < 4" identifier < number_literal) )) (compound_statement "{\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }" { (expression_statement "uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;" (assignment_expression "uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1" identifier = (binary_expression "(1 << ((char)uVar1 * '\b' & 0x1fU)) - 1" (parenthesized_expression "(1 << ((char)uVar1 * '\b' & 0x1fU))" ( (binary_expression "1 << ((char)uVar1 * '\b' & 0x1fU)" number_literal << (parenthesized_expression "((char)uVar1 * '\b' & 0x1fU)" ( (binary_expression "(char)uVar1 * '\b' & 0x1fU" (binary_expression "(char)uVar1 * '\b'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\b'" ' escape_sequence ')) & number_literal) ))) )) - number_literal)) ;) })) (if_statement "if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }" if (parenthesized_expression "(((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0]))" ( (binary_expression "((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])" (parenthesized_expression "((local_24 & uVar2) != 0)" ( (binary_expression "(local_24 & uVar2) != 0" (parenthesized_expression "(local_24 & uVar2)" ( (binary_expression "local_24 & uVar2" identifier & identifier) )) != number_literal) )) && (parenthesized_expression "(param_3 - local_24 < local_20[0])" ( (binary_expression "param_3 - local_24 < local_20[0]" (binary_expression "param_3 - local_24" identifier - identifier) < (subscript_expression "local_20[0]" identifier [ number_literal ])) ))) )) (compound_statement "{\n          return param_2;\n        }" { (return_statement "return param_2;" return identifier ;) })) }))) })) (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 "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int * __regparm3 linear_search_fdes(int param_1,int *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int local_40;\n  uint local_24;\n  uint local_20 [4];\n  \n  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);\n  base_from_object();\n  iVar4 = *param_2;\n  local_40 = 0;\n  do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = get_cie_encoding();\n        base_from_object();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        read_encoded_value_with_base(&local_24);\n        read_encoded_value_with_base(local_20);\n        uVar1 = size_of_encoded_value();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );\n}\n\n" (function_definition "int * __regparm3 linear_search_fdes(int param_1,int *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int local_40;\n  uint local_24;\n  uint local_20 [4];\n  \n  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);\n  base_from_object();\n  iVar4 = *param_2;\n  local_40 = 0;\n  do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = get_cie_encoding();\n        base_from_object();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        read_encoded_value_with_base(&local_24);\n        read_encoded_value_with_base(local_20);\n        uVar1 = size_of_encoded_value();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );\n}" primitive_type (pointer_declarator "* __regparm3 linear_search_fdes(int param_1,int *param_2,int param_3)" * (ERROR "__regparm3" identifier) (function_declarator "linear_search_fdes(int param_1,int *param_2,int param_3)" identifier (parameter_list "(int param_1,int *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int local_40;\n  uint local_24;\n  uint local_20 [4];\n  \n  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);\n  base_from_object();\n  iVar4 = *param_2;\n  local_40 = 0;\n  do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = get_cie_encoding();\n        base_from_object();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        read_encoded_value_with_base(&local_24);\n        read_encoded_value_with_base(local_20);\n        uVar1 = size_of_encoded_value();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "uint local_20 [4];" type_identifier (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);" (assignment_expression "uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3)" identifier = (call_expression "(uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(*(ushort *)(param_1 + 0x10) >> 3)" ( (binary_expression "*(ushort *)(param_1 + 0x10) >> 3" (pointer_expression "*(ushort *)(param_1 + 0x10)" * (cast_expression "(ushort *)(param_1 + 0x10)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) >> number_literal) )))) ;) (expression_statement "base_from_object();" (call_expression "base_from_object()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (do_statement "do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = get_cie_encoding();\n        base_from_object();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        read_encoded_value_with_base(&local_24);\n        read_encoded_value_with_base(local_20);\n        uVar1 = size_of_encoded_value();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );" do (compound_statement "{\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = get_cie_encoding();\n        base_from_object();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        read_encoded_value_with_base(&local_24);\n        read_encoded_value_with_base(local_20);\n        uVar1 = size_of_encoded_value();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  }" { (if_statement "if (iVar4 == 0) {\n      return (int *)0x0;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return (int *)0x0;\n    }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = get_cie_encoding();\n        base_from_object();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        read_encoded_value_with_base(&local_24);\n        read_encoded_value_with_base(local_20);\n        uVar1 = size_of_encoded_value();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\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      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = get_cie_encoding();\n        base_from_object();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        read_encoded_value_with_base(&local_24);\n        read_encoded_value_with_base(local_20);\n        uVar1 = size_of_encoded_value();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }" { (if_statement "if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = get_cie_encoding();\n        base_from_object();\n        local_40 = iVar4;\n      }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40))" ( (binary_expression "((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)" (parenthesized_expression "((*(byte *)(param_1 + 0x10) & 4) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x10) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x10) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x10) & 4" (pointer_expression "*(byte *)(param_1 + 0x10)" * (cast_expression "(byte *)(param_1 + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)" ( (comma_expression "iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40" (assignment_expression "iVar4 = (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 ])) )))) , (binary_expression "iVar4 != local_40" identifier != identifier)) ))) )) (compound_statement "{\n        uVar3 = get_cie_encoding();\n        base_from_object();\n        local_40 = iVar4;\n      }" { (expression_statement "uVar3 = get_cie_encoding();" (assignment_expression "uVar3 = get_cie_encoding()" identifier = (call_expression "get_cie_encoding()" identifier (argument_list "()" ( )))) ;) (expression_statement "base_from_object();" (call_expression "base_from_object()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_40 = iVar4;" (assignment_expression "local_40 = iVar4" identifier = identifier) ;) })) (if_statement "if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        read_encoded_value_with_base(&local_24);\n        read_encoded_value_with_base(local_20);\n        uVar1 = size_of_encoded_value();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" { (expression_statement "local_24 = param_2[2];" (assignment_expression "local_24 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "local_20[0] = param_2[3];" (assignment_expression "local_20[0] = param_2[3]" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (if_statement "if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }" if (parenthesized_expression "((local_24 != 0) && (param_3 - local_24 < local_20[0]))" ( (binary_expression "(local_24 != 0) && (param_3 - local_24 < local_20[0])" (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 - local_24 < local_20[0])" ( (binary_expression "param_3 - local_24 < local_20[0]" (binary_expression "param_3 - local_24" identifier - identifier) < (subscript_expression "local_20[0]" identifier [ number_literal ])) ))) )) (compound_statement "{\n          return param_2;\n        }" { (return_statement "return param_2;" return identifier ;) })) }) (else_clause "else {\n        read_encoded_value_with_base(&local_24);\n        read_encoded_value_with_base(local_20);\n        uVar1 = size_of_encoded_value();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" else (compound_statement "{\n        read_encoded_value_with_base(&local_24);\n        read_encoded_value_with_base(local_20);\n        uVar1 = size_of_encoded_value();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" { (expression_statement "read_encoded_value_with_base(&local_24);" (call_expression "read_encoded_value_with_base(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) ;) (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 "uVar1 = size_of_encoded_value();" (assignment_expression "uVar1 = size_of_encoded_value()" identifier = (call_expression "size_of_encoded_value()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }" if (parenthesized_expression "(uVar1 < 4)" ( (binary_expression "uVar1 < 4" identifier < number_literal) )) (compound_statement "{\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }" { (expression_statement "uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;" (assignment_expression "uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1" identifier = (binary_expression "(1 << ((char)uVar1 * '\b' & 0x1fU)) - 1" (parenthesized_expression "(1 << ((char)uVar1 * '\b' & 0x1fU))" ( (binary_expression "1 << ((char)uVar1 * '\b' & 0x1fU)" number_literal << (parenthesized_expression "((char)uVar1 * '\b' & 0x1fU)" ( (binary_expression "(char)uVar1 * '\b' & 0x1fU" (binary_expression "(char)uVar1 * '\b'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\b'" ' escape_sequence ')) & number_literal) ))) )) - number_literal)) ;) })) (if_statement "if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }" if (parenthesized_expression "(((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0]))" ( (binary_expression "((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])" (parenthesized_expression "((local_24 & uVar2) != 0)" ( (binary_expression "(local_24 & uVar2) != 0" (parenthesized_expression "(local_24 & uVar2)" ( (binary_expression "local_24 & uVar2" identifier & identifier) )) != number_literal) )) && (parenthesized_expression "(param_3 - local_24 < local_20[0])" ( (binary_expression "param_3 - local_24 < local_20[0]" (binary_expression "param_3 - local_24" identifier - identifier) < (subscript_expression "local_20[0]" identifier [ number_literal ])) ))) )) (compound_statement "{\n          return param_2;\n        }" { (return_statement "return param_2;" return identifier ;) })) }))) })) (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 "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int * __regparm3 FUN_002df990(int param_1,int *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int local_40;\n  uint local_24;\n  uint local_20 [4];\n  \n  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);\n  FUN_002df5f0();\n  iVar4 = *param_2;\n  local_40 = 0;\n  do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );\n}\n\n" (function_definition "int * __regparm3 FUN_002df990(int param_1,int *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int local_40;\n  uint local_24;\n  uint local_20 [4];\n  \n  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);\n  FUN_002df5f0();\n  iVar4 = *param_2;\n  local_40 = 0;\n  do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );\n}" primitive_type (pointer_declarator "* __regparm3 FUN_002df990(int param_1,int *param_2,int param_3)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_002df990(int param_1,int *param_2,int param_3)" identifier (parameter_list "(int param_1,int *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int local_40;\n  uint local_24;\n  uint local_20 [4];\n  \n  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);\n  FUN_002df5f0();\n  iVar4 = *param_2;\n  local_40 = 0;\n  do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "uint local_20 [4];" type_identifier (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);" (assignment_expression "uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3)" identifier = (call_expression "(uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(*(ushort *)(param_1 + 0x10) >> 3)" ( (binary_expression "*(ushort *)(param_1 + 0x10) >> 3" (pointer_expression "*(ushort *)(param_1 + 0x10)" * (cast_expression "(ushort *)(param_1 + 0x10)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) >> number_literal) )))) ;) (expression_statement "FUN_002df5f0();" (call_expression "FUN_002df5f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (do_statement "do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );" do (compound_statement "{\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  }" { (if_statement "if (iVar4 == 0) {\n      return (int *)0x0;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      return (int *)0x0;\n    }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\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      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }" { (if_statement "if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40))" ( (binary_expression "((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)" (parenthesized_expression "((*(byte *)(param_1 + 0x10) & 4) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x10) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x10) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x10) & 4" (pointer_expression "*(byte *)(param_1 + 0x10)" * (cast_expression "(byte *)(param_1 + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)" ( (comma_expression "iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40" (assignment_expression "iVar4 = (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 ])) )))) , (binary_expression "iVar4 != local_40" identifier != identifier)) ))) )) (compound_statement "{\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }" { (expression_statement "uVar3 = FUN_002df880();" (assignment_expression "uVar3 = FUN_002df880()" identifier = (call_expression "FUN_002df880()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_002df5f0();" (call_expression "FUN_002df5f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_40 = iVar4;" (assignment_expression "local_40 = iVar4" identifier = identifier) ;) })) (if_statement "if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" { (expression_statement "local_24 = param_2[2];" (assignment_expression "local_24 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "local_20[0] = param_2[3];" (assignment_expression "local_20[0] = param_2[3]" (subscript_expression "local_20[0]" identifier [ number_literal ]) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (if_statement "if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }" if (parenthesized_expression "((local_24 != 0) && (param_3 - local_24 < local_20[0]))" ( (binary_expression "(local_24 != 0) && (param_3 - local_24 < local_20[0])" (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 - local_24 < local_20[0])" ( (binary_expression "param_3 - local_24 < local_20[0]" (binary_expression "param_3 - local_24" identifier - identifier) < (subscript_expression "local_20[0]" identifier [ number_literal ])) ))) )) (compound_statement "{\n          return param_2;\n        }" { (return_statement "return param_2;" return identifier ;) })) }) (else_clause "else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" else (compound_statement "{\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" { (expression_statement "FUN_002df6b0(&local_24);" (call_expression "FUN_002df6b0(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "FUN_002df6b0(local_20);" (call_expression "FUN_002df6b0(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "uVar1 = FUN_002df590();" (assignment_expression "uVar1 = FUN_002df590()" identifier = (call_expression "FUN_002df590()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }" if (parenthesized_expression "(uVar1 < 4)" ( (binary_expression "uVar1 < 4" identifier < number_literal) )) (compound_statement "{\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }" { (expression_statement "uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;" (assignment_expression "uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1" identifier = (binary_expression "(1 << ((char)uVar1 * '\b' & 0x1fU)) - 1" (parenthesized_expression "(1 << ((char)uVar1 * '\b' & 0x1fU))" ( (binary_expression "1 << ((char)uVar1 * '\b' & 0x1fU)" number_literal << (parenthesized_expression "((char)uVar1 * '\b' & 0x1fU)" ( (binary_expression "(char)uVar1 * '\b' & 0x1fU" (binary_expression "(char)uVar1 * '\b'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\b'" ' escape_sequence ')) & number_literal) ))) )) - number_literal)) ;) })) (if_statement "if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }" if (parenthesized_expression "(((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0]))" ( (binary_expression "((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])" (parenthesized_expression "((local_24 & uVar2) != 0)" ( (binary_expression "(local_24 & uVar2) != 0" (parenthesized_expression "(local_24 & uVar2)" ( (binary_expression "local_24 & uVar2" identifier & identifier) )) != number_literal) )) && (parenthesized_expression "(param_3 - local_24 < local_20[0])" ( (binary_expression "param_3 - local_24 < local_20[0]" (binary_expression "param_3 - local_24" identifier - identifier) < (subscript_expression "local_20[0]" identifier [ number_literal ])) ))) )) (compound_statement "{\n          return param_2;\n        }" { (return_statement "return param_2;" return identifier ;) })) }))) })) (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 "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (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 = (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (subscript_expression IDENT [ LIT ])) )))) , (binary_expression IDENT != IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) < (subscript_expression IDENT [ LIT ])) ))) )) (compound_statement { (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (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 IDENT & IDENT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) < (subscript_expression IDENT [ LIT ])) ))) )) (compound_statement { (return_statement return IDENT ;) })) }))) })) (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 = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int * __regparm3 FUN_002df990(int param_1,int *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int local_40;\n  uint local_24;\n  uint local_20 [4];\n  \n  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);\n  FUN_002df5f0();\n  iVar4 = *param_2;\n  local_40 = 0;\n  do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );\n}" (primitive_type "int") (pointer_declarator "* __regparm3 FUN_002df990(int param_1,int *param_2,int param_3)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_002df990(int param_1,int *param_2,int param_3)" (identifier "FUN_002df990") (parameter_list "(int param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")")))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int local_40;\n  uint local_24;\n  uint local_20 [4];\n  \n  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);\n  FUN_002df5f0();\n  iVar4 = *param_2;\n  local_40 = 0;\n  do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "uint local_24;" (type_identifier "uint") (identifier "local_24") (; ";")) (declaration "uint local_20 [4];" (type_identifier "uint") (array_declarator "local_20 [4]" (identifier "local_20") ([ "[") (number_literal "4") (] "]")) (; ";")) (expression_statement "uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);" (assignment_expression "uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3)" (identifier "uVar3") (= "=") (call_expression "(uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (argument_list "(*(ushort *)(param_1 + 0x10) >> 3)" (( "(") (binary_expression "*(ushort *)(param_1 + 0x10) >> 3" (pointer_expression "*(ushort *)(param_1 + 0x10)" (* "*") (cast_expression "(ushort *)(param_1 + 0x10)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (>> ">>") (number_literal "3")) () ")")))) (; ";")) (expression_statement "FUN_002df5f0();" (call_expression "FUN_002df5f0()" (identifier "FUN_002df5f0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" (identifier "iVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" (identifier "local_40") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  } while( true );" (do "do") (compound_statement "{\n    if (iVar4 == 0) {\n      return (int *)0x0;\n    }\n    if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }\n    param_2 = (int *)((int)param_2 + *param_2 + 4);\n    iVar4 = *param_2;\n  }" ({ "{") (if_statement "if (iVar4 == 0) {\n      return (int *)0x0;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return (int *)0x0;\n    }" ({ "{") (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (if_statement "if (param_2[1] != 0) {\n      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\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      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }\n      if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n    }" ({ "{") (if_statement "if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }" (if "if") (parenthesized_expression "(((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40))" (( "(") (binary_expression "((*(byte *)(param_1 + 0x10) & 4) != 0) &&\n         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)" (parenthesized_expression "((*(byte *)(param_1 + 0x10) & 4) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x10) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x10) & 4)" (( "(") (binary_expression "*(byte *)(param_1 + 0x10) & 4" (pointer_expression "*(byte *)(param_1 + 0x10)" (* "*") (cast_expression "(byte *)(param_1 + 0x10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)" (( "(") (comma_expression "iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40" (assignment_expression "iVar4 = (int)param_2 + (4 - param_2[1])" (identifier "iVar4") (= "=") (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") (] "]"))) () ")")))) (, ",") (binary_expression "iVar4 != local_40" (identifier "iVar4") (!= "!=") (identifier "local_40"))) () ")"))) () ")")) (compound_statement "{\n        uVar3 = FUN_002df880();\n        FUN_002df5f0();\n        local_40 = iVar4;\n      }" ({ "{") (expression_statement "uVar3 = FUN_002df880();" (assignment_expression "uVar3 = FUN_002df880()" (identifier "uVar3") (= "=") (call_expression "FUN_002df880()" (identifier "FUN_002df880") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_002df5f0();" (call_expression "FUN_002df5f0()" (identifier "FUN_002df5f0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_40 = iVar4;" (assignment_expression "local_40 = iVar4" (identifier "local_40") (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (if_statement "if (uVar3 == 0) {\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }\n      else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        local_24 = param_2[2];\n        local_20[0] = param_2[3];\n        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" ({ "{") (expression_statement "local_24 = param_2[2];" (assignment_expression "local_24 = param_2[2]" (identifier "local_24") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "local_20[0] = param_2[3];" (assignment_expression "local_20[0] = param_2[3]" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }" (if "if") (parenthesized_expression "((local_24 != 0) && (param_3 - local_24 < local_20[0]))" (( "(") (binary_expression "(local_24 != 0) && (param_3 - local_24 < local_20[0])" (parenthesized_expression "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3 - local_24 < local_20[0])" (( "(") (binary_expression "param_3 - local_24 < local_20[0]" (binary_expression "param_3 - local_24" (identifier "param_3") (- "-") (identifier "local_24")) (< "<") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) () ")"))) () ")")) (compound_statement "{\n          return param_2;\n        }" ({ "{") (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" (else "else") (compound_statement "{\n        FUN_002df6b0(&local_24);\n        FUN_002df6b0(local_20);\n        uVar1 = FUN_002df590();\n        uVar2 = 0xffffffff;\n        if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }\n        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }\n      }" ({ "{") (expression_statement "FUN_002df6b0(&local_24);" (call_expression "FUN_002df6b0(&local_24)" (identifier "FUN_002df6b0") (argument_list "(&local_24)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (expression_statement "FUN_002df6b0(local_20);" (call_expression "FUN_002df6b0(local_20)" (identifier "FUN_002df6b0") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")"))) (; ";")) (expression_statement "uVar1 = FUN_002df590();" (assignment_expression "uVar1 = FUN_002df590()" (identifier "uVar1") (= "=") (call_expression "FUN_002df590()" (identifier "FUN_002df590") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (uVar1 < 4) {\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }" (if "if") (parenthesized_expression "(uVar1 < 4)" (( "(") (binary_expression "uVar1 < 4" (identifier "uVar1") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;\n        }" ({ "{") (expression_statement "uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;" (assignment_expression "uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1" (identifier "uVar2") (= "=") (binary_expression "(1 << ((char)uVar1 * '\b' & 0x1fU)) - 1" (parenthesized_expression "(1 << ((char)uVar1 * '\b' & 0x1fU))" (( "(") (binary_expression "1 << ((char)uVar1 * '\b' & 0x1fU)" (number_literal "1") (<< "<<") (parenthesized_expression "((char)uVar1 * '\b' & 0x1fU)" (( "(") (binary_expression "(char)uVar1 * '\b' & 0x1fU" (binary_expression "(char)uVar1 * '\b'" (cast_expression "(char)uVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar1")) (* "*") (char_literal "'\b'" (' "'") (escape_sequence "\b") (' "'"))) (& "&") (number_literal "0x1fU")) () ")"))) () ")")) (- "-") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {\n          return param_2;\n        }" (if "if") (parenthesized_expression "(((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0]))" (( "(") (binary_expression "((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])" (parenthesized_expression "((local_24 & uVar2) != 0)" (( "(") (binary_expression "(local_24 & uVar2) != 0" (parenthesized_expression "(local_24 & uVar2)" (( "(") (binary_expression "local_24 & uVar2" (identifier "local_24") (& "&") (identifier "uVar2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3 - local_24 < local_20[0])" (( "(") (binary_expression "param_3 - local_24 < local_20[0]" (binary_expression "param_3 - local_24" (identifier "param_3") (- "-") (identifier "local_24")) (< "<") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) () ")"))) () ")")) (compound_statement "{\n          return param_2;\n        }" ({ "{") (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (} "}")))) (} "}"))) (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 "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" (identifier "iVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

{
  type_1 var_11;
  type_1 var_12;
  type_1 var_6;
  int var_3;
  int var_4;
  type_1 var_7;
  type_1 local_20 [4];
  
  var_6 = (type_1)(type_3)(*(type_2 *)(var_1 + 0x10) >> 3);
  var_2();
  var_3 = *param_2;
  var_4 = 0;
  do {
    if (var_3 == 0) {
      return (int *)0x0;
    }
    if (param_2[1] != 0) {
      if (((*(type_3 *)(var_1 + 0x10) & 4) != 0) &&
         (var_3 = (int)param_2 + (4 - param_2[1]), var_3 != var_4)) {
        var_6 = var_5();
        var_2();
        var_4 = var_3;
      }
      if (var_6 == 0) {
        var_7 = param_2[2];
        local_20[0] = param_2[3];
        if ((var_7 != 0) && (var_8 - var_7 < local_20[0])) {
          return param_2;
        }
      }
      else {
        var_9(&var_7);
        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 (((var_7 & var_12) != 0) && (var_8 - var_7 < local_20[0])) {
          return param_2;
        }
      }
    }
    param_2 = (int *)((int)param_2 + *param_2 + 4);
    var_3 = *param_2;
  } while( true );
}


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

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

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  int local_40;
  uint local_24;
  uint local_20 [4];
  
  uVar3 = (uint)(byte)(*(ushort *)(param_1 + 0x10) >> 3);
  FUN_002df5f0();
  iVar4 = *param_2;
  local_40 = 0;
  do {
    if (iVar4 == 0) {
      return (int *)0x0;
    }
    if (param_2[1] != 0) {
      if (((*(byte *)(param_1 + 0x10) & 4) != 0) &&
         (iVar4 = (int)param_2 + (4 - param_2[1]), iVar4 != local_40)) {
        uVar3 = FUN_002df880();
        FUN_002df5f0();
        local_40 = iVar4;
      }
      if (uVar3 == 0) {
        local_24 = param_2[2];
        local_20[0] = param_2[3];
        if ((local_24 != 0) && (param_3 - local_24 < local_20[0])) {
          return param_2;
        }
      }
      else {
        FUN_002df6b0(&local_24);
        FUN_002df6b0(local_20);
        uVar1 = FUN_002df590();
        uVar2 = 0xffffffff;
        if (uVar1 < 4) {
          uVar2 = (1 << ((char)uVar1 * '\b' & 0x1fU)) - 1;
        }
        if (((local_24 & uVar2) != 0) && (param_3 - local_24 < local_20[0])) {
          return param_2;
        }
      }
    }
    param_2 = (int *)((int)param_2 + *param_2 + 4);
    iVar4 = *param_2;
  } while( true );
}

