
char * getgroup(gid_t gid)

{
  gid_t gVar1;
  gid_t *pgVar2;
  undefined4 *puVar3;
  int iVar4;
  gid_t *pgVar5;
  undefined *puVar6;
  
  pgVar5 = *(gid_t **)(PTR_DAT_0004a208 + -0x497c);
  if (pgVar5 == (gid_t *)0x0) {
LAB_0002439c:
    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();
    if (puVar3 == (undefined4 *)0x0) {
      puVar6 = PTR_DAT_0004a224 + -0x67e8;
    }
    else {
      puVar6 = (undefined *)*puVar3;
    }
    iVar4 = (*(code *)PTR_strlen_0004a53c)(puVar6);
    pgVar5 = (gid_t *)xmalloc(iVar4 + 0xcU & 0xfffffffc);
    *pgVar5 = gid;
    (*(code *)PTR_strcpy_0004a58c)(pgVar5 + 2,puVar6);
    puVar6 = PTR_DAT_0004a208;
    pgVar5[1] = *(gid_t *)(PTR_DAT_0004a208 + -0x497c);
    *(gid_t **)(puVar6 + -0x497c) = pgVar5;
  }
  else {
    gVar1 = *pgVar5;
    while (gid != gVar1) {
      pgVar5 = (gid_t *)pgVar5[1];
      if (pgVar5 == (gid_t *)0x0) goto LAB_0002439c;
      gVar1 = *pgVar5;
    }
  }
  pgVar2 = (gid_t *)0x0;
  if (*(char *)(pgVar5 + 2) != '\0') {
    pgVar2 = pgVar5 + 2;
  }
  return (char *)pgVar2;
}



int * getgroup(int param_1)

{
  int iVar1;
  int *piVar2;
  undefined4 *puVar3;
  int *piVar4;
  undefined *puVar5;
  
  piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);
  if (piVar4 == (int *)0x0) {
LAB_0002439c:
    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();
    if (puVar3 == (undefined4 *)0x0) {
      puVar5 = PTR_DAT_0004a224 + -0x67e8;
    }
    else {
      puVar5 = (undefined *)*puVar3;
    }
    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);
    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);
    *piVar4 = param_1;
    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);
    puVar5 = PTR_DAT_0004a208;
    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);
    *(int **)(puVar5 + -0x497c) = piVar4;
  }
  else {
    iVar1 = *piVar4;
    while (param_1 != iVar1) {
      piVar4 = (int *)piVar4[1];
      if (piVar4 == (int *)0x0) goto LAB_0002439c;
      iVar1 = *piVar4;
    }
  }
  piVar2 = (int *)0x0;
  if (*(char *)(piVar4 + 2) != '\0') {
    piVar2 = piVar4 + 2;
  }
  return piVar2;
}


lui gp,0x3
addiu gp,gp,-0x2138
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
lw v0,-0x7fd8(gp)
lw s0,-0x497c(v0)
beq s0,zero,0x00024398
_nop
lw v0,0x0(s0)
beq a0,v0,0x00024370
_nop
lw s0,0x4(s0)
beq s0,zero,0x0002439c
_or s1,a0,zero
lw v0,0x0(s0)
bne v0,a0,0x00024358
_nop
lb v0,0x8(s0)
beq v0,zero,0x00024380
_or v0,zero,zero
addiu v0,s0,0x8
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
or s1,a0,zero
lw t9,-0x7d78(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0002441c
_lw s2,-0x7fbc(gp)
lw s2,0x0(v0)
or a0,s2,zero
lw t9,-0x7ca4(gp)
jalr t9
_nop
lw gp,0x10(sp)
addiu v0,v0,0xc
li a0,-0x4
and a0,v0,a0
lw t9,-0x7fc0(gp)
bal 0x0002a000
_nop
lw gp,0x10(sp)
or s0,v0,zero
sw s1,0x0(v0)
or a1,s2,zero
addiu a0,v0,0x8
lw t9,-0x7c54(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v0,-0x7fd8(gp)
lw v1,-0x497c(v0)
sw v1,0x4(s0)
b 0x00024370
_sw s0,-0x497c(v0)
b 0x000243b8
_addiu s2,s2,-0x67e8
(translation_unit "int * getgroup(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);\n  if (piVar4 == (int *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }\n  else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }\n  piVar2 = (int *)0x0;\n  if (*(char *)(piVar4 + 2) != '\0') {\n    piVar2 = piVar4 + 2;\n  }\n  return piVar2;\n}\n\n" (function_definition "int * getgroup(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);\n  if (piVar4 == (int *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }\n  else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }\n  piVar2 = (int *)0x0;\n  if (*(char *)(piVar4 + 2) != '\0') {\n    piVar2 = piVar4 + 2;\n  }\n  return piVar2;\n}" primitive_type (pointer_declarator "* getgroup(int param_1)" * (function_declarator "getgroup(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);\n  if (piVar4 == (int *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }\n  else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }\n  piVar2 = (int *)0x0;\n  if (*(char *)(piVar4 + 2) != '\0') {\n    piVar2 = piVar4 + 2;\n  }\n  return piVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);" (assignment_expression "piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c)" identifier = (pointer_expression "*(int **)(PTR_DAT_0004a208 + -0x497c)" * (cast_expression "(int **)(PTR_DAT_0004a208 + -0x497c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0004a208 + -0x497c)" ( (binary_expression "PTR_DAT_0004a208 + -0x497c" identifier + number_literal) ))))) ;) (if_statement "if (piVar4 == (int *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }\n  else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }" { (labeled_statement "LAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();" statement_identifier : (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_getgrgid_0004a468)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getgrgid_0004a468)()" (parenthesized_expression "(*(code *)PTR_getgrgid_0004a468)" ( (pointer_expression "*(code *)PTR_getgrgid_0004a468" * (cast_expression "(code *)PTR_getgrgid_0004a468" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }" { (expression_statement "puVar5 = PTR_DAT_0004a224 + -0x67e8;" (assignment_expression "puVar5 = PTR_DAT_0004a224 + -0x67e8" identifier = (binary_expression "PTR_DAT_0004a224 + -0x67e8" identifier + number_literal)) ;) }) (else_clause "else {\n      puVar5 = (undefined *)*puVar3;\n    }" else (compound_statement "{\n      puVar5 = (undefined *)*puVar3;\n    }" { (expression_statement "puVar5 = (undefined *)*puVar3;" (assignment_expression "puVar5 = (undefined *)*puVar3" identifier = (cast_expression "(undefined *)*puVar3" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) }))) (expression_statement "iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5)" identifier = (call_expression "(*(code *)PTR_strlen_0004a53c)(puVar5)" (parenthesized_expression "(*(code *)PTR_strlen_0004a53c)" ( (pointer_expression "*(code *)PTR_strlen_0004a53c" * (cast_expression "(code *)PTR_strlen_0004a53c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5)" ( identifier )))) ;) (expression_statement "piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);" (assignment_expression "piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc)" identifier = (cast_expression "(int *)xmalloc(iVar1 + 0xcU & 0xfffffffc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar1 + 0xcU & 0xfffffffc)" identifier (argument_list "(iVar1 + 0xcU & 0xfffffffc)" ( (binary_expression "iVar1 + 0xcU & 0xfffffffc" (binary_expression "iVar1 + 0xcU" identifier + number_literal) & number_literal) ))))) ;) (expression_statement "*piVar4 = param_1;" (assignment_expression "*piVar4 = param_1" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "(*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);" (call_expression "(*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5)" (parenthesized_expression "(*(code *)PTR_strcpy_0004a58c)" ( (pointer_expression "*(code *)PTR_strcpy_0004a58c" * (cast_expression "(code *)PTR_strcpy_0004a58c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar4 + 2,puVar5)" ( (binary_expression "piVar4 + 2" identifier + number_literal) , identifier ))) ;) (expression_statement "puVar5 = PTR_DAT_0004a208;" (assignment_expression "puVar5 = PTR_DAT_0004a208" identifier = identifier) ;) (expression_statement "piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);" (assignment_expression "piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c)" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (pointer_expression "*(int *)(PTR_DAT_0004a208 + -0x497c)" * (cast_expression "(int *)(PTR_DAT_0004a208 + -0x497c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0004a208 + -0x497c)" ( (binary_expression "PTR_DAT_0004a208 + -0x497c" identifier + number_literal) ))))) ;) (expression_statement "*(int **)(puVar5 + -0x497c) = piVar4;" (assignment_expression "*(int **)(puVar5 + -0x497c) = piVar4" (pointer_expression "*(int **)(puVar5 + -0x497c)" * (cast_expression "(int **)(puVar5 + -0x497c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + -0x497c)" ( (binary_expression "puVar5 + -0x497c" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }" else (compound_statement "{\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }" { (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (while_statement "while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }" while (parenthesized_expression "(param_1 != iVar1)" ( (binary_expression "param_1 != iVar1" identifier != identifier) )) (compound_statement "{\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }" { (expression_statement "piVar4 = (int *)piVar4[1];" (assignment_expression "piVar4 = (int *)piVar4[1]" identifier = (cast_expression "(int *)piVar4[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar4 == (int *)0x0) goto LAB_0002439c;" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0002439c;" goto statement_identifier ;)) (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) })) }))) (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (*(char *)(piVar4 + 2) != '\0') {\n    piVar2 = piVar4 + 2;\n  }" if (parenthesized_expression "(*(char *)(piVar4 + 2) != '\0')" ( (binary_expression "*(char *)(piVar4 + 2) != '\0'" (pointer_expression "*(char *)(piVar4 + 2)" * (cast_expression "(char *)(piVar4 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + 2)" ( (binary_expression "piVar4 + 2" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar2 = piVar4 + 2;\n  }" { (expression_statement "piVar2 = piVar4 + 2;" (assignment_expression "piVar2 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) })) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit "char * getgroup(gid_t gid)\n\n{\n  gid_t gVar1;\n  gid_t *pgVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  gid_t *pgVar5;\n  undefined *puVar6;\n  \n  pgVar5 = *(gid_t **)(PTR_DAT_0004a208 + -0x497c);\n  if (pgVar5 == (gid_t *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar6 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar6 = (undefined *)*puVar3;\n    }\n    iVar4 = (*(code *)PTR_strlen_0004a53c)(puVar6);\n    pgVar5 = (gid_t *)xmalloc(iVar4 + 0xcU & 0xfffffffc);\n    *pgVar5 = gid;\n    (*(code *)PTR_strcpy_0004a58c)(pgVar5 + 2,puVar6);\n    puVar6 = PTR_DAT_0004a208;\n    pgVar5[1] = *(gid_t *)(PTR_DAT_0004a208 + -0x497c);\n    *(gid_t **)(puVar6 + -0x497c) = pgVar5;\n  }\n  else {\n    gVar1 = *pgVar5;\n    while (gid != gVar1) {\n      pgVar5 = (gid_t *)pgVar5[1];\n      if (pgVar5 == (gid_t *)0x0) goto LAB_0002439c;\n      gVar1 = *pgVar5;\n    }\n  }\n  pgVar2 = (gid_t *)0x0;\n  if (*(char *)(pgVar5 + 2) != '\0') {\n    pgVar2 = pgVar5 + 2;\n  }\n  return (char *)pgVar2;\n}\n\n" (function_definition "char * getgroup(gid_t gid)\n\n{\n  gid_t gVar1;\n  gid_t *pgVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  gid_t *pgVar5;\n  undefined *puVar6;\n  \n  pgVar5 = *(gid_t **)(PTR_DAT_0004a208 + -0x497c);\n  if (pgVar5 == (gid_t *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar6 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar6 = (undefined *)*puVar3;\n    }\n    iVar4 = (*(code *)PTR_strlen_0004a53c)(puVar6);\n    pgVar5 = (gid_t *)xmalloc(iVar4 + 0xcU & 0xfffffffc);\n    *pgVar5 = gid;\n    (*(code *)PTR_strcpy_0004a58c)(pgVar5 + 2,puVar6);\n    puVar6 = PTR_DAT_0004a208;\n    pgVar5[1] = *(gid_t *)(PTR_DAT_0004a208 + -0x497c);\n    *(gid_t **)(puVar6 + -0x497c) = pgVar5;\n  }\n  else {\n    gVar1 = *pgVar5;\n    while (gid != gVar1) {\n      pgVar5 = (gid_t *)pgVar5[1];\n      if (pgVar5 == (gid_t *)0x0) goto LAB_0002439c;\n      gVar1 = *pgVar5;\n    }\n  }\n  pgVar2 = (gid_t *)0x0;\n  if (*(char *)(pgVar5 + 2) != '\0') {\n    pgVar2 = pgVar5 + 2;\n  }\n  return (char *)pgVar2;\n}" primitive_type (pointer_declarator "* getgroup(gid_t gid)" * (function_declarator "getgroup(gid_t gid)" identifier (parameter_list "(gid_t gid)" ( (parameter_declaration "gid_t gid" type_identifier identifier) )))) (compound_statement "{\n  gid_t gVar1;\n  gid_t *pgVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  gid_t *pgVar5;\n  undefined *puVar6;\n  \n  pgVar5 = *(gid_t **)(PTR_DAT_0004a208 + -0x497c);\n  if (pgVar5 == (gid_t *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar6 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar6 = (undefined *)*puVar3;\n    }\n    iVar4 = (*(code *)PTR_strlen_0004a53c)(puVar6);\n    pgVar5 = (gid_t *)xmalloc(iVar4 + 0xcU & 0xfffffffc);\n    *pgVar5 = gid;\n    (*(code *)PTR_strcpy_0004a58c)(pgVar5 + 2,puVar6);\n    puVar6 = PTR_DAT_0004a208;\n    pgVar5[1] = *(gid_t *)(PTR_DAT_0004a208 + -0x497c);\n    *(gid_t **)(puVar6 + -0x497c) = pgVar5;\n  }\n  else {\n    gVar1 = *pgVar5;\n    while (gid != gVar1) {\n      pgVar5 = (gid_t *)pgVar5[1];\n      if (pgVar5 == (gid_t *)0x0) goto LAB_0002439c;\n      gVar1 = *pgVar5;\n    }\n  }\n  pgVar2 = (gid_t *)0x0;\n  if (*(char *)(pgVar5 + 2) != '\0') {\n    pgVar2 = pgVar5 + 2;\n  }\n  return (char *)pgVar2;\n}" { (declaration "gid_t gVar1;" type_identifier identifier ;) (declaration "gid_t *pgVar2;" type_identifier (pointer_declarator "*pgVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "gid_t *pgVar5;" type_identifier (pointer_declarator "*pgVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (expression_statement "pgVar5 = *(gid_t **)(PTR_DAT_0004a208 + -0x497c);" (assignment_expression "pgVar5 = *(gid_t **)(PTR_DAT_0004a208 + -0x497c)" identifier = (pointer_expression "*(gid_t **)(PTR_DAT_0004a208 + -0x497c)" * (cast_expression "(gid_t **)(PTR_DAT_0004a208 + -0x497c)" ( (type_descriptor "gid_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0004a208 + -0x497c)" ( (binary_expression "PTR_DAT_0004a208 + -0x497c" identifier + number_literal) ))))) ;) (if_statement "if (pgVar5 == (gid_t *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar6 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar6 = (undefined *)*puVar3;\n    }\n    iVar4 = (*(code *)PTR_strlen_0004a53c)(puVar6);\n    pgVar5 = (gid_t *)xmalloc(iVar4 + 0xcU & 0xfffffffc);\n    *pgVar5 = gid;\n    (*(code *)PTR_strcpy_0004a58c)(pgVar5 + 2,puVar6);\n    puVar6 = PTR_DAT_0004a208;\n    pgVar5[1] = *(gid_t *)(PTR_DAT_0004a208 + -0x497c);\n    *(gid_t **)(puVar6 + -0x497c) = pgVar5;\n  }\n  else {\n    gVar1 = *pgVar5;\n    while (gid != gVar1) {\n      pgVar5 = (gid_t *)pgVar5[1];\n      if (pgVar5 == (gid_t *)0x0) goto LAB_0002439c;\n      gVar1 = *pgVar5;\n    }\n  }" if (parenthesized_expression "(pgVar5 == (gid_t *)0x0)" ( (binary_expression "pgVar5 == (gid_t *)0x0" identifier == (cast_expression "(gid_t *)0x0" ( (type_descriptor "gid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar6 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar6 = (undefined *)*puVar3;\n    }\n    iVar4 = (*(code *)PTR_strlen_0004a53c)(puVar6);\n    pgVar5 = (gid_t *)xmalloc(iVar4 + 0xcU & 0xfffffffc);\n    *pgVar5 = gid;\n    (*(code *)PTR_strcpy_0004a58c)(pgVar5 + 2,puVar6);\n    puVar6 = PTR_DAT_0004a208;\n    pgVar5[1] = *(gid_t *)(PTR_DAT_0004a208 + -0x497c);\n    *(gid_t **)(puVar6 + -0x497c) = pgVar5;\n  }" { (labeled_statement "LAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();" statement_identifier : (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_getgrgid_0004a468)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getgrgid_0004a468)()" (parenthesized_expression "(*(code *)PTR_getgrgid_0004a468)" ( (pointer_expression "*(code *)PTR_getgrgid_0004a468" * (cast_expression "(code *)PTR_getgrgid_0004a468" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      puVar6 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar6 = (undefined *)*puVar3;\n    }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar6 = PTR_DAT_0004a224 + -0x67e8;\n    }" { (expression_statement "puVar6 = PTR_DAT_0004a224 + -0x67e8;" (assignment_expression "puVar6 = PTR_DAT_0004a224 + -0x67e8" identifier = (binary_expression "PTR_DAT_0004a224 + -0x67e8" identifier + number_literal)) ;) }) (else_clause "else {\n      puVar6 = (undefined *)*puVar3;\n    }" else (compound_statement "{\n      puVar6 = (undefined *)*puVar3;\n    }" { (expression_statement "puVar6 = (undefined *)*puVar3;" (assignment_expression "puVar6 = (undefined *)*puVar3" identifier = (cast_expression "(undefined *)*puVar3" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) }))) (expression_statement "iVar4 = (*(code *)PTR_strlen_0004a53c)(puVar6);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_0004a53c)(puVar6)" identifier = (call_expression "(*(code *)PTR_strlen_0004a53c)(puVar6)" (parenthesized_expression "(*(code *)PTR_strlen_0004a53c)" ( (pointer_expression "*(code *)PTR_strlen_0004a53c" * (cast_expression "(code *)PTR_strlen_0004a53c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6)" ( identifier )))) ;) (expression_statement "pgVar5 = (gid_t *)xmalloc(iVar4 + 0xcU & 0xfffffffc);" (assignment_expression "pgVar5 = (gid_t *)xmalloc(iVar4 + 0xcU & 0xfffffffc)" identifier = (cast_expression "(gid_t *)xmalloc(iVar4 + 0xcU & 0xfffffffc)" ( (type_descriptor "gid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar4 + 0xcU & 0xfffffffc)" identifier (argument_list "(iVar4 + 0xcU & 0xfffffffc)" ( (binary_expression "iVar4 + 0xcU & 0xfffffffc" (binary_expression "iVar4 + 0xcU" identifier + number_literal) & number_literal) ))))) ;) (expression_statement "*pgVar5 = gid;" (assignment_expression "*pgVar5 = gid" (pointer_expression "*pgVar5" * identifier) = identifier) ;) (expression_statement "(*(code *)PTR_strcpy_0004a58c)(pgVar5 + 2,puVar6);" (call_expression "(*(code *)PTR_strcpy_0004a58c)(pgVar5 + 2,puVar6)" (parenthesized_expression "(*(code *)PTR_strcpy_0004a58c)" ( (pointer_expression "*(code *)PTR_strcpy_0004a58c" * (cast_expression "(code *)PTR_strcpy_0004a58c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pgVar5 + 2,puVar6)" ( (binary_expression "pgVar5 + 2" identifier + number_literal) , identifier ))) ;) (expression_statement "puVar6 = PTR_DAT_0004a208;" (assignment_expression "puVar6 = PTR_DAT_0004a208" identifier = identifier) ;) (expression_statement "pgVar5[1] = *(gid_t *)(PTR_DAT_0004a208 + -0x497c);" (assignment_expression "pgVar5[1] = *(gid_t *)(PTR_DAT_0004a208 + -0x497c)" (subscript_expression "pgVar5[1]" identifier [ number_literal ]) = (pointer_expression "*(gid_t *)(PTR_DAT_0004a208 + -0x497c)" * (cast_expression "(gid_t *)(PTR_DAT_0004a208 + -0x497c)" ( (type_descriptor "gid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0004a208 + -0x497c)" ( (binary_expression "PTR_DAT_0004a208 + -0x497c" identifier + number_literal) ))))) ;) (expression_statement "*(gid_t **)(puVar6 + -0x497c) = pgVar5;" (assignment_expression "*(gid_t **)(puVar6 + -0x497c) = pgVar5" (pointer_expression "*(gid_t **)(puVar6 + -0x497c)" * (cast_expression "(gid_t **)(puVar6 + -0x497c)" ( (type_descriptor "gid_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + -0x497c)" ( (binary_expression "puVar6 + -0x497c" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    gVar1 = *pgVar5;\n    while (gid != gVar1) {\n      pgVar5 = (gid_t *)pgVar5[1];\n      if (pgVar5 == (gid_t *)0x0) goto LAB_0002439c;\n      gVar1 = *pgVar5;\n    }\n  }" else (compound_statement "{\n    gVar1 = *pgVar5;\n    while (gid != gVar1) {\n      pgVar5 = (gid_t *)pgVar5[1];\n      if (pgVar5 == (gid_t *)0x0) goto LAB_0002439c;\n      gVar1 = *pgVar5;\n    }\n  }" { (expression_statement "gVar1 = *pgVar5;" (assignment_expression "gVar1 = *pgVar5" identifier = (pointer_expression "*pgVar5" * identifier)) ;) (while_statement "while (gid != gVar1) {\n      pgVar5 = (gid_t *)pgVar5[1];\n      if (pgVar5 == (gid_t *)0x0) goto LAB_0002439c;\n      gVar1 = *pgVar5;\n    }" while (parenthesized_expression "(gid != gVar1)" ( (binary_expression "gid != gVar1" identifier != identifier) )) (compound_statement "{\n      pgVar5 = (gid_t *)pgVar5[1];\n      if (pgVar5 == (gid_t *)0x0) goto LAB_0002439c;\n      gVar1 = *pgVar5;\n    }" { (expression_statement "pgVar5 = (gid_t *)pgVar5[1];" (assignment_expression "pgVar5 = (gid_t *)pgVar5[1]" identifier = (cast_expression "(gid_t *)pgVar5[1]" ( (type_descriptor "gid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "pgVar5[1]" identifier [ number_literal ]))) ;) (if_statement "if (pgVar5 == (gid_t *)0x0) goto LAB_0002439c;" if (parenthesized_expression "(pgVar5 == (gid_t *)0x0)" ( (binary_expression "pgVar5 == (gid_t *)0x0" identifier == (cast_expression "(gid_t *)0x0" ( (type_descriptor "gid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0002439c;" goto statement_identifier ;)) (expression_statement "gVar1 = *pgVar5;" (assignment_expression "gVar1 = *pgVar5" identifier = (pointer_expression "*pgVar5" * identifier)) ;) })) }))) (expression_statement "pgVar2 = (gid_t *)0x0;" (assignment_expression "pgVar2 = (gid_t *)0x0" identifier = (cast_expression "(gid_t *)0x0" ( (type_descriptor "gid_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (*(char *)(pgVar5 + 2) != '\0') {\n    pgVar2 = pgVar5 + 2;\n  }" if (parenthesized_expression "(*(char *)(pgVar5 + 2) != '\0')" ( (binary_expression "*(char *)(pgVar5 + 2) != '\0'" (pointer_expression "*(char *)(pgVar5 + 2)" * (cast_expression "(char *)(pgVar5 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pgVar5 + 2)" ( (binary_expression "pgVar5 + 2" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pgVar2 = pgVar5 + 2;\n  }" { (expression_statement "pgVar2 = pgVar5 + 2;" (assignment_expression "pgVar2 = pgVar5 + 2" identifier = (binary_expression "pgVar5 + 2" identifier + number_literal)) ;) })) (return_statement "return (char *)pgVar2;" return (cast_expression "(char *)pgVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "int * getgroup(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);\n  if (piVar4 == (int *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }\n  else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }\n  piVar2 = (int *)0x0;\n  if (*(char *)(piVar4 + 2) != '\0') {\n    piVar2 = piVar4 + 2;\n  }\n  return piVar2;\n}\n\n" (function_definition "int * getgroup(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);\n  if (piVar4 == (int *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }\n  else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }\n  piVar2 = (int *)0x0;\n  if (*(char *)(piVar4 + 2) != '\0') {\n    piVar2 = piVar4 + 2;\n  }\n  return piVar2;\n}" primitive_type (pointer_declarator "* getgroup(int param_1)" * (function_declarator "getgroup(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);\n  if (piVar4 == (int *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }\n  else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }\n  piVar2 = (int *)0x0;\n  if (*(char *)(piVar4 + 2) != '\0') {\n    piVar2 = piVar4 + 2;\n  }\n  return piVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);" (assignment_expression "piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c)" identifier = (pointer_expression "*(int **)(PTR_DAT_0004a208 + -0x497c)" * (cast_expression "(int **)(PTR_DAT_0004a208 + -0x497c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0004a208 + -0x497c)" ( (binary_expression "PTR_DAT_0004a208 + -0x497c" identifier + number_literal) ))))) ;) (if_statement "if (piVar4 == (int *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }\n  else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }" { (labeled_statement "LAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();" statement_identifier : (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_getgrgid_0004a468)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getgrgid_0004a468)()" (parenthesized_expression "(*(code *)PTR_getgrgid_0004a468)" ( (pointer_expression "*(code *)PTR_getgrgid_0004a468" * (cast_expression "(code *)PTR_getgrgid_0004a468" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;)) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }" { (expression_statement "puVar5 = PTR_DAT_0004a224 + -0x67e8;" (assignment_expression "puVar5 = PTR_DAT_0004a224 + -0x67e8" identifier = (binary_expression "PTR_DAT_0004a224 + -0x67e8" identifier + number_literal)) ;) }) (else_clause "else {\n      puVar5 = (undefined *)*puVar3;\n    }" else (compound_statement "{\n      puVar5 = (undefined *)*puVar3;\n    }" { (expression_statement "puVar5 = (undefined *)*puVar3;" (assignment_expression "puVar5 = (undefined *)*puVar3" identifier = (cast_expression "(undefined *)*puVar3" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) }))) (expression_statement "iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5)" identifier = (call_expression "(*(code *)PTR_strlen_0004a53c)(puVar5)" (parenthesized_expression "(*(code *)PTR_strlen_0004a53c)" ( (pointer_expression "*(code *)PTR_strlen_0004a53c" * (cast_expression "(code *)PTR_strlen_0004a53c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5)" ( identifier )))) ;) (expression_statement "piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);" (assignment_expression "piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc)" identifier = (cast_expression "(int *)xmalloc(iVar1 + 0xcU & 0xfffffffc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar1 + 0xcU & 0xfffffffc)" identifier (argument_list "(iVar1 + 0xcU & 0xfffffffc)" ( (binary_expression "iVar1 + 0xcU & 0xfffffffc" (binary_expression "iVar1 + 0xcU" identifier + number_literal) & number_literal) ))))) ;) (expression_statement "*piVar4 = param_1;" (assignment_expression "*piVar4 = param_1" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "(*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);" (call_expression "(*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5)" (parenthesized_expression "(*(code *)PTR_strcpy_0004a58c)" ( (pointer_expression "*(code *)PTR_strcpy_0004a58c" * (cast_expression "(code *)PTR_strcpy_0004a58c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar4 + 2,puVar5)" ( (binary_expression "piVar4 + 2" identifier + number_literal) , identifier ))) ;) (expression_statement "puVar5 = PTR_DAT_0004a208;" (assignment_expression "puVar5 = PTR_DAT_0004a208" identifier = identifier) ;) (expression_statement "piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);" (assignment_expression "piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c)" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = (pointer_expression "*(int *)(PTR_DAT_0004a208 + -0x497c)" * (cast_expression "(int *)(PTR_DAT_0004a208 + -0x497c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0004a208 + -0x497c)" ( (binary_expression "PTR_DAT_0004a208 + -0x497c" identifier + number_literal) ))))) ;) (expression_statement "*(int **)(puVar5 + -0x497c) = piVar4;" (assignment_expression "*(int **)(puVar5 + -0x497c) = piVar4" (pointer_expression "*(int **)(puVar5 + -0x497c)" * (cast_expression "(int **)(puVar5 + -0x497c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + -0x497c)" ( (binary_expression "puVar5 + -0x497c" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }" else (compound_statement "{\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }" { (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (while_statement "while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }" while (parenthesized_expression "(param_1 != iVar1)" ( (binary_expression "param_1 != iVar1" identifier != identifier) )) (compound_statement "{\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }" { (expression_statement "piVar4 = (int *)piVar4[1];" (assignment_expression "piVar4 = (int *)piVar4[1]" identifier = (cast_expression "(int *)piVar4[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar4 == (int *)0x0) goto LAB_0002439c;" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0002439c;" goto statement_identifier ;)) (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) })) }))) (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (*(char *)(piVar4 + 2) != '\0') {\n    piVar2 = piVar4 + 2;\n  }" if (parenthesized_expression "(*(char *)(piVar4 + 2) != '\0')" ( (binary_expression "*(char *)(piVar4 + 2) != '\0'" (pointer_expression "*(char *)(piVar4 + 2)" * (cast_expression "(char *)(piVar4 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + 2)" ( (binary_expression "piVar4 + 2" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar2 = piVar4 + 2;\n  }" { (expression_statement "piVar2 = piVar4 + 2;" (assignment_expression "piVar2 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) })) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) & LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "int * getgroup(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);\n  if (piVar4 == (int *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }\n  else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }\n  piVar2 = (int *)0x0;\n  if (*(char *)(piVar4 + 2) != '\0') {\n    piVar2 = piVar4 + 2;\n  }\n  return piVar2;\n}" (primitive_type "int") (pointer_declarator "* getgroup(int param_1)" (* "*") (function_declarator "getgroup(int param_1)" (identifier "getgroup") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);\n  if (piVar4 == (int *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }\n  else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }\n  piVar2 = (int *)0x0;\n  if (*(char *)(piVar4 + 2) != '\0') {\n    piVar2 = piVar4 + 2;\n  }\n  return piVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);" (assignment_expression "piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(PTR_DAT_0004a208 + -0x497c)" (* "*") (cast_expression "(int **)(PTR_DAT_0004a208 + -0x497c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_0004a208 + -0x497c)" (( "(") (binary_expression "PTR_DAT_0004a208 + -0x497c" (identifier "PTR_DAT_0004a208") (+ "+") (number_literal "-0x497c")) () ")"))))) (; ";")) (if_statement "if (piVar4 == (int *)0x0) {\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }\n  else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }" (if "if") (parenthesized_expression "(piVar4 == (int *)0x0)" (( "(") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();\n    if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }\n    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);\n    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);\n    *piVar4 = param_1;\n    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);\n    puVar5 = PTR_DAT_0004a208;\n    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);\n    *(int **)(puVar5 + -0x497c) = piVar4;\n  }" ({ "{") (labeled_statement "LAB_0002439c:\n    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();" (statement_identifier "LAB_0002439c") (: ":") (expression_statement "puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();" (assignment_expression "puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_getgrgid_0004a468)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_getgrgid_0004a468)()" (parenthesized_expression "(*(code *)PTR_getgrgid_0004a468)" (( "(") (pointer_expression "*(code *)PTR_getgrgid_0004a468" (* "*") (cast_expression "(code *)PTR_getgrgid_0004a468" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getgrgid_0004a468"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";"))) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }\n    else {\n      puVar5 = (undefined *)*puVar3;\n    }" (if "if") (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined4 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar5 = PTR_DAT_0004a224 + -0x67e8;\n    }" ({ "{") (expression_statement "puVar5 = PTR_DAT_0004a224 + -0x67e8;" (assignment_expression "puVar5 = PTR_DAT_0004a224 + -0x67e8" (identifier "puVar5") (= "=") (binary_expression "PTR_DAT_0004a224 + -0x67e8" (identifier "PTR_DAT_0004a224") (+ "+") (number_literal "-0x67e8"))) (; ";")) (} "}")) (else_clause "else {\n      puVar5 = (undefined *)*puVar3;\n    }" (else "else") (compound_statement "{\n      puVar5 = (undefined *)*puVar3;\n    }" ({ "{") (expression_statement "puVar5 = (undefined *)*puVar3;" (assignment_expression "puVar5 = (undefined *)*puVar3" (identifier "puVar5") (= "=") (cast_expression "(undefined *)*puVar3" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) (; ";")) (} "}")))) (expression_statement "iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0004a53c)(puVar5)" (parenthesized_expression "(*(code *)PTR_strlen_0004a53c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0004a53c" (* "*") (cast_expression "(code *)PTR_strlen_0004a53c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0004a53c"))) () ")")) (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")")))) (; ";")) (expression_statement "piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);" (assignment_expression "piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc)" (identifier "piVar4") (= "=") (cast_expression "(int *)xmalloc(iVar1 + 0xcU & 0xfffffffc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(iVar1 + 0xcU & 0xfffffffc)" (identifier "xmalloc") (argument_list "(iVar1 + 0xcU & 0xfffffffc)" (( "(") (binary_expression "iVar1 + 0xcU & 0xfffffffc" (binary_expression "iVar1 + 0xcU" (identifier "iVar1") (+ "+") (number_literal "0xcU")) (& "&") (number_literal "0xfffffffc")) () ")"))))) (; ";")) (expression_statement "*piVar4 = param_1;" (assignment_expression "*piVar4 = param_1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "(*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);" (call_expression "(*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5)" (parenthesized_expression "(*(code *)PTR_strcpy_0004a58c)" (( "(") (pointer_expression "*(code *)PTR_strcpy_0004a58c" (* "*") (cast_expression "(code *)PTR_strcpy_0004a58c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_0004a58c"))) () ")")) (argument_list "(piVar4 + 2,puVar5)" (( "(") (binary_expression "piVar4 + 2" (identifier "piVar4") (+ "+") (number_literal "2")) (, ",") (identifier "puVar5") () ")"))) (; ";")) (expression_statement "puVar5 = PTR_DAT_0004a208;" (assignment_expression "puVar5 = PTR_DAT_0004a208" (identifier "puVar5") (= "=") (identifier "PTR_DAT_0004a208")) (; ";")) (expression_statement "piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);" (assignment_expression "piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c)" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(int *)(PTR_DAT_0004a208 + -0x497c)" (* "*") (cast_expression "(int *)(PTR_DAT_0004a208 + -0x497c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0004a208 + -0x497c)" (( "(") (binary_expression "PTR_DAT_0004a208 + -0x497c" (identifier "PTR_DAT_0004a208") (+ "+") (number_literal "-0x497c")) () ")"))))) (; ";")) (expression_statement "*(int **)(puVar5 + -0x497c) = piVar4;" (assignment_expression "*(int **)(puVar5 + -0x497c) = piVar4" (pointer_expression "*(int **)(puVar5 + -0x497c)" (* "*") (cast_expression "(int **)(puVar5 + -0x497c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + -0x497c)" (( "(") (binary_expression "puVar5 + -0x497c" (identifier "puVar5") (+ "+") (number_literal "-0x497c")) () ")")))) (= "=") (identifier "piVar4")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = *piVar4;\n    while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" (identifier "iVar1") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (while_statement "while (param_1 != iVar1) {\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }" (while "while") (parenthesized_expression "(param_1 != iVar1)" (( "(") (binary_expression "param_1 != iVar1" (identifier "param_1") (!= "!=") (identifier "iVar1")) () ")")) (compound_statement "{\n      piVar4 = (int *)piVar4[1];\n      if (piVar4 == (int *)0x0) goto LAB_0002439c;\n      iVar1 = *piVar4;\n    }" ({ "{") (expression_statement "piVar4 = (int *)piVar4[1];" (assignment_expression "piVar4 = (int *)piVar4[1]" (identifier "piVar4") (= "=") (cast_expression "(int *)piVar4[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (piVar4 == (int *)0x0) goto LAB_0002439c;" (if "if") (parenthesized_expression "(piVar4 == (int *)0x0)" (( "(") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0002439c;" (goto "goto") (statement_identifier "LAB_0002439c") (; ";"))) (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" (identifier "iVar1") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" (identifier "piVar2") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (*(char *)(piVar4 + 2) != '\0') {\n    piVar2 = piVar4 + 2;\n  }" (if "if") (parenthesized_expression "(*(char *)(piVar4 + 2) != '\0')" (( "(") (binary_expression "*(char *)(piVar4 + 2) != '\0'" (pointer_expression "*(char *)(piVar4 + 2)" (* "*") (cast_expression "(char *)(piVar4 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar4 + 2)" (( "(") (binary_expression "piVar4 + 2" (identifier "piVar4") (+ "+") (number_literal "2")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    piVar2 = piVar4 + 2;\n  }" ({ "{") (expression_statement "piVar2 = piVar4 + 2;" (assignment_expression "piVar2 = piVar4 + 2" (identifier "piVar2") (= "=") (binary_expression "piVar4 + 2" (identifier "piVar4") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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 (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (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: (goto_statement label: (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: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

int * MASKED(int param_1)

{
  int iVar1;
  int *piVar2;
  undefined4 *puVar3;
  int *piVar4;
  undefined *puVar5;
  
  piVar4 = *(int **)(PTR_DAT_0004a208 + -0x497c);
  if (piVar4 == (int *)0x0) {
LAB_0002439c:
    puVar3 = (undefined4 *)(*(code *)PTR_getgrgid_0004a468)();
    if (puVar3 == (undefined4 *)0x0) {
      puVar5 = PTR_DAT_0004a224 + -0x67e8;
    }
    else {
      puVar5 = (undefined *)*puVar3;
    }
    iVar1 = (*(code *)PTR_strlen_0004a53c)(puVar5);
    piVar4 = (int *)xmalloc(iVar1 + 0xcU & 0xfffffffc);
    *piVar4 = param_1;
    (*(code *)PTR_strcpy_0004a58c)(piVar4 + 2,puVar5);
    puVar5 = PTR_DAT_0004a208;
    piVar4[1] = *(int *)(PTR_DAT_0004a208 + -0x497c);
    *(int **)(puVar5 + -0x497c) = piVar4;
  }
  else {
    iVar1 = *piVar4;
    while (param_1 != iVar1) {
      piVar4 = (int *)piVar4[1];
      if (piVar4 == (int *)0x0) goto LAB_0002439c;
      iVar1 = *piVar4;
    }
  }
  piVar2 = (int *)0x0;
  if (*(char *)(piVar4 + 2) != '\0') {
    piVar2 = piVar4 + 2;
  }
  return piVar2;
}

