
undefined4 __regparm3 d_exprlist(int param_1,char param_2)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  int local_20 [4];
  
  local_20[0] = 0;
  piVar3 = local_20;
  if (**(char **)(param_1 + 0xc) == param_2) {
    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
    uVar2 = d_make_comp();
    return uVar2;
  }
  while( true ) {
    uVar2 = *(undefined4 *)(param_1 + 0x30);
    *(undefined4 *)(param_1 + 0x30) = 1;
    iVar1 = d_expression_1();
    *(undefined4 *)(param_1 + 0x30) = uVar2;
    if (iVar1 == 0) {
      return 0;
    }
    iVar1 = d_make_comp(0);
    *piVar3 = iVar1;
    if (iVar1 == 0) break;
    piVar3 = (int *)(iVar1 + 0xc);
    if (**(char **)(param_1 + 0xc) == param_2) {
      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
      return local_20[0];
    }
  }
  return 0;
}



undefined4 __regparm3 FUN_00270ec0(int param_1,char param_2)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  int local_20 [4];
  
  local_20[0] = 0;
  piVar3 = local_20;
  if (**(char **)(param_1 + 0xc) == param_2) {
    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
    uVar2 = FUN_0026fc20();
    return uVar2;
  }
  while( true ) {
    uVar2 = *(undefined4 *)(param_1 + 0x30);
    *(undefined4 *)(param_1 + 0x30) = 1;
    iVar1 = FUN_00270800();
    *(undefined4 *)(param_1 + 0x30) = uVar2;
    if (iVar1 == 0) {
      return 0;
    }
    iVar1 = FUN_0026fc20(0);
    *piVar3 = iVar1;
    if (iVar1 == 0) break;
    piVar3 = (int *)(iVar1 + 0xc);
    if (**(char **)(param_1 + 0xc) == param_2) {
      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
      return local_20[0];
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x1c
MOV EAX,dword ptr [EAX + 0xc]
MOV dword ptr [ESP + 0xc],0x0
LEA ESI,[ESP + 0xc]
CMP byte ptr [EAX],DL
JNZ 0x00270f08
JMP 0x00270f48
SUB ESP,0xc
MOV ECX,EAX
MOV EDX,0x2e
MOV EAX,EBX
PUSH 0x0
CALL 0x0026fc20
ADD ESP,0x10
MOV dword ptr [ESI],EAX
TEST EAX,EAX
JZ 0x00270f20
LEA ESI,[EAX + 0xc]
MOV EAX,dword ptr [EBX + 0xc]
MOV ECX,EDI
CMP byte ptr [EAX],CL
JZ 0x00270f30
MOV EBP,dword ptr [EBX + 0x30]
MOV dword ptr [EBX + 0x30],0x1
MOV EAX,EBX
CALL 0x00270800
MOV dword ptr [EBX + 0x30],EBP
TEST EAX,EAX
JNZ 0x00270ee0
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD EAX,0x1
MOV dword ptr [EBX + 0xc],EAX
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD EAX,0x1
PUSH 0x0
MOV EDX,0x2e
XOR ECX,ECX
MOV dword ptr [EBX + 0xc],EAX
MOV EAX,EBX
CALL 0x0026fc20
POP EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "undefined4 __regparm3 FUN_00270ec0(int param_1,char param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int local_20 [4];\n  \n  local_20[0] = 0;\n  piVar3 = local_20;\n  if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }\n  while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00270ec0(int param_1,char param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int local_20 [4];\n  \n  local_20[0] = 0;\n  piVar3 = local_20;\n  if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }\n  while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00270ec0(int param_1,char param_2)" identifier (parameter_list "(int param_1,char param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int local_20 [4];\n  \n  local_20[0] = 0;\n  piVar3 = local_20;\n  if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }\n  while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int local_20 [4];" primitive_type (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3 = local_20;" (assignment_expression "piVar3 = local_20" identifier = identifier) ;) (if_statement "if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) == param_2)" ( (binary_expression "**(char **)(param_1 + 0xc) == param_2" (pointer_expression "**(char **)(param_1 + 0xc)" * (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) == identifier) )) (compound_statement "{\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }" { (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar2 = FUN_0026fc20();" (assignment_expression "uVar2 = FUN_0026fc20()" identifier = (call_expression "FUN_0026fc20()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (while_statement "while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }" { (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x30)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x30) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = FUN_00270800();" (assignment_expression "iVar1 = FUN_00270800()" identifier = (call_expression "FUN_00270800()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x30) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = FUN_0026fc20(0);" (assignment_expression "iVar1 = FUN_0026fc20(0)" identifier = (call_expression "FUN_0026fc20(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "piVar3 = (int *)(iVar1 + 0xc);" (assignment_expression "piVar3 = (int *)(iVar1 + 0xc)" identifier = (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) ;) (if_statement "if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) == param_2)" ( (binary_expression "**(char **)(param_1 + 0xc) == param_2" (pointer_expression "**(char **)(param_1 + 0xc)" * (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) == identifier) )) (compound_statement "{\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }" { (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return local_20[0];" return (subscript_expression "local_20[0]" identifier [ number_literal ]) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 d_exprlist(int param_1,char param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int local_20 [4];\n  \n  local_20[0] = 0;\n  piVar3 = local_20;\n  if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = d_make_comp();\n    return uVar2;\n  }\n  while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = d_expression_1();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = d_make_comp(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 d_exprlist(int param_1,char param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int local_20 [4];\n  \n  local_20[0] = 0;\n  piVar3 = local_20;\n  if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = d_make_comp();\n    return uVar2;\n  }\n  while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = d_expression_1();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = d_make_comp(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "d_exprlist(int param_1,char param_2)" identifier (parameter_list "(int param_1,char param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int local_20 [4];\n  \n  local_20[0] = 0;\n  piVar3 = local_20;\n  if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = d_make_comp();\n    return uVar2;\n  }\n  while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = d_expression_1();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = d_make_comp(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int local_20 [4];" primitive_type (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3 = local_20;" (assignment_expression "piVar3 = local_20" identifier = identifier) ;) (if_statement "if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = d_make_comp();\n    return uVar2;\n  }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) == param_2)" ( (binary_expression "**(char **)(param_1 + 0xc) == param_2" (pointer_expression "**(char **)(param_1 + 0xc)" * (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) == identifier) )) (compound_statement "{\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = d_make_comp();\n    return uVar2;\n  }" { (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar2 = d_make_comp();" (assignment_expression "uVar2 = d_make_comp()" identifier = (call_expression "d_make_comp()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (while_statement "while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = d_expression_1();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = d_make_comp(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = d_expression_1();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = d_make_comp(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }" { (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x30)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x30) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = d_expression_1();" (assignment_expression "iVar1 = d_expression_1()" identifier = (call_expression "d_expression_1()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x30) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = d_make_comp(0);" (assignment_expression "iVar1 = d_make_comp(0)" identifier = (call_expression "d_make_comp(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "piVar3 = (int *)(iVar1 + 0xc);" (assignment_expression "piVar3 = (int *)(iVar1 + 0xc)" identifier = (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) ;) (if_statement "if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) == param_2)" ( (binary_expression "**(char **)(param_1 + 0xc) == param_2" (pointer_expression "**(char **)(param_1 + 0xc)" * (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) == identifier) )) (compound_statement "{\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }" { (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return local_20[0];" return (subscript_expression "local_20[0]" identifier [ number_literal ]) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_00270ec0(int param_1,char param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int local_20 [4];\n  \n  local_20[0] = 0;\n  piVar3 = local_20;\n  if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }\n  while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00270ec0(int param_1,char param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int local_20 [4];\n  \n  local_20[0] = 0;\n  piVar3 = local_20;\n  if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }\n  while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00270ec0(int param_1,char param_2)" identifier (parameter_list "(int param_1,char param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int local_20 [4];\n  \n  local_20[0] = 0;\n  piVar3 = local_20;\n  if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }\n  while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int local_20 [4];" primitive_type (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3 = local_20;" (assignment_expression "piVar3 = local_20" identifier = identifier) ;) (if_statement "if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) == param_2)" ( (binary_expression "**(char **)(param_1 + 0xc) == param_2" (pointer_expression "**(char **)(param_1 + 0xc)" * (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) == identifier) )) (compound_statement "{\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }" { (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar2 = FUN_0026fc20();" (assignment_expression "uVar2 = FUN_0026fc20()" identifier = (call_expression "FUN_0026fc20()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (while_statement "while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }" { (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x30)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x30) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = FUN_00270800();" (assignment_expression "iVar1 = FUN_00270800()" identifier = (call_expression "FUN_00270800()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x30) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" * (cast_expression "(undefined4 *)(param_1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = FUN_0026fc20(0);" (assignment_expression "iVar1 = FUN_0026fc20(0)" identifier = (call_expression "FUN_0026fc20(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "piVar3 = (int *)(iVar1 + 0xc);" (assignment_expression "piVar3 = (int *)(iVar1 + 0xc)" identifier = (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) ;) (if_statement "if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) == param_2)" ( (binary_expression "**(char **)(param_1 + 0xc) == param_2" (pointer_expression "**(char **)(param_1 + 0xc)" * (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) == identifier) )) (compound_statement "{\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }" { (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return local_20[0];" return (subscript_expression "local_20[0]" identifier [ number_literal ]) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00270ec0(int param_1,char param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int local_20 [4];\n  \n  local_20[0] = 0;\n  piVar3 = local_20;\n  if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }\n  while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00270ec0(int param_1,char param_2)" (identifier "FUN_00270ec0") (parameter_list "(int param_1,char param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char param_2" (primitive_type "char") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int local_20 [4];\n  \n  local_20[0] = 0;\n  piVar3 = local_20;\n  if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }\n  while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int local_20 [4];" (primitive_type "int") (array_declarator "local_20 [4]" (identifier "local_20") ([ "[") (number_literal "4") (] "]")) (; ";")) (expression_statement "local_20[0] = 0;" (assignment_expression "local_20[0] = 0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3 = local_20;" (assignment_expression "piVar3 = local_20" (identifier "piVar3") (= "=") (identifier "local_20")) (; ";")) (if_statement "if (**(char **)(param_1 + 0xc) == param_2) {\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(**(char **)(param_1 + 0xc) == param_2)" (( "(") (binary_expression "**(char **)(param_1 + 0xc) == param_2" (pointer_expression "**(char **)(param_1 + 0xc)" (* "*") (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n    uVar2 = FUN_0026fc20();\n    return uVar2;\n  }" ({ "{") (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = FUN_0026fc20();" (assignment_expression "uVar2 = FUN_0026fc20()" (identifier "uVar2") (= "=") (call_expression "FUN_0026fc20()" (identifier "FUN_0026fc20") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (while_statement "while( true ) {\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    uVar2 = *(undefined4 *)(param_1 + 0x30);\n    *(undefined4 *)(param_1 + 0x30) = 1;\n    iVar1 = FUN_00270800();\n    *(undefined4 *)(param_1 + 0x30) = uVar2;\n    if (iVar1 == 0) {\n      return 0;\n    }\n    iVar1 = FUN_0026fc20(0);\n    *piVar3 = iVar1;\n    if (iVar1 == 0) break;\n    piVar3 = (int *)(iVar1 + 0xc);\n    if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }\n  }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x30);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x30)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x30) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar1 = FUN_00270800();" (assignment_expression "iVar1 = FUN_00270800()" (identifier "iVar1") (= "=") (call_expression "FUN_00270800()" (identifier "FUN_00270800") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x30) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x30) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_0026fc20(0);" (assignment_expression "iVar1 = FUN_0026fc20(0)" (identifier "iVar1") (= "=") (call_expression "FUN_0026fc20(0)" (identifier "FUN_0026fc20") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "piVar3 = (int *)(iVar1 + 0xc);" (assignment_expression "piVar3 = (int *)(iVar1 + 0xc)" (identifier "piVar3") (= "=") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (if_statement "if (**(char **)(param_1 + 0xc) == param_2) {\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }" (if "if") (parenthesized_expression "(**(char **)(param_1 + 0xc) == param_2)" (( "(") (binary_expression "**(char **)(param_1 + 0xc) == param_2" (pointer_expression "**(char **)(param_1 + 0xc)" (* "*") (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n      return local_20[0];\n    }" ({ "{") (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(char **)(param_1 + 0xc) + 1" (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return local_20[0];" (return "return") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 __regparm3 function_1(int var_1,char var_2)

{
  int var_5;
  type_1 uVar2;
  int *piVar3;
  int local_20 [4];
  
  local_20[0] = 0;
  piVar3 = local_20;
  if (**(char **)(var_1 + 0xc) == var_2) {
    *(char **)(var_1 + 0xc) = *(char **)(var_1 + 0xc) + 1;
    uVar2 = var_3();
    return uVar2;
  }
  while( true ) {
    uVar2 = *(type_1 *)(var_1 + 0x30);
    *(type_1 *)(var_1 + 0x30) = 1;
    var_5 = var_4();
    *(type_1 *)(var_1 + 0x30) = uVar2;
    if (var_5 == 0) {
      return 0;
    }
    var_5 = var_3(0);
    *piVar3 = var_5;
    if (var_5 == 0) break;
    piVar3 = (int *)(var_5 + 0xc);
    if (**(char **)(var_1 + 0xc) == var_2) {
      *(char **)(var_1 + 0xc) = *(char **)(var_1 + 0xc) + 1;
      return local_20[0];
    }
  }
  return 0;
}


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

undefined4 __regparm3 MASKED(int param_1,char param_2)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  int local_20 [4];
  
  local_20[0] = 0;
  piVar3 = local_20;
  if (**(char **)(param_1 + 0xc) == param_2) {
    *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
    uVar2 = FUN_0026fc20();
    return uVar2;
  }
  while( true ) {
    uVar2 = *(undefined4 *)(param_1 + 0x30);
    *(undefined4 *)(param_1 + 0x30) = 1;
    iVar1 = FUN_00270800();
    *(undefined4 *)(param_1 + 0x30) = uVar2;
    if (iVar1 == 0) {
      return 0;
    }
    iVar1 = FUN_0026fc20(0);
    *piVar3 = iVar1;
    if (iVar1 == 0) break;
    piVar3 = (int *)(iVar1 + 0xc);
    if (**(char **)(param_1 + 0xc) == param_2) {
      *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
      return local_20[0];
    }
  }
  return 0;
}

