
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int Curl_ssl_getsock(connectdata *conn,curl_socket_t *socks,int numsocks)

{
  ssl_connect_state sVar1;
  
  if (numsocks == 0) {
    return 0;
  }
  sVar1 = conn->ssl[0].connecting_state;
  if (sVar1 != ssl_connect_2_writing) {
    if (sVar1 != ssl_connect_2_reading) {
      return 0;
    }
    *socks = conn->sock[0];
    return 1;
  }
  *socks = conn->sock[0];
  return 0x10000;
}



undefined4 FUN_0008eec0(int param_1,undefined4 *param_2,int param_3)

{
  if (param_3 == 0) {
    return 0;
  }
  if (*(int *)(param_1 + 0x1c4) != 3) {
    if (*(int *)(param_1 + 0x1c4) != 2) {
      return 0;
    }
    *param_2 = *(undefined4 *)(param_1 + 0x198);
    return 1;
  }
  *param_2 = *(undefined4 *)(param_1 + 0x198);
  return 0x10000;
}


beq a2,zero,0x0008ef04
_li v1,0x3
lw v0,0x1c4(a0)
beq v0,v1,0x0008eee4
_li v1,0x2
beq v0,v1,0x0008eef4
_nop
jr ra
_or v0,zero,zero
lw v0,0x198(a0)
sw v0,0x0(a1)
jr ra
_lui v0,0x1
lw v0,0x198(a0)
sw v0,0x0(a1)
jr ra
_li v0,0x1
jr ra
_or v0,a2,zero
(translation_unit "undefined4 FUN_0008eec0(int param_1,undefined4 *param_2,int param_3)\n\n{\n  if (param_3 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0x1c4) != 3) {\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x198);\n  return 0x10000;\n}\n\n" (function_definition "undefined4 FUN_0008eec0(int param_1,undefined4 *param_2,int param_3)\n\n{\n  if (param_3 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0x1c4) != 3) {\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x198);\n  return 0x10000;\n}" type_identifier (function_declarator "FUN_0008eec0(int param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  if (param_3 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0x1c4) != 3) {\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x198);\n  return 0x10000;\n}" { (if_statement "if (param_3 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(int *)(param_1 + 0x1c4) != 3) {\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c4) != 3)" ( (binary_expression "*(int *)(param_1 + 0x1c4) != 3" (pointer_expression "*(int *)(param_1 + 0x1c4)" * (cast_expression "(int *)(param_1 + 0x1c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c4)" ( (binary_expression "param_1 + 0x1c4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c4) != 2)" ( (binary_expression "*(int *)(param_1 + 0x1c4) != 2" (pointer_expression "*(int *)(param_1 + 0x1c4)" * (cast_expression "(int *)(param_1 + 0x1c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c4)" ( (binary_expression "param_1 + 0x1c4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_2 = *(undefined4 *)(param_1 + 0x198);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 0x198)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x198)" * (cast_expression "(undefined4 *)(param_1 + 0x198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) ))))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*param_2 = *(undefined4 *)(param_1 + 0x198);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 0x198)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x198)" * (cast_expression "(undefined4 *)(param_1 + 0x198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) ))))) ;) (return_statement "return 0x10000;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint Curl_ssl_getsock(connectdata *conn,curl_socket_t *socks,int numsocks)\n\n{\n  ssl_connect_state sVar1;\n  \n  if (numsocks == 0) {\n    return 0;\n  }\n  sVar1 = conn->ssl[0].connecting_state;\n  if (sVar1 != ssl_connect_2_writing) {\n    if (sVar1 != ssl_connect_2_reading) {\n      return 0;\n    }\n    *socks = conn->sock[0];\n    return 1;\n  }\n  *socks = conn->sock[0];\n  return 0x10000;\n}\n\n" comment comment (function_definition "int Curl_ssl_getsock(connectdata *conn,curl_socket_t *socks,int numsocks)\n\n{\n  ssl_connect_state sVar1;\n  \n  if (numsocks == 0) {\n    return 0;\n  }\n  sVar1 = conn->ssl[0].connecting_state;\n  if (sVar1 != ssl_connect_2_writing) {\n    if (sVar1 != ssl_connect_2_reading) {\n      return 0;\n    }\n    *socks = conn->sock[0];\n    return 1;\n  }\n  *socks = conn->sock[0];\n  return 0x10000;\n}" primitive_type (function_declarator "Curl_ssl_getsock(connectdata *conn,curl_socket_t *socks,int numsocks)" identifier (parameter_list "(connectdata *conn,curl_socket_t *socks,int numsocks)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "curl_socket_t *socks" type_identifier (pointer_declarator "*socks" * identifier)) , (parameter_declaration "int numsocks" primitive_type identifier) ))) (compound_statement "{\n  ssl_connect_state sVar1;\n  \n  if (numsocks == 0) {\n    return 0;\n  }\n  sVar1 = conn->ssl[0].connecting_state;\n  if (sVar1 != ssl_connect_2_writing) {\n    if (sVar1 != ssl_connect_2_reading) {\n      return 0;\n    }\n    *socks = conn->sock[0];\n    return 1;\n  }\n  *socks = conn->sock[0];\n  return 0x10000;\n}" { (declaration "ssl_connect_state sVar1;" type_identifier identifier ;) (if_statement "if (numsocks == 0) {\n    return 0;\n  }" if (parenthesized_expression "(numsocks == 0)" ( (binary_expression "numsocks == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "sVar1 = conn->ssl[0].connecting_state;" (assignment_expression "sVar1 = conn->ssl[0].connecting_state" identifier = (field_expression "conn->ssl[0].connecting_state" (subscript_expression "conn->ssl[0]" (field_expression "conn->ssl" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ;) (if_statement "if (sVar1 != ssl_connect_2_writing) {\n    if (sVar1 != ssl_connect_2_reading) {\n      return 0;\n    }\n    *socks = conn->sock[0];\n    return 1;\n  }" if (parenthesized_expression "(sVar1 != ssl_connect_2_writing)" ( (binary_expression "sVar1 != ssl_connect_2_writing" identifier != identifier) )) (compound_statement "{\n    if (sVar1 != ssl_connect_2_reading) {\n      return 0;\n    }\n    *socks = conn->sock[0];\n    return 1;\n  }" { (if_statement "if (sVar1 != ssl_connect_2_reading) {\n      return 0;\n    }" if (parenthesized_expression "(sVar1 != ssl_connect_2_reading)" ( (binary_expression "sVar1 != ssl_connect_2_reading" identifier != identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*socks = conn->sock[0];" (assignment_expression "*socks = conn->sock[0]" (pointer_expression "*socks" * identifier) = (subscript_expression "conn->sock[0]" (field_expression "conn->sock" identifier -> field_identifier) [ number_literal ])) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*socks = conn->sock[0];" (assignment_expression "*socks = conn->sock[0]" (pointer_expression "*socks" * identifier) = (subscript_expression "conn->sock[0]" (field_expression "conn->sock" identifier -> field_identifier) [ number_literal ])) ;) (return_statement "return 0x10000;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0008eec0(int param_1,undefined4 *param_2,int param_3)\n\n{\n  if (param_3 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0x1c4) != 3) {\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x198);\n  return 0x10000;\n}\n\n" (function_definition "undefined4 FUN_0008eec0(int param_1,undefined4 *param_2,int param_3)\n\n{\n  if (param_3 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0x1c4) != 3) {\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x198);\n  return 0x10000;\n}" type_identifier (function_declarator "FUN_0008eec0(int param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  if (param_3 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0x1c4) != 3) {\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x198);\n  return 0x10000;\n}" { (if_statement "if (param_3 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(int *)(param_1 + 0x1c4) != 3) {\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c4) != 3)" ( (binary_expression "*(int *)(param_1 + 0x1c4) != 3" (pointer_expression "*(int *)(param_1 + 0x1c4)" * (cast_expression "(int *)(param_1 + 0x1c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c4)" ( (binary_expression "param_1 + 0x1c4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }" { (if_statement "if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c4) != 2)" ( (binary_expression "*(int *)(param_1 + 0x1c4) != 2" (pointer_expression "*(int *)(param_1 + 0x1c4)" * (cast_expression "(int *)(param_1 + 0x1c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c4)" ( (binary_expression "param_1 + 0x1c4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_2 = *(undefined4 *)(param_1 + 0x198);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 0x198)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x198)" * (cast_expression "(undefined4 *)(param_1 + 0x198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) ))))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*param_2 = *(undefined4 *)(param_1 + 0x198);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 0x198)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x198)" * (cast_expression "(undefined4 *)(param_1 + 0x198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) ))))) ;) (return_statement "return 0x10000;" return 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 IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0008eec0(int param_1,undefined4 *param_2,int param_3)\n\n{\n  if (param_3 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0x1c4) != 3) {\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x198);\n  return 0x10000;\n}" (type_identifier "undefined4") (function_declarator "FUN_0008eec0(int param_1,undefined4 *param_2,int param_3)" (identifier "FUN_0008eec0") (parameter_list "(int param_1,undefined4 *param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (param_3 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0x1c4) != 3) {\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x198);\n  return 0x10000;\n}" ({ "{") (if_statement "if (param_3 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x1c4) != 3) {\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1c4) != 3)" (( "(") (binary_expression "*(int *)(param_1 + 0x1c4) != 3" (pointer_expression "*(int *)(param_1 + 0x1c4)" (* "*") (cast_expression "(int *)(param_1 + 0x1c4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c4)" (( "(") (binary_expression "param_1 + 0x1c4" (identifier "param_1") (+ "+") (number_literal "0x1c4")) () ")")))) (!= "!=") (number_literal "3")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }\n    *param_2 = *(undefined4 *)(param_1 + 0x198);\n    return 1;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1c4) != 2) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1c4) != 2)" (( "(") (binary_expression "*(int *)(param_1 + 0x1c4) != 2" (pointer_expression "*(int *)(param_1 + 0x1c4)" (* "*") (cast_expression "(int *)(param_1 + 0x1c4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c4)" (( "(") (binary_expression "param_1 + 0x1c4" (identifier "param_1") (+ "+") (number_literal "0x1c4")) () ")")))) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_2 = *(undefined4 *)(param_1 + 0x198);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 0x198)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x198)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x198)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x198)" (( "(") (binary_expression "param_1 + 0x198" (identifier "param_1") (+ "+") (number_literal "0x198")) () ")"))))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "*param_2 = *(undefined4 *)(param_1 + 0x198);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 0x198)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x198)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x198)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x198)" (( "(") (binary_expression "param_1 + 0x198" (identifier "param_1") (+ "+") (number_literal "0x198")) () ")"))))) (; ";")) (return_statement "return 0x10000;" (return "return") (number_literal "0x10000") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int function_1(type_1 *conn,type_2 *socks,int var_1)

{
  type_3 var_2;
  
  if (var_1 == 0) {
    return 0;
  }
  var_2 = conn->ssl[0].connecting_state;
  if (var_2 != var_3) {
    if (var_2 != var_4) {
      return 0;
    }
    *socks = conn->sock[0];
    return 1;
  }
  *socks = conn->sock[0];
  return 0x10000;
}


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

undefined4 MASKED(int param_1,undefined4 *param_2,int param_3)

{
  if (param_3 == 0) {
    return 0;
  }
  if (*(int *)(param_1 + 0x1c4) != 3) {
    if (*(int *)(param_1 + 0x1c4) != 2) {
      return 0;
    }
    *param_2 = *(undefined4 *)(param_1 + 0x198);
    return 1;
  }
  *param_2 = *(undefined4 *)(param_1 + 0x198);
  return 0x10000;
}

