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

gid_t * bb_getgroups(int *ngroups,gid_t *group_array)

{
}



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

__gid_t * __regparm3 FUN_000a5208(int *param_1)

{
  int *piVar1;
  __gid_t *__list;
  int iVar2;
  
  piVar1 = DAT_000d16fc;
  iVar2 = 0x20;
  if ((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)) {
    iVar2 = 0x20;
  }
  while( true ) {
    __list = (__gid_t *)FUN_00019b52();
    iVar2 = getgroups(iVar2,__list);
    if (-1 < iVar2) {
      __list[iVar2] = 0xffffffff;
      if (param_1 != (int *)0x0) {
        *param_1 = iVar2;
      }
      return __list;
    }
    if (*piVar1 != 0x16) break;
    iVar2 = getgroups(0,__list);
  }
                    /* WARNING: Subroutine does not return */
  FUN_00018e79("getgroups");
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
CALL 0x00017640
ADD EBX,0x2b80c
MOV EDI,EAX
MOV ESI,EDX
MOV ECX,0x20
TEST EAX,EAX
JNZ 0x000a5294
MOV EBP,dword ptr [EBX + 0xcdc]
LEA EDX,[ECX*0x4 + 0x4]
MOV dword ptr [ESP + 0xc],ECX
MOV EAX,ESI
CALL 0x00019b52
MOV ESI,EAX
SUB ESP,0x8
PUSH EAX
MOV ECX,dword ptr [ESP + 0x18]
PUSH ECX
CALL 0x000170e0
ADD ESP,0x10
TEST EAX,EAX
JS 0x000a526d
MOV dword ptr [ESI + EAX*0x4],0xffffffff
TEST EDI,EDI
JZ 0x000a5263
MOV dword ptr [EDI],EAX
MOV EAX,ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP dword ptr [EBP],0x16
JNZ 0x000a5285
SUB ESP,0x8
PUSH ESI
PUSH 0x0
CALL 0x000170e0
MOV ECX,EAX
ADD ESP,0x10
JMP 0x000a522d
SUB ESP,0xc
LEA EAX,[EBX + 0xffffcc79]
PUSH EAX
CALL 0x00018e79
MOV ECX,dword ptr [EAX]
CMP ECX,0x20
JGE 0x000a5227
MOV ECX,0x20
JMP 0x000a5227
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\n__gid_t * __regparm3 FUN_000a5208(int *param_1)\n\n{\n  int *piVar1;\n  __gid_t *__list;\n  int iVar2;\n  \n  piVar1 = DAT_000d16fc;\n  iVar2 = 0x20;\n  if ((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)) {\n    iVar2 = 0x20;\n  }\n  while( true ) {\n    __list = (__gid_t *)FUN_00019b52();\n    iVar2 = getgroups(iVar2,__list);\n    if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }\n    if (*piVar1 != 0x16) break;\n    iVar2 = getgroups(0,__list);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00018e79("getgroups");\n}\n\n" comment (ERROR "__gid_t * __regparm3 FUN_000a5208(int *param_1)" (binary_expression "__gid_t * __regparm3 FUN_000a5208(int *param_1)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000a5208(int *param_1)" identifier (argument_list "(int *param_1)" ( (binary_expression "int *param_1" identifier * identifier) ))))) (compound_statement "{\n  int *piVar1;\n  __gid_t *__list;\n  int iVar2;\n  \n  piVar1 = DAT_000d16fc;\n  iVar2 = 0x20;\n  if ((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)) {\n    iVar2 = 0x20;\n  }\n  while( true ) {\n    __list = (__gid_t *)FUN_00019b52();\n    iVar2 = getgroups(iVar2,__list);\n    if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }\n    if (*piVar1 != 0x16) break;\n    iVar2 = getgroups(0,__list);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00018e79("getgroups");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "__gid_t *__list;" type_identifier (pointer_declarator "*__list" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = DAT_000d16fc;" (assignment_expression "piVar1 = DAT_000d16fc" identifier = identifier) ;) (expression_statement "iVar2 = 0x20;" (assignment_expression "iVar2 = 0x20" identifier = number_literal) ;) (if_statement "if ((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)) {\n    iVar2 = 0x20;\n  }" if (parenthesized_expression "((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20))" ( (binary_expression "(param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)" (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar2 = *param_1, iVar2 < 0x20)" ( (comma_expression "iVar2 = *param_1, iVar2 < 0x20" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) , (binary_expression "iVar2 < 0x20" identifier < number_literal)) ))) )) (compound_statement "{\n    iVar2 = 0x20;\n  }" { (expression_statement "iVar2 = 0x20;" (assignment_expression "iVar2 = 0x20" identifier = number_literal) ;) })) (while_statement "while( true ) {\n    __list = (__gid_t *)FUN_00019b52();\n    iVar2 = getgroups(iVar2,__list);\n    if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }\n    if (*piVar1 != 0x16) break;\n    iVar2 = getgroups(0,__list);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    __list = (__gid_t *)FUN_00019b52();\n    iVar2 = getgroups(iVar2,__list);\n    if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }\n    if (*piVar1 != 0x16) break;\n    iVar2 = getgroups(0,__list);\n  }" { (expression_statement "__list = (__gid_t *)FUN_00019b52();" (assignment_expression "__list = (__gid_t *)FUN_00019b52()" identifier = (cast_expression "(__gid_t *)FUN_00019b52()" ( (type_descriptor "__gid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b52()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar2 = getgroups(iVar2,__list);" (assignment_expression "iVar2 = getgroups(iVar2,__list)" identifier = (call_expression "getgroups(iVar2,__list)" identifier (argument_list "(iVar2,__list)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }" { (expression_statement "__list[iVar2] = 0xffffffff;" (assignment_expression "__list[iVar2] = 0xffffffff" (subscript_expression "__list[iVar2]" identifier [ identifier ]) = number_literal) ;) (if_statement "if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }" if (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_1 = iVar2;\n      }" { (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (return_statement "return __list;" return identifier ;) })) (if_statement "if (*piVar1 != 0x16) break;" if (parenthesized_expression "(*piVar1 != 0x16)" ( (binary_expression "*piVar1 != 0x16" (pointer_expression "*piVar1" * identifier) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = getgroups(0,__list);" (assignment_expression "iVar2 = getgroups(0,__list)" identifier = (call_expression "getgroups(0,__list)" identifier (argument_list "(0,__list)" ( number_literal , identifier )))) ;) })) comment (expression_statement "FUN_00018e79("getgroups");" (call_expression "FUN_00018e79("getgroups")" identifier (argument_list "("getgroups")" ( (string_literal ""getgroups"" " string_content ") ))) ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\ngid_t * bb_getgroups(int *ngroups,gid_t *group_array)\n\n{\n}\n\n" comment (function_definition "gid_t * bb_getgroups(int *ngroups,gid_t *group_array)\n\n{\n}" type_identifier (pointer_declarator "* bb_getgroups(int *ngroups,gid_t *group_array)" * (function_declarator "bb_getgroups(int *ngroups,gid_t *group_array)" identifier (parameter_list "(int *ngroups,gid_t *group_array)" ( (parameter_declaration "int *ngroups" primitive_type (pointer_declarator "*ngroups" * identifier)) , (parameter_declaration "gid_t *group_array" type_identifier (pointer_declarator "*group_array" * identifier)) )))) (compound_statement "{\n}" { })))
(translation_unit "__gid_t * __regparm3 FUN_000a5208(int *param_1)\n\n{\n  int *piVar1;\n  __gid_t *__list;\n  int iVar2;\n  \n  piVar1 = DAT_000d16fc;\n  iVar2 = 0x20;\n  if ((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)) {\n    iVar2 = 0x20;\n  }\n  while( true ) {\n    __list = (__gid_t *)FUN_00019b52();\n    iVar2 = getgroups(iVar2,__list);\n    if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }\n    if (*piVar1 != 0x16) break;\n    iVar2 = getgroups(0,__list);\n  }\n                    \n  FUN_00018e79("getgroups");\n}\n\n" (ERROR "__gid_t * __regparm3 FUN_000a5208(int *param_1)" (binary_expression "__gid_t * __regparm3 FUN_000a5208(int *param_1)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000a5208(int *param_1)" identifier (argument_list "(int *param_1)" ( (binary_expression "int *param_1" identifier * identifier) ))))) (compound_statement "{\n  int *piVar1;\n  __gid_t *__list;\n  int iVar2;\n  \n  piVar1 = DAT_000d16fc;\n  iVar2 = 0x20;\n  if ((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)) {\n    iVar2 = 0x20;\n  }\n  while( true ) {\n    __list = (__gid_t *)FUN_00019b52();\n    iVar2 = getgroups(iVar2,__list);\n    if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }\n    if (*piVar1 != 0x16) break;\n    iVar2 = getgroups(0,__list);\n  }\n                    \n  FUN_00018e79("getgroups");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "__gid_t *__list;" type_identifier (pointer_declarator "*__list" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = DAT_000d16fc;" (assignment_expression "piVar1 = DAT_000d16fc" identifier = identifier) ;) (expression_statement "iVar2 = 0x20;" (assignment_expression "iVar2 = 0x20" identifier = number_literal) ;) (if_statement "if ((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)) {\n    iVar2 = 0x20;\n  }" if (parenthesized_expression "((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20))" ( (binary_expression "(param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)" (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar2 = *param_1, iVar2 < 0x20)" ( (comma_expression "iVar2 = *param_1, iVar2 < 0x20" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) , (binary_expression "iVar2 < 0x20" identifier < number_literal)) ))) )) (compound_statement "{\n    iVar2 = 0x20;\n  }" { (expression_statement "iVar2 = 0x20;" (assignment_expression "iVar2 = 0x20" identifier = number_literal) ;) })) (while_statement "while( true ) {\n    __list = (__gid_t *)FUN_00019b52();\n    iVar2 = getgroups(iVar2,__list);\n    if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }\n    if (*piVar1 != 0x16) break;\n    iVar2 = getgroups(0,__list);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    __list = (__gid_t *)FUN_00019b52();\n    iVar2 = getgroups(iVar2,__list);\n    if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }\n    if (*piVar1 != 0x16) break;\n    iVar2 = getgroups(0,__list);\n  }" { (expression_statement "__list = (__gid_t *)FUN_00019b52();" (assignment_expression "__list = (__gid_t *)FUN_00019b52()" identifier = (cast_expression "(__gid_t *)FUN_00019b52()" ( (type_descriptor "__gid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b52()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar2 = getgroups(iVar2,__list);" (assignment_expression "iVar2 = getgroups(iVar2,__list)" identifier = (call_expression "getgroups(iVar2,__list)" identifier (argument_list "(iVar2,__list)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }" { (expression_statement "__list[iVar2] = 0xffffffff;" (assignment_expression "__list[iVar2] = 0xffffffff" (subscript_expression "__list[iVar2]" identifier [ identifier ]) = number_literal) ;) (if_statement "if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }" if (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_1 = iVar2;\n      }" { (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (return_statement "return __list;" return identifier ;) })) (if_statement "if (*piVar1 != 0x16) break;" if (parenthesized_expression "(*piVar1 != 0x16)" ( (binary_expression "*piVar1 != 0x16" (pointer_expression "*piVar1" * identifier) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = getgroups(0,__list);" (assignment_expression "iVar2 = getgroups(0,__list)" identifier = (call_expression "getgroups(0,__list)" identifier (argument_list "(0,__list)" ( number_literal , identifier )))) ;) })) (expression_statement "FUN_00018e79("getgroups");" (call_expression "FUN_00018e79("getgroups")" identifier (argument_list "("getgroups")" ( (string_literal ""getgroups"" " string_content ") ))) ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) ))))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression IDENT < LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) }))
(ERROR "__gid_t * __regparm3 FUN_000a5208(int *param_1)" (binary_expression "__gid_t * __regparm3 FUN_000a5208(int *param_1)" (identifier "__gid_t") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_000a5208(int *param_1)" (identifier "FUN_000a5208") (argument_list "(int *param_1)" (( "(") (binary_expression "int *param_1" (identifier "int") (* "*") (identifier "param_1")) () ")"))))) (compound_statement "{\n  int *piVar1;\n  __gid_t *__list;\n  int iVar2;\n  \n  piVar1 = DAT_000d16fc;\n  iVar2 = 0x20;\n  if ((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)) {\n    iVar2 = 0x20;\n  }\n  while( true ) {\n    __list = (__gid_t *)FUN_00019b52();\n    iVar2 = getgroups(iVar2,__list);\n    if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }\n    if (*piVar1 != 0x16) break;\n    iVar2 = getgroups(0,__list);\n  }\n                    \n  FUN_00018e79("getgroups");\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "__gid_t *__list;" (type_identifier "__gid_t") (pointer_declarator "*__list" (* "*") (identifier "__list")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "piVar1 = DAT_000d16fc;" (assignment_expression "piVar1 = DAT_000d16fc" (identifier "piVar1") (= "=") (identifier "DAT_000d16fc")) (; ";")) (expression_statement "iVar2 = 0x20;" (assignment_expression "iVar2 = 0x20" (identifier "iVar2") (= "=") (number_literal "0x20")) (; ";")) (if_statement "if ((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)) {\n    iVar2 = 0x20;\n  }" (if "if") (parenthesized_expression "((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20))" (( "(") (binary_expression "(param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)" (parenthesized_expression "(param_1 != (int *)0x0)" (( "(") (binary_expression "param_1 != (int *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = *param_1, iVar2 < 0x20)" (( "(") (comma_expression "iVar2 = *param_1, iVar2 < 0x20" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (binary_expression "iVar2 < 0x20" (identifier "iVar2") (< "<") (number_literal "0x20"))) () ")"))) () ")")) (compound_statement "{\n    iVar2 = 0x20;\n  }" ({ "{") (expression_statement "iVar2 = 0x20;" (assignment_expression "iVar2 = 0x20" (identifier "iVar2") (= "=") (number_literal "0x20")) (; ";")) (} "}"))) (while_statement "while( true ) {\n    __list = (__gid_t *)FUN_00019b52();\n    iVar2 = getgroups(iVar2,__list);\n    if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }\n    if (*piVar1 != 0x16) break;\n    iVar2 = getgroups(0,__list);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    __list = (__gid_t *)FUN_00019b52();\n    iVar2 = getgroups(iVar2,__list);\n    if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }\n    if (*piVar1 != 0x16) break;\n    iVar2 = getgroups(0,__list);\n  }" ({ "{") (expression_statement "__list = (__gid_t *)FUN_00019b52();" (assignment_expression "__list = (__gid_t *)FUN_00019b52()" (identifier "__list") (= "=") (cast_expression "(__gid_t *)FUN_00019b52()" (( "(") (type_descriptor "__gid_t *" (type_identifier "__gid_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00019b52()" (identifier "FUN_00019b52") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar2 = getgroups(iVar2,__list);" (assignment_expression "iVar2 = getgroups(iVar2,__list)" (identifier "iVar2") (= "=") (call_expression "getgroups(iVar2,__list)" (identifier "getgroups") (argument_list "(iVar2,__list)" (( "(") (identifier "iVar2") (, ",") (identifier "__list") () ")")))) (; ";")) (if_statement "if (-1 < iVar2) {\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n      __list[iVar2] = 0xffffffff;\n      if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }\n      return __list;\n    }" ({ "{") (expression_statement "__list[iVar2] = 0xffffffff;" (assignment_expression "__list[iVar2] = 0xffffffff" (subscript_expression "__list[iVar2]" (identifier "__list") ([ "[") (identifier "iVar2") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (param_1 != (int *)0x0) {\n        *param_1 = iVar2;\n      }" (if "if") (parenthesized_expression "(param_1 != (int *)0x0)" (( "(") (binary_expression "param_1 != (int *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_1 = iVar2;\n      }" ({ "{") (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (return_statement "return __list;" (return "return") (identifier "__list") (; ";")) (} "}"))) (if_statement "if (*piVar1 != 0x16) break;" (if "if") (parenthesized_expression "(*piVar1 != 0x16)" (( "(") (binary_expression "*piVar1 != 0x16" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0x16")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = getgroups(0,__list);" (assignment_expression "iVar2 = getgroups(0,__list)" (identifier "iVar2") (= "=") (call_expression "getgroups(0,__list)" (identifier "getgroups") (argument_list "(0,__list)" (( "(") (number_literal "0") (, ",") (identifier "__list") () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_00018e79("getgroups");" (call_expression "FUN_00018e79("getgroups")" (identifier "FUN_00018e79") (argument_list "("getgroups")" (( "(") (string_literal ""getgroups"" (" """) (string_content "getgroups") (" """)) () ")"))) (; ";")) (} "}"))

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

type_1 * function_1(int *ngroups,type_1 *group_array)

{
}


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

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

__gid_t * __regparm3 MASKED(int *param_1)

{
  int *piVar1;
  __gid_t *__list;
  int iVar2;
  
  piVar1 = DAT_000d16fc;
  iVar2 = 0x20;
  if ((param_1 != (int *)0x0) && (iVar2 = *param_1, iVar2 < 0x20)) {
    iVar2 = 0x20;
  }
  while( true ) {
    __list = (__gid_t *)FUN_00019b52();
    iVar2 = getgroups(iVar2,__list);
    if (-1 < iVar2) {
      __list[iVar2] = 0xffffffff;
      if (param_1 != (int *)0x0) {
        *param_1 = iVar2;
      }
      return __list;
    }
    if (*piVar1 != 0x16) break;
    iVar2 = getgroups(0,__list);
  }
                    /* WARNING: Subroutine does not return */
  FUN_00018e79("getgroups");
}

