
void parse_chown_usergroup_or_die(bb_uidgid_t *u,char *user_group)

{
  undefined *puVar1;
  char *pcVar2;
  gid_t gVar3;
  uid_t uVar4;
  
  puVar1 = PTR_strchr_0012af54;
  u->gid = 0xffffffff;
  u->uid = 0xffffffff;
  pcVar2 = (char *)(*(code *)puVar1)(user_group,0x2e);
  if (pcVar2 == (char *)0x0) {
    pcVar2 = (char *)(*(code *)PTR_strchr_0012af54)(user_group,0x3a);
    if (pcVar2 == (char *)0x0) {
      uVar4 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group,PTR_xuname2uid_0012a2e4);
      u->uid = uVar4;
      return;
    }
  }
  else {
    *pcVar2 = ':';
  }
  if (user_group == pcVar2) {
    gVar3 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group + 1,PTR_xgroup2gid_0012a2d8);
    u->gid = gVar3;
    return;
  }
  if (pcVar2[1] == '\0') {
    *pcVar2 = '\0';
  }
  xget_uidgid(u,user_group);
  return;
}



void FUN_0001d6fc(undefined4 *param_1,undefined1 *param_2)

{
  undefined *puVar1;
  undefined1 *puVar2;
  undefined4 uVar3;
  
  puVar1 = PTR_strchr_0012af54;
  param_1[1] = 0xffffffff;
  *param_1 = 0xffffffff;
  puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);
  if (puVar2 == (undefined1 *)0x0) {
    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);
    if (puVar2 == (undefined1 *)0x0) {
      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);
      *param_1 = uVar3;
      return;
    }
  }
  else {
    *puVar2 = 0x3a;
  }
  if (param_2 == puVar2) {
    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);
    param_1[1] = uVar3;
    return;
  }
  if (puVar2[1] == '\0') {
    *puVar2 = 0;
  }
  FUN_0001d6a8(param_1,param_2);
  return;
}


lui gp,0x11
addiu gp,gp,0x4a54
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x71fc(gp)
li v0,-0x1
sw gp,0x10(sp)
sw s0,0x1c(sp)
or s0,a1,zero
li a1,0x2e
sw s1,0x20(sp)
sw ra,0x24(sp)
or s1,a0,zero
sw v0,0x4(a0)
sw v0,0x0(a0)
jalr t9
_or a0,s0,zero
beq v0,zero,0x0001d7ac
_lw gp,0x10(sp)
li v1,0x3a
sb v1,0x0(v0)
bne s0,v0,0x0001d77c
_lw a1,-0x7e78(gp)
lw t9,-0x7e74(gp)
jalr t9
_addiu a0,s0,0x1
lw ra,0x24(sp)
lw s0,0x1c(sp)
sw v0,0x4(s1)
lw s1,0x20(sp)
jr ra
_addiu sp,sp,0x28
lbu v1,0x1(v0)
bne v1,zero,0x0001d790
_lw ra,0x24(sp)
sb zero,0x0(v0)
lw ra,0x24(sp)
or a1,s0,zero
or a0,s1,zero
lw s0,0x1c(sp)
lw s1,0x20(sp)
lw t9,-0x7e70(gp)
b 0x0001d6a8
_addiu sp,sp,0x28
lw t9,-0x71fc(gp)
li a1,0x3a
jalr t9
_or a0,s0,zero
bne v0,zero,0x0001d750
_lw gp,0x10(sp)
lw a1,-0x7e6c(gp)
lw t9,-0x7e74(gp)
jalr t9
_or a0,s0,zero
lw ra,0x24(sp)
lw s0,0x1c(sp)
sw v0,0x0(s1)
lw s1,0x20(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_0001d6fc(undefined4 *param_1,undefined1 *param_2)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_strchr_0012af54;\n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);\n  if (puVar2 == (undefined1 *)0x0) {\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }\n  else {\n    *puVar2 = 0x3a;\n  }\n  if (param_2 == puVar2) {\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }\n  if (puVar2[1] == '\0') {\n    *puVar2 = 0;\n  }\n  FUN_0001d6a8(param_1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_0001d6fc(undefined4 *param_1,undefined1 *param_2)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_strchr_0012af54;\n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);\n  if (puVar2 == (undefined1 *)0x0) {\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }\n  else {\n    *puVar2 = 0x3a;\n  }\n  if (param_2 == puVar2) {\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }\n  if (puVar2[1] == '\0') {\n    *puVar2 = 0;\n  }\n  FUN_0001d6a8(param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_0001d6fc(undefined4 *param_1,undefined1 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined1 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_strchr_0012af54;\n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);\n  if (puVar2 == (undefined1 *)0x0) {\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }\n  else {\n    *puVar2 = 0x3a;\n  }\n  if (param_2 == puVar2) {\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }\n  if (puVar2[1] == '\0') {\n    *puVar2 = 0;\n  }\n  FUN_0001d6a8(param_1,param_2);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_strchr_0012af54;" (assignment_expression "puVar1 = PTR_strchr_0012af54" identifier = identifier) ;) (expression_statement "param_1[1] = 0xffffffff;" (assignment_expression "param_1[1] = 0xffffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);" (assignment_expression "puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e)" identifier = (cast_expression "(undefined1 *)(*(code *)puVar1)(param_2,0x2e)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)(param_2,0x2e)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,0x2e)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }\n  else {\n    *puVar2 = 0x3a;\n  }" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }" { (expression_statement "puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);" (assignment_expression "puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_0012af54)(param_2,0x3a)" (parenthesized_expression "(*(code *)PTR_strchr_0012af54)" ( (pointer_expression "*(code *)PTR_strchr_0012af54" * (cast_expression "(code *)PTR_strchr_0012af54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,0x3a)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4)" identifier = (call_expression "(*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2dc)" ( (pointer_expression "*(code *)PTR_FUN_0012a2dc" * (cast_expression "(code *)PTR_FUN_0012a2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,PTR_FUN_0012a2e4)" ( identifier , identifier )))) ;) (expression_statement "*param_1 = uVar3;" (assignment_expression "*param_1 = uVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    *puVar2 = 0x3a;\n  }" else (compound_statement "{\n    *puVar2 = 0x3a;\n  }" { (expression_statement "*puVar2 = 0x3a;" (assignment_expression "*puVar2 = 0x3a" (pointer_expression "*puVar2" * identifier) = number_literal) ;) }))) (if_statement "if (param_2 == puVar2) {\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }" if (parenthesized_expression "(param_2 == puVar2)" ( (binary_expression "param_2 == puVar2" identifier == identifier) )) (compound_statement "{\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }" { (expression_statement "uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8)" identifier = (call_expression "(*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2dc)" ( (pointer_expression "*(code *)PTR_FUN_0012a2dc" * (cast_expression "(code *)PTR_FUN_0012a2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2 + 1,PTR_FUN_0012a2d8)" ( (binary_expression "param_2 + 1" identifier + number_literal) , identifier )))) ;) (expression_statement "param_1[1] = uVar3;" (assignment_expression "param_1[1] = uVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (puVar2[1] == '\0') {\n    *puVar2 = 0;\n  }" if (parenthesized_expression "(puVar2[1] == '\0')" ( (binary_expression "puVar2[1] == '\0'" (subscript_expression "puVar2[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *puVar2 = 0;\n  }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) })) (expression_statement "FUN_0001d6a8(param_1,param_2);" (call_expression "FUN_0001d6a8(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void parse_chown_usergroup_or_die(bb_uidgid_t *u,char *user_group)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  gid_t gVar3;\n  uid_t uVar4;\n  \n  puVar1 = PTR_strchr_0012af54;\n  u->gid = 0xffffffff;\n  u->uid = 0xffffffff;\n  pcVar2 = (char *)(*(code *)puVar1)(user_group,0x2e);\n  if (pcVar2 == (char *)0x0) {\n    pcVar2 = (char *)(*(code *)PTR_strchr_0012af54)(user_group,0x3a);\n    if (pcVar2 == (char *)0x0) {\n      uVar4 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group,PTR_xuname2uid_0012a2e4);\n      u->uid = uVar4;\n      return;\n    }\n  }\n  else {\n    *pcVar2 = ':';\n  }\n  if (user_group == pcVar2) {\n    gVar3 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group + 1,PTR_xgroup2gid_0012a2d8);\n    u->gid = gVar3;\n    return;\n  }\n  if (pcVar2[1] == '\0') {\n    *pcVar2 = '\0';\n  }\n  xget_uidgid(u,user_group);\n  return;\n}\n\n" (function_definition "void parse_chown_usergroup_or_die(bb_uidgid_t *u,char *user_group)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  gid_t gVar3;\n  uid_t uVar4;\n  \n  puVar1 = PTR_strchr_0012af54;\n  u->gid = 0xffffffff;\n  u->uid = 0xffffffff;\n  pcVar2 = (char *)(*(code *)puVar1)(user_group,0x2e);\n  if (pcVar2 == (char *)0x0) {\n    pcVar2 = (char *)(*(code *)PTR_strchr_0012af54)(user_group,0x3a);\n    if (pcVar2 == (char *)0x0) {\n      uVar4 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group,PTR_xuname2uid_0012a2e4);\n      u->uid = uVar4;\n      return;\n    }\n  }\n  else {\n    *pcVar2 = ':';\n  }\n  if (user_group == pcVar2) {\n    gVar3 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group + 1,PTR_xgroup2gid_0012a2d8);\n    u->gid = gVar3;\n    return;\n  }\n  if (pcVar2[1] == '\0') {\n    *pcVar2 = '\0';\n  }\n  xget_uidgid(u,user_group);\n  return;\n}" primitive_type (function_declarator "parse_chown_usergroup_or_die(bb_uidgid_t *u,char *user_group)" identifier (parameter_list "(bb_uidgid_t *u,char *user_group)" ( (parameter_declaration "bb_uidgid_t *u" type_identifier (pointer_declarator "*u" * identifier)) , (parameter_declaration "char *user_group" primitive_type (pointer_declarator "*user_group" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  gid_t gVar3;\n  uid_t uVar4;\n  \n  puVar1 = PTR_strchr_0012af54;\n  u->gid = 0xffffffff;\n  u->uid = 0xffffffff;\n  pcVar2 = (char *)(*(code *)puVar1)(user_group,0x2e);\n  if (pcVar2 == (char *)0x0) {\n    pcVar2 = (char *)(*(code *)PTR_strchr_0012af54)(user_group,0x3a);\n    if (pcVar2 == (char *)0x0) {\n      uVar4 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group,PTR_xuname2uid_0012a2e4);\n      u->uid = uVar4;\n      return;\n    }\n  }\n  else {\n    *pcVar2 = ':';\n  }\n  if (user_group == pcVar2) {\n    gVar3 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group + 1,PTR_xgroup2gid_0012a2d8);\n    u->gid = gVar3;\n    return;\n  }\n  if (pcVar2[1] == '\0') {\n    *pcVar2 = '\0';\n  }\n  xget_uidgid(u,user_group);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "gid_t gVar3;" type_identifier identifier ;) (declaration "uid_t uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_strchr_0012af54;" (assignment_expression "puVar1 = PTR_strchr_0012af54" identifier = identifier) ;) (expression_statement "u->gid = 0xffffffff;" (assignment_expression "u->gid = 0xffffffff" (field_expression "u->gid" identifier -> field_identifier) = number_literal) ;) (expression_statement "u->uid = 0xffffffff;" (assignment_expression "u->uid = 0xffffffff" (field_expression "u->uid" identifier -> field_identifier) = number_literal) ;) (expression_statement "pcVar2 = (char *)(*(code *)puVar1)(user_group,0x2e);" (assignment_expression "pcVar2 = (char *)(*(code *)puVar1)(user_group,0x2e)" identifier = (cast_expression "(char *)(*(code *)puVar1)(user_group,0x2e)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)(user_group,0x2e)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(user_group,0x2e)" ( identifier , number_literal ))))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n    pcVar2 = (char *)(*(code *)PTR_strchr_0012af54)(user_group,0x3a);\n    if (pcVar2 == (char *)0x0) {\n      uVar4 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group,PTR_xuname2uid_0012a2e4);\n      u->uid = uVar4;\n      return;\n    }\n  }\n  else {\n    *pcVar2 = ':';\n  }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = (char *)(*(code *)PTR_strchr_0012af54)(user_group,0x3a);\n    if (pcVar2 == (char *)0x0) {\n      uVar4 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group,PTR_xuname2uid_0012a2e4);\n      u->uid = uVar4;\n      return;\n    }\n  }" { (expression_statement "pcVar2 = (char *)(*(code *)PTR_strchr_0012af54)(user_group,0x3a);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_strchr_0012af54)(user_group,0x3a)" identifier = (cast_expression "(char *)(*(code *)PTR_strchr_0012af54)(user_group,0x3a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_0012af54)(user_group,0x3a)" (parenthesized_expression "(*(code *)PTR_strchr_0012af54)" ( (pointer_expression "*(code *)PTR_strchr_0012af54" * (cast_expression "(code *)PTR_strchr_0012af54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(user_group,0x3a)" ( identifier , number_literal ))))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n      uVar4 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group,PTR_xuname2uid_0012a2e4);\n      u->uid = uVar4;\n      return;\n    }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar4 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group,PTR_xuname2uid_0012a2e4);\n      u->uid = uVar4;\n      return;\n    }" { (expression_statement "uVar4 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group,PTR_xuname2uid_0012a2e4);" (assignment_expression "uVar4 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group,PTR_xuname2uid_0012a2e4)" identifier = (call_expression "(*(code *)PTR_get_ug_id_0012a2dc)(user_group,PTR_xuname2uid_0012a2e4)" (parenthesized_expression "(*(code *)PTR_get_ug_id_0012a2dc)" ( (pointer_expression "*(code *)PTR_get_ug_id_0012a2dc" * (cast_expression "(code *)PTR_get_ug_id_0012a2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(user_group,PTR_xuname2uid_0012a2e4)" ( identifier , identifier )))) ;) (expression_statement "u->uid = uVar4;" (assignment_expression "u->uid = uVar4" (field_expression "u->uid" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    *pcVar2 = ':';\n  }" else (compound_statement "{\n    *pcVar2 = ':';\n  }" { (expression_statement "*pcVar2 = ':';" (assignment_expression "*pcVar2 = ':'" (pointer_expression "*pcVar2" * identifier) = (char_literal "':'" ' character ')) ;) }))) (if_statement "if (user_group == pcVar2) {\n    gVar3 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group + 1,PTR_xgroup2gid_0012a2d8);\n    u->gid = gVar3;\n    return;\n  }" if (parenthesized_expression "(user_group == pcVar2)" ( (binary_expression "user_group == pcVar2" identifier == identifier) )) (compound_statement "{\n    gVar3 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group + 1,PTR_xgroup2gid_0012a2d8);\n    u->gid = gVar3;\n    return;\n  }" { (expression_statement "gVar3 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group + 1,PTR_xgroup2gid_0012a2d8);" (assignment_expression "gVar3 = (*(code *)PTR_get_ug_id_0012a2dc)(user_group + 1,PTR_xgroup2gid_0012a2d8)" identifier = (call_expression "(*(code *)PTR_get_ug_id_0012a2dc)(user_group + 1,PTR_xgroup2gid_0012a2d8)" (parenthesized_expression "(*(code *)PTR_get_ug_id_0012a2dc)" ( (pointer_expression "*(code *)PTR_get_ug_id_0012a2dc" * (cast_expression "(code *)PTR_get_ug_id_0012a2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(user_group + 1,PTR_xgroup2gid_0012a2d8)" ( (binary_expression "user_group + 1" identifier + number_literal) , identifier )))) ;) (expression_statement "u->gid = gVar3;" (assignment_expression "u->gid = gVar3" (field_expression "u->gid" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (pcVar2[1] == '\0') {\n    *pcVar2 = '\0';\n  }" if (parenthesized_expression "(pcVar2[1] == '\0')" ( (binary_expression "pcVar2[1] == '\0'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *pcVar2 = '\0';\n  }" { (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "xget_uidgid(u,user_group);" (call_expression "xget_uidgid(u,user_group)" identifier (argument_list "(u,user_group)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001d6fc(undefined4 *param_1,undefined1 *param_2)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_strchr_0012af54;\n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);\n  if (puVar2 == (undefined1 *)0x0) {\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }\n  else {\n    *puVar2 = 0x3a;\n  }\n  if (param_2 == puVar2) {\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }\n  if (puVar2[1] == '\0') {\n    *puVar2 = 0;\n  }\n  FUN_0001d6a8(param_1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_0001d6fc(undefined4 *param_1,undefined1 *param_2)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_strchr_0012af54;\n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);\n  if (puVar2 == (undefined1 *)0x0) {\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }\n  else {\n    *puVar2 = 0x3a;\n  }\n  if (param_2 == puVar2) {\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }\n  if (puVar2[1] == '\0') {\n    *puVar2 = 0;\n  }\n  FUN_0001d6a8(param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_0001d6fc(undefined4 *param_1,undefined1 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined1 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_strchr_0012af54;\n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);\n  if (puVar2 == (undefined1 *)0x0) {\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }\n  else {\n    *puVar2 = 0x3a;\n  }\n  if (param_2 == puVar2) {\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }\n  if (puVar2[1] == '\0') {\n    *puVar2 = 0;\n  }\n  FUN_0001d6a8(param_1,param_2);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_strchr_0012af54;" (assignment_expression "puVar1 = PTR_strchr_0012af54" identifier = identifier) ;) (expression_statement "param_1[1] = 0xffffffff;" (assignment_expression "param_1[1] = 0xffffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);" (assignment_expression "puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e)" identifier = (cast_expression "(undefined1 *)(*(code *)puVar1)(param_2,0x2e)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)(param_2,0x2e)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,0x2e)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }\n  else {\n    *puVar2 = 0x3a;\n  }" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }" { (expression_statement "puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);" (assignment_expression "puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_0012af54)(param_2,0x3a)" (parenthesized_expression "(*(code *)PTR_strchr_0012af54)" ( (pointer_expression "*(code *)PTR_strchr_0012af54" * (cast_expression "(code *)PTR_strchr_0012af54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,0x3a)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }" { (expression_statement "uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4)" identifier = (call_expression "(*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2dc)" ( (pointer_expression "*(code *)PTR_FUN_0012a2dc" * (cast_expression "(code *)PTR_FUN_0012a2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,PTR_FUN_0012a2e4)" ( identifier , identifier )))) ;) (expression_statement "*param_1 = uVar3;" (assignment_expression "*param_1 = uVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    *puVar2 = 0x3a;\n  }" else (compound_statement "{\n    *puVar2 = 0x3a;\n  }" { (expression_statement "*puVar2 = 0x3a;" (assignment_expression "*puVar2 = 0x3a" (pointer_expression "*puVar2" * identifier) = number_literal) ;) }))) (if_statement "if (param_2 == puVar2) {\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }" if (parenthesized_expression "(param_2 == puVar2)" ( (binary_expression "param_2 == puVar2" identifier == identifier) )) (compound_statement "{\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }" { (expression_statement "uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8)" identifier = (call_expression "(*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2dc)" ( (pointer_expression "*(code *)PTR_FUN_0012a2dc" * (cast_expression "(code *)PTR_FUN_0012a2dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2 + 1,PTR_FUN_0012a2d8)" ( (binary_expression "param_2 + 1" identifier + number_literal) , identifier )))) ;) (expression_statement "param_1[1] = uVar3;" (assignment_expression "param_1[1] = uVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (puVar2[1] == '\0') {\n    *puVar2 = 0;\n  }" if (parenthesized_expression "(puVar2[1] == '\0')" ( (binary_expression "puVar2[1] == '\0'" (subscript_expression "puVar2[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *puVar2 = 0;\n  }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) })) (expression_statement "FUN_0001d6a8(param_1,param_2);" (call_expression "FUN_0001d6a8(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * 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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (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 ( 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 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 ( 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 IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0001d6fc(undefined4 *param_1,undefined1 *param_2)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_strchr_0012af54;\n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);\n  if (puVar2 == (undefined1 *)0x0) {\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }\n  else {\n    *puVar2 = 0x3a;\n  }\n  if (param_2 == puVar2) {\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }\n  if (puVar2[1] == '\0') {\n    *puVar2 = 0;\n  }\n  FUN_0001d6a8(param_1,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001d6fc(undefined4 *param_1,undefined1 *param_2)" (identifier "FUN_0001d6fc") (parameter_list "(undefined4 *param_1,undefined1 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_strchr_0012af54;\n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);\n  if (puVar2 == (undefined1 *)0x0) {\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }\n  else {\n    *puVar2 = 0x3a;\n  }\n  if (param_2 == puVar2) {\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }\n  if (puVar2[1] == '\0') {\n    *puVar2 = 0;\n  }\n  FUN_0001d6a8(param_1,param_2);\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "puVar1 = PTR_strchr_0012af54;" (assignment_expression "puVar1 = PTR_strchr_0012af54" (identifier "puVar1") (= "=") (identifier "PTR_strchr_0012af54")) (; ";")) (expression_statement "param_1[1] = 0xffffffff;" (assignment_expression "param_1[1] = 0xffffffff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);" (assignment_expression "puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)(*(code *)puVar1)(param_2,0x2e)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)puVar1)(param_2,0x2e)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(param_2,0x2e)" (( "(") (identifier "param_2") (, ",") (number_literal "0x2e") () ")"))))) (; ";")) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }\n  else {\n    *puVar2 = 0x3a;\n  }" (if "if") (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined1 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);\n    if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }\n  }" ({ "{") (expression_statement "puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);" (assignment_expression "puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_strchr_0012af54)(param_2,0x3a)" (parenthesized_expression "(*(code *)PTR_strchr_0012af54)" (( "(") (pointer_expression "*(code *)PTR_strchr_0012af54" (* "*") (cast_expression "(code *)PTR_strchr_0012af54" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_0012af54"))) () ")")) (argument_list "(param_2,0x3a)" (( "(") (identifier "param_2") (, ",") (number_literal "0x3a") () ")"))))) (; ";")) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }" (if "if") (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined1 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);\n      *param_1 = uVar3;\n      return;\n    }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2dc)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a2dc" (* "*") (cast_expression "(code *)PTR_FUN_0012a2dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a2dc"))) () ")")) (argument_list "(param_2,PTR_FUN_0012a2e4)" (( "(") (identifier "param_2") (, ",") (identifier "PTR_FUN_0012a2e4") () ")")))) (; ";")) (expression_statement "*param_1 = uVar3;" (assignment_expression "*param_1 = uVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *puVar2 = 0x3a;\n  }" (else "else") (compound_statement "{\n    *puVar2 = 0x3a;\n  }" ({ "{") (expression_statement "*puVar2 = 0x3a;" (assignment_expression "*puVar2 = 0x3a" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0x3a")) (; ";")) (} "}")))) (if_statement "if (param_2 == puVar2) {\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == puVar2)" (( "(") (binary_expression "param_2 == puVar2" (identifier "param_2") (== "==") (identifier "puVar2")) () ")")) (compound_statement "{\n    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);\n    param_1[1] = uVar3;\n    return;\n  }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2dc)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a2dc" (* "*") (cast_expression "(code *)PTR_FUN_0012a2dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a2dc"))) () ")")) (argument_list "(param_2 + 1,PTR_FUN_0012a2d8)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (, ",") (identifier "PTR_FUN_0012a2d8") () ")")))) (; ";")) (expression_statement "param_1[1] = uVar3;" (assignment_expression "param_1[1] = uVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (puVar2[1] == '\0') {\n    *puVar2 = 0;\n  }" (if "if") (parenthesized_expression "(puVar2[1] == '\0')" (( "(") (binary_expression "puVar2[1] == '\0'" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *puVar2 = 0;\n  }" ({ "{") (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "FUN_0001d6a8(param_1,param_2);" (call_expression "FUN_0001d6a8(param_1,param_2)" (identifier "FUN_0001d6a8") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *u,char *var_2)

{
  type_2 *puVar1;
  char *var_1;
  type_3 gVar3;
  type_4 uVar4;
  
  puVar1 = PTR_strchr_0012af54;
  u->gid = 0xffffffff;
  u->uid = 0xffffffff;
  var_1 = (char *)(*(type_5 *)puVar1)(var_2,0x2e);
  if (var_1 == (char *)0x0) {
    var_1 = (char *)(*(type_5 *)PTR_strchr_0012af54)(var_2,0x3a);
    if (var_1 == (char *)0x0) {
      uVar4 = (*(type_5 *)PTR_get_ug_id_0012a2dc)(var_2,PTR_xuname2uid_0012a2e4);
      u->uid = uVar4;
      return;
    }
  }
  else {
    *var_1 = ':';
  }
  if (var_2 == var_1) {
    gVar3 = (*(type_5 *)PTR_get_ug_id_0012a2dc)(var_2 + 1,PTR_xgroup2gid_0012a2d8);
    u->gid = gVar3;
    return;
  }
  if (var_1[1] == '\0') {
    *var_1 = '\0';
  }
  var_3(u,var_2);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (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 (identifier) (number_literal)))))) (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: (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 (identifier) (number_literal)))))) (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: (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) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (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 (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

void MASKED(undefined4 *param_1,undefined1 *param_2)

{
  undefined *puVar1;
  undefined1 *puVar2;
  undefined4 uVar3;
  
  puVar1 = PTR_strchr_0012af54;
  param_1[1] = 0xffffffff;
  *param_1 = 0xffffffff;
  puVar2 = (undefined1 *)(*(code *)puVar1)(param_2,0x2e);
  if (puVar2 == (undefined1 *)0x0) {
    puVar2 = (undefined1 *)(*(code *)PTR_strchr_0012af54)(param_2,0x3a);
    if (puVar2 == (undefined1 *)0x0) {
      uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2,PTR_FUN_0012a2e4);
      *param_1 = uVar3;
      return;
    }
  }
  else {
    *puVar2 = 0x3a;
  }
  if (param_2 == puVar2) {
    uVar3 = (*(code *)PTR_FUN_0012a2dc)(param_2 + 1,PTR_FUN_0012a2d8);
    param_1[1] = uVar3;
    return;
  }
  if (puVar2[1] == '\0') {
    *puVar2 = 0;
  }
  FUN_0001d6a8(param_1,param_2);
  return;
}

