
int __regparm3 stem(char **pz,char *zFrom,char *zTo,_func_int_char_ptr *xCond)

{
  int iVar1;
  char *pcVar2;
  
  pcVar2 = *pz;
  if (*zFrom == '\0') {
LAB_0001e971:
    iVar1 = (*xCond)(pcVar2);
    if (iVar1 != 0) {
      for (; *zTo != '\0'; zTo = zTo + 1) {
        pcVar2 = pcVar2 + -1;
        *pcVar2 = *zTo;
      }
      *pz = pcVar2;
    }
    return 1;
  }
  if (*pcVar2 == *zFrom) {
    do {
      zFrom = zFrom + 1;
      pcVar2 = pcVar2 + 1;
      if (*zFrom == '\0') goto LAB_0001e971;
    } while (*zFrom == *pcVar2);
  }
  return 0;
}



undefined4 __regparm3 FUN_0001e940(undefined4 *param_1,char *param_2,char *param_3,code *param_4)

{
  int iVar1;
  char *pcVar2;
  
  pcVar2 = (char *)*param_1;
  if (*param_2 == '\0') {
LAB_0001e971:
    iVar1 = (*param_4)(pcVar2);
    if (iVar1 != 0) {
      for (; *param_3 != '\0'; param_3 = param_3 + 1) {
        pcVar2 = pcVar2 + -1;
        *pcVar2 = *param_3;
      }
      *param_1 = pcVar2;
    }
    return 1;
  }
  if (*pcVar2 == *param_2) {
    do {
      param_2 = param_2 + 1;
      pcVar2 = pcVar2 + 1;
      if (*param_2 == '\0') goto LAB_0001e971;
    } while (*param_2 == *pcVar2);
  }
  return 0;
}


PUSH EDI
MOV EDI,ECX
PUSH ESI
MOV ESI,EAX
PUSH EBX
MOV EBX,dword ptr [EAX]
MOVZX EAX,byte ptr [EDX]
TEST AL,AL
JZ 0x0001e971
CMP byte ptr [EBX],AL
JZ 0x0001e964
JMP 0x0001e9b0
CMP AL,byte ptr [EBX]
JNZ 0x0001e9b0
ADD EDX,0x1
MOVZX EAX,byte ptr [EDX]
ADD EBX,0x1
TEST AL,AL
JNZ 0x0001e960
SUB ESP,0xc
PUSH EBX
CALL dword ptr [ESP + 0x20]
MOV EDX,EAX
MOV EAX,0x1
ADD ESP,0x10
TEST EDX,EDX
JNZ 0x0001e998
JMP 0x0001e9a6
SUB EBX,0x1
MOV byte ptr [EBX],AL
ADD EDI,0x1
MOVZX EAX,byte ptr [EDI]
TEST AL,AL
JNZ 0x0001e990
MOV dword ptr [ESI],EBX
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
RET
POP EBX
XOR EAX,EAX
POP ESI
POP EDI
RET
(translation_unit "undefined4 __regparm3 FUN_0001e940(undefined4 *param_1,char *param_2,char *param_3,code *param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_1;\n  if (*param_2 == '\0') {\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }\n  if (*pcVar2 == *param_2) {\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0001e940(undefined4 *param_1,char *param_2,char *param_3,code *param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_1;\n  if (*param_2 == '\0') {\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }\n  if (*pcVar2 == *param_2) {\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e940(undefined4 *param_1,char *param_2,char *param_3,code *param_4)" identifier (parameter_list "(undefined4 *param_1,char *param_2,char *param_3,code *param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "code *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_1;\n  if (*param_2 == '\0') {\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }\n  if (*pcVar2 == *param_2) {\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = (char *)*param_1;" (assignment_expression "pcVar2 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (*param_2 == '\0') {\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }" { (labeled_statement "LAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);" statement_identifier : (expression_statement "iVar1 = (*param_4)(pcVar2);" (assignment_expression "iVar1 = (*param_4)(pcVar2)" identifier = (call_expression "(*param_4)(pcVar2)" (parenthesized_expression "(*param_4)" ( (pointer_expression "*param_4" * identifier) )) (argument_list "(pcVar2)" ( identifier )))) ;)) (if_statement "if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }" { (for_statement "for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }" for ( ; (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ; (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ) (compound_statement "{\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }" { (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "*pcVar2 = *param_3;" (assignment_expression "*pcVar2 = *param_3" (pointer_expression "*pcVar2" * identifier) = (pointer_expression "*param_3" * identifier)) ;) })) (expression_statement "*param_1 = pcVar2;" (assignment_expression "*param_1 = pcVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*pcVar2 == *param_2) {\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }" if (parenthesized_expression "(*pcVar2 == *param_2)" ( (binary_expression "*pcVar2 == *param_2" (pointer_expression "*pcVar2" * identifier) == (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }" { (do_statement "do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);" do (compound_statement "{\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (if_statement "if (*param_2 == '\0') goto LAB_0001e971;" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0001e971;" goto statement_identifier ;)) }) while (parenthesized_expression "(*param_2 == *pcVar2)" ( (binary_expression "*param_2 == *pcVar2" (pointer_expression "*param_2" * identifier) == (pointer_expression "*pcVar2" * identifier)) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm3 stem(char **pz,char *zFrom,char *zTo,_func_int_char_ptr *xCond)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *pz;\n  if (*zFrom == '\0') {\nLAB_0001e971:\n    iVar1 = (*xCond)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *zTo != '\0'; zTo = zTo + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *zTo;\n      }\n      *pz = pcVar2;\n    }\n    return 1;\n  }\n  if (*pcVar2 == *zFrom) {\n    do {\n      zFrom = zFrom + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*zFrom == '\0') goto LAB_0001e971;\n    } while (*zFrom == *pcVar2);\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 stem(char **pz,char *zFrom,char *zTo,_func_int_char_ptr *xCond)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *pz;\n  if (*zFrom == '\0') {\nLAB_0001e971:\n    iVar1 = (*xCond)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *zTo != '\0'; zTo = zTo + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *zTo;\n      }\n      *pz = pcVar2;\n    }\n    return 1;\n  }\n  if (*pcVar2 == *zFrom) {\n    do {\n      zFrom = zFrom + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*zFrom == '\0') goto LAB_0001e971;\n    } while (*zFrom == *pcVar2);\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "stem(char **pz,char *zFrom,char *zTo,_func_int_char_ptr *xCond)" identifier (parameter_list "(char **pz,char *zFrom,char *zTo,_func_int_char_ptr *xCond)" ( (parameter_declaration "char **pz" primitive_type (pointer_declarator "**pz" * (pointer_declarator "*pz" * identifier))) , (parameter_declaration "char *zFrom" primitive_type (pointer_declarator "*zFrom" * identifier)) , (parameter_declaration "char *zTo" primitive_type (pointer_declarator "*zTo" * identifier)) , (parameter_declaration "_func_int_char_ptr *xCond" type_identifier (pointer_declarator "*xCond" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *pz;\n  if (*zFrom == '\0') {\nLAB_0001e971:\n    iVar1 = (*xCond)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *zTo != '\0'; zTo = zTo + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *zTo;\n      }\n      *pz = pcVar2;\n    }\n    return 1;\n  }\n  if (*pcVar2 == *zFrom) {\n    do {\n      zFrom = zFrom + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*zFrom == '\0') goto LAB_0001e971;\n    } while (*zFrom == *pcVar2);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = *pz;" (assignment_expression "pcVar2 = *pz" identifier = (pointer_expression "*pz" * identifier)) ;) (if_statement "if (*zFrom == '\0') {\nLAB_0001e971:\n    iVar1 = (*xCond)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *zTo != '\0'; zTo = zTo + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *zTo;\n      }\n      *pz = pcVar2;\n    }\n    return 1;\n  }" if (parenthesized_expression "(*zFrom == '\0')" ( (binary_expression "*zFrom == '\0'" (pointer_expression "*zFrom" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0001e971:\n    iVar1 = (*xCond)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *zTo != '\0'; zTo = zTo + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *zTo;\n      }\n      *pz = pcVar2;\n    }\n    return 1;\n  }" { (labeled_statement "LAB_0001e971:\n    iVar1 = (*xCond)(pcVar2);" statement_identifier : (expression_statement "iVar1 = (*xCond)(pcVar2);" (assignment_expression "iVar1 = (*xCond)(pcVar2)" identifier = (call_expression "(*xCond)(pcVar2)" (parenthesized_expression "(*xCond)" ( (pointer_expression "*xCond" * identifier) )) (argument_list "(pcVar2)" ( identifier )))) ;)) (if_statement "if (iVar1 != 0) {\n      for (; *zTo != '\0'; zTo = zTo + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *zTo;\n      }\n      *pz = pcVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; *zTo != '\0'; zTo = zTo + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *zTo;\n      }\n      *pz = pcVar2;\n    }" { (for_statement "for (; *zTo != '\0'; zTo = zTo + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *zTo;\n      }" for ( ; (binary_expression "*zTo != '\0'" (pointer_expression "*zTo" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ; (assignment_expression "zTo = zTo + 1" identifier = (binary_expression "zTo + 1" identifier + number_literal)) ) (compound_statement "{\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *zTo;\n      }" { (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "*pcVar2 = *zTo;" (assignment_expression "*pcVar2 = *zTo" (pointer_expression "*pcVar2" * identifier) = (pointer_expression "*zTo" * identifier)) ;) })) (expression_statement "*pz = pcVar2;" (assignment_expression "*pz = pcVar2" (pointer_expression "*pz" * identifier) = identifier) ;) })) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*pcVar2 == *zFrom) {\n    do {\n      zFrom = zFrom + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*zFrom == '\0') goto LAB_0001e971;\n    } while (*zFrom == *pcVar2);\n  }" if (parenthesized_expression "(*pcVar2 == *zFrom)" ( (binary_expression "*pcVar2 == *zFrom" (pointer_expression "*pcVar2" * identifier) == (pointer_expression "*zFrom" * identifier)) )) (compound_statement "{\n    do {\n      zFrom = zFrom + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*zFrom == '\0') goto LAB_0001e971;\n    } while (*zFrom == *pcVar2);\n  }" { (do_statement "do {\n      zFrom = zFrom + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*zFrom == '\0') goto LAB_0001e971;\n    } while (*zFrom == *pcVar2);" do (compound_statement "{\n      zFrom = zFrom + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*zFrom == '\0') goto LAB_0001e971;\n    }" { (expression_statement "zFrom = zFrom + 1;" (assignment_expression "zFrom = zFrom + 1" identifier = (binary_expression "zFrom + 1" identifier + number_literal)) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (if_statement "if (*zFrom == '\0') goto LAB_0001e971;" if (parenthesized_expression "(*zFrom == '\0')" ( (binary_expression "*zFrom == '\0'" (pointer_expression "*zFrom" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0001e971;" goto statement_identifier ;)) }) while (parenthesized_expression "(*zFrom == *pcVar2)" ( (binary_expression "*zFrom == *pcVar2" (pointer_expression "*zFrom" * identifier) == (pointer_expression "*pcVar2" * identifier)) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_0001e940(undefined4 *param_1,char *param_2,char *param_3,code *param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_1;\n  if (*param_2 == '\0') {\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }\n  if (*pcVar2 == *param_2) {\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0001e940(undefined4 *param_1,char *param_2,char *param_3,code *param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_1;\n  if (*param_2 == '\0') {\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }\n  if (*pcVar2 == *param_2) {\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e940(undefined4 *param_1,char *param_2,char *param_3,code *param_4)" identifier (parameter_list "(undefined4 *param_1,char *param_2,char *param_3,code *param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "code *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_1;\n  if (*param_2 == '\0') {\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }\n  if (*pcVar2 == *param_2) {\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = (char *)*param_1;" (assignment_expression "pcVar2 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (*param_2 == '\0') {\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }" { (labeled_statement "LAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);" statement_identifier : (expression_statement "iVar1 = (*param_4)(pcVar2);" (assignment_expression "iVar1 = (*param_4)(pcVar2)" identifier = (call_expression "(*param_4)(pcVar2)" (parenthesized_expression "(*param_4)" ( (pointer_expression "*param_4" * identifier) )) (argument_list "(pcVar2)" ( identifier )))) ;)) (if_statement "if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }" { (for_statement "for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }" for ( ; (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ; (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ) (compound_statement "{\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }" { (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "*pcVar2 = *param_3;" (assignment_expression "*pcVar2 = *param_3" (pointer_expression "*pcVar2" * identifier) = (pointer_expression "*param_3" * identifier)) ;) })) (expression_statement "*param_1 = pcVar2;" (assignment_expression "*param_1 = pcVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (return_statement "return 1;" return number_literal ;) })) (if_statement "if (*pcVar2 == *param_2) {\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }" if (parenthesized_expression "(*pcVar2 == *param_2)" ( (binary_expression "*pcVar2 == *param_2" (pointer_expression "*pcVar2" * identifier) == (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }" { (do_statement "do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);" do (compound_statement "{\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (if_statement "if (*param_2 == '\0') goto LAB_0001e971;" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0001e971;" goto statement_identifier ;)) }) while (parenthesized_expression "(*param_2 == *pcVar2)" ( (binary_expression "*param_2 == *pcVar2" (pointer_expression "*param_2" * identifier) == (pointer_expression "*pcVar2" * identifier)) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (for_statement for ( ; (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT)) )) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0001e940(undefined4 *param_1,char *param_2,char *param_3,code *param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_1;\n  if (*param_2 == '\0') {\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }\n  if (*pcVar2 == *param_2) {\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001e940(undefined4 *param_1,char *param_2,char *param_3,code *param_4)" (identifier "FUN_0001e940") (parameter_list "(undefined4 *param_1,char *param_2,char *param_3,code *param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "code *param_4" (type_identifier "code") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)*param_1;\n  if (*param_2 == '\0') {\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }\n  if (*pcVar2 == *param_2) {\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (expression_statement "pcVar2 = (char *)*param_1;" (assignment_expression "pcVar2 = (char *)*param_1" (identifier "pcVar2") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (*param_2 == '\0') {\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }" (if "if") (parenthesized_expression "(*param_2 == '\0')" (( "(") (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);\n    if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }\n    return 1;\n  }" ({ "{") (labeled_statement "LAB_0001e971:\n    iVar1 = (*param_4)(pcVar2);" (statement_identifier "LAB_0001e971") (: ":") (expression_statement "iVar1 = (*param_4)(pcVar2);" (assignment_expression "iVar1 = (*param_4)(pcVar2)" (identifier "iVar1") (= "=") (call_expression "(*param_4)(pcVar2)" (parenthesized_expression "(*param_4)" (( "(") (pointer_expression "*param_4" (* "*") (identifier "param_4")) () ")")) (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")")))) (; ";"))) (if_statement "if (iVar1 != 0) {\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }\n      *param_1 = pcVar2;\n    }" ({ "{") (for_statement "for (; *param_3 != '\0'; param_3 = param_3 + 1) {\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }" (for "for") (( "(") (; ";") (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";") (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) () ")") (compound_statement "{\n        pcVar2 = pcVar2 + -1;\n        *pcVar2 = *param_3;\n      }" ({ "{") (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + -1" (identifier "pcVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*pcVar2 = *param_3;" (assignment_expression "*pcVar2 = *param_3" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (} "}"))) (expression_statement "*param_1 = pcVar2;" (assignment_expression "*param_1 = pcVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "pcVar2")) (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (*pcVar2 == *param_2) {\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }" (if "if") (parenthesized_expression "(*pcVar2 == *param_2)" (( "(") (binary_expression "*pcVar2 == *param_2" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n    do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);\n  }" ({ "{") (do_statement "do {\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    } while (*param_2 == *pcVar2);" (do "do") (compound_statement "{\n      param_2 = param_2 + 1;\n      pcVar2 = pcVar2 + 1;\n      if (*param_2 == '\0') goto LAB_0001e971;\n    }" ({ "{") (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*param_2 == '\0') goto LAB_0001e971;" (if "if") (parenthesized_expression "(*param_2 == '\0')" (( "(") (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0001e971;" (goto "goto") (statement_identifier "LAB_0001e971") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(*param_2 == *pcVar2)" (( "(") (binary_expression "*param_2 == *pcVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) () ")")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int __regparm3 function_1(char **pz,char *var_4,char *var_2,type_1 *xCond)

{
  int var_1;
  char *var_3;
  
  var_3 = *pz;
  if (*var_4 == '\0') {
LAB_0001e971:
    var_1 = (*xCond)(var_3);
    if (var_1 != 0) {
      for (; *var_2 != '\0'; var_2 = var_2 + 1) {
        var_3 = var_3 + -1;
        *var_3 = *var_2;
      }
      *pz = var_3;
    }
    return 1;
  }
  if (*var_3 == *var_4) {
    do {
      var_4 = var_4 + 1;
      var_3 = var_3 + 1;
      if (*var_4 == '\0') goto LAB_0001e971;
    } while (*var_4 == *var_3);
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (for_statement condition: (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))))) (return_statement (number_literal)))))

undefined4 __regparm3 MASKED(undefined4 *param_1,char *param_2,char *param_3,code *param_4)

{
  int iVar1;
  char *pcVar2;
  
  pcVar2 = (char *)*param_1;
  if (*param_2 == '\0') {
LAB_0001e971:
    iVar1 = (*param_4)(pcVar2);
    if (iVar1 != 0) {
      for (; *param_3 != '\0'; param_3 = param_3 + 1) {
        pcVar2 = pcVar2 + -1;
        *pcVar2 = *param_3;
      }
      *param_1 = pcVar2;
    }
    return 1;
  }
  if (*pcVar2 == *param_2) {
    do {
      param_2 = param_2 + 1;
      pcVar2 = pcVar2 + 1;
      if (*param_2 == '\0') goto LAB_0001e971;
    } while (*param_2 == *pcVar2);
  }
  return 0;
}

