
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

char * bash_groupname_completion_function(char *text,int state)

{
  size_t sVar1;
  char *pcVar2;
  group *pgVar3;
  int iVar4;
  char *__dest;
  
  if (state == 0) {
    if (bash_groupname_completion_function::gname != (char *)0x0) {
      free(bash_groupname_completion_function::gname);
    }
    sVar1 = strlen(text);
    pcVar2 = (char *)xmalloc(sVar1 + 1);
    bash_groupname_completion_function::gname = strcpy(pcVar2,text);
    bash_groupname_completion_function::gnamelen = strlen(bash_groupname_completion_function::gname)
    ;
    setgrent();
  }
  do {
    pgVar3 = getgrent();
    if (pgVar3 == (group *)0x0) {
      endgrent();
      return (char *)0x0;
    }
    pcVar2 = pgVar3->gr_name;
  } while ((bash_groupname_completion_function::gnamelen != 0) &&
          ((*bash_groupname_completion_function::gname != *pcVar2 ||
           (iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,
                            bash_groupname_completion_function::gnamelen), iVar4 != 0))));
  sVar1 = strlen(pcVar2);
  __dest = (char *)xmalloc(sVar1 + 1);
  pcVar2 = strcpy(__dest,pcVar2);
  return pcVar2;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * bash_groupname_completion_function(char *param_1,int param_2)

{
  size_t sVar1;
  char *pcVar2;
  group *pgVar3;
  int iVar4;
  char *__dest;
  
  if (param_2 == 0) {
    if (DAT_00179418 != (char *)0x0) {
      free(DAT_00179418);
    }
    sVar1 = strlen(param_1);
    pcVar2 = (char *)xmalloc(sVar1 + 1);
    DAT_00179418 = strcpy(pcVar2,param_1);
    DAT_00179414 = strlen(DAT_00179418);
    setgrent();
  }
  do {
    pgVar3 = getgrent();
    if (pgVar3 == (group *)0x0) {
      endgrent();
      return (char *)0x0;
    }
    pcVar2 = pgVar3->gr_name;
  } while ((DAT_00179414 != 0) &&
          ((*DAT_00179418 != *pcVar2 ||
           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));
  sVar1 = strlen(pcVar2);
  __dest = (char *)xmalloc(sVar1 + 1);
  pcVar2 = strcpy(__dest,pcVar2);
  return pcVar2;
}


PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0xcdf49
SUB ESP,0x14
MOV ECX,dword ptr [ESP + 0x24]
TEST ECX,ECX
JNZ 0x000a4120
MOV EAX,dword ptr [EBX + 0x7418]
TEST EAX,EAX
JZ 0x000a40de
SUB ESP,0xc
PUSH EAX
CALL 0x0002e200
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [ESP + 0x2c]
CALL 0x0002e760
ADD EAX,0x1
MOV dword ptr [ESP],EAX
CALL 0x000ad700
POP ESI
POP EDX
PUSH dword ptr [ESP + 0x28]
PUSH EAX
CALL 0x0002e580
MOV dword ptr [ESP],EAX
MOV dword ptr [EBX + 0x7418],EAX
CALL 0x0002e760
ADD ESP,0x10
MOV dword ptr [EBX + 0x7414],EAX
CALL 0x0002e9d0
LEA ESI,[ESI]
CALL 0x0002e910
TEST EAX,EAX
JZ 0x000a4180
MOV EDX,dword ptr [EBX + 0x7414]
MOV ESI,dword ptr [EAX]
TEST EDX,EDX
JZ 0x000a4154
MOV EAX,dword ptr [EBX + 0x7418]
MOVZX ECX,byte ptr [ESI]
CMP byte ptr [EAX],CL
JNZ 0x000a4120
SUB ESP,0x4
PUSH EDX
PUSH ESI
PUSH EAX
CALL 0x0002ec30
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000a4120
SUB ESP,0xc
PUSH ESI
CALL 0x0002e760
ADD EAX,0x1
MOV dword ptr [ESP],EAX
CALL 0x000ad700
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x0002e580
ADD ESP,0x10
ADD ESP,0x14
POP EBX
POP ESI
RET
MOV dword ptr [ESP + 0xc],EAX
CALL 0x0002e090
MOV EAX,dword ptr [ESP + 0xc]
JMP 0x000a4174
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * bash_groupname_completion_function(char *param_1,int param_2)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  group *pgVar3;\n  int iVar4;\n  char *__dest;\n  \n  if (param_2 == 0) {\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }\n  do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));\n  sVar1 = strlen(pcVar2);\n  __dest = (char *)xmalloc(sVar1 + 1);\n  pcVar2 = strcpy(__dest,pcVar2);\n  return pcVar2;\n}\n\n" comment (function_definition "char * bash_groupname_completion_function(char *param_1,int param_2)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  group *pgVar3;\n  int iVar4;\n  char *__dest;\n  \n  if (param_2 == 0) {\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }\n  do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));\n  sVar1 = strlen(pcVar2);\n  __dest = (char *)xmalloc(sVar1 + 1);\n  pcVar2 = strcpy(__dest,pcVar2);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* bash_groupname_completion_function(char *param_1,int param_2)" * (function_declarator "bash_groupname_completion_function(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  group *pgVar3;\n  int iVar4;\n  char *__dest;\n  \n  if (param_2 == 0) {\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }\n  do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));\n  sVar1 = strlen(pcVar2);\n  __dest = (char *)xmalloc(sVar1 + 1);\n  pcVar2 = strcpy(__dest,pcVar2);\n  return pcVar2;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "group *pgVar3;" type_identifier (pointer_declarator "*pgVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (if_statement "if (param_2 == 0) {\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }" { (if_statement "if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }" if (parenthesized_expression "(DAT_00179418 != (char *)0x0)" ( (binary_expression "DAT_00179418 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(DAT_00179418);\n    }" { (expression_statement "free(DAT_00179418);" (call_expression "free(DAT_00179418)" identifier (argument_list "(DAT_00179418)" ( identifier ))) ;) })) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pcVar2 = (char *)xmalloc(sVar1 + 1);" (assignment_expression "pcVar2 = (char *)xmalloc(sVar1 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 1)" identifier (argument_list "(sVar1 + 1)" ( (binary_expression "sVar1 + 1" identifier + number_literal) ))))) ;) (expression_statement "DAT_00179418 = strcpy(pcVar2,param_1);" (assignment_expression "DAT_00179418 = strcpy(pcVar2,param_1)" identifier = (call_expression "strcpy(pcVar2,param_1)" identifier (argument_list "(pcVar2,param_1)" ( identifier , identifier )))) ;) (expression_statement "DAT_00179414 = strlen(DAT_00179418);" (assignment_expression "DAT_00179414 = strlen(DAT_00179418)" identifier = (call_expression "strlen(DAT_00179418)" identifier (argument_list "(DAT_00179418)" ( identifier )))) ;) (expression_statement "setgrent();" (call_expression "setgrent()" identifier (argument_list "()" ( ))) ;) })) (do_statement "do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));" do (compound_statement "{\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  }" { (expression_statement "pgVar3 = getgrent();" (assignment_expression "pgVar3 = getgrent()" identifier = (call_expression "getgrent()" identifier (argument_list "()" ( )))) ;) (if_statement "if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }" if (parenthesized_expression "(pgVar3 == (group *)0x0)" ( (binary_expression "pgVar3 == (group *)0x0" identifier == (cast_expression "(group *)0x0" ( (type_descriptor "group *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      endgrent();\n      return (char *)0x0;\n    }" { (expression_statement "endgrent();" (call_expression "endgrent()" identifier (argument_list "()" ( ))) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar2 = pgVar3->gr_name;" (assignment_expression "pcVar2 = pgVar3->gr_name" identifier = (field_expression "pgVar3->gr_name" identifier -> field_identifier)) ;) }) while (parenthesized_expression "((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))))" ( (binary_expression "(DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0)))" (parenthesized_expression "(DAT_00179414 != 0)" ( (binary_expression "DAT_00179414 != 0" identifier != number_literal) )) && (parenthesized_expression "((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0)))" ( (parenthesized_expression "(*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))" ( (binary_expression "*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0)" (binary_expression "*DAT_00179418 != *pcVar2" (pointer_expression "*DAT_00179418" * identifier) != (pointer_expression "*pcVar2" * identifier)) || (parenthesized_expression "(iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0)" ( (comma_expression "iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0" (assignment_expression "iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414)" identifier = (call_expression "strncmp(DAT_00179418,pcVar2,DAT_00179414)" identifier (argument_list "(DAT_00179418,pcVar2,DAT_00179414)" ( identifier , identifier , identifier )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) ))) )) ;) (expression_statement "sVar1 = strlen(pcVar2);" (assignment_expression "sVar1 = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar1 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar1 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 1)" identifier (argument_list "(sVar1 + 1)" ( (binary_expression "sVar1 + 1" identifier + number_literal) ))))) ;) (expression_statement "pcVar2 = strcpy(__dest,pcVar2);" (assignment_expression "pcVar2 = strcpy(__dest,pcVar2)" identifier = (call_expression "strcpy(__dest,pcVar2)" identifier (argument_list "(__dest,pcVar2)" ( identifier , identifier )))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * bash_groupname_completion_function(char *text,int state)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  group *pgVar3;\n  int iVar4;\n  char *__dest;\n  \n  if (state == 0) {\n    if (bash_groupname_completion_function::gname != (char *)0x0) {\n      free(bash_groupname_completion_function::gname);\n    }\n    sVar1 = strlen(text);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    bash_groupname_completion_function::gname = strcpy(pcVar2,text);\n    bash_groupname_completion_function::gnamelen = strlen(bash_groupname_completion_function::gname)\n    ;\n    setgrent();\n  }\n  do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((bash_groupname_completion_function::gnamelen != 0) &&\n          ((*bash_groupname_completion_function::gname != *pcVar2 ||\n           (iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen), iVar4 != 0))));\n  sVar1 = strlen(pcVar2);\n  __dest = (char *)xmalloc(sVar1 + 1);\n  pcVar2 = strcpy(__dest,pcVar2);\n  return pcVar2;\n}\n\n" comment comment (function_definition "char * bash_groupname_completion_function(char *text,int state)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  group *pgVar3;\n  int iVar4;\n  char *__dest;\n  \n  if (state == 0) {\n    if (bash_groupname_completion_function::gname != (char *)0x0) {\n      free(bash_groupname_completion_function::gname);\n    }\n    sVar1 = strlen(text);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    bash_groupname_completion_function::gname = strcpy(pcVar2,text);\n    bash_groupname_completion_function::gnamelen = strlen(bash_groupname_completion_function::gname)\n    ;\n    setgrent();\n  }\n  do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((bash_groupname_completion_function::gnamelen != 0) &&\n          ((*bash_groupname_completion_function::gname != *pcVar2 ||\n           (iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen), iVar4 != 0))));\n  sVar1 = strlen(pcVar2);\n  __dest = (char *)xmalloc(sVar1 + 1);\n  pcVar2 = strcpy(__dest,pcVar2);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* bash_groupname_completion_function(char *text,int state)" * (function_declarator "bash_groupname_completion_function(char *text,int state)" identifier (parameter_list "(char *text,int state)" ( (parameter_declaration "char *text" primitive_type (pointer_declarator "*text" * identifier)) , (parameter_declaration "int state" primitive_type identifier) )))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  group *pgVar3;\n  int iVar4;\n  char *__dest;\n  \n  if (state == 0) {\n    if (bash_groupname_completion_function::gname != (char *)0x0) {\n      free(bash_groupname_completion_function::gname);\n    }\n    sVar1 = strlen(text);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    bash_groupname_completion_function::gname = strcpy(pcVar2,text);\n    bash_groupname_completion_function::gnamelen = strlen(bash_groupname_completion_function::gname)\n    ;\n    setgrent();\n  }\n  do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((bash_groupname_completion_function::gnamelen != 0) &&\n          ((*bash_groupname_completion_function::gname != *pcVar2 ||\n           (iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen), iVar4 != 0))));\n  sVar1 = strlen(pcVar2);\n  __dest = (char *)xmalloc(sVar1 + 1);\n  pcVar2 = strcpy(__dest,pcVar2);\n  return pcVar2;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "group *pgVar3;" type_identifier (pointer_declarator "*pgVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (if_statement "if (state == 0) {\n    if (bash_groupname_completion_function::gname != (char *)0x0) {\n      free(bash_groupname_completion_function::gname);\n    }\n    sVar1 = strlen(text);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    bash_groupname_completion_function::gname = strcpy(pcVar2,text);\n    bash_groupname_completion_function::gnamelen = strlen(bash_groupname_completion_function::gname)\n    ;\n    setgrent();\n  }" if (parenthesized_expression "(state == 0)" ( (binary_expression "state == 0" identifier == number_literal) )) (compound_statement "{\n    if (bash_groupname_completion_function::gname != (char *)0x0) {\n      free(bash_groupname_completion_function::gname);\n    }\n    sVar1 = strlen(text);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    bash_groupname_completion_function::gname = strcpy(pcVar2,text);\n    bash_groupname_completion_function::gnamelen = strlen(bash_groupname_completion_function::gname)\n    ;\n    setgrent();\n  }" { (if_statement "if (bash_groupname_completion_function::gname != (char *)0x0) {\n      free(bash_groupname_completion_function::gname);\n    }" if (parenthesized_expression "(bash_groupname_completion_function::gname != (char *)0x0)" ( (binary_expression "bash_groupname_completion_function::gname != (char *)0x0" identifier (ERROR "::gname" : : identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(bash_groupname_completion_function::gname);\n    }" { (labeled_statement "free(bash_groupname_completion_function::gname);" statement_identifier (ERROR "(bash_groupname_completion_function:" ( (type_descriptor "bash_groupname_completion_function" type_identifier) :) : (expression_statement "gname);" identifier (ERROR ")" )) ;)) })) (expression_statement "sVar1 = strlen(text);" (assignment_expression "sVar1 = strlen(text)" identifier = (call_expression "strlen(text)" identifier (argument_list "(text)" ( identifier )))) ;) (expression_statement "pcVar2 = (char *)xmalloc(sVar1 + 1);" (assignment_expression "pcVar2 = (char *)xmalloc(sVar1 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 1)" identifier (argument_list "(sVar1 + 1)" ( (binary_expression "sVar1 + 1" identifier + number_literal) ))))) ;) (labeled_statement "bash_groupname_completion_function::gname = strcpy(pcVar2,text);" statement_identifier : (ERROR ":" :) (expression_statement "gname = strcpy(pcVar2,text);" (assignment_expression "gname = strcpy(pcVar2,text)" identifier = (call_expression "strcpy(pcVar2,text)" identifier (argument_list "(pcVar2,text)" ( identifier , identifier )))) ;)) (labeled_statement "bash_groupname_completion_function::gnamelen = strlen(bash_groupname_completion_function::gname)\n    ;" statement_identifier : (ERROR ":" :) (expression_statement "gnamelen = strlen(bash_groupname_completion_function::gname)\n    ;" (assignment_expression "gnamelen = strlen(bash_groupname_completion_function::gname)" identifier = (call_expression "strlen(bash_groupname_completion_function::gname)" identifier (argument_list "(bash_groupname_completion_function::gname)" ( identifier (ERROR "::gname" : : identifier) )))) ;)) (expression_statement "setgrent();" (call_expression "setgrent()" identifier (argument_list "()" ( ))) ;) })) (do_statement "do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((bash_groupname_completion_function::gnamelen != 0) &&\n          ((*bash_groupname_completion_function::gname != *pcVar2 ||\n           (iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen), iVar4 != 0))));" do (compound_statement "{\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  }" { (expression_statement "pgVar3 = getgrent();" (assignment_expression "pgVar3 = getgrent()" identifier = (call_expression "getgrent()" identifier (argument_list "()" ( )))) ;) (if_statement "if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }" if (parenthesized_expression "(pgVar3 == (group *)0x0)" ( (binary_expression "pgVar3 == (group *)0x0" identifier == (cast_expression "(group *)0x0" ( (type_descriptor "group *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      endgrent();\n      return (char *)0x0;\n    }" { (expression_statement "endgrent();" (call_expression "endgrent()" identifier (argument_list "()" ( ))) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar2 = pgVar3->gr_name;" (assignment_expression "pcVar2 = pgVar3->gr_name" identifier = (field_expression "pgVar3->gr_name" identifier -> field_identifier)) ;) }) while (parenthesized_expression "((bash_groupname_completion_function::gnamelen != 0) &&\n          ((*bash_groupname_completion_function::gname != *pcVar2 ||\n           (iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen), iVar4 != 0))))" ( (binary_expression "(bash_groupname_completion_function::gnamelen != 0) &&\n          ((*bash_groupname_completion_function::gname != *pcVar2 ||\n           (iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen), iVar4 != 0)))" (parenthesized_expression "(bash_groupname_completion_function::gnamelen != 0)" ( (binary_expression "bash_groupname_completion_function::gnamelen != 0" identifier (ERROR "::gnamelen" : : identifier) != number_literal) )) && (parenthesized_expression "((*bash_groupname_completion_function::gname != *pcVar2 ||\n           (iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen), iVar4 != 0)))" ( (parenthesized_expression "(*bash_groupname_completion_function::gname != *pcVar2 ||\n           (iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen), iVar4 != 0))" ( (binary_expression "*bash_groupname_completion_function::gname != *pcVar2 ||\n           (iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen), iVar4 != 0)" (binary_expression "*bash_groupname_completion_function::gname != *pcVar2" (pointer_expression "*bash_groupname_completion_function" * identifier) (ERROR "::gname" : : identifier) != (pointer_expression "*pcVar2" * identifier)) || (parenthesized_expression "(iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen), iVar4 != 0)" ( (comma_expression "iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen), iVar4 != 0" (assignment_expression "iVar4 = strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen)" identifier = (call_expression "strncmp(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen)" identifier (argument_list "(bash_groupname_completion_function::gname,pcVar2,\n                            bash_groupname_completion_function::gnamelen)" ( identifier (ERROR "::gname" : : identifier) , identifier , identifier (ERROR "::gnamelen" : : identifier) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) ))) )) ;) (expression_statement "sVar1 = strlen(pcVar2);" (assignment_expression "sVar1 = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar1 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar1 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 1)" identifier (argument_list "(sVar1 + 1)" ( (binary_expression "sVar1 + 1" identifier + number_literal) ))))) ;) (expression_statement "pcVar2 = strcpy(__dest,pcVar2);" (assignment_expression "pcVar2 = strcpy(__dest,pcVar2)" identifier = (call_expression "strcpy(__dest,pcVar2)" identifier (argument_list "(__dest,pcVar2)" ( identifier , identifier )))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "char * bash_groupname_completion_function(char *param_1,int param_2)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  group *pgVar3;\n  int iVar4;\n  char *__dest;\n  \n  if (param_2 == 0) {\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }\n  do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));\n  sVar1 = strlen(pcVar2);\n  __dest = (char *)xmalloc(sVar1 + 1);\n  pcVar2 = strcpy(__dest,pcVar2);\n  return pcVar2;\n}\n\n" (function_definition "char * bash_groupname_completion_function(char *param_1,int param_2)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  group *pgVar3;\n  int iVar4;\n  char *__dest;\n  \n  if (param_2 == 0) {\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }\n  do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));\n  sVar1 = strlen(pcVar2);\n  __dest = (char *)xmalloc(sVar1 + 1);\n  pcVar2 = strcpy(__dest,pcVar2);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* bash_groupname_completion_function(char *param_1,int param_2)" * (function_declarator "bash_groupname_completion_function(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  group *pgVar3;\n  int iVar4;\n  char *__dest;\n  \n  if (param_2 == 0) {\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }\n  do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));\n  sVar1 = strlen(pcVar2);\n  __dest = (char *)xmalloc(sVar1 + 1);\n  pcVar2 = strcpy(__dest,pcVar2);\n  return pcVar2;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "group *pgVar3;" type_identifier (pointer_declarator "*pgVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (if_statement "if (param_2 == 0) {\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }" { (if_statement "if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }" if (parenthesized_expression "(DAT_00179418 != (char *)0x0)" ( (binary_expression "DAT_00179418 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(DAT_00179418);\n    }" { (expression_statement "free(DAT_00179418);" (call_expression "free(DAT_00179418)" identifier (argument_list "(DAT_00179418)" ( identifier ))) ;) })) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pcVar2 = (char *)xmalloc(sVar1 + 1);" (assignment_expression "pcVar2 = (char *)xmalloc(sVar1 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 1)" identifier (argument_list "(sVar1 + 1)" ( (binary_expression "sVar1 + 1" identifier + number_literal) ))))) ;) (expression_statement "DAT_00179418 = strcpy(pcVar2,param_1);" (assignment_expression "DAT_00179418 = strcpy(pcVar2,param_1)" identifier = (call_expression "strcpy(pcVar2,param_1)" identifier (argument_list "(pcVar2,param_1)" ( identifier , identifier )))) ;) (expression_statement "DAT_00179414 = strlen(DAT_00179418);" (assignment_expression "DAT_00179414 = strlen(DAT_00179418)" identifier = (call_expression "strlen(DAT_00179418)" identifier (argument_list "(DAT_00179418)" ( identifier )))) ;) (expression_statement "setgrent();" (call_expression "setgrent()" identifier (argument_list "()" ( ))) ;) })) (do_statement "do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));" do (compound_statement "{\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  }" { (expression_statement "pgVar3 = getgrent();" (assignment_expression "pgVar3 = getgrent()" identifier = (call_expression "getgrent()" identifier (argument_list "()" ( )))) ;) (if_statement "if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }" if (parenthesized_expression "(pgVar3 == (group *)0x0)" ( (binary_expression "pgVar3 == (group *)0x0" identifier == (cast_expression "(group *)0x0" ( (type_descriptor "group *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      endgrent();\n      return (char *)0x0;\n    }" { (expression_statement "endgrent();" (call_expression "endgrent()" identifier (argument_list "()" ( ))) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar2 = pgVar3->gr_name;" (assignment_expression "pcVar2 = pgVar3->gr_name" identifier = (field_expression "pgVar3->gr_name" identifier -> field_identifier)) ;) }) while (parenthesized_expression "((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))))" ( (binary_expression "(DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0)))" (parenthesized_expression "(DAT_00179414 != 0)" ( (binary_expression "DAT_00179414 != 0" identifier != number_literal) )) && (parenthesized_expression "((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0)))" ( (parenthesized_expression "(*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))" ( (binary_expression "*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0)" (binary_expression "*DAT_00179418 != *pcVar2" (pointer_expression "*DAT_00179418" * identifier) != (pointer_expression "*pcVar2" * identifier)) || (parenthesized_expression "(iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0)" ( (comma_expression "iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0" (assignment_expression "iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414)" identifier = (call_expression "strncmp(DAT_00179418,pcVar2,DAT_00179414)" identifier (argument_list "(DAT_00179418,pcVar2,DAT_00179414)" ( identifier , identifier , identifier )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) ))) )) ;) (expression_statement "sVar1 = strlen(pcVar2);" (assignment_expression "sVar1 = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar1 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar1 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 1)" identifier (argument_list "(sVar1 + 1)" ( (binary_expression "sVar1 + 1" identifier + number_literal) ))))) ;) (expression_statement "pcVar2 = strcpy(__dest,pcVar2);" (assignment_expression "pcVar2 = strcpy(__dest,pcVar2)" identifier = (call_expression "strcpy(__dest,pcVar2)" identifier (argument_list "(__dest,pcVar2)" ( identifier , identifier )))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) != (pointer_expression * IDENT)) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) ))) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (return_statement return IDENT ;) })))
(function_definition "char * bash_groupname_completion_function(char *param_1,int param_2)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  group *pgVar3;\n  int iVar4;\n  char *__dest;\n  \n  if (param_2 == 0) {\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }\n  do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));\n  sVar1 = strlen(pcVar2);\n  __dest = (char *)xmalloc(sVar1 + 1);\n  pcVar2 = strcpy(__dest,pcVar2);\n  return pcVar2;\n}" (primitive_type "char") (pointer_declarator "* bash_groupname_completion_function(char *param_1,int param_2)" (* "*") (function_declarator "bash_groupname_completion_function(char *param_1,int param_2)" (identifier "bash_groupname_completion_function") (parameter_list "(char *param_1,int param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  group *pgVar3;\n  int iVar4;\n  char *__dest;\n  \n  if (param_2 == 0) {\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }\n  do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));\n  sVar1 = strlen(pcVar2);\n  __dest = (char *)xmalloc(sVar1 + 1);\n  pcVar2 = strcpy(__dest,pcVar2);\n  return pcVar2;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "group *pgVar3;" (type_identifier "group") (pointer_declarator "*pgVar3" (* "*") (identifier "pgVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (if_statement "if (param_2 == 0) {\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }\n    sVar1 = strlen(param_1);\n    pcVar2 = (char *)xmalloc(sVar1 + 1);\n    DAT_00179418 = strcpy(pcVar2,param_1);\n    DAT_00179414 = strlen(DAT_00179418);\n    setgrent();\n  }" ({ "{") (if_statement "if (DAT_00179418 != (char *)0x0) {\n      free(DAT_00179418);\n    }" (if "if") (parenthesized_expression "(DAT_00179418 != (char *)0x0)" (( "(") (binary_expression "DAT_00179418 != (char *)0x0" (identifier "DAT_00179418") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      free(DAT_00179418);\n    }" ({ "{") (expression_statement "free(DAT_00179418);" (call_expression "free(DAT_00179418)" (identifier "free") (argument_list "(DAT_00179418)" (( "(") (identifier "DAT_00179418") () ")"))) (; ";")) (} "}"))) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" (identifier "sVar1") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "pcVar2 = (char *)xmalloc(sVar1 + 1);" (assignment_expression "pcVar2 = (char *)xmalloc(sVar1 + 1)" (identifier "pcVar2") (= "=") (cast_expression "(char *)xmalloc(sVar1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar1 + 1)" (identifier "xmalloc") (argument_list "(sVar1 + 1)" (( "(") (binary_expression "sVar1 + 1" (identifier "sVar1") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "DAT_00179418 = strcpy(pcVar2,param_1);" (assignment_expression "DAT_00179418 = strcpy(pcVar2,param_1)" (identifier "DAT_00179418") (= "=") (call_expression "strcpy(pcVar2,param_1)" (identifier "strcpy") (argument_list "(pcVar2,param_1)" (( "(") (identifier "pcVar2") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "DAT_00179414 = strlen(DAT_00179418);" (assignment_expression "DAT_00179414 = strlen(DAT_00179418)" (identifier "DAT_00179414") (= "=") (call_expression "strlen(DAT_00179418)" (identifier "strlen") (argument_list "(DAT_00179418)" (( "(") (identifier "DAT_00179418") () ")")))) (; ";")) (expression_statement "setgrent();" (call_expression "setgrent()" (identifier "setgrent") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (do_statement "do {\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  } while ((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));" (do "do") (compound_statement "{\n    pgVar3 = getgrent();\n    if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }\n    pcVar2 = pgVar3->gr_name;\n  }" ({ "{") (expression_statement "pgVar3 = getgrent();" (assignment_expression "pgVar3 = getgrent()" (identifier "pgVar3") (= "=") (call_expression "getgrent()" (identifier "getgrent") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (pgVar3 == (group *)0x0) {\n      endgrent();\n      return (char *)0x0;\n    }" (if "if") (parenthesized_expression "(pgVar3 == (group *)0x0)" (( "(") (binary_expression "pgVar3 == (group *)0x0" (identifier "pgVar3") (== "==") (cast_expression "(group *)0x0" (( "(") (type_descriptor "group *" (type_identifier "group") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      endgrent();\n      return (char *)0x0;\n    }" ({ "{") (expression_statement "endgrent();" (call_expression "endgrent()" (identifier "endgrent") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return (char *)0x0;" (return "return") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "pcVar2 = pgVar3->gr_name;" (assignment_expression "pcVar2 = pgVar3->gr_name" (identifier "pcVar2") (= "=") (field_expression "pgVar3->gr_name" (identifier "pgVar3") (-> "->") (field_identifier "gr_name"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))))" (( "(") (binary_expression "(DAT_00179414 != 0) &&\n          ((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0)))" (parenthesized_expression "(DAT_00179414 != 0)" (( "(") (binary_expression "DAT_00179414 != 0" (identifier "DAT_00179414") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0)))" (( "(") (parenthesized_expression "(*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))" (( "(") (binary_expression "*DAT_00179418 != *pcVar2 ||\n           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0)" (binary_expression "*DAT_00179418 != *pcVar2" (pointer_expression "*DAT_00179418" (* "*") (identifier "DAT_00179418")) (!= "!=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (|| "||") (parenthesized_expression "(iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0)" (( "(") (comma_expression "iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0" (assignment_expression "iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414)" (identifier "iVar4") (= "=") (call_expression "strncmp(DAT_00179418,pcVar2,DAT_00179414)" (identifier "strncmp") (argument_list "(DAT_00179418,pcVar2,DAT_00179414)" (( "(") (identifier "DAT_00179418") (, ",") (identifier "pcVar2") (, ",") (identifier "DAT_00179414") () ")")))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")"))) () ")")) () ")"))) () ")")) (; ";")) (expression_statement "sVar1 = strlen(pcVar2);" (assignment_expression "sVar1 = strlen(pcVar2)" (identifier "sVar1") (= "=") (call_expression "strlen(pcVar2)" (identifier "strlen") (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")")))) (; ";")) (expression_statement "__dest = (char *)xmalloc(sVar1 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar1 + 1)" (identifier "__dest") (= "=") (cast_expression "(char *)xmalloc(sVar1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar1 + 1)" (identifier "xmalloc") (argument_list "(sVar1 + 1)" (( "(") (binary_expression "sVar1 + 1" (identifier "sVar1") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "pcVar2 = strcpy(__dest,pcVar2);" (assignment_expression "pcVar2 = strcpy(__dest,pcVar2)" (identifier "pcVar2") (= "=") (call_expression "strcpy(__dest,pcVar2)" (identifier "strcpy") (argument_list "(__dest,pcVar2)" (( "(") (identifier "__dest") (, ",") (identifier "pcVar2") () ")")))) (; ";")) (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

char * function_1(char *text,int var_1)

{
  size_t var_4;
  char *pcVar2;
  type_1 *var_8;
  int var_11;
  char *__dest;
  
  if (var_1 == 0) {
    if (function_1::gname != (char *)0x0) {
      free(function_1::gname);
    }
    var_4 = var_2(text);
    pcVar2 = (char *)var_3(var_4 + 1);
    bash_groupname_completion_function::gname = var_5(pcVar2,text);
    bash_groupname_completion_function::gnamelen = var_2(function_1::gname)
    ;
    var_6();
  }
  do {
    var_8 = var_7();
    if (var_8 == (type_1 *)0x0) {
      var_9();
      return (char *)0x0;
    }
    pcVar2 = var_8->gr_name;
  } while ((function_1::gnamelen != 0) &&
          ((*function_1::gname != *pcVar2 ||
           (var_11 = var_10(function_1::gname,pcVar2,
                            function_1::gnamelen), var_11 != 0))));
  var_4 = var_2(pcVar2);
  __dest = (char *)var_3(var_4 + 1);
  pcVar2 = var_5(__dest,pcVar2);
  return pcVar2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * MASKED(char *param_1,int param_2)

{
  size_t sVar1;
  char *pcVar2;
  group *pgVar3;
  int iVar4;
  char *__dest;
  
  if (param_2 == 0) {
    if (DAT_00179418 != (char *)0x0) {
      free(DAT_00179418);
    }
    sVar1 = strlen(param_1);
    pcVar2 = (char *)xmalloc(sVar1 + 1);
    DAT_00179418 = strcpy(pcVar2,param_1);
    DAT_00179414 = strlen(DAT_00179418);
    setgrent();
  }
  do {
    pgVar3 = getgrent();
    if (pgVar3 == (group *)0x0) {
      endgrent();
      return (char *)0x0;
    }
    pcVar2 = pgVar3->gr_name;
  } while ((DAT_00179414 != 0) &&
          ((*DAT_00179418 != *pcVar2 ||
           (iVar4 = strncmp(DAT_00179418,pcVar2,DAT_00179414), iVar4 != 0))));
  sVar1 = strlen(pcVar2);
  __dest = (char *)xmalloc(sVar1 + 1);
  pcVar2 = strcpy(__dest,pcVar2);
  return pcVar2;
}

