
char * argmatch_to_argument(char *value,char **arglist,char *vallist,size_t valsize)

{
  int iVar1;
  char **ppcVar2;
  char *pcVar3;
  
  pcVar3 = *arglist;
  if (pcVar3 != (char *)0x0) {
    ppcVar2 = arglist + 1;
    do {
      iVar1 = memcmp(value,vallist,valsize);
      if (iVar1 == 0) {
        return pcVar3;
      }
      pcVar3 = *ppcVar2;
      vallist = vallist + valsize;
      ppcVar2 = ppcVar2 + 1;
    } while (pcVar3 != (char *)0x0);
  }
  return pcVar3;
}



long FUN_001057f1(void *param_1,long *param_2,void *param_3,size_t param_4)

{
  int iVar1;
  long lVar2;
  
  lVar2 = *param_2;
  if (lVar2 != 0) {
    param_2 = param_2 + 1;
    do {
      iVar1 = memcmp(param_1,param_3,param_4);
      if (iVar1 == 0) {
        return lVar2;
      }
      lVar2 = *param_2;
      param_3 = (void *)((long)param_3 + param_4);
      param_2 = param_2 + 1;
    } while (lVar2 != 0);
  }
  return lVar2;
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV R13,qword ptr [RSI]
TEST R13,R13
JZ 0x0010582f
MOV R12,RCX
MOV R14,RDI
MOV RBP,RDX
LEA RBX,[RSI + 0x8]
MOV RDX,R12
MOV RSI,RBP
MOV RDI,R14
CALL 0x001032f0
TEST EAX,EAX
JZ 0x0010582f
MOV R13,qword ptr [RBX]
ADD RBP,R12
ADD RBX,0x8
TEST R13,R13
JNZ 0x0010580e
MOV RAX,R13
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
(translation_unit "long FUN_001057f1(void *param_1,long *param_2,void *param_3,size_t param_4)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_2;\n  if (lVar2 != 0) {\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }\n  return lVar2;\n}\n\n" (function_definition "long FUN_001057f1(void *param_1,long *param_2,void *param_3,size_t param_4)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_2;\n  if (lVar2 != 0) {\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }\n  return lVar2;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_001057f1(void *param_1,long *param_2,void *param_3,size_t param_4)" identifier (parameter_list "(void *param_1,long *param_2,void *param_3,size_t param_4)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_2;\n  if (lVar2 != 0) {\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }\n  return lVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (lVar2 != 0) {\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (do_statement "do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);" do (compound_statement "{\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    }" { (expression_statement "iVar1 = memcmp(param_1,param_3,param_4);" (assignment_expression "iVar1 = memcmp(param_1,param_3,param_4)" identifier = (call_expression "memcmp(param_1,param_3,param_4)" identifier (argument_list "(param_1,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        return lVar2;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return lVar2;\n      }" { (return_statement "return lVar2;" return identifier ;) })) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_3 = (void *)((long)param_3 + param_4);" (assignment_expression "param_3 = (void *)((long)param_3 + param_4)" identifier = (cast_expression "(void *)((long)param_3 + param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + param_4)" ( (binary_expression "(long)param_3 + param_4" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) ;) })) (return_statement "return lVar2;" return identifier ;) })))
(translation_unit "char * argmatch_to_argument(char *value,char **arglist,char *vallist,size_t valsize)\n\n{\n  int iVar1;\n  char **ppcVar2;\n  char *pcVar3;\n  \n  pcVar3 = *arglist;\n  if (pcVar3 != (char *)0x0) {\n    ppcVar2 = arglist + 1;\n    do {\n      iVar1 = memcmp(value,vallist,valsize);\n      if (iVar1 == 0) {\n        return pcVar3;\n      }\n      pcVar3 = *ppcVar2;\n      vallist = vallist + valsize;\n      ppcVar2 = ppcVar2 + 1;\n    } while (pcVar3 != (char *)0x0);\n  }\n  return pcVar3;\n}\n\n" (function_definition "char * argmatch_to_argument(char *value,char **arglist,char *vallist,size_t valsize)\n\n{\n  int iVar1;\n  char **ppcVar2;\n  char *pcVar3;\n  \n  pcVar3 = *arglist;\n  if (pcVar3 != (char *)0x0) {\n    ppcVar2 = arglist + 1;\n    do {\n      iVar1 = memcmp(value,vallist,valsize);\n      if (iVar1 == 0) {\n        return pcVar3;\n      }\n      pcVar3 = *ppcVar2;\n      vallist = vallist + valsize;\n      ppcVar2 = ppcVar2 + 1;\n    } while (pcVar3 != (char *)0x0);\n  }\n  return pcVar3;\n}" primitive_type (pointer_declarator "* argmatch_to_argument(char *value,char **arglist,char *vallist,size_t valsize)" * (function_declarator "argmatch_to_argument(char *value,char **arglist,char *vallist,size_t valsize)" identifier (parameter_list "(char *value,char **arglist,char *vallist,size_t valsize)" ( (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) , (parameter_declaration "char **arglist" primitive_type (pointer_declarator "**arglist" * (pointer_declarator "*arglist" * identifier))) , (parameter_declaration "char *vallist" primitive_type (pointer_declarator "*vallist" * identifier)) , (parameter_declaration "size_t valsize" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  char **ppcVar2;\n  char *pcVar3;\n  \n  pcVar3 = *arglist;\n  if (pcVar3 != (char *)0x0) {\n    ppcVar2 = arglist + 1;\n    do {\n      iVar1 = memcmp(value,vallist,valsize);\n      if (iVar1 == 0) {\n        return pcVar3;\n      }\n      pcVar3 = *ppcVar2;\n      vallist = vallist + valsize;\n      ppcVar2 = ppcVar2 + 1;\n    } while (pcVar3 != (char *)0x0);\n  }\n  return pcVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char **ppcVar2;" primitive_type (pointer_declarator "**ppcVar2" * (pointer_declarator "*ppcVar2" * identifier)) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar3 = *arglist;" (assignment_expression "pcVar3 = *arglist" identifier = (pointer_expression "*arglist" * identifier)) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    ppcVar2 = arglist + 1;\n    do {\n      iVar1 = memcmp(value,vallist,valsize);\n      if (iVar1 == 0) {\n        return pcVar3;\n      }\n      pcVar3 = *ppcVar2;\n      vallist = vallist + valsize;\n      ppcVar2 = ppcVar2 + 1;\n    } while (pcVar3 != (char *)0x0);\n  }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ppcVar2 = arglist + 1;\n    do {\n      iVar1 = memcmp(value,vallist,valsize);\n      if (iVar1 == 0) {\n        return pcVar3;\n      }\n      pcVar3 = *ppcVar2;\n      vallist = vallist + valsize;\n      ppcVar2 = ppcVar2 + 1;\n    } while (pcVar3 != (char *)0x0);\n  }" { (expression_statement "ppcVar2 = arglist + 1;" (assignment_expression "ppcVar2 = arglist + 1" identifier = (binary_expression "arglist + 1" identifier + number_literal)) ;) (do_statement "do {\n      iVar1 = memcmp(value,vallist,valsize);\n      if (iVar1 == 0) {\n        return pcVar3;\n      }\n      pcVar3 = *ppcVar2;\n      vallist = vallist + valsize;\n      ppcVar2 = ppcVar2 + 1;\n    } while (pcVar3 != (char *)0x0);" do (compound_statement "{\n      iVar1 = memcmp(value,vallist,valsize);\n      if (iVar1 == 0) {\n        return pcVar3;\n      }\n      pcVar3 = *ppcVar2;\n      vallist = vallist + valsize;\n      ppcVar2 = ppcVar2 + 1;\n    }" { (expression_statement "iVar1 = memcmp(value,vallist,valsize);" (assignment_expression "iVar1 = memcmp(value,vallist,valsize)" identifier = (call_expression "memcmp(value,vallist,valsize)" identifier (argument_list "(value,vallist,valsize)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        return pcVar3;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return pcVar3;\n      }" { (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "pcVar3 = *ppcVar2;" (assignment_expression "pcVar3 = *ppcVar2" identifier = (pointer_expression "*ppcVar2" * identifier)) ;) (expression_statement "vallist = vallist + valsize;" (assignment_expression "vallist = vallist + valsize" identifier = (binary_expression "vallist + valsize" identifier + identifier)) ;) (expression_statement "ppcVar2 = ppcVar2 + 1;" (assignment_expression "ppcVar2 = ppcVar2 + 1" identifier = (binary_expression "ppcVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "long FUN_001057f1(void *param_1,long *param_2,void *param_3,size_t param_4)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_2;\n  if (lVar2 != 0) {\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }\n  return lVar2;\n}\n\n" (function_definition "long FUN_001057f1(void *param_1,long *param_2,void *param_3,size_t param_4)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_2;\n  if (lVar2 != 0) {\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }\n  return lVar2;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_001057f1(void *param_1,long *param_2,void *param_3,size_t param_4)" identifier (parameter_list "(void *param_1,long *param_2,void *param_3,size_t param_4)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_2;\n  if (lVar2 != 0) {\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }\n  return lVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (lVar2 != 0) {\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (do_statement "do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);" do (compound_statement "{\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    }" { (expression_statement "iVar1 = memcmp(param_1,param_3,param_4);" (assignment_expression "iVar1 = memcmp(param_1,param_3,param_4)" identifier = (call_expression "memcmp(param_1,param_3,param_4)" identifier (argument_list "(param_1,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        return lVar2;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return lVar2;\n      }" { (return_statement "return lVar2;" return identifier ;) })) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_3 = (void *)((long)param_3 + param_4);" (assignment_expression "param_3 = (void *)((long)param_3 + param_4)" identifier = (cast_expression "(void *)((long)param_3 + param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_3 + param_4)" ( (binary_expression "(long)param_3 + param_4" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) ;) })) (return_statement "return lVar2;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "long FUN_001057f1(void *param_1,long *param_2,void *param_3,size_t param_4)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_2;\n  if (lVar2 != 0) {\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }\n  return lVar2;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_001057f1(void *param_1,long *param_2,void *param_3,size_t param_4)" (identifier "FUN_001057f1") (parameter_list "(void *param_1,long *param_2,void *param_3,size_t param_4)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "void *param_3" (primitive_type "void") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "size_t param_4" (primitive_type "size_t") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_2;\n  if (lVar2 != 0) {\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }\n  return lVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" (identifier "lVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (lVar2 != 0) {\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\n  }" (if "if") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = param_2 + 1;\n    do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);\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"))) (; ";")) (do_statement "do {\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    } while (lVar2 != 0);" (do "do") (compound_statement "{\n      iVar1 = memcmp(param_1,param_3,param_4);\n      if (iVar1 == 0) {\n        return lVar2;\n      }\n      lVar2 = *param_2;\n      param_3 = (void *)((long)param_3 + param_4);\n      param_2 = param_2 + 1;\n    }" ({ "{") (expression_statement "iVar1 = memcmp(param_1,param_3,param_4);" (assignment_expression "iVar1 = memcmp(param_1,param_3,param_4)" (identifier "iVar1") (= "=") (call_expression "memcmp(param_1,param_3,param_4)" (identifier "memcmp") (argument_list "(param_1,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        return lVar2;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return lVar2;\n      }" ({ "{") (return_statement "return lVar2;" (return "return") (identifier "lVar2") (; ";")) (} "}"))) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" (identifier "lVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "param_3 = (void *)((long)param_3 + param_4);" (assignment_expression "param_3 = (void *)((long)param_3 + param_4)" (identifier "param_3") (= "=") (cast_expression "(void *)((long)param_3 + param_4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_3 + param_4)" (( "(") (binary_expression "(long)param_3 + param_4" (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3")) (+ "+") (identifier "param_4")) () ")")))) (; ";")) (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"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return lVar2;" (return "return") (identifier "lVar2") (; ";")) (} "}")))

char * function_1(char *value,char **var_2,char *var_5,size_t var_6)

{
  int var_4;
  char **var_7;
  char *var_1;
  
  var_1 = *var_2;
  if (var_1 != (char *)0x0) {
    var_7 = var_2 + 1;
    do {
      var_4 = var_3(value,var_5,var_6);
      if (var_4 == 0) {
        return var_1;
      }
      var_1 = *var_7;
      var_5 = var_5 + var_6;
      var_7 = var_7 + 1;
    } while (var_1 != (char *)0x0);
  }
  return var_1;
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

long MASKED(void *param_1,long *param_2,void *param_3,size_t param_4)

{
  int iVar1;
  long lVar2;
  
  lVar2 = *param_2;
  if (lVar2 != 0) {
    param_2 = param_2 + 1;
    do {
      iVar1 = memcmp(param_1,param_3,param_4);
      if (iVar1 == 0) {
        return lVar2;
      }
      lVar2 = *param_2;
      param_3 = (void *)((long)param_3 + param_4);
      param_2 = param_2 + 1;
    } while (lVar2 != 0);
  }
  return lVar2;
}

