
/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

int socket_start_extra_buffering(MHD_Connection *connection)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  MHD_Connection *connection_00;
  int *piVar4;
  undefined *puVar5;
  undefined4 uStack_64;
  undefined4 uStack_60;
  MHD_Connection *pMStack_5c;
  undefined *puStack_54;
  MHD_Connection *pMStack_50;
  undefined4 uStack_4c;
  MHD_SCKT_OPT_BOOL_ on_val;
  MHD_SCKT_OPT_BOOL_ off_val;
  int local_14;
  
  puVar1 = PTR___stack_chk_guard_000412f0;
  local_14 = *(int *)PTR___stack_chk_guard_000412f0;
  on_val = 1;
  off_val = 0;
  (*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,1,&off_val);
  iVar2 = (*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,3,&on_val);
  if (local_14 == *(int *)puVar1) {
    return (uint)(iVar2 == 0);
  }
  iVar2 = local_14;
  puVar5 = PTR___stack_chk_fail_000412bc;
  (*(code *)PTR___stack_chk_fail_000412bc)();
  uStack_4c = 4;
  puStack_54 = puVar1;
  piVar4 = *(int **)(puVar5 + 0x2e984);
  pMStack_5c = (MHD_Connection *)*piVar4;
  uStack_64 = 1;
  uStack_60 = 0;
  pMStack_50 = connection;
  iVar3 = (**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);
  iVar2 = (**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);
  if (pMStack_5c == (MHD_Connection *)*piVar4) {
    return (uint)(iVar3 == 0 && iVar2 == 0);
  }
  connection_00 = pMStack_5c;
  (**(code **)(puVar5 + 0x2e950))();
  if (connection_00 != (MHD_Connection *)0x0) {
    iVar2 = socket_start_no_buffering(connection_00);
    return iVar2;
  }
  return 0;
}



uint FUN_000128ac(int param_1)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  uint uVar4;
  int *piVar5;
  undefined *puVar6;
  undefined4 uStack_64;
  undefined4 uStack_60;
  int iStack_5c;
  undefined *puStack_54;
  int iStack_50;
  undefined4 uStack_4c;
  undefined4 local_1c;
  undefined4 local_18;
  int local_14;
  
  puVar1 = PTR___stack_chk_guard_000412f0;
  local_14 = *(int *)PTR___stack_chk_guard_000412f0;
  local_1c = 1;
  local_18 = 0;
  (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);
  iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);
  if (local_14 == *(int *)puVar1) {
    return (uint)(iVar2 == 0);
  }
  iVar2 = local_14;
  puVar6 = PTR___stack_chk_fail_000412bc;
  (*(code *)PTR___stack_chk_fail_000412bc)();
  uStack_4c = 4;
  puStack_54 = puVar1;
  piVar5 = *(int **)(puVar6 + 0x2e984);
  iStack_5c = *piVar5;
  uStack_64 = 1;
  uStack_60 = 0;
  iStack_50 = param_1;
  iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);
  iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);
  if (iStack_5c == *piVar5) {
    return (uint)(iVar3 == 0 && iVar2 == 0);
  }
  iVar2 = iStack_5c;
  (**(code **)(puVar6 + 0x2e950))();
  if (iVar2 != 0) {
    uVar4 = FUN_0001296c();
    return uVar4;
  }
  return 0;
}


lui gp,0x3
addiu gp,gp,0x6784
addu gp,gp,t9
addiu sp,sp,-0x40
sw ra,0x3c(sp)
sw s2,0x38(sp)
sw s1,0x34(sp)
sw s0,0x30(sp)
sw gp,0x18(sp)
or s1,a0,zero
lw s0,-0x7d40(gp)
lw v0,0x0(s0)
sw v0,0x2c(sp)
li v0,0x1
sw v0,0x24(sp)
sw zero,0x28(sp)
li s2,0x4
sw s2,0x10(sp)
addiu a3,sp,0x28
li a2,0x1
li a1,0x6
lw a0,0xa4(a0)
lw t9,-0x7cec(gp)
jalr t9
_nop
lw gp,0x18(sp)
sw s2,0x10(sp)
addiu a3,sp,0x24
li a2,0x3
li a1,0x6
lw a0,0xa4(s1)
lw t9,-0x7cec(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw a0,0x2c(sp)
lw v1,0x0(s0)
bne a0,v1,0x00012960
_sltiu v0,v0,0x1
lw ra,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x40
lw t9,-0x7d74(gp)
jalr t9
_nop
(translation_unit "uint FUN_000128ac(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 uStack_64;\n  undefined4 uStack_60;\n  int iStack_5c;\n  undefined *puStack_54;\n  int iStack_50;\n  undefined4 uStack_4c;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000412f0;\n  local_14 = *(int *)PTR___stack_chk_guard_000412f0;\n  local_1c = 1;\n  local_18 = 0;\n  (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);\n  iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);\n  if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_000412bc;\n  (*(code *)PTR___stack_chk_fail_000412bc)();\n  uStack_4c = 4;\n  puStack_54 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x2e984);\n  iStack_5c = *piVar5;\n  uStack_64 = 1;\n  uStack_60 = 0;\n  iStack_50 = param_1;\n  iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);\n  iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);\n  if (iStack_5c == *piVar5) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }\n  iVar2 = iStack_5c;\n  (**(code **)(puVar6 + 0x2e950))();\n  if (iVar2 != 0) {\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_000128ac(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 uStack_64;\n  undefined4 uStack_60;\n  int iStack_5c;\n  undefined *puStack_54;\n  int iStack_50;\n  undefined4 uStack_4c;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000412f0;\n  local_14 = *(int *)PTR___stack_chk_guard_000412f0;\n  local_1c = 1;\n  local_18 = 0;\n  (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);\n  iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);\n  if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_000412bc;\n  (*(code *)PTR___stack_chk_fail_000412bc)();\n  uStack_4c = 4;\n  puStack_54 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x2e984);\n  iStack_5c = *piVar5;\n  uStack_64 = 1;\n  uStack_60 = 0;\n  iStack_50 = param_1;\n  iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);\n  iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);\n  if (iStack_5c == *piVar5) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }\n  iVar2 = iStack_5c;\n  (**(code **)(puVar6 + 0x2e950))();\n  if (iVar2 != 0) {\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000128ac(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 uStack_64;\n  undefined4 uStack_60;\n  int iStack_5c;\n  undefined *puStack_54;\n  int iStack_50;\n  undefined4 uStack_4c;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000412f0;\n  local_14 = *(int *)PTR___stack_chk_guard_000412f0;\n  local_1c = 1;\n  local_18 = 0;\n  (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);\n  iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);\n  if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_000412bc;\n  (*(code *)PTR___stack_chk_fail_000412bc)();\n  uStack_4c = 4;\n  puStack_54 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x2e984);\n  iStack_5c = *piVar5;\n  uStack_64 = 1;\n  uStack_60 = 0;\n  iStack_50 = param_1;\n  iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);\n  iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);\n  if (iStack_5c == *piVar5) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }\n  iVar2 = iStack_5c;\n  (**(code **)(puVar6 + 0x2e950))();\n  if (iVar2 != 0) {\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uStack_64;" type_identifier identifier ;) (declaration "undefined4 uStack_60;" type_identifier identifier ;) (declaration "int iStack_5c;" primitive_type identifier ;) (declaration "undefined *puStack_54;" type_identifier (pointer_declarator "*puStack_54" * identifier) ;) (declaration "int iStack_50;" primitive_type identifier ;) (declaration "undefined4 uStack_4c;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000412f0;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000412f0" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000412f0;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000412f0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000412f0" * (cast_expression "(int *)PTR___stack_chk_guard_000412f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_1c = 1;" (assignment_expression "local_1c = 1" identifier = number_literal) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);" (call_expression "(*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18)" (parenthesized_expression "(*(code *)PTR_setsockopt_00041344)" ( (pointer_expression "*(code *)PTR_setsockopt_00041344" * (cast_expression "(code *)PTR_setsockopt_00041344" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xa4)" * (cast_expression "(undefined4 *)(param_1 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa4)" ( (binary_expression "param_1 + 0xa4" identifier + number_literal) )))) , number_literal , number_literal , (pointer_expression "&local_18" & identifier) ))) ;) (expression_statement "iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);" (assignment_expression "iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c)" identifier = (call_expression "(*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c)" (parenthesized_expression "(*(code *)PTR_setsockopt_00041344)" ( (pointer_expression "*(code *)PTR_setsockopt_00041344" * (cast_expression "(code *)PTR_setsockopt_00041344" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xa4)" * (cast_expression "(undefined4 *)(param_1 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa4)" ( (binary_expression "param_1 + 0xa4" identifier + number_literal) )))) , number_literal , number_literal , (pointer_expression "&local_1c" & identifier) )))) ;) (if_statement "if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar1)" ( (binary_expression "local_14 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return (uint)(iVar2 == 0);\n  }" { (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) ))) ;) })) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_000412bc;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000412bc" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000412bc)();" (call_expression "(*(code *)PTR___stack_chk_fail_000412bc)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000412bc)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000412bc" * (cast_expression "(code *)PTR___stack_chk_fail_000412bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uStack_4c = 4;" (assignment_expression "uStack_4c = 4" identifier = number_literal) ;) (expression_statement "puStack_54 = puVar1;" (assignment_expression "puStack_54 = puVar1" identifier = identifier) ;) (expression_statement "piVar5 = *(int **)(puVar6 + 0x2e984);" (assignment_expression "piVar5 = *(int **)(puVar6 + 0x2e984)" identifier = (pointer_expression "*(int **)(puVar6 + 0x2e984)" * (cast_expression "(int **)(puVar6 + 0x2e984)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2e984)" ( (binary_expression "puVar6 + 0x2e984" identifier + number_literal) ))))) ;) (expression_statement "iStack_5c = *piVar5;" (assignment_expression "iStack_5c = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "uStack_64 = 1;" (assignment_expression "uStack_64 = 1" identifier = number_literal) ;) (expression_statement "uStack_60 = 0;" (assignment_expression "uStack_60 = 0" identifier = number_literal) ;) (expression_statement "iStack_50 = param_1;" (assignment_expression "iStack_50 = param_1" identifier = identifier) ;) (expression_statement "iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);" (assignment_expression "iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4)" identifier = (call_expression "(**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4)" (parenthesized_expression "(**(code **)(puVar6 + 0x2e9d8))" ( (pointer_expression "**(code **)(puVar6 + 0x2e9d8)" * (pointer_expression "*(code **)(puVar6 + 0x2e9d8)" * (cast_expression "(code **)(puVar6 + 0x2e9d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2e9d8)" ( (binary_expression "puVar6 + 0x2e9d8" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , number_literal , number_literal , (pointer_expression "&uStack_60" & identifier) , number_literal )))) ;) (expression_statement "iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4)" identifier = (call_expression "(**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4)" (parenthesized_expression "(**(code **)(puVar6 + 0x2e9d8))" ( (pointer_expression "**(code **)(puVar6 + 0x2e9d8)" * (pointer_expression "*(code **)(puVar6 + 0x2e9d8)" * (cast_expression "(code **)(puVar6 + 0x2e9d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2e9d8)" ( (binary_expression "puVar6 + 0x2e9d8" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , number_literal , number_literal , (pointer_expression "&uStack_64" & identifier) , number_literal )))) ;) (if_statement "if (iStack_5c == *piVar5) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }" if (parenthesized_expression "(iStack_5c == *piVar5)" ( (binary_expression "iStack_5c == *piVar5" identifier == (pointer_expression "*piVar5" * identifier)) )) (compound_statement "{\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }" { (return_statement "return (uint)(iVar3 == 0 && iVar2 == 0);" return (call_expression "(uint)(iVar3 == 0 && iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 == 0 && iVar2 == 0)" ( (binary_expression "iVar3 == 0 && iVar2 == 0" (binary_expression "iVar3 == 0" identifier == number_literal) && (binary_expression "iVar2 == 0" identifier == number_literal)) ))) ;) })) (expression_statement "iVar2 = iStack_5c;" (assignment_expression "iVar2 = iStack_5c" identifier = identifier) ;) (expression_statement "(**(code **)(puVar6 + 0x2e950))();" (call_expression "(**(code **)(puVar6 + 0x2e950))()" (parenthesized_expression "(**(code **)(puVar6 + 0x2e950))" ( (pointer_expression "**(code **)(puVar6 + 0x2e950)" * (pointer_expression "*(code **)(puVar6 + 0x2e950)" * (cast_expression "(code **)(puVar6 + 0x2e950)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2e950)" ( (binary_expression "puVar6 + 0x2e950" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar2 != 0) {\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }" { (expression_statement "uVar4 = FUN_0001296c();" (assignment_expression "uVar4 = FUN_0001296c()" identifier = (call_expression "FUN_0001296c()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar4;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */\n/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */\n\nint socket_start_extra_buffering(MHD_Connection *connection)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  MHD_Connection *connection_00;\n  int *piVar4;\n  undefined *puVar5;\n  undefined4 uStack_64;\n  undefined4 uStack_60;\n  MHD_Connection *pMStack_5c;\n  undefined *puStack_54;\n  MHD_Connection *pMStack_50;\n  undefined4 uStack_4c;\n  MHD_SCKT_OPT_BOOL_ on_val;\n  MHD_SCKT_OPT_BOOL_ off_val;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000412f0;\n  local_14 = *(int *)PTR___stack_chk_guard_000412f0;\n  on_val = 1;\n  off_val = 0;\n  (*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,1,&off_val);\n  iVar2 = (*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,3,&on_val);\n  if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }\n  iVar2 = local_14;\n  puVar5 = PTR___stack_chk_fail_000412bc;\n  (*(code *)PTR___stack_chk_fail_000412bc)();\n  uStack_4c = 4;\n  puStack_54 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x2e984);\n  pMStack_5c = (MHD_Connection *)*piVar4;\n  uStack_64 = 1;\n  uStack_60 = 0;\n  pMStack_50 = connection;\n  iVar3 = (**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);\n  iVar2 = (**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);\n  if (pMStack_5c == (MHD_Connection *)*piVar4) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }\n  connection_00 = pMStack_5c;\n  (**(code **)(puVar5 + 0x2e950))();\n  if (connection_00 != (MHD_Connection *)0x0) {\n    iVar2 = socket_start_no_buffering(connection_00);\n    return iVar2;\n  }\n  return 0;\n}\n\n" comment comment comment (function_definition "int socket_start_extra_buffering(MHD_Connection *connection)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  MHD_Connection *connection_00;\n  int *piVar4;\n  undefined *puVar5;\n  undefined4 uStack_64;\n  undefined4 uStack_60;\n  MHD_Connection *pMStack_5c;\n  undefined *puStack_54;\n  MHD_Connection *pMStack_50;\n  undefined4 uStack_4c;\n  MHD_SCKT_OPT_BOOL_ on_val;\n  MHD_SCKT_OPT_BOOL_ off_val;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000412f0;\n  local_14 = *(int *)PTR___stack_chk_guard_000412f0;\n  on_val = 1;\n  off_val = 0;\n  (*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,1,&off_val);\n  iVar2 = (*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,3,&on_val);\n  if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }\n  iVar2 = local_14;\n  puVar5 = PTR___stack_chk_fail_000412bc;\n  (*(code *)PTR___stack_chk_fail_000412bc)();\n  uStack_4c = 4;\n  puStack_54 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x2e984);\n  pMStack_5c = (MHD_Connection *)*piVar4;\n  uStack_64 = 1;\n  uStack_60 = 0;\n  pMStack_50 = connection;\n  iVar3 = (**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);\n  iVar2 = (**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);\n  if (pMStack_5c == (MHD_Connection *)*piVar4) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }\n  connection_00 = pMStack_5c;\n  (**(code **)(puVar5 + 0x2e950))();\n  if (connection_00 != (MHD_Connection *)0x0) {\n    iVar2 = socket_start_no_buffering(connection_00);\n    return iVar2;\n  }\n  return 0;\n}" primitive_type (function_declarator "socket_start_extra_buffering(MHD_Connection *connection)" identifier (parameter_list "(MHD_Connection *connection)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  MHD_Connection *connection_00;\n  int *piVar4;\n  undefined *puVar5;\n  undefined4 uStack_64;\n  undefined4 uStack_60;\n  MHD_Connection *pMStack_5c;\n  undefined *puStack_54;\n  MHD_Connection *pMStack_50;\n  undefined4 uStack_4c;\n  MHD_SCKT_OPT_BOOL_ on_val;\n  MHD_SCKT_OPT_BOOL_ off_val;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000412f0;\n  local_14 = *(int *)PTR___stack_chk_guard_000412f0;\n  on_val = 1;\n  off_val = 0;\n  (*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,1,&off_val);\n  iVar2 = (*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,3,&on_val);\n  if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }\n  iVar2 = local_14;\n  puVar5 = PTR___stack_chk_fail_000412bc;\n  (*(code *)PTR___stack_chk_fail_000412bc)();\n  uStack_4c = 4;\n  puStack_54 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x2e984);\n  pMStack_5c = (MHD_Connection *)*piVar4;\n  uStack_64 = 1;\n  uStack_60 = 0;\n  pMStack_50 = connection;\n  iVar3 = (**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);\n  iVar2 = (**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);\n  if (pMStack_5c == (MHD_Connection *)*piVar4) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }\n  connection_00 = pMStack_5c;\n  (**(code **)(puVar5 + 0x2e950))();\n  if (connection_00 != (MHD_Connection *)0x0) {\n    iVar2 = socket_start_no_buffering(connection_00);\n    return iVar2;\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "MHD_Connection *connection_00;" type_identifier (pointer_declarator "*connection_00" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uStack_64;" type_identifier identifier ;) (declaration "undefined4 uStack_60;" type_identifier identifier ;) (declaration "MHD_Connection *pMStack_5c;" type_identifier (pointer_declarator "*pMStack_5c" * identifier) ;) (declaration "undefined *puStack_54;" type_identifier (pointer_declarator "*puStack_54" * identifier) ;) (declaration "MHD_Connection *pMStack_50;" type_identifier (pointer_declarator "*pMStack_50" * identifier) ;) (declaration "undefined4 uStack_4c;" type_identifier identifier ;) (declaration "MHD_SCKT_OPT_BOOL_ on_val;" type_identifier identifier ;) (declaration "MHD_SCKT_OPT_BOOL_ off_val;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000412f0;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000412f0" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000412f0;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000412f0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000412f0" * (cast_expression "(int *)PTR___stack_chk_guard_000412f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "on_val = 1;" (assignment_expression "on_val = 1" identifier = number_literal) ;) (expression_statement "off_val = 0;" (assignment_expression "off_val = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,1,&off_val);" (call_expression "(*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,1,&off_val)" (parenthesized_expression "(*(code *)PTR_setsockopt_00041344)" ( (pointer_expression "*(code *)PTR_setsockopt_00041344" * (cast_expression "(code *)PTR_setsockopt_00041344" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(connection->socket_fd,6,1,&off_val)" ( (field_expression "connection->socket_fd" identifier -> field_identifier) , number_literal , number_literal , (pointer_expression "&off_val" & identifier) ))) ;) (expression_statement "iVar2 = (*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,3,&on_val);" (assignment_expression "iVar2 = (*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,3,&on_val)" identifier = (call_expression "(*(code *)PTR_setsockopt_00041344)(connection->socket_fd,6,3,&on_val)" (parenthesized_expression "(*(code *)PTR_setsockopt_00041344)" ( (pointer_expression "*(code *)PTR_setsockopt_00041344" * (cast_expression "(code *)PTR_setsockopt_00041344" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(connection->socket_fd,6,3,&on_val)" ( (field_expression "connection->socket_fd" identifier -> field_identifier) , number_literal , number_literal , (pointer_expression "&on_val" & identifier) )))) ;) (if_statement "if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar1)" ( (binary_expression "local_14 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return (uint)(iVar2 == 0);\n  }" { (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) ))) ;) })) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_000412bc;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000412bc" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000412bc)();" (call_expression "(*(code *)PTR___stack_chk_fail_000412bc)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000412bc)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000412bc" * (cast_expression "(code *)PTR___stack_chk_fail_000412bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uStack_4c = 4;" (assignment_expression "uStack_4c = 4" identifier = number_literal) ;) (expression_statement "puStack_54 = puVar1;" (assignment_expression "puStack_54 = puVar1" identifier = identifier) ;) (expression_statement "piVar4 = *(int **)(puVar5 + 0x2e984);" (assignment_expression "piVar4 = *(int **)(puVar5 + 0x2e984)" identifier = (pointer_expression "*(int **)(puVar5 + 0x2e984)" * (cast_expression "(int **)(puVar5 + 0x2e984)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x2e984)" ( (binary_expression "puVar5 + 0x2e984" identifier + number_literal) ))))) ;) (expression_statement "pMStack_5c = (MHD_Connection *)*piVar4;" (assignment_expression "pMStack_5c = (MHD_Connection *)*piVar4" identifier = (cast_expression "(MHD_Connection *)*piVar4" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "uStack_64 = 1;" (assignment_expression "uStack_64 = 1" identifier = number_literal) ;) (expression_statement "uStack_60 = 0;" (assignment_expression "uStack_60 = 0" identifier = number_literal) ;) (expression_statement "pMStack_50 = connection;" (assignment_expression "pMStack_50 = connection" identifier = identifier) ;) (expression_statement "iVar3 = (**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);" (assignment_expression "iVar3 = (**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4)" identifier = (call_expression "(**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4)" (parenthesized_expression "(**(code **)(puVar5 + 0x2e9d8))" ( (pointer_expression "**(code **)(puVar5 + 0x2e9d8)" * (pointer_expression "*(code **)(puVar5 + 0x2e9d8)" * (cast_expression "(code **)(puVar5 + 0x2e9d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x2e9d8)" ( (binary_expression "puVar5 + 0x2e9d8" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , number_literal , number_literal , (pointer_expression "&uStack_60" & identifier) , number_literal )))) ;) (expression_statement "iVar2 = (**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);" (assignment_expression "iVar2 = (**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4)" identifier = (call_expression "(**(code **)(puVar5 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4)" (parenthesized_expression "(**(code **)(puVar5 + 0x2e9d8))" ( (pointer_expression "**(code **)(puVar5 + 0x2e9d8)" * (pointer_expression "*(code **)(puVar5 + 0x2e9d8)" * (cast_expression "(code **)(puVar5 + 0x2e9d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x2e9d8)" ( (binary_expression "puVar5 + 0x2e9d8" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , number_literal , number_literal , (pointer_expression "&uStack_64" & identifier) , number_literal )))) ;) (if_statement "if (pMStack_5c == (MHD_Connection *)*piVar4) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }" if (parenthesized_expression "(pMStack_5c == (MHD_Connection *)*piVar4)" ( (binary_expression "pMStack_5c == (MHD_Connection *)*piVar4" identifier == (cast_expression "(MHD_Connection *)*piVar4" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) )) (compound_statement "{\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }" { (return_statement "return (uint)(iVar3 == 0 && iVar2 == 0);" return (call_expression "(uint)(iVar3 == 0 && iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 == 0 && iVar2 == 0)" ( (binary_expression "iVar3 == 0 && iVar2 == 0" (binary_expression "iVar3 == 0" identifier == number_literal) && (binary_expression "iVar2 == 0" identifier == number_literal)) ))) ;) })) (expression_statement "connection_00 = pMStack_5c;" (assignment_expression "connection_00 = pMStack_5c" identifier = identifier) ;) (expression_statement "(**(code **)(puVar5 + 0x2e950))();" (call_expression "(**(code **)(puVar5 + 0x2e950))()" (parenthesized_expression "(**(code **)(puVar5 + 0x2e950))" ( (pointer_expression "**(code **)(puVar5 + 0x2e950)" * (pointer_expression "*(code **)(puVar5 + 0x2e950)" * (cast_expression "(code **)(puVar5 + 0x2e950)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x2e950)" ( (binary_expression "puVar5 + 0x2e950" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (if_statement "if (connection_00 != (MHD_Connection *)0x0) {\n    iVar2 = socket_start_no_buffering(connection_00);\n    return iVar2;\n  }" if (parenthesized_expression "(connection_00 != (MHD_Connection *)0x0)" ( (binary_expression "connection_00 != (MHD_Connection *)0x0" identifier != (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = socket_start_no_buffering(connection_00);\n    return iVar2;\n  }" { (expression_statement "iVar2 = socket_start_no_buffering(connection_00);" (assignment_expression "iVar2 = socket_start_no_buffering(connection_00)" identifier = (call_expression "socket_start_no_buffering(connection_00)" identifier (argument_list "(connection_00)" ( identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "uint FUN_000128ac(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 uStack_64;\n  undefined4 uStack_60;\n  int iStack_5c;\n  undefined *puStack_54;\n  int iStack_50;\n  undefined4 uStack_4c;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000412f0;\n  local_14 = *(int *)PTR___stack_chk_guard_000412f0;\n  local_1c = 1;\n  local_18 = 0;\n  (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);\n  iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);\n  if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_000412bc;\n  (*(code *)PTR___stack_chk_fail_000412bc)();\n  uStack_4c = 4;\n  puStack_54 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x2e984);\n  iStack_5c = *piVar5;\n  uStack_64 = 1;\n  uStack_60 = 0;\n  iStack_50 = param_1;\n  iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);\n  iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);\n  if (iStack_5c == *piVar5) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }\n  iVar2 = iStack_5c;\n  (**(code **)(puVar6 + 0x2e950))();\n  if (iVar2 != 0) {\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }\n  return 0;\n}\n\n" (function_definition "uint FUN_000128ac(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 uStack_64;\n  undefined4 uStack_60;\n  int iStack_5c;\n  undefined *puStack_54;\n  int iStack_50;\n  undefined4 uStack_4c;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000412f0;\n  local_14 = *(int *)PTR___stack_chk_guard_000412f0;\n  local_1c = 1;\n  local_18 = 0;\n  (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);\n  iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);\n  if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_000412bc;\n  (*(code *)PTR___stack_chk_fail_000412bc)();\n  uStack_4c = 4;\n  puStack_54 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x2e984);\n  iStack_5c = *piVar5;\n  uStack_64 = 1;\n  uStack_60 = 0;\n  iStack_50 = param_1;\n  iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);\n  iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);\n  if (iStack_5c == *piVar5) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }\n  iVar2 = iStack_5c;\n  (**(code **)(puVar6 + 0x2e950))();\n  if (iVar2 != 0) {\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000128ac(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 uStack_64;\n  undefined4 uStack_60;\n  int iStack_5c;\n  undefined *puStack_54;\n  int iStack_50;\n  undefined4 uStack_4c;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000412f0;\n  local_14 = *(int *)PTR___stack_chk_guard_000412f0;\n  local_1c = 1;\n  local_18 = 0;\n  (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);\n  iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);\n  if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_000412bc;\n  (*(code *)PTR___stack_chk_fail_000412bc)();\n  uStack_4c = 4;\n  puStack_54 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x2e984);\n  iStack_5c = *piVar5;\n  uStack_64 = 1;\n  uStack_60 = 0;\n  iStack_50 = param_1;\n  iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);\n  iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);\n  if (iStack_5c == *piVar5) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }\n  iVar2 = iStack_5c;\n  (**(code **)(puVar6 + 0x2e950))();\n  if (iVar2 != 0) {\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uStack_64;" type_identifier identifier ;) (declaration "undefined4 uStack_60;" type_identifier identifier ;) (declaration "int iStack_5c;" primitive_type identifier ;) (declaration "undefined *puStack_54;" type_identifier (pointer_declarator "*puStack_54" * identifier) ;) (declaration "int iStack_50;" primitive_type identifier ;) (declaration "undefined4 uStack_4c;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000412f0;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000412f0" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000412f0;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000412f0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000412f0" * (cast_expression "(int *)PTR___stack_chk_guard_000412f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_1c = 1;" (assignment_expression "local_1c = 1" identifier = number_literal) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);" (call_expression "(*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18)" (parenthesized_expression "(*(code *)PTR_setsockopt_00041344)" ( (pointer_expression "*(code *)PTR_setsockopt_00041344" * (cast_expression "(code *)PTR_setsockopt_00041344" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xa4)" * (cast_expression "(undefined4 *)(param_1 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa4)" ( (binary_expression "param_1 + 0xa4" identifier + number_literal) )))) , number_literal , number_literal , (pointer_expression "&local_18" & identifier) ))) ;) (expression_statement "iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);" (assignment_expression "iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c)" identifier = (call_expression "(*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c)" (parenthesized_expression "(*(code *)PTR_setsockopt_00041344)" ( (pointer_expression "*(code *)PTR_setsockopt_00041344" * (cast_expression "(code *)PTR_setsockopt_00041344" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xa4)" * (cast_expression "(undefined4 *)(param_1 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa4)" ( (binary_expression "param_1 + 0xa4" identifier + number_literal) )))) , number_literal , number_literal , (pointer_expression "&local_1c" & identifier) )))) ;) (if_statement "if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar1)" ( (binary_expression "local_14 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return (uint)(iVar2 == 0);\n  }" { (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) ))) ;) })) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_000412bc;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000412bc" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000412bc)();" (call_expression "(*(code *)PTR___stack_chk_fail_000412bc)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000412bc)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000412bc" * (cast_expression "(code *)PTR___stack_chk_fail_000412bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uStack_4c = 4;" (assignment_expression "uStack_4c = 4" identifier = number_literal) ;) (expression_statement "puStack_54 = puVar1;" (assignment_expression "puStack_54 = puVar1" identifier = identifier) ;) (expression_statement "piVar5 = *(int **)(puVar6 + 0x2e984);" (assignment_expression "piVar5 = *(int **)(puVar6 + 0x2e984)" identifier = (pointer_expression "*(int **)(puVar6 + 0x2e984)" * (cast_expression "(int **)(puVar6 + 0x2e984)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2e984)" ( (binary_expression "puVar6 + 0x2e984" identifier + number_literal) ))))) ;) (expression_statement "iStack_5c = *piVar5;" (assignment_expression "iStack_5c = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "uStack_64 = 1;" (assignment_expression "uStack_64 = 1" identifier = number_literal) ;) (expression_statement "uStack_60 = 0;" (assignment_expression "uStack_60 = 0" identifier = number_literal) ;) (expression_statement "iStack_50 = param_1;" (assignment_expression "iStack_50 = param_1" identifier = identifier) ;) (expression_statement "iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);" (assignment_expression "iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4)" identifier = (call_expression "(**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4)" (parenthesized_expression "(**(code **)(puVar6 + 0x2e9d8))" ( (pointer_expression "**(code **)(puVar6 + 0x2e9d8)" * (pointer_expression "*(code **)(puVar6 + 0x2e9d8)" * (cast_expression "(code **)(puVar6 + 0x2e9d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2e9d8)" ( (binary_expression "puVar6 + 0x2e9d8" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , number_literal , number_literal , (pointer_expression "&uStack_60" & identifier) , number_literal )))) ;) (expression_statement "iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4)" identifier = (call_expression "(**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4)" (parenthesized_expression "(**(code **)(puVar6 + 0x2e9d8))" ( (pointer_expression "**(code **)(puVar6 + 0x2e9d8)" * (pointer_expression "*(code **)(puVar6 + 0x2e9d8)" * (cast_expression "(code **)(puVar6 + 0x2e9d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2e9d8)" ( (binary_expression "puVar6 + 0x2e9d8" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" * (cast_expression "(undefined4 *)(iVar2 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xa4)" ( (binary_expression "iVar2 + 0xa4" identifier + number_literal) )))) , number_literal , number_literal , (pointer_expression "&uStack_64" & identifier) , number_literal )))) ;) (if_statement "if (iStack_5c == *piVar5) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }" if (parenthesized_expression "(iStack_5c == *piVar5)" ( (binary_expression "iStack_5c == *piVar5" identifier == (pointer_expression "*piVar5" * identifier)) )) (compound_statement "{\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }" { (return_statement "return (uint)(iVar3 == 0 && iVar2 == 0);" return (call_expression "(uint)(iVar3 == 0 && iVar2 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 == 0 && iVar2 == 0)" ( (binary_expression "iVar3 == 0 && iVar2 == 0" (binary_expression "iVar3 == 0" identifier == number_literal) && (binary_expression "iVar2 == 0" identifier == number_literal)) ))) ;) })) (expression_statement "iVar2 = iStack_5c;" (assignment_expression "iVar2 = iStack_5c" identifier = identifier) ;) (expression_statement "(**(code **)(puVar6 + 0x2e950))();" (call_expression "(**(code **)(puVar6 + 0x2e950))()" (parenthesized_expression "(**(code **)(puVar6 + 0x2e950))" ( (pointer_expression "**(code **)(puVar6 + 0x2e950)" * (pointer_expression "*(code **)(puVar6 + 0x2e950)" * (cast_expression "(code **)(puVar6 + 0x2e950)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x2e950)" ( (binary_expression "puVar6 + 0x2e950" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar2 != 0) {\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }" { (expression_statement "uVar4 = FUN_0001296c();" (assignment_expression "uVar4 = FUN_0001296c()" identifier = (call_expression "FUN_0001296c()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar4;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_000128ac(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 uStack_64;\n  undefined4 uStack_60;\n  int iStack_5c;\n  undefined *puStack_54;\n  int iStack_50;\n  undefined4 uStack_4c;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000412f0;\n  local_14 = *(int *)PTR___stack_chk_guard_000412f0;\n  local_1c = 1;\n  local_18 = 0;\n  (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);\n  iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);\n  if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_000412bc;\n  (*(code *)PTR___stack_chk_fail_000412bc)();\n  uStack_4c = 4;\n  puStack_54 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x2e984);\n  iStack_5c = *piVar5;\n  uStack_64 = 1;\n  uStack_60 = 0;\n  iStack_50 = param_1;\n  iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);\n  iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);\n  if (iStack_5c == *piVar5) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }\n  iVar2 = iStack_5c;\n  (**(code **)(puVar6 + 0x2e950))();\n  if (iVar2 != 0) {\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "FUN_000128ac(int param_1)" (identifier "FUN_000128ac") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  undefined *puVar6;\n  undefined4 uStack_64;\n  undefined4 uStack_60;\n  int iStack_5c;\n  undefined *puStack_54;\n  int iStack_50;\n  undefined4 uStack_4c;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_000412f0;\n  local_14 = *(int *)PTR___stack_chk_guard_000412f0;\n  local_1c = 1;\n  local_18 = 0;\n  (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);\n  iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);\n  if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_000412bc;\n  (*(code *)PTR___stack_chk_fail_000412bc)();\n  uStack_4c = 4;\n  puStack_54 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x2e984);\n  iStack_5c = *piVar5;\n  uStack_64 = 1;\n  uStack_60 = 0;\n  iStack_50 = param_1;\n  iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);\n  iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);\n  if (iStack_5c == *piVar5) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }\n  iVar2 = iStack_5c;\n  (**(code **)(puVar6 + 0x2e950))();\n  if (iVar2 != 0) {\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 uStack_64;" (type_identifier "undefined4") (identifier "uStack_64") (; ";")) (declaration "undefined4 uStack_60;" (type_identifier "undefined4") (identifier "uStack_60") (; ";")) (declaration "int iStack_5c;" (primitive_type "int") (identifier "iStack_5c") (; ";")) (declaration "undefined *puStack_54;" (type_identifier "undefined") (pointer_declarator "*puStack_54" (* "*") (identifier "puStack_54")) (; ";")) (declaration "int iStack_50;" (primitive_type "int") (identifier "iStack_50") (; ";")) (declaration "undefined4 uStack_4c;" (type_identifier "undefined4") (identifier "uStack_4c") (; ";")) (declaration "undefined4 local_1c;" (type_identifier "undefined4") (identifier "local_1c") (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_000412f0;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000412f0" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000412f0")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000412f0;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000412f0" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000412f0" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000412f0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000412f0")))) (; ";")) (expression_statement "local_1c = 1;" (assignment_expression "local_1c = 1" (identifier "local_1c") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" (identifier "local_18") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);" (call_expression "(*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18)" (parenthesized_expression "(*(code *)PTR_setsockopt_00041344)" (( "(") (pointer_expression "*(code *)PTR_setsockopt_00041344" (* "*") (cast_expression "(code *)PTR_setsockopt_00041344" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_setsockopt_00041344"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xa4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xa4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa4)" (( "(") (binary_expression "param_1 + 0xa4" (identifier "param_1") (+ "+") (number_literal "0xa4")) () ")")))) (, ",") (number_literal "6") (, ",") (number_literal "1") (, ",") (pointer_expression "&local_18" (& "&") (identifier "local_18")) () ")"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);" (assignment_expression "iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c)" (parenthesized_expression "(*(code *)PTR_setsockopt_00041344)" (( "(") (pointer_expression "*(code *)PTR_setsockopt_00041344" (* "*") (cast_expression "(code *)PTR_setsockopt_00041344" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_setsockopt_00041344"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xa4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xa4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa4)" (( "(") (binary_expression "param_1 + 0xa4" (identifier "param_1") (+ "+") (number_literal "0xa4")) () ")")))) (, ",") (number_literal "6") (, ",") (number_literal "3") (, ",") (pointer_expression "&local_1c" (& "&") (identifier "local_1c")) () ")")))) (; ";")) (if_statement "if (local_14 == *(int *)puVar1) {\n    return (uint)(iVar2 == 0);\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)puVar1)" (( "(") (binary_expression "local_14 == *(int *)puVar1" (identifier "local_14") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return (uint)(iVar2 == 0);\n  }" ({ "{") (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")) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" (identifier "iVar2") (= "=") (identifier "local_14")) (; ";")) (expression_statement "puVar6 = PTR___stack_chk_fail_000412bc;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000412bc" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_fail_000412bc")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000412bc)();" (call_expression "(*(code *)PTR___stack_chk_fail_000412bc)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000412bc)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000412bc" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000412bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000412bc"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uStack_4c = 4;" (assignment_expression "uStack_4c = 4" (identifier "uStack_4c") (= "=") (number_literal "4")) (; ";")) (expression_statement "puStack_54 = puVar1;" (assignment_expression "puStack_54 = puVar1" (identifier "puStack_54") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "piVar5 = *(int **)(puVar6 + 0x2e984);" (assignment_expression "piVar5 = *(int **)(puVar6 + 0x2e984)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(puVar6 + 0x2e984)" (* "*") (cast_expression "(int **)(puVar6 + 0x2e984)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x2e984)" (( "(") (binary_expression "puVar6 + 0x2e984" (identifier "puVar6") (+ "+") (number_literal "0x2e984")) () ")"))))) (; ";")) (expression_statement "iStack_5c = *piVar5;" (assignment_expression "iStack_5c = *piVar5" (identifier "iStack_5c") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "uStack_64 = 1;" (assignment_expression "uStack_64 = 1" (identifier "uStack_64") (= "=") (number_literal "1")) (; ";")) (expression_statement "uStack_60 = 0;" (assignment_expression "uStack_60 = 0" (identifier "uStack_60") (= "=") (number_literal "0")) (; ";")) (expression_statement "iStack_50 = param_1;" (assignment_expression "iStack_50 = param_1" (identifier "iStack_50") (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);" (assignment_expression "iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4)" (parenthesized_expression "(**(code **)(puVar6 + 0x2e9d8))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x2e9d8)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x2e9d8)" (* "*") (cast_expression "(code **)(puVar6 + 0x2e9d8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x2e9d8)" (( "(") (binary_expression "puVar6 + 0x2e9d8" (identifier "puVar6") (+ "+") (number_literal "0x2e9d8")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4)" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xa4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xa4)" (( "(") (binary_expression "iVar2 + 0xa4" (identifier "iVar2") (+ "+") (number_literal "0xa4")) () ")")))) (, ",") (number_literal "6") (, ",") (number_literal "3") (, ",") (pointer_expression "&uStack_60" (& "&") (identifier "uStack_60")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4)" (parenthesized_expression "(**(code **)(puVar6 + 0x2e9d8))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x2e9d8)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x2e9d8)" (* "*") (cast_expression "(code **)(puVar6 + 0x2e9d8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x2e9d8)" (( "(") (binary_expression "puVar6 + 0x2e9d8" (identifier "puVar6") (+ "+") (number_literal "0x2e9d8")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4)" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0xa4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xa4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xa4)" (( "(") (binary_expression "iVar2 + 0xa4" (identifier "iVar2") (+ "+") (number_literal "0xa4")) () ")")))) (, ",") (number_literal "6") (, ",") (number_literal "1") (, ",") (pointer_expression "&uStack_64" (& "&") (identifier "uStack_64")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (iStack_5c == *piVar5) {\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }" (if "if") (parenthesized_expression "(iStack_5c == *piVar5)" (( "(") (binary_expression "iStack_5c == *piVar5" (identifier "iStack_5c") (== "==") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) () ")")) (compound_statement "{\n    return (uint)(iVar3 == 0 && iVar2 == 0);\n  }" ({ "{") (return_statement "return (uint)(iVar3 == 0 && iVar2 == 0);" (return "return") (call_expression "(uint)(iVar3 == 0 && iVar2 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar3 == 0 && iVar2 == 0)" (( "(") (binary_expression "iVar3 == 0 && iVar2 == 0" (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) (&& "&&") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = iStack_5c;" (assignment_expression "iVar2 = iStack_5c" (identifier "iVar2") (= "=") (identifier "iStack_5c")) (; ";")) (expression_statement "(**(code **)(puVar6 + 0x2e950))();" (call_expression "(**(code **)(puVar6 + 0x2e950))()" (parenthesized_expression "(**(code **)(puVar6 + 0x2e950))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x2e950)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x2e950)" (* "*") (cast_expression "(code **)(puVar6 + 0x2e950)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x2e950)" (( "(") (binary_expression "puVar6 + 0x2e950" (identifier "puVar6") (+ "+") (number_literal "0x2e950")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar2 != 0) {\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = FUN_0001296c();\n    return uVar4;\n  }" ({ "{") (expression_statement "uVar4 = FUN_0001296c();" (assignment_expression "uVar4 = FUN_0001296c()" (identifier "uVar4") (= "=") (call_expression "FUN_0001296c()" (identifier "FUN_0001296c") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

int function_1(type_1 *connection)

{
  type_2 *puVar1;
  int var_2;
  int var_5;
  type_1 *var_6;
  int *piVar4;
  type_2 *var_3;
  type_3 uStack_64;
  type_3 uStack_60;
  type_1 *var_4;
  type_2 *puStack_54;
  type_1 *pMStack_50;
  type_3 uStack_4c;
  type_4 on_val;
  type_4 off_val;
  int var_1;
  
  puVar1 = PTR___stack_chk_guard_000412f0;
  var_1 = *(int *)PTR___stack_chk_guard_000412f0;
  on_val = 1;
  off_val = 0;
  (*(type_5 *)PTR_setsockopt_00041344)(connection->socket_fd,6,1,&off_val);
  var_2 = (*(type_5 *)PTR_setsockopt_00041344)(connection->socket_fd,6,3,&on_val);
  if (var_1 == *(int *)puVar1) {
    return (uint)(var_2 == 0);
  }
  var_2 = var_1;
  var_3 = PTR___stack_chk_fail_000412bc;
  (*(type_5 *)PTR___stack_chk_fail_000412bc)();
  uStack_4c = 4;
  puStack_54 = puVar1;
  piVar4 = *(int **)(var_3 + 0x2e984);
  var_4 = (type_1 *)*piVar4;
  uStack_64 = 1;
  uStack_60 = 0;
  pMStack_50 = connection;
  var_5 = (**(type_5 **)(var_3 + 0x2e9d8))(*(type_3 *)(var_2 + 0xa4),6,3,&uStack_60,4);
  var_2 = (**(type_5 **)(var_3 + 0x2e9d8))(*(type_3 *)(var_2 + 0xa4),6,1,&uStack_64,4);
  if (var_4 == (type_1 *)*piVar4) {
    return (uint)(var_5 == 0 && var_2 == 0);
  }
  var_6 = var_4;
  (**(type_5 **)(var_3 + 0x2e950))();
  if (var_6 != (type_1 *)0x0) {
    var_2 = var_7(var_6);
    return var_2;
  }
  return 0;
}


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

uint MASKED(int param_1)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  uint uVar4;
  int *piVar5;
  undefined *puVar6;
  undefined4 uStack_64;
  undefined4 uStack_60;
  int iStack_5c;
  undefined *puStack_54;
  int iStack_50;
  undefined4 uStack_4c;
  undefined4 local_1c;
  undefined4 local_18;
  int local_14;
  
  puVar1 = PTR___stack_chk_guard_000412f0;
  local_14 = *(int *)PTR___stack_chk_guard_000412f0;
  local_1c = 1;
  local_18 = 0;
  (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,1,&local_18);
  iVar2 = (*(code *)PTR_setsockopt_00041344)(*(undefined4 *)(param_1 + 0xa4),6,3,&local_1c);
  if (local_14 == *(int *)puVar1) {
    return (uint)(iVar2 == 0);
  }
  iVar2 = local_14;
  puVar6 = PTR___stack_chk_fail_000412bc;
  (*(code *)PTR___stack_chk_fail_000412bc)();
  uStack_4c = 4;
  puStack_54 = puVar1;
  piVar5 = *(int **)(puVar6 + 0x2e984);
  iStack_5c = *piVar5;
  uStack_64 = 1;
  uStack_60 = 0;
  iStack_50 = param_1;
  iVar3 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,3,&uStack_60,4);
  iVar2 = (**(code **)(puVar6 + 0x2e9d8))(*(undefined4 *)(iVar2 + 0xa4),6,1,&uStack_64,4);
  if (iStack_5c == *piVar5) {
    return (uint)(iVar3 == 0 && iVar2 == 0);
  }
  iVar2 = iStack_5c;
  (**(code **)(puVar6 + 0x2e950))();
  if (iVar2 != 0) {
    uVar4 = FUN_0001296c();
    return uVar4;
  }
  return 0;
}

