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

CURLcode smtp_perform_authentication(connectdata *conn)

{
  saslstate *sasl;
  _Bool _Var1;
  CURLcode CVar2;
  long in_FS_OFFSET;
  saslprogress progress;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if ((conn->proto).imapc.resptag[2] != '\0') {
    sasl = &(conn->proto).imapc.sasl.state;
    _Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);
    if (_Var1) {
      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);
      if (CVar2 == CURLE_OK) {
        if (progress == SASL_INPROGRESS) {
          (conn->proto).imapc.state = IMAP_LOGIN;
        }
        else {
          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");
          CVar2 = CURLE_LOGIN_DENIED;
        }
      }
      goto LAB_00147de0;
    }
  }
  (conn->proto).imapc.state = IMAP_STOP;
  CVar2 = CURLE_OK;
LAB_00147de0:
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return CVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined8 FUN_00147d99(undefined8 *param_1)

{
  char cVar1;
  undefined8 uVar2;
  long in_FS_OFFSET;
  int local_24;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if (*(char *)((long)param_1 + 0x772) != '\0') {
    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);
    if (cVar1 != '\0') {
      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);
      if ((int)uVar2 == 0) {
        if (local_24 == 1) {
          *(undefined4 *)(param_1 + 0xe8) = 6;
        }
        else {
          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");
          uVar2 = 0x43;
        }
      }
      goto LAB_00147de0;
    }
  }
  *(undefined4 *)(param_1 + 0xe8) = 0;
  uVar2 = 0;
LAB_00147de0:
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x8],RAX
XOR EAX,EAX
CMP byte ptr [RDI + 0x772],0x0
JZ 0x00147dd1
LEA RBP,[RDI + 0x750]
MOV RSI,RDI
MOV RDI,RBP
CALL 0x0014f312
TEST AL,AL
JNZ 0x00147df7
MOV dword ptr [RBX + 0x740],0x0
MOV EAX,0x0
MOV RDX,qword ptr [RSP + 0x8]
XOR RDX,qword ptr FS:[0x28]
JNZ 0x00147e3e
ADD RSP,0x18
POP RBX
POP RBP
RET
LEA RCX,[RSP + 0x4]
MOV EDX,0x0
MOV RSI,RBX
MOV RDI,RBP
CALL 0x0014f32a
TEST EAX,EAX
JNZ 0x00147de0
CMP dword ptr [RSP + 0x4],0x1
JZ 0x00147e32
LEA RSI,[0x175900]
MOV RDI,qword ptr [RBX]
MOV EAX,0x0
CALL 0x0011a8d8
MOV EAX,0x43
JMP 0x00147de0
MOV dword ptr [RBX + 0x740],0x6
JMP 0x00147de0
CALL 0x0010e1c0
(translation_unit "undefined8 FUN_00147d99(undefined8 *param_1)\n\n{\n  char cVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)((long)param_1 + 0x772) != '\0') {\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xe8) = 0;\n  uVar2 = 0;\nLAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 FUN_00147d99(undefined8 *param_1)\n\n{\n  char cVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)((long)param_1 + 0x772) != '\0') {\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xe8) = 0;\n  uVar2 = 0;\nLAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_00147d99(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)((long)param_1 + 0x772) != '\0') {\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xe8) = 0;\n  uVar2 = 0;\nLAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)((long)param_1 + 0x772) != '\0') {\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }" if (parenthesized_expression "(*(char *)((long)param_1 + 0x772) != '\0')" ( (binary_expression "*(char *)((long)param_1 + 0x772) != '\0'" (pointer_expression "*(char *)((long)param_1 + 0x772)" * (cast_expression "(char *)((long)param_1 + 0x772)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x772)" ( (binary_expression "(long)param_1 + 0x772" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }" { (expression_statement "cVar1 = FUN_0014f312(param_1 + 0xea,param_1);" (assignment_expression "cVar1 = FUN_0014f312(param_1 + 0xea,param_1)" identifier = (call_expression "FUN_0014f312(param_1 + 0xea,param_1)" identifier (argument_list "(param_1 + 0xea,param_1)" ( (binary_expression "param_1 + 0xea" identifier + number_literal) , identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }" { (expression_statement "uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);" (assignment_expression "uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24)" identifier = (call_expression "FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24)" identifier (argument_list "(param_1 + 0xea,param_1,0,&local_24)" ( (binary_expression "param_1 + 0xea" identifier + number_literal) , identifier , number_literal , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }" if (parenthesized_expression "((int)uVar2 == 0)" ( (binary_expression "(int)uVar2 == 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }" { (if_statement "if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }" if (parenthesized_expression "(local_24 == 1)" ( (binary_expression "local_24 == 1" identifier == number_literal) )) (compound_statement "{\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }" { (expression_statement "*(undefined4 *)(param_1 + 0xe8) = 6;" (assignment_expression "*(undefined4 *)(param_1 + 0xe8) = 6" (pointer_expression "*(undefined4 *)(param_1 + 0xe8)" * (cast_expression "(undefined4 *)(param_1 + 0xe8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe8)" ( (binary_expression "param_1 + 0xe8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }" else (compound_statement "{\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }" { (expression_statement "FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");" (call_expression "FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n")" identifier (argument_list "(*param_1,"No known authentication mechanisms supported!\n")" ( (pointer_expression "*param_1" * identifier) , (string_literal ""No known authentication mechanisms supported!\n"" " string_content escape_sequence ") ))) ;) (expression_statement "uVar2 = 0x43;" (assignment_expression "uVar2 = 0x43" identifier = number_literal) ;) }))) })) (goto_statement "goto LAB_00147de0;" goto statement_identifier ;) })) })) (expression_statement "*(undefined4 *)(param_1 + 0xe8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe8)" * (cast_expression "(undefined4 *)(param_1 + 0xe8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe8)" ( (binary_expression "param_1 + 0xe8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }" statement_identifier : (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode smtp_perform_authentication(connectdata *conn)\n\n{\n  saslstate *sasl;\n  _Bool _Var1;\n  CURLcode CVar2;\n  long in_FS_OFFSET;\n  saslprogress progress;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if ((conn->proto).imapc.resptag[2] != '\0') {\n    sasl = &(conn->proto).imapc.sasl.state;\n    _Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);\n    if (_Var1) {\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).imapc.state = IMAP_LOGIN;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }\n  (conn->proto).imapc.state = IMAP_STOP;\n  CVar2 = CURLE_OK;\nLAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return CVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" comment (function_definition "CURLcode smtp_perform_authentication(connectdata *conn)\n\n{\n  saslstate *sasl;\n  _Bool _Var1;\n  CURLcode CVar2;\n  long in_FS_OFFSET;\n  saslprogress progress;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if ((conn->proto).imapc.resptag[2] != '\0') {\n    sasl = &(conn->proto).imapc.sasl.state;\n    _Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);\n    if (_Var1) {\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).imapc.state = IMAP_LOGIN;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }\n  (conn->proto).imapc.state = IMAP_STOP;\n  CVar2 = CURLE_OK;\nLAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return CVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "smtp_perform_authentication(connectdata *conn)" identifier (parameter_list "(connectdata *conn)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) ))) (compound_statement "{\n  saslstate *sasl;\n  _Bool _Var1;\n  CURLcode CVar2;\n  long in_FS_OFFSET;\n  saslprogress progress;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if ((conn->proto).imapc.resptag[2] != '\0') {\n    sasl = &(conn->proto).imapc.sasl.state;\n    _Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);\n    if (_Var1) {\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).imapc.state = IMAP_LOGIN;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }\n  (conn->proto).imapc.state = IMAP_STOP;\n  CVar2 = CURLE_OK;\nLAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return CVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "saslstate *sasl;" type_identifier (pointer_declarator "*sasl" * identifier) ;) (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "saslprogress progress;" type_identifier identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if ((conn->proto).imapc.resptag[2] != '\0') {\n    sasl = &(conn->proto).imapc.sasl.state;\n    _Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);\n    if (_Var1) {\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).imapc.state = IMAP_LOGIN;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }" if (parenthesized_expression "((conn->proto).imapc.resptag[2] != '\0')" ( (binary_expression "(conn->proto).imapc.resptag[2] != '\0'" (subscript_expression "(conn->proto).imapc.resptag[2]" (field_expression "(conn->proto).imapc.resptag" (field_expression "(conn->proto).imapc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sasl = &(conn->proto).imapc.sasl.state;\n    _Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);\n    if (_Var1) {\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).imapc.state = IMAP_LOGIN;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }" { (expression_statement "sasl = &(conn->proto).imapc.sasl.state;" (assignment_expression "sasl = &(conn->proto).imapc.sasl.state" identifier = (pointer_expression "&(conn->proto).imapc.sasl.state" & (field_expression "(conn->proto).imapc.sasl.state" (field_expression "(conn->proto).imapc.sasl" (field_expression "(conn->proto).imapc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier))) ;) (expression_statement "_Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn);" (assignment_expression "_Var1 = Curl_sasl_can_authenticate((SASL *)sasl,conn)" identifier = (call_expression "Curl_sasl_can_authenticate((SASL *)sasl,conn)" identifier (argument_list "((SASL *)sasl,conn)" ( (cast_expression "(SASL *)sasl" ( (type_descriptor "SASL *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if (_Var1) {\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).imapc.state = IMAP_LOGIN;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00147de0;\n    }" if (parenthesized_expression "(_Var1)" ( identifier )) (compound_statement "{\n      CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);\n      if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).imapc.state = IMAP_LOGIN;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }\n      goto LAB_00147de0;\n    }" { (expression_statement "CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress);" (assignment_expression "CVar2 = Curl_sasl_start((SASL *)sasl,conn,false,&progress)" identifier = (call_expression "Curl_sasl_start((SASL *)sasl,conn,false,&progress)" identifier (argument_list "((SASL *)sasl,conn,false,&progress)" ( (cast_expression "(SASL *)sasl" ( (type_descriptor "SASL *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , false , (pointer_expression "&progress" & identifier) )))) ;) (if_statement "if (CVar2 == CURLE_OK) {\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).imapc.state = IMAP_LOGIN;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }" if (parenthesized_expression "(CVar2 == CURLE_OK)" ( (binary_expression "CVar2 == CURLE_OK" identifier == identifier) )) (compound_statement "{\n        if (progress == SASL_INPROGRESS) {\n          (conn->proto).imapc.state = IMAP_LOGIN;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }\n      }" { (if_statement "if (progress == SASL_INPROGRESS) {\n          (conn->proto).imapc.state = IMAP_LOGIN;\n        }\n        else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }" if (parenthesized_expression "(progress == SASL_INPROGRESS)" ( (binary_expression "progress == SASL_INPROGRESS" identifier == identifier) )) (compound_statement "{\n          (conn->proto).imapc.state = IMAP_LOGIN;\n        }" { (expression_statement "(conn->proto).imapc.state = IMAP_LOGIN;" (assignment_expression "(conn->proto).imapc.state = IMAP_LOGIN" (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) ;) }) (else_clause "else {\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }" else (compound_statement "{\n          Curl_infof(conn->data,"No known authentication mechanisms supported!\n");\n          CVar2 = CURLE_LOGIN_DENIED;\n        }" { (expression_statement "Curl_infof(conn->data,"No known authentication mechanisms supported!\n");" (call_expression "Curl_infof(conn->data,"No known authentication mechanisms supported!\n")" identifier (argument_list "(conn->data,"No known authentication mechanisms supported!\n")" ( (field_expression "conn->data" identifier -> field_identifier) , (string_literal ""No known authentication mechanisms supported!\n"" " string_content escape_sequence ") ))) ;) (expression_statement "CVar2 = CURLE_LOGIN_DENIED;" (assignment_expression "CVar2 = CURLE_LOGIN_DENIED" identifier = identifier) ;) }))) })) (goto_statement "goto LAB_00147de0;" goto statement_identifier ;) })) })) (expression_statement "(conn->proto).imapc.state = IMAP_STOP;" (assignment_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) ;) (expression_statement "CVar2 = CURLE_OK;" (assignment_expression "CVar2 = CURLE_OK" identifier = identifier) ;) (labeled_statement "LAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return CVar2;\n  }" statement_identifier : (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return CVar2;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return CVar2;\n  }" { (return_statement "return CVar2;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined8 FUN_00147d99(undefined8 *param_1)\n\n{\n  char cVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)((long)param_1 + 0x772) != '\0') {\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xe8) = 0;\n  uVar2 = 0;\nLAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 FUN_00147d99(undefined8 *param_1)\n\n{\n  char cVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)((long)param_1 + 0x772) != '\0') {\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xe8) = 0;\n  uVar2 = 0;\nLAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_00147d99(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)((long)param_1 + 0x772) != '\0') {\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xe8) = 0;\n  uVar2 = 0;\nLAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)((long)param_1 + 0x772) != '\0') {\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }" if (parenthesized_expression "(*(char *)((long)param_1 + 0x772) != '\0')" ( (binary_expression "*(char *)((long)param_1 + 0x772) != '\0'" (pointer_expression "*(char *)((long)param_1 + 0x772)" * (cast_expression "(char *)((long)param_1 + 0x772)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x772)" ( (binary_expression "(long)param_1 + 0x772" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }" { (expression_statement "cVar1 = FUN_0014f312(param_1 + 0xea,param_1);" (assignment_expression "cVar1 = FUN_0014f312(param_1 + 0xea,param_1)" identifier = (call_expression "FUN_0014f312(param_1 + 0xea,param_1)" identifier (argument_list "(param_1 + 0xea,param_1)" ( (binary_expression "param_1 + 0xea" identifier + number_literal) , identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }" { (expression_statement "uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);" (assignment_expression "uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24)" identifier = (call_expression "FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24)" identifier (argument_list "(param_1 + 0xea,param_1,0,&local_24)" ( (binary_expression "param_1 + 0xea" identifier + number_literal) , identifier , number_literal , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }" if (parenthesized_expression "((int)uVar2 == 0)" ( (binary_expression "(int)uVar2 == 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }" { (if_statement "if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }" if (parenthesized_expression "(local_24 == 1)" ( (binary_expression "local_24 == 1" identifier == number_literal) )) (compound_statement "{\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }" { (expression_statement "*(undefined4 *)(param_1 + 0xe8) = 6;" (assignment_expression "*(undefined4 *)(param_1 + 0xe8) = 6" (pointer_expression "*(undefined4 *)(param_1 + 0xe8)" * (cast_expression "(undefined4 *)(param_1 + 0xe8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe8)" ( (binary_expression "param_1 + 0xe8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }" else (compound_statement "{\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }" { (expression_statement "FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");" (call_expression "FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n")" identifier (argument_list "(*param_1,"No known authentication mechanisms supported!\n")" ( (pointer_expression "*param_1" * identifier) , (string_literal ""No known authentication mechanisms supported!\n"" " string_content escape_sequence ") ))) ;) (expression_statement "uVar2 = 0x43;" (assignment_expression "uVar2 = 0x43" identifier = number_literal) ;) }))) })) (goto_statement "goto LAB_00147de0;" goto statement_identifier ;) })) })) (expression_statement "*(undefined4 *)(param_1 + 0xe8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe8)" * (cast_expression "(undefined4 *)(param_1 + 0xe8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe8)" ( (binary_expression "param_1 + 0xe8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }" statement_identifier : (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) }))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (string_literal " string_content escape_sequence ") ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined8 FUN_00147d99(undefined8 *param_1)\n\n{\n  char cVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)((long)param_1 + 0x772) != '\0') {\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xe8) = 0;\n  uVar2 = 0;\nLAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined8") (function_declarator "FUN_00147d99(undefined8 *param_1)" (identifier "FUN_00147d99") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*(char *)((long)param_1 + 0x772) != '\0') {\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }\n  *(undefined4 *)(param_1 + 0xe8) = 0;\n  uVar2 = 0;\nLAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (*(char *)((long)param_1 + 0x772) != '\0') {\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)((long)param_1 + 0x772) != '\0')" (( "(") (binary_expression "*(char *)((long)param_1 + 0x772) != '\0'" (pointer_expression "*(char *)((long)param_1 + 0x772)" (* "*") (cast_expression "(char *)((long)param_1 + 0x772)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x772)" (( "(") (binary_expression "(long)param_1 + 0x772" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x772")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);\n    if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }\n  }" ({ "{") (expression_statement "cVar1 = FUN_0014f312(param_1 + 0xea,param_1);" (assignment_expression "cVar1 = FUN_0014f312(param_1 + 0xea,param_1)" (identifier "cVar1") (= "=") (call_expression "FUN_0014f312(param_1 + 0xea,param_1)" (identifier "FUN_0014f312") (argument_list "(param_1 + 0xea,param_1)" (( "(") (binary_expression "param_1 + 0xea" (identifier "param_1") (+ "+") (number_literal "0xea")) (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);\n      if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }\n      goto LAB_00147de0;\n    }" ({ "{") (expression_statement "uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);" (assignment_expression "uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24)" (identifier "uVar2") (= "=") (call_expression "FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24)" (identifier "FUN_0014f32a") (argument_list "(param_1 + 0xea,param_1,0,&local_24)" (( "(") (binary_expression "param_1 + 0xea" (identifier "param_1") (+ "+") (number_literal "0xea")) (, ",") (identifier "param_1") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if ((int)uVar2 == 0) {\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }" (if "if") (parenthesized_expression "((int)uVar2 == 0)" (( "(") (binary_expression "(int)uVar2 == 0" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }\n      }" ({ "{") (if_statement "if (local_24 == 1) {\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }\n        else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }" (if "if") (parenthesized_expression "(local_24 == 1)" (( "(") (binary_expression "local_24 == 1" (identifier "local_24") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          *(undefined4 *)(param_1 + 0xe8) = 6;\n        }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0xe8) = 6;" (assignment_expression "*(undefined4 *)(param_1 + 0xe8) = 6" (pointer_expression "*(undefined4 *)(param_1 + 0xe8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe8)" (( "(") (binary_expression "param_1 + 0xe8" (identifier "param_1") (+ "+") (number_literal "0xe8")) () ")")))) (= "=") (number_literal "6")) (; ";")) (} "}")) (else_clause "else {\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }" (else "else") (compound_statement "{\n          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");\n          uVar2 = 0x43;\n        }" ({ "{") (expression_statement "FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");" (call_expression "FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n")" (identifier "FUN_0011a8d8") (argument_list "(*param_1,"No known authentication mechanisms supported!\n")" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (string_literal ""No known authentication mechanisms supported!\n"" (" """) (string_content "No known authentication mechanisms supported!") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (expression_statement "uVar2 = 0x43;" (assignment_expression "uVar2 = 0x43" (identifier "uVar2") (= "=") (number_literal "0x43")) (; ";")) (} "}")))) (} "}"))) (goto_statement "goto LAB_00147de0;" (goto "goto") (statement_identifier "LAB_00147de0") (; ";")) (} "}"))) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0xe8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xe8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xe8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xe8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe8)" (( "(") (binary_expression "param_1 + 0xe8" (identifier "param_1") (+ "+") (number_literal "0xe8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00147de0:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }" (statement_identifier "LAB_00147de0") (: ":") (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 function_1(type_2 *conn)

{
  type_3 *sasl;
  type_4 _Var1;
  type_1 var_4;
  long var_1;
  type_5 var_6;
  long var_9;
  
  var_9 = *(long *)(var_1 + 0x28);
  if ((conn->proto).imapc.resptag[2] != '\0') {
    sasl = &(conn->proto).imapc.sasl.state;
    _Var1 = var_2((type_6 *)sasl,conn);
    if (_Var1) {
      var_4 = var_3((type_6 *)sasl,conn,false,&var_6);
      if (var_4 == var_5) {
        if (var_6 == var_7) {
          (conn->proto).imapc.state = IMAP_LOGIN;
        }
        else {
          var_8(conn->data,"No known authentication mechanisms supported!\n");
          var_4 = CURLE_LOGIN_DENIED;
        }
      }
      goto LAB_00147de0;
    }
  }
  (conn->proto).imapc.state = IMAP_STOP;
  var_4 = var_5;
LAB_00147de0:
  if (var_9 == *(long *)(var_1 + 0x28)) {
    return var_4;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


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

undefined8 MASKED(undefined8 *param_1)

{
  char cVar1;
  undefined8 uVar2;
  long in_FS_OFFSET;
  int local_24;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if (*(char *)((long)param_1 + 0x772) != '\0') {
    cVar1 = FUN_0014f312(param_1 + 0xea,param_1);
    if (cVar1 != '\0') {
      uVar2 = FUN_0014f32a(param_1 + 0xea,param_1,0,&local_24);
      if ((int)uVar2 == 0) {
        if (local_24 == 1) {
          *(undefined4 *)(param_1 + 0xe8) = 6;
        }
        else {
          FUN_0011a8d8(*param_1,"No known authentication mechanisms supported!\n");
          uVar2 = 0x43;
        }
      }
      goto LAB_00147de0;
    }
  }
  *(undefined4 *)(param_1 + 0xe8) = 0;
  uVar2 = 0;
LAB_00147de0:
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

