
int so_peercred(int fd,int *pid,int *uid,int *gid)

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  int *piVar4;
  socklen_t crlen;
  ucred cr;
  
  puVar1 = PTR___stack_chk_guard_000b60f8;
  piVar4 = (int *)&DAT_0000ffff;
  crlen = 0xc;
  piVar2 = *(int **)PTR___stack_chk_guard_000b60f8;
  iVar3 = (*(code *)PTR_getsockopt_000b5d70)(fd,0xffff,0x12,&cr,&crlen);
  if (iVar3 == 0) {
    *pid = cr.pid;
    *uid = cr.uid;
    *gid = cr.gid;
  }
  if (piVar2 != *(int **)puVar1) {
    (*(code *)PTR___stack_chk_fail_000b5d9c)();
    if (*piVar2 < *piVar4) {
      return -1;
    }
    return (uint)(*piVar4 < *piVar2);
  }
  return (uint)(iVar3 == 0);
}



uint so_peercred(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  int *local_1c;
  
  puVar1 = PTR___stack_chk_guard_000b60f8;
  piVar3 = (int *)&DAT_0000ffff;
  local_2c = 0xc;
  local_1c = *(int **)PTR___stack_chk_guard_000b60f8;
  iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);
  if (iVar2 == 0) {
    *param_2 = local_28;
    *param_3 = local_24;
    *param_4 = local_20;
  }
  if (local_1c != *(int **)puVar1) {
    (*(code *)PTR___stack_chk_fail_000b5d9c)();
    if (*local_1c < *piVar3) {
      return 0xffffffff;
    }
    return (uint)(*piVar3 < *local_1c);
  }
  return (uint)(iVar2 == 0);
}


lui gp,0x4
addiu gp,gp,0x5640
addu gp,gp,t9
addiu sp,sp,-0x50
lw t9,-0x7460(gp)
li v1,0xc
addiu v0,sp,0x24
sw s0,0x3c(sp)
sw v0,0x10(sp)
lw s0,-0x70d8(gp)
sw s3,0x48(sp)
or s3,a1,zero
sw s2,0x44(sp)
ori a1,zero,0xffff
sw s1,0x40(sp)
or s2,a2,zero
sw gp,0x18(sp)
or s1,a3,zero
sw ra,0x4c(sp)
addiu a3,sp,0x28
sw v1,0x24(sp)
li a2,0x12
lw v0,0x0(s0)
sw v0,0x34(sp)
jalr t9
_nop
beq v0,zero,0x00077c2c
_lw gp,0x18(sp)
or v0,zero,zero
lw a0,0x34(sp)
lw v1,0x0(s0)
bne a0,v1,0x00077c4c
_lw ra,0x4c(sp)
lw s3,0x48(sp)
lw s2,0x44(sp)
lw s1,0x40(sp)
lw s0,0x3c(sp)
jr ra
_addiu sp,sp,0x50
lw v1,0x28(sp)
li v0,0x1
sw v1,0x0(s3)
lw v1,0x2c(sp)
sw v1,0x0(s2)
lw v1,0x30(sp)
b 0x00077c04
_sw v1,0x0(s1)
lw t9,-0x7434(gp)
jalr t9
_nop
nop
nop
lw v0,0x0(a0)
lw v1,0x0(a1)
slt a0,v0,v1
bne a0,zero,0x00077c7c
_nop
jr ra
_slt v0,v1,v0
jr ra
_li v0,-0x1
(translation_unit "uint so_peercred(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  int *local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  piVar3 = (int *)&DAT_0000ffff;\n  local_2c = 0xc;\n  local_1c = *(int **)PTR___stack_chk_guard_000b60f8;\n  iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);\n  if (iVar2 == 0) {\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }\n  if (local_1c != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }\n  return (uint)(iVar2 == 0);\n}\n\n" (function_definition "uint so_peercred(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  int *local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  piVar3 = (int *)&DAT_0000ffff;\n  local_2c = 0xc;\n  local_1c = *(int **)PTR___stack_chk_guard_000b60f8;\n  iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);\n  if (iVar2 == 0) {\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }\n  if (local_1c != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }\n  return (uint)(iVar2 == 0);\n}" type_identifier (function_declarator "so_peercred(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  int *local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  piVar3 = (int *)&DAT_0000ffff;\n  local_2c = 0xc;\n  local_1c = *(int **)PTR___stack_chk_guard_000b60f8;\n  iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);\n  if (iVar2 == 0) {\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }\n  if (local_1c != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }\n  return (uint)(iVar2 == 0);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "int *local_1c;" primitive_type (pointer_declarator "*local_1c" * identifier) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b60f8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b60f8" identifier = identifier) ;) (expression_statement "piVar3 = (int *)&DAT_0000ffff;" (assignment_expression "piVar3 = (int *)&DAT_0000ffff" identifier = (cast_expression "(int *)&DAT_0000ffff" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000ffff" & identifier))) ;) (expression_statement "local_2c = 0xc;" (assignment_expression "local_2c = 0xc" identifier = number_literal) ;) (expression_statement "local_1c = *(int **)PTR___stack_chk_guard_000b60f8;" (assignment_expression "local_1c = *(int **)PTR___stack_chk_guard_000b60f8" identifier = (pointer_expression "*(int **)PTR___stack_chk_guard_000b60f8" * (cast_expression "(int **)PTR___stack_chk_guard_000b60f8" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);" (assignment_expression "iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c)" identifier = (call_expression "(*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c)" (parenthesized_expression "(*(code *)PTR_getsockopt_000b5d70)" ( (pointer_expression "*(code *)PTR_getsockopt_000b5d70" * (cast_expression "(code *)PTR_getsockopt_000b5d70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0xffff,0x12,&local_28,&local_2c)" ( identifier , number_literal , number_literal , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_2c" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }" { (expression_statement "*param_2 = local_28;" (assignment_expression "*param_2 = local_28" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*param_3 = local_24;" (assignment_expression "*param_3 = local_24" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*param_4 = local_20;" (assignment_expression "*param_4 = local_20" (pointer_expression "*param_4" * identifier) = identifier) ;) })) (if_statement "if (local_1c != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }" if (parenthesized_expression "(local_1c != *(int **)puVar1)" ( (binary_expression "local_1c != *(int **)puVar1" identifier != (pointer_expression "*(int **)puVar1" * (cast_expression "(int **)puVar1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_000b5d9c)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b5d9c" * (cast_expression "(code *)PTR___stack_chk_fail_000b5d9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(*local_1c < *piVar3)" ( (binary_expression "*local_1c < *piVar3" (pointer_expression "*local_1c" * identifier) < (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (return_statement "return (uint)(*piVar3 < *local_1c);" return (call_expression "(uint)(*piVar3 < *local_1c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*piVar3 < *local_1c)" ( (binary_expression "*piVar3 < *local_1c" (pointer_expression "*piVar3" * identifier) < (pointer_expression "*local_1c" * identifier)) ))) ;) })) (return_statement "return (uint)(iVar2 == 0);" return (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) ))) ;) })))
(translation_unit "int so_peercred(int fd,int *pid,int *uid,int *gid)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  socklen_t crlen;\n  ucred cr;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  piVar4 = (int *)&DAT_0000ffff;\n  crlen = 0xc;\n  piVar2 = *(int **)PTR___stack_chk_guard_000b60f8;\n  iVar3 = (*(code *)PTR_getsockopt_000b5d70)(fd,0xffff,0x12,&cr,&crlen);\n  if (iVar3 == 0) {\n    *pid = cr.pid;\n    *uid = cr.uid;\n    *gid = cr.gid;\n  }\n  if (piVar2 != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*piVar2 < *piVar4) {\n      return -1;\n    }\n    return (uint)(*piVar4 < *piVar2);\n  }\n  return (uint)(iVar3 == 0);\n}\n\n" (function_definition "int so_peercred(int fd,int *pid,int *uid,int *gid)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  socklen_t crlen;\n  ucred cr;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  piVar4 = (int *)&DAT_0000ffff;\n  crlen = 0xc;\n  piVar2 = *(int **)PTR___stack_chk_guard_000b60f8;\n  iVar3 = (*(code *)PTR_getsockopt_000b5d70)(fd,0xffff,0x12,&cr,&crlen);\n  if (iVar3 == 0) {\n    *pid = cr.pid;\n    *uid = cr.uid;\n    *gid = cr.gid;\n  }\n  if (piVar2 != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*piVar2 < *piVar4) {\n      return -1;\n    }\n    return (uint)(*piVar4 < *piVar2);\n  }\n  return (uint)(iVar3 == 0);\n}" primitive_type (function_declarator "so_peercred(int fd,int *pid,int *uid,int *gid)" identifier (parameter_list "(int fd,int *pid,int *uid,int *gid)" ( (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "int *pid" primitive_type (pointer_declarator "*pid" * identifier)) , (parameter_declaration "int *uid" primitive_type (pointer_declarator "*uid" * identifier)) , (parameter_declaration "int *gid" primitive_type (pointer_declarator "*gid" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  int *piVar4;\n  socklen_t crlen;\n  ucred cr;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  piVar4 = (int *)&DAT_0000ffff;\n  crlen = 0xc;\n  piVar2 = *(int **)PTR___stack_chk_guard_000b60f8;\n  iVar3 = (*(code *)PTR_getsockopt_000b5d70)(fd,0xffff,0x12,&cr,&crlen);\n  if (iVar3 == 0) {\n    *pid = cr.pid;\n    *uid = cr.uid;\n    *gid = cr.gid;\n  }\n  if (piVar2 != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*piVar2 < *piVar4) {\n      return -1;\n    }\n    return (uint)(*piVar4 < *piVar2);\n  }\n  return (uint)(iVar3 == 0);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "socklen_t crlen;" type_identifier identifier ;) (declaration "ucred cr;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b60f8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b60f8" identifier = identifier) ;) (expression_statement "piVar4 = (int *)&DAT_0000ffff;" (assignment_expression "piVar4 = (int *)&DAT_0000ffff" identifier = (cast_expression "(int *)&DAT_0000ffff" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000ffff" & identifier))) ;) (expression_statement "crlen = 0xc;" (assignment_expression "crlen = 0xc" identifier = number_literal) ;) (expression_statement "piVar2 = *(int **)PTR___stack_chk_guard_000b60f8;" (assignment_expression "piVar2 = *(int **)PTR___stack_chk_guard_000b60f8" identifier = (pointer_expression "*(int **)PTR___stack_chk_guard_000b60f8" * (cast_expression "(int **)PTR___stack_chk_guard_000b60f8" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar3 = (*(code *)PTR_getsockopt_000b5d70)(fd,0xffff,0x12,&cr,&crlen);" (assignment_expression "iVar3 = (*(code *)PTR_getsockopt_000b5d70)(fd,0xffff,0x12,&cr,&crlen)" identifier = (call_expression "(*(code *)PTR_getsockopt_000b5d70)(fd,0xffff,0x12,&cr,&crlen)" (parenthesized_expression "(*(code *)PTR_getsockopt_000b5d70)" ( (pointer_expression "*(code *)PTR_getsockopt_000b5d70" * (cast_expression "(code *)PTR_getsockopt_000b5d70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd,0xffff,0x12,&cr,&crlen)" ( identifier , number_literal , number_literal , (pointer_expression "&cr" & identifier) , (pointer_expression "&crlen" & identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n    *pid = cr.pid;\n    *uid = cr.uid;\n    *gid = cr.gid;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    *pid = cr.pid;\n    *uid = cr.uid;\n    *gid = cr.gid;\n  }" { (expression_statement "*pid = cr.pid;" (assignment_expression "*pid = cr.pid" (pointer_expression "*pid" * identifier) = (field_expression "cr.pid" identifier . field_identifier)) ;) (expression_statement "*uid = cr.uid;" (assignment_expression "*uid = cr.uid" (pointer_expression "*uid" * identifier) = (field_expression "cr.uid" identifier . field_identifier)) ;) (expression_statement "*gid = cr.gid;" (assignment_expression "*gid = cr.gid" (pointer_expression "*gid" * identifier) = (field_expression "cr.gid" identifier . field_identifier)) ;) })) (if_statement "if (piVar2 != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*piVar2 < *piVar4) {\n      return -1;\n    }\n    return (uint)(*piVar4 < *piVar2);\n  }" if (parenthesized_expression "(piVar2 != *(int **)puVar1)" ( (binary_expression "piVar2 != *(int **)puVar1" identifier != (pointer_expression "*(int **)puVar1" * (cast_expression "(int **)puVar1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*piVar2 < *piVar4) {\n      return -1;\n    }\n    return (uint)(*piVar4 < *piVar2);\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_000b5d9c)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b5d9c" * (cast_expression "(code *)PTR___stack_chk_fail_000b5d9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (*piVar2 < *piVar4) {\n      return -1;\n    }" if (parenthesized_expression "(*piVar2 < *piVar4)" ( (binary_expression "*piVar2 < *piVar4" (pointer_expression "*piVar2" * identifier) < (pointer_expression "*piVar4" * identifier)) )) (compound_statement "{\n      return -1;\n    }" { (return_statement "return -1;" return number_literal ;) })) (return_statement "return (uint)(*piVar4 < *piVar2);" return (call_expression "(uint)(*piVar4 < *piVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*piVar4 < *piVar2)" ( (binary_expression "*piVar4 < *piVar2" (pointer_expression "*piVar4" * identifier) < (pointer_expression "*piVar2" * identifier)) ))) ;) })) (return_statement "return (uint)(iVar3 == 0);" return (call_expression "(uint)(iVar3 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) ))) ;) })))
(translation_unit "uint so_peercred(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  int *local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  piVar3 = (int *)&DAT_0000ffff;\n  local_2c = 0xc;\n  local_1c = *(int **)PTR___stack_chk_guard_000b60f8;\n  iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);\n  if (iVar2 == 0) {\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }\n  if (local_1c != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }\n  return (uint)(iVar2 == 0);\n}\n\n" (function_definition "uint so_peercred(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  int *local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  piVar3 = (int *)&DAT_0000ffff;\n  local_2c = 0xc;\n  local_1c = *(int **)PTR___stack_chk_guard_000b60f8;\n  iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);\n  if (iVar2 == 0) {\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }\n  if (local_1c != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }\n  return (uint)(iVar2 == 0);\n}" type_identifier (function_declarator "so_peercred(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  int *local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  piVar3 = (int *)&DAT_0000ffff;\n  local_2c = 0xc;\n  local_1c = *(int **)PTR___stack_chk_guard_000b60f8;\n  iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);\n  if (iVar2 == 0) {\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }\n  if (local_1c != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }\n  return (uint)(iVar2 == 0);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "int *local_1c;" primitive_type (pointer_declarator "*local_1c" * identifier) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b60f8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b60f8" identifier = identifier) ;) (expression_statement "piVar3 = (int *)&DAT_0000ffff;" (assignment_expression "piVar3 = (int *)&DAT_0000ffff" identifier = (cast_expression "(int *)&DAT_0000ffff" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0000ffff" & identifier))) ;) (expression_statement "local_2c = 0xc;" (assignment_expression "local_2c = 0xc" identifier = number_literal) ;) (expression_statement "local_1c = *(int **)PTR___stack_chk_guard_000b60f8;" (assignment_expression "local_1c = *(int **)PTR___stack_chk_guard_000b60f8" identifier = (pointer_expression "*(int **)PTR___stack_chk_guard_000b60f8" * (cast_expression "(int **)PTR___stack_chk_guard_000b60f8" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);" (assignment_expression "iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c)" identifier = (call_expression "(*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c)" (parenthesized_expression "(*(code *)PTR_getsockopt_000b5d70)" ( (pointer_expression "*(code *)PTR_getsockopt_000b5d70" * (cast_expression "(code *)PTR_getsockopt_000b5d70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0xffff,0x12,&local_28,&local_2c)" ( identifier , number_literal , number_literal , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_2c" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }" { (expression_statement "*param_2 = local_28;" (assignment_expression "*param_2 = local_28" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*param_3 = local_24;" (assignment_expression "*param_3 = local_24" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*param_4 = local_20;" (assignment_expression "*param_4 = local_20" (pointer_expression "*param_4" * identifier) = identifier) ;) })) (if_statement "if (local_1c != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }" if (parenthesized_expression "(local_1c != *(int **)puVar1)" ( (binary_expression "local_1c != *(int **)puVar1" identifier != (pointer_expression "*(int **)puVar1" * (cast_expression "(int **)puVar1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_000b5d9c)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b5d9c" * (cast_expression "(code *)PTR___stack_chk_fail_000b5d9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(*local_1c < *piVar3)" ( (binary_expression "*local_1c < *piVar3" (pointer_expression "*local_1c" * identifier) < (pointer_expression "*piVar3" * identifier)) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (return_statement "return (uint)(*piVar3 < *local_1c);" return (call_expression "(uint)(*piVar3 < *local_1c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*piVar3 < *local_1c)" ( (binary_expression "*piVar3 < *local_1c" (pointer_expression "*piVar3" * identifier) < (pointer_expression "*local_1c" * identifier)) ))) ;) })) (return_statement "return (uint)(iVar2 == 0);" return (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT)) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT)) ))) ;) })) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))) ;) })))
(function_definition "uint so_peercred(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  int *local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  piVar3 = (int *)&DAT_0000ffff;\n  local_2c = 0xc;\n  local_1c = *(int **)PTR___stack_chk_guard_000b60f8;\n  iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);\n  if (iVar2 == 0) {\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }\n  if (local_1c != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }\n  return (uint)(iVar2 == 0);\n}" (type_identifier "uint") (function_declarator "so_peercred(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" (identifier "so_peercred") (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  int *local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b60f8;\n  piVar3 = (int *)&DAT_0000ffff;\n  local_2c = 0xc;\n  local_1c = *(int **)PTR___stack_chk_guard_000b60f8;\n  iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);\n  if (iVar2 == 0) {\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }\n  if (local_1c != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }\n  return (uint)(iVar2 == 0);\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "int *local_1c;" (primitive_type "int") (pointer_declarator "*local_1c" (* "*") (identifier "local_1c")) (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_000b60f8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b60f8" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000b60f8")) (; ";")) (expression_statement "piVar3 = (int *)&DAT_0000ffff;" (assignment_expression "piVar3 = (int *)&DAT_0000ffff" (identifier "piVar3") (= "=") (cast_expression "(int *)&DAT_0000ffff" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0000ffff" (& "&") (identifier "DAT_0000ffff")))) (; ";")) (expression_statement "local_2c = 0xc;" (assignment_expression "local_2c = 0xc" (identifier "local_2c") (= "=") (number_literal "0xc")) (; ";")) (expression_statement "local_1c = *(int **)PTR___stack_chk_guard_000b60f8;" (assignment_expression "local_1c = *(int **)PTR___stack_chk_guard_000b60f8" (identifier "local_1c") (= "=") (pointer_expression "*(int **)PTR___stack_chk_guard_000b60f8" (* "*") (cast_expression "(int **)PTR___stack_chk_guard_000b60f8" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_000b60f8")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);" (assignment_expression "iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c)" (parenthesized_expression "(*(code *)PTR_getsockopt_000b5d70)" (( "(") (pointer_expression "*(code *)PTR_getsockopt_000b5d70" (* "*") (cast_expression "(code *)PTR_getsockopt_000b5d70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getsockopt_000b5d70"))) () ")")) (argument_list "(param_1,0xffff,0x12,&local_28,&local_2c)" (( "(") (identifier "param_1") (, ",") (number_literal "0xffff") (, ",") (number_literal "0x12") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_2 = local_28;\n    *param_3 = local_24;\n    *param_4 = local_20;\n  }" ({ "{") (expression_statement "*param_2 = local_28;" (assignment_expression "*param_2 = local_28" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "local_28")) (; ";")) (expression_statement "*param_3 = local_24;" (assignment_expression "*param_3 = local_24" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "local_24")) (; ";")) (expression_statement "*param_4 = local_20;" (assignment_expression "*param_4 = local_20" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "local_20")) (; ";")) (} "}"))) (if_statement "if (local_1c != *(int **)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }" (if "if") (parenthesized_expression "(local_1c != *(int **)puVar1)" (( "(") (binary_expression "local_1c != *(int **)puVar1" (identifier "local_1c") (!= "!=") (pointer_expression "*(int **)puVar1" (* "*") (cast_expression "(int **)puVar1" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_000b5d9c)();\n    if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }\n    return (uint)(*piVar3 < *local_1c);\n  }" ({ "{") (expression_statement "(*(code *)PTR___stack_chk_fail_000b5d9c)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b5d9c)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b5d9c" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b5d9c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b5d9c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*local_1c < *piVar3) {\n      return 0xffffffff;\n    }" (if "if") (parenthesized_expression "(*local_1c < *piVar3)" (( "(") (binary_expression "*local_1c < *piVar3" (pointer_expression "*local_1c" (* "*") (identifier "local_1c")) (< "<") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")) (compound_statement "{\n      return 0xffffffff;\n    }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (return_statement "return (uint)(*piVar3 < *local_1c);" (return "return") (call_expression "(uint)(*piVar3 < *local_1c)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*piVar3 < *local_1c)" (( "(") (binary_expression "*piVar3 < *local_1c" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (< "<") (pointer_expression "*local_1c" (* "*") (identifier "local_1c"))) () ")"))) (; ";")) (} "}"))) (return_statement "return (uint)(iVar2 == 0);" (return "return") (call_expression "(uint)(iVar2 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")"))) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (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) (number_literal) (number_literal) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) consequence: (compound_statement (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement (number_literal)))) (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))))))) (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))))

uint MASKED(undefined4 param_1,undefined4 *param_2,undefined4 *param_3,undefined4 *param_4)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  int *local_1c;
  
  puVar1 = PTR___stack_chk_guard_000b60f8;
  piVar3 = (int *)&DAT_0000ffff;
  local_2c = 0xc;
  local_1c = *(int **)PTR___stack_chk_guard_000b60f8;
  iVar2 = (*(code *)PTR_getsockopt_000b5d70)(param_1,0xffff,0x12,&local_28,&local_2c);
  if (iVar2 == 0) {
    *param_2 = local_28;
    *param_3 = local_24;
    *param_4 = local_20;
  }
  if (local_1c != *(int **)puVar1) {
    (*(code *)PTR___stack_chk_fail_000b5d9c)();
    if (*local_1c < *piVar3) {
      return 0xffffffff;
    }
    return (uint)(*piVar3 < *local_1c);
  }
  return (uint)(iVar2 == 0);
}

