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

CURLcode pop3_multi_statemach(connectdata *conn,_Bool *done)

{
  CURLcode CVar1;
  
  if ((((conn->handler->flags & 1) == 0) || ((conn->proto).imapc.ssldone != false)) ||
     ((CVar1 = Curl_ssl_connect_nonblocking(conn,0,&(conn->proto).imapc.ssldone), CVar1 == CURLE_OK
      && ((conn->proto).imapc.ssldone != false)))) {
    CVar1 = Curl_pp_statemach(&(conn->proto).ftpc.pp,false,false);
    *done = (conn->proto).imapc.state == IMAP_STOP;
  }
  return CVar1;
}



void FUN_00146427(long param_1,undefined8 param_2)

{
  int iVar1;
  
  if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||
      (*(char *)(param_1 + 0x744) != '\0')) ||
     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&
      (*(char *)(param_1 + 0x744) != '\0')))) {
    FUN_001496a5(param_1 + 0x6d0,0,0);
    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;
  }
  return;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RDI
MOV RBP,RSI
MOV RAX,qword ptr [RDI + 0x3e0]
TEST byte ptr [RAX + 0x84],0x1
JZ 0x0014644c
CMP byte ptr [RDI + 0x744],0x0
JZ 0x00146474
LEA RDI,[RBX + 0x6d0]
MOV EDX,0x0
MOV ESI,0x0
CALL 0x001496a5
CMP dword ptr [RBX + 0x740],0x0
SETZ byte ptr [RBP]
ADD RSP,0x8
POP RBX
POP RBP
RET
LEA RDX,[RDI + 0x744]
MOV ESI,0x0
CALL 0x0016b19d
TEST EAX,EAX
JNZ 0x0014646d
CMP byte ptr [RBX + 0x744],0x0
JNZ 0x0014644c
JMP 0x0014646d
(translation_unit "void FUN_00146427(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  \n  if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))) {\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00146427(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  \n  if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))) {\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00146427(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))) {\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))) {\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }" if (parenthesized_expression "((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0'))))" ( (binary_expression "(((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))" (parenthesized_expression "(((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0'))" ( (binary_expression "((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')" (parenthesized_expression "((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0)" ( (binary_expression "(*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0" (parenthesized_expression "(*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1)" ( (binary_expression "*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1" (pointer_expression "*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84)" * (cast_expression "(byte *)(*(long *)(param_1 + 0x3e0) + 0x84)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x3e0) + 0x84)" ( (binary_expression "*(long *)(param_1 + 0x3e0) + 0x84" (pointer_expression "*(long *)(param_1 + 0x3e0)" * (cast_expression "(long *)(param_1 + 0x3e0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e0)" ( (binary_expression "param_1 + 0x3e0" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "(*(char *)(param_1 + 0x744) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x744) != '\0'" (pointer_expression "*(char *)(param_1 + 0x744)" * (cast_expression "(char *)(param_1 + 0x744)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x744)" ( (binary_expression "param_1 + 0x744" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) || (parenthesized_expression "((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))" ( (parenthesized_expression "(iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0'))" ( (comma_expression "iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')" (assignment_expression "iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744)" identifier = (call_expression "FUN_0016b19d(param_1,0,param_1 + 0x744)" identifier (argument_list "(param_1,0,param_1 + 0x744)" ( identifier , number_literal , (binary_expression "param_1 + 0x744" identifier + number_literal) )))) , (binary_expression "iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')" (binary_expression "iVar1 == 0" identifier == number_literal) && (parenthesized_expression "(*(char *)(param_1 + 0x744) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x744) != '\0'" (pointer_expression "*(char *)(param_1 + 0x744)" * (cast_expression "(char *)(param_1 + 0x744)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x744)" ( (binary_expression "param_1 + 0x744" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )))) )) ))) )) (compound_statement "{\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }" { (expression_statement "FUN_001496a5(param_1 + 0x6d0,0,0);" (call_expression "FUN_001496a5(param_1 + 0x6d0,0,0)" identifier (argument_list "(param_1 + 0x6d0,0,0)" ( (binary_expression "param_1 + 0x6d0" identifier + number_literal) , number_literal , number_literal ))) ;) (expression_statement "*(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;" (assignment_expression "*(bool *)param_2 = *(int *)(param_1 + 0x740) == 0" (pointer_expression "*(bool *)param_2" * (cast_expression "(bool *)param_2" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)(param_1 + 0x740) == 0" (pointer_expression "*(int *)(param_1 + 0x740)" * (cast_expression "(int *)(param_1 + 0x740)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x740)" ( (binary_expression "param_1 + 0x740" identifier + number_literal) )))) == number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode pop3_multi_statemach(connectdata *conn,_Bool *done)\n\n{\n  CURLcode CVar1;\n  \n  if ((((conn->handler->flags & 1) == 0) || ((conn->proto).imapc.ssldone != false)) ||\n     ((CVar1 = Curl_ssl_connect_nonblocking(conn,0,&(conn->proto).imapc.ssldone), CVar1 == CURLE_OK\n      && ((conn->proto).imapc.ssldone != false)))) {\n    CVar1 = Curl_pp_statemach(&(conn->proto).ftpc.pp,false,false);\n    *done = (conn->proto).imapc.state == IMAP_STOP;\n  }\n  return CVar1;\n}\n\n" comment (function_definition "CURLcode pop3_multi_statemach(connectdata *conn,_Bool *done)\n\n{\n  CURLcode CVar1;\n  \n  if ((((conn->handler->flags & 1) == 0) || ((conn->proto).imapc.ssldone != false)) ||\n     ((CVar1 = Curl_ssl_connect_nonblocking(conn,0,&(conn->proto).imapc.ssldone), CVar1 == CURLE_OK\n      && ((conn->proto).imapc.ssldone != false)))) {\n    CVar1 = Curl_pp_statemach(&(conn->proto).ftpc.pp,false,false);\n    *done = (conn->proto).imapc.state == IMAP_STOP;\n  }\n  return CVar1;\n}" type_identifier (function_declarator "pop3_multi_statemach(connectdata *conn,_Bool *done)" identifier (parameter_list "(connectdata *conn,_Bool *done)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "_Bool *done" type_identifier (pointer_declarator "*done" * identifier)) ))) (compound_statement "{\n  CURLcode CVar1;\n  \n  if ((((conn->handler->flags & 1) == 0) || ((conn->proto).imapc.ssldone != false)) ||\n     ((CVar1 = Curl_ssl_connect_nonblocking(conn,0,&(conn->proto).imapc.ssldone), CVar1 == CURLE_OK\n      && ((conn->proto).imapc.ssldone != false)))) {\n    CVar1 = Curl_pp_statemach(&(conn->proto).ftpc.pp,false,false);\n    *done = (conn->proto).imapc.state == IMAP_STOP;\n  }\n  return CVar1;\n}" { (declaration "CURLcode CVar1;" type_identifier identifier ;) (if_statement "if ((((conn->handler->flags & 1) == 0) || ((conn->proto).imapc.ssldone != false)) ||\n     ((CVar1 = Curl_ssl_connect_nonblocking(conn,0,&(conn->proto).imapc.ssldone), CVar1 == CURLE_OK\n      && ((conn->proto).imapc.ssldone != false)))) {\n    CVar1 = Curl_pp_statemach(&(conn->proto).ftpc.pp,false,false);\n    *done = (conn->proto).imapc.state == IMAP_STOP;\n  }" if (parenthesized_expression "((((conn->handler->flags & 1) == 0) || ((conn->proto).imapc.ssldone != false)) ||\n     ((CVar1 = Curl_ssl_connect_nonblocking(conn,0,&(conn->proto).imapc.ssldone), CVar1 == CURLE_OK\n      && ((conn->proto).imapc.ssldone != false))))" ( (binary_expression "(((conn->handler->flags & 1) == 0) || ((conn->proto).imapc.ssldone != false)) ||\n     ((CVar1 = Curl_ssl_connect_nonblocking(conn,0,&(conn->proto).imapc.ssldone), CVar1 == CURLE_OK\n      && ((conn->proto).imapc.ssldone != false)))" (parenthesized_expression "(((conn->handler->flags & 1) == 0) || ((conn->proto).imapc.ssldone != false))" ( (binary_expression "((conn->handler->flags & 1) == 0) || ((conn->proto).imapc.ssldone != false)" (parenthesized_expression "((conn->handler->flags & 1) == 0)" ( (binary_expression "(conn->handler->flags & 1) == 0" (parenthesized_expression "(conn->handler->flags & 1)" ( (binary_expression "conn->handler->flags & 1" (field_expression "conn->handler->flags" (field_expression "conn->handler" identifier -> field_identifier) -> field_identifier) & number_literal) )) == number_literal) )) || (parenthesized_expression "((conn->proto).imapc.ssldone != false)" ( (binary_expression "(conn->proto).imapc.ssldone != false" (field_expression "(conn->proto).imapc.ssldone" (field_expression "(conn->proto).imapc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) != false) ))) )) || (parenthesized_expression "((CVar1 = Curl_ssl_connect_nonblocking(conn,0,&(conn->proto).imapc.ssldone), CVar1 == CURLE_OK\n      && ((conn->proto).imapc.ssldone != false)))" ( (parenthesized_expression "(CVar1 = Curl_ssl_connect_nonblocking(conn,0,&(conn->proto).imapc.ssldone), CVar1 == CURLE_OK\n      && ((conn->proto).imapc.ssldone != false))" ( (comma_expression "CVar1 = Curl_ssl_connect_nonblocking(conn,0,&(conn->proto).imapc.ssldone), CVar1 == CURLE_OK\n      && ((conn->proto).imapc.ssldone != false)" (assignment_expression "CVar1 = Curl_ssl_connect_nonblocking(conn,0,&(conn->proto).imapc.ssldone)" identifier = (call_expression "Curl_ssl_connect_nonblocking(conn,0,&(conn->proto).imapc.ssldone)" identifier (argument_list "(conn,0,&(conn->proto).imapc.ssldone)" ( identifier , number_literal , (pointer_expression "&(conn->proto).imapc.ssldone" & (field_expression "(conn->proto).imapc.ssldone" (field_expression "(conn->proto).imapc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier)) )))) , (binary_expression "CVar1 == CURLE_OK\n      && ((conn->proto).imapc.ssldone != false)" (binary_expression "CVar1 == CURLE_OK" identifier == identifier) && (parenthesized_expression "((conn->proto).imapc.ssldone != false)" ( (binary_expression "(conn->proto).imapc.ssldone != false" (field_expression "(conn->proto).imapc.ssldone" (field_expression "(conn->proto).imapc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) != false) )))) )) ))) )) (compound_statement "{\n    CVar1 = Curl_pp_statemach(&(conn->proto).ftpc.pp,false,false);\n    *done = (conn->proto).imapc.state == IMAP_STOP;\n  }" { (expression_statement "CVar1 = Curl_pp_statemach(&(conn->proto).ftpc.pp,false,false);" (assignment_expression "CVar1 = Curl_pp_statemach(&(conn->proto).ftpc.pp,false,false)" identifier = (call_expression "Curl_pp_statemach(&(conn->proto).ftpc.pp,false,false)" identifier (argument_list "(&(conn->proto).ftpc.pp,false,false)" ( (pointer_expression "&(conn->proto).ftpc.pp" & (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier)) , false , false )))) ;) (expression_statement "*done = (conn->proto).imapc.state == IMAP_STOP;" (assignment_expression "*done = (conn->proto).imapc.state == IMAP_STOP" (pointer_expression "*done" * identifier) = (binary_expression "(conn->proto).imapc.state == IMAP_STOP" (field_expression "(conn->proto).imapc.state" (field_expression "(conn->proto).imapc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) == identifier)) ;) })) (return_statement "return CVar1;" return identifier ;) })))
(translation_unit "void FUN_00146427(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  \n  if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))) {\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00146427(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  \n  if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))) {\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00146427(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))) {\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))) {\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }" if (parenthesized_expression "((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0'))))" ( (binary_expression "(((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))" (parenthesized_expression "(((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0'))" ( (binary_expression "((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')" (parenthesized_expression "((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0)" ( (binary_expression "(*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0" (parenthesized_expression "(*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1)" ( (binary_expression "*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1" (pointer_expression "*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84)" * (cast_expression "(byte *)(*(long *)(param_1 + 0x3e0) + 0x84)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x3e0) + 0x84)" ( (binary_expression "*(long *)(param_1 + 0x3e0) + 0x84" (pointer_expression "*(long *)(param_1 + 0x3e0)" * (cast_expression "(long *)(param_1 + 0x3e0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e0)" ( (binary_expression "param_1 + 0x3e0" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "(*(char *)(param_1 + 0x744) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x744) != '\0'" (pointer_expression "*(char *)(param_1 + 0x744)" * (cast_expression "(char *)(param_1 + 0x744)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x744)" ( (binary_expression "param_1 + 0x744" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) || (parenthesized_expression "((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))" ( (parenthesized_expression "(iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0'))" ( (comma_expression "iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')" (assignment_expression "iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744)" identifier = (call_expression "FUN_0016b19d(param_1,0,param_1 + 0x744)" identifier (argument_list "(param_1,0,param_1 + 0x744)" ( identifier , number_literal , (binary_expression "param_1 + 0x744" identifier + number_literal) )))) , (binary_expression "iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')" (binary_expression "iVar1 == 0" identifier == number_literal) && (parenthesized_expression "(*(char *)(param_1 + 0x744) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x744) != '\0'" (pointer_expression "*(char *)(param_1 + 0x744)" * (cast_expression "(char *)(param_1 + 0x744)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x744)" ( (binary_expression "param_1 + 0x744" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )))) )) ))) )) (compound_statement "{\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }" { (expression_statement "FUN_001496a5(param_1 + 0x6d0,0,0);" (call_expression "FUN_001496a5(param_1 + 0x6d0,0,0)" identifier (argument_list "(param_1 + 0x6d0,0,0)" ( (binary_expression "param_1 + 0x6d0" identifier + number_literal) , number_literal , number_literal ))) ;) (expression_statement "*(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;" (assignment_expression "*(bool *)param_2 = *(int *)(param_1 + 0x740) == 0" (pointer_expression "*(bool *)param_2" * (cast_expression "(bool *)param_2" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)(param_1 + 0x740) == 0" (pointer_expression "*(int *)(param_1 + 0x740)" * (cast_expression "(int *)(param_1 + 0x740)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x740)" ( (binary_expression "param_1 + 0x740" identifier + number_literal) )))) == number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) ))) )) || (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) )))) , (binary_expression (binary_expression IDENT == LIT) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )))) )) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00146427(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  \n  if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))) {\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00146427(long param_1,undefined8 param_2)" (identifier "FUN_00146427") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))) {\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))) {\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }" (if "if") (parenthesized_expression "((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0'))))" (( "(") (binary_expression "(((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')) ||\n     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))" (parenthesized_expression "(((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0'))" (( "(") (binary_expression "((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||\n      (*(char *)(param_1 + 0x744) != '\0')" (parenthesized_expression "((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0)" (( "(") (binary_expression "(*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0" (parenthesized_expression "(*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1)" (( "(") (binary_expression "*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1" (pointer_expression "*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84)" (* "*") (cast_expression "(byte *)(*(long *)(param_1 + 0x3e0) + 0x84)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x3e0) + 0x84)" (( "(") (binary_expression "*(long *)(param_1 + 0x3e0) + 0x84" (pointer_expression "*(long *)(param_1 + 0x3e0)" (* "*") (cast_expression "(long *)(param_1 + 0x3e0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3e0)" (( "(") (binary_expression "param_1 + 0x3e0" (identifier "param_1") (+ "+") (number_literal "0x3e0")) () ")")))) (+ "+") (number_literal "0x84")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(char *)(param_1 + 0x744) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x744) != '\0'" (pointer_expression "*(char *)(param_1 + 0x744)" (* "*") (cast_expression "(char *)(param_1 + 0x744)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x744)" (( "(") (binary_expression "param_1 + 0x744" (identifier "param_1") (+ "+") (number_literal "0x744")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')))" (( "(") (parenthesized_expression "(iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0'))" (( "(") (comma_expression "iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')" (assignment_expression "iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744)" (identifier "iVar1") (= "=") (call_expression "FUN_0016b19d(param_1,0,param_1 + 0x744)" (identifier "FUN_0016b19d") (argument_list "(param_1,0,param_1 + 0x744)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (binary_expression "param_1 + 0x744" (identifier "param_1") (+ "+") (number_literal "0x744")) () ")")))) (, ",") (binary_expression "iVar1 == 0 &&\n      (*(char *)(param_1 + 0x744) != '\0')" (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "(*(char *)(param_1 + 0x744) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x744) != '\0'" (pointer_expression "*(char *)(param_1 + 0x744)" (* "*") (cast_expression "(char *)(param_1 + 0x744)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x744)" (( "(") (binary_expression "param_1 + 0x744" (identifier "param_1") (+ "+") (number_literal "0x744")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n    FUN_001496a5(param_1 + 0x6d0,0,0);\n    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;\n  }" ({ "{") (expression_statement "FUN_001496a5(param_1 + 0x6d0,0,0);" (call_expression "FUN_001496a5(param_1 + 0x6d0,0,0)" (identifier "FUN_001496a5") (argument_list "(param_1 + 0x6d0,0,0)" (( "(") (binary_expression "param_1 + 0x6d0" (identifier "param_1") (+ "+") (number_literal "0x6d0")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;" (assignment_expression "*(bool *)param_2 = *(int *)(param_1 + 0x740) == 0" (pointer_expression "*(bool *)param_2" (* "*") (cast_expression "(bool *)param_2" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2"))) (= "=") (binary_expression "*(int *)(param_1 + 0x740) == 0" (pointer_expression "*(int *)(param_1 + 0x740)" (* "*") (cast_expression "(int *)(param_1 + 0x740)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x740)" (( "(") (binary_expression "param_1 + 0x740" (identifier "param_1") (+ "+") (number_literal "0x740")) () ")")))) (== "==") (number_literal "0"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

type_1 function_1(type_2 *conn,type_3 *done)

{
  type_1 var_2;
  
  if ((((conn->handler->flags & 1) == 0) || ((conn->proto).imapc.ssldone != false)) ||
     ((var_2 = var_1(conn,0,&(conn->proto).imapc.ssldone), var_2 == var_3
      && ((conn->proto).imapc.ssldone != false)))) {
    var_2 = var_4(&(conn->proto).ftpc.pp,false,false);
    *done = (conn->proto).imapc.state == var_5;
  }
  return var_2;
}


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

void MASKED(long param_1,undefined8 param_2)

{
  int iVar1;
  
  if ((((*(byte *)(*(long *)(param_1 + 0x3e0) + 0x84) & 1) == 0) ||
      (*(char *)(param_1 + 0x744) != '\0')) ||
     ((iVar1 = FUN_0016b19d(param_1,0,param_1 + 0x744), iVar1 == 0 &&
      (*(char *)(param_1 + 0x744) != '\0')))) {
    FUN_001496a5(param_1 + 0x6d0,0,0);
    *(bool *)param_2 = *(int *)(param_1 + 0x740) == 0;
  }
  return;
}

