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

void Curl_ssl_delsessionid(connectdata *conn,void *ssl_sessionid)

{
  size_t sVar1;
  curl_ssl_session *session;
  void *pvVar2;
  size_t sVar3;
  
  sVar1 = (conn->data->set).general_ssl.max_ssl_sessions;
  if (sVar1 == 0) {
    return;
  }
  session = (conn->data->state).session;
  sVar3 = 0;
  pvVar2 = session->sessionid;
  while( true ) {
    if (ssl_sessionid == pvVar2) {
      Curl_ssl_kill_session(session);
      return;
    }
    sVar3 = sVar3 + 1;
    if (sVar3 == sVar1) break;
    pvVar2 = session[1].sessionid;
    session = session + 1;
  }
  return;
}



void FUN_0016b50d(long *param_1,long param_2)

{
  long lVar1;
  long lVar2;
  long lVar3;
  long lVar4;
  
  lVar1 = *(long *)(*param_1 + 0xc20);
  if (lVar1 == 0) {
    return;
  }
  lVar2 = *(long *)(*param_1 + 0x1278);
  lVar4 = 0;
  lVar3 = *(long *)(lVar2 + 0x18);
  while( true ) {
    if (param_2 == lVar3) {
      FUN_0016b4a8(lVar2);
      return;
    }
    lVar4 = lVar4 + 1;
    if (lVar4 == lVar1) break;
    lVar3 = *(long *)(lVar2 + 0xa0);
    lVar2 = lVar2 + 0x88;
  }
  return;
}


MOV RAX,qword ptr [RDI]
MOV RCX,qword ptr [RAX + 0xc20]
TEST RCX,RCX
JZ 0x0016b55c
MOV RDI,qword ptr [RAX + 0x1278]
LEA RAX,[RDI + 0x88]
MOV EDX,0x0
CMP RSI,qword ptr [RDI + 0x18]
JZ 0x0016b54d
ADD RDX,0x1
CMP RDX,RCX
JZ 0x0016b55b
MOV RDI,RAX
ADD RAX,0x88
CMP qword ptr [RAX + -0x70],RSI
JNZ 0x0016b535
SUB RSP,0x8
CALL 0x0016b4a8
ADD RSP,0x8
RET
RET
RET
(translation_unit "void FUN_0016b50d(long *param_1,long param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar1 = *(long *)(*param_1 + 0xc20);\n  if (lVar1 == 0) {\n    return;\n  }\n  lVar2 = *(long *)(*param_1 + 0x1278);\n  lVar4 = 0;\n  lVar3 = *(long *)(lVar2 + 0x18);\n  while( true ) {\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0016b50d(long *param_1,long param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar1 = *(long *)(*param_1 + 0xc20);\n  if (lVar1 == 0) {\n    return;\n  }\n  lVar2 = *(long *)(*param_1 + 0x1278);\n  lVar4 = 0;\n  lVar3 = *(long *)(lVar2 + 0x18);\n  while( true ) {\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0016b50d(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar1 = *(long *)(*param_1 + 0xc20);\n  if (lVar1 == 0) {\n    return;\n  }\n  lVar2 = *(long *)(*param_1 + 0x1278);\n  lVar4 = 0;\n  lVar3 = *(long *)(lVar2 + 0x18);\n  while( true ) {\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *(long *)(*param_1 + 0xc20);" (assignment_expression "lVar1 = *(long *)(*param_1 + 0xc20)" identifier = (pointer_expression "*(long *)(*param_1 + 0xc20)" * (cast_expression "(long *)(*param_1 + 0xc20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc20)" ( (binary_expression "*param_1 + 0xc20" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (lVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "lVar2 = *(long *)(*param_1 + 0x1278);" (assignment_expression "lVar2 = *(long *)(*param_1 + 0x1278)" identifier = (pointer_expression "*(long *)(*param_1 + 0x1278)" * (cast_expression "(long *)(*param_1 + 0x1278)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1278)" ( (binary_expression "*param_1 + 0x1278" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) (expression_statement "lVar3 = *(long *)(lVar2 + 0x18);" (assignment_expression "lVar3 = *(long *)(lVar2 + 0x18)" identifier = (pointer_expression "*(long *)(lVar2 + 0x18)" * (cast_expression "(long *)(lVar2 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x18)" ( (binary_expression "lVar2 + 0x18" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }" { (if_statement "if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }" if (parenthesized_expression "(param_2 == lVar3)" ( (binary_expression "param_2 == lVar3" identifier == identifier) )) (compound_statement "{\n      FUN_0016b4a8(lVar2);\n      return;\n    }" { (expression_statement "FUN_0016b4a8(lVar2);" (call_expression "FUN_0016b4a8(lVar2)" identifier (argument_list "(lVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" identifier = (binary_expression "lVar4 + 1" identifier + number_literal)) ;) (if_statement "if (lVar4 == lVar1) break;" if (parenthesized_expression "(lVar4 == lVar1)" ( (binary_expression "lVar4 == lVar1" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "lVar3 = *(long *)(lVar2 + 0xa0);" (assignment_expression "lVar3 = *(long *)(lVar2 + 0xa0)" identifier = (pointer_expression "*(long *)(lVar2 + 0xa0)" * (cast_expression "(long *)(lVar2 + 0xa0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xa0)" ( (binary_expression "lVar2 + 0xa0" identifier + number_literal) ))))) ;) (expression_statement "lVar2 = lVar2 + 0x88;" (assignment_expression "lVar2 = lVar2 + 0x88" identifier = (binary_expression "lVar2 + 0x88" identifier + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid Curl_ssl_delsessionid(connectdata *conn,void *ssl_sessionid)\n\n{\n  size_t sVar1;\n  curl_ssl_session *session;\n  void *pvVar2;\n  size_t sVar3;\n  \n  sVar1 = (conn->data->set).general_ssl.max_ssl_sessions;\n  if (sVar1 == 0) {\n    return;\n  }\n  session = (conn->data->state).session;\n  sVar3 = 0;\n  pvVar2 = session->sessionid;\n  while( true ) {\n    if (ssl_sessionid == pvVar2) {\n      Curl_ssl_kill_session(session);\n      return;\n    }\n    sVar3 = sVar3 + 1;\n    if (sVar3 == sVar1) break;\n    pvVar2 = session[1].sessionid;\n    session = session + 1;\n  }\n  return;\n}\n\n" comment (function_definition "void Curl_ssl_delsessionid(connectdata *conn,void *ssl_sessionid)\n\n{\n  size_t sVar1;\n  curl_ssl_session *session;\n  void *pvVar2;\n  size_t sVar3;\n  \n  sVar1 = (conn->data->set).general_ssl.max_ssl_sessions;\n  if (sVar1 == 0) {\n    return;\n  }\n  session = (conn->data->state).session;\n  sVar3 = 0;\n  pvVar2 = session->sessionid;\n  while( true ) {\n    if (ssl_sessionid == pvVar2) {\n      Curl_ssl_kill_session(session);\n      return;\n    }\n    sVar3 = sVar3 + 1;\n    if (sVar3 == sVar1) break;\n    pvVar2 = session[1].sessionid;\n    session = session + 1;\n  }\n  return;\n}" primitive_type (function_declarator "Curl_ssl_delsessionid(connectdata *conn,void *ssl_sessionid)" identifier (parameter_list "(connectdata *conn,void *ssl_sessionid)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "void *ssl_sessionid" primitive_type (pointer_declarator "*ssl_sessionid" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  curl_ssl_session *session;\n  void *pvVar2;\n  size_t sVar3;\n  \n  sVar1 = (conn->data->set).general_ssl.max_ssl_sessions;\n  if (sVar1 == 0) {\n    return;\n  }\n  session = (conn->data->state).session;\n  sVar3 = 0;\n  pvVar2 = session->sessionid;\n  while( true ) {\n    if (ssl_sessionid == pvVar2) {\n      Curl_ssl_kill_session(session);\n      return;\n    }\n    sVar3 = sVar3 + 1;\n    if (sVar3 == sVar1) break;\n    pvVar2 = session[1].sessionid;\n    session = session + 1;\n  }\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "curl_ssl_session *session;" type_identifier (pointer_declarator "*session" * identifier) ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (expression_statement "sVar1 = (conn->data->set).general_ssl.max_ssl_sessions;" (assignment_expression "sVar1 = (conn->data->set).general_ssl.max_ssl_sessions" identifier = (field_expression "(conn->data->set).general_ssl.max_ssl_sessions" (field_expression "(conn->data->set).general_ssl" (parenthesized_expression "(conn->data->set)" ( (field_expression "conn->data->set" (field_expression "conn->data" identifier -> field_identifier) -> field_identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (sVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(sVar1 == 0)" ( (binary_expression "sVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "session = (conn->data->state).session;" (assignment_expression "session = (conn->data->state).session" identifier = (field_expression "(conn->data->state).session" (parenthesized_expression "(conn->data->state)" ( (field_expression "conn->data->state" (field_expression "conn->data" identifier -> field_identifier) -> field_identifier) )) . field_identifier)) ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (expression_statement "pvVar2 = session->sessionid;" (assignment_expression "pvVar2 = session->sessionid" identifier = (field_expression "session->sessionid" identifier -> field_identifier)) ;) (while_statement "while( true ) {\n    if (ssl_sessionid == pvVar2) {\n      Curl_ssl_kill_session(session);\n      return;\n    }\n    sVar3 = sVar3 + 1;\n    if (sVar3 == sVar1) break;\n    pvVar2 = session[1].sessionid;\n    session = session + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (ssl_sessionid == pvVar2) {\n      Curl_ssl_kill_session(session);\n      return;\n    }\n    sVar3 = sVar3 + 1;\n    if (sVar3 == sVar1) break;\n    pvVar2 = session[1].sessionid;\n    session = session + 1;\n  }" { (if_statement "if (ssl_sessionid == pvVar2) {\n      Curl_ssl_kill_session(session);\n      return;\n    }" if (parenthesized_expression "(ssl_sessionid == pvVar2)" ( (binary_expression "ssl_sessionid == pvVar2" identifier == identifier) )) (compound_statement "{\n      Curl_ssl_kill_session(session);\n      return;\n    }" { (expression_statement "Curl_ssl_kill_session(session);" (call_expression "Curl_ssl_kill_session(session)" identifier (argument_list "(session)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "sVar3 = sVar3 + 1;" (assignment_expression "sVar3 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (if_statement "if (sVar3 == sVar1) break;" if (parenthesized_expression "(sVar3 == sVar1)" ( (binary_expression "sVar3 == sVar1" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pvVar2 = session[1].sessionid;" (assignment_expression "pvVar2 = session[1].sessionid" identifier = (field_expression "session[1].sessionid" (subscript_expression "session[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "session = session + 1;" (assignment_expression "session = session + 1" identifier = (binary_expression "session + 1" identifier + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0016b50d(long *param_1,long param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar1 = *(long *)(*param_1 + 0xc20);\n  if (lVar1 == 0) {\n    return;\n  }\n  lVar2 = *(long *)(*param_1 + 0x1278);\n  lVar4 = 0;\n  lVar3 = *(long *)(lVar2 + 0x18);\n  while( true ) {\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0016b50d(long *param_1,long param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar1 = *(long *)(*param_1 + 0xc20);\n  if (lVar1 == 0) {\n    return;\n  }\n  lVar2 = *(long *)(*param_1 + 0x1278);\n  lVar4 = 0;\n  lVar3 = *(long *)(lVar2 + 0x18);\n  while( true ) {\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0016b50d(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar1 = *(long *)(*param_1 + 0xc20);\n  if (lVar1 == 0) {\n    return;\n  }\n  lVar2 = *(long *)(*param_1 + 0x1278);\n  lVar4 = 0;\n  lVar3 = *(long *)(lVar2 + 0x18);\n  while( true ) {\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *(long *)(*param_1 + 0xc20);" (assignment_expression "lVar1 = *(long *)(*param_1 + 0xc20)" identifier = (pointer_expression "*(long *)(*param_1 + 0xc20)" * (cast_expression "(long *)(*param_1 + 0xc20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc20)" ( (binary_expression "*param_1 + 0xc20" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (lVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "lVar2 = *(long *)(*param_1 + 0x1278);" (assignment_expression "lVar2 = *(long *)(*param_1 + 0x1278)" identifier = (pointer_expression "*(long *)(*param_1 + 0x1278)" * (cast_expression "(long *)(*param_1 + 0x1278)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1278)" ( (binary_expression "*param_1 + 0x1278" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" identifier = number_literal) ;) (expression_statement "lVar3 = *(long *)(lVar2 + 0x18);" (assignment_expression "lVar3 = *(long *)(lVar2 + 0x18)" identifier = (pointer_expression "*(long *)(lVar2 + 0x18)" * (cast_expression "(long *)(lVar2 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x18)" ( (binary_expression "lVar2 + 0x18" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }" { (if_statement "if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }" if (parenthesized_expression "(param_2 == lVar3)" ( (binary_expression "param_2 == lVar3" identifier == identifier) )) (compound_statement "{\n      FUN_0016b4a8(lVar2);\n      return;\n    }" { (expression_statement "FUN_0016b4a8(lVar2);" (call_expression "FUN_0016b4a8(lVar2)" identifier (argument_list "(lVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" identifier = (binary_expression "lVar4 + 1" identifier + number_literal)) ;) (if_statement "if (lVar4 == lVar1) break;" if (parenthesized_expression "(lVar4 == lVar1)" ( (binary_expression "lVar4 == lVar1" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "lVar3 = *(long *)(lVar2 + 0xa0);" (assignment_expression "lVar3 = *(long *)(lVar2 + 0xa0)" identifier = (pointer_expression "*(long *)(lVar2 + 0xa0)" * (cast_expression "(long *)(lVar2 + 0xa0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xa0)" ( (binary_expression "lVar2 + 0xa0" identifier + number_literal) ))))) ;) (expression_statement "lVar2 = lVar2 + 0x88;" (assignment_expression "lVar2 = lVar2 + 0x88" identifier = (binary_expression "lVar2 + 0x88" identifier + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) 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 (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0016b50d(long *param_1,long param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar1 = *(long *)(*param_1 + 0xc20);\n  if (lVar1 == 0) {\n    return;\n  }\n  lVar2 = *(long *)(*param_1 + 0x1278);\n  lVar4 = 0;\n  lVar3 = *(long *)(lVar2 + 0x18);\n  while( true ) {\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0016b50d(long *param_1,long param_2)" (identifier "FUN_0016b50d") (parameter_list "(long *param_1,long param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar1 = *(long *)(*param_1 + 0xc20);\n  if (lVar1 == 0) {\n    return;\n  }\n  lVar2 = *(long *)(*param_1 + 0x1278);\n  lVar4 = 0;\n  lVar3 = *(long *)(lVar2 + 0x18);\n  while( true ) {\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (expression_statement "lVar1 = *(long *)(*param_1 + 0xc20);" (assignment_expression "lVar1 = *(long *)(*param_1 + 0xc20)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(*param_1 + 0xc20)" (* "*") (cast_expression "(long *)(*param_1 + 0xc20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc20)" (( "(") (binary_expression "*param_1 + 0xc20" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc20")) () ")"))))) (; ";")) (if_statement "if (lVar1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(lVar1 == 0)" (( "(") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar2 = *(long *)(*param_1 + 0x1278);" (assignment_expression "lVar2 = *(long *)(*param_1 + 0x1278)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(*param_1 + 0x1278)" (* "*") (cast_expression "(long *)(*param_1 + 0x1278)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x1278)" (( "(") (binary_expression "*param_1 + 0x1278" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1278")) () ")"))))) (; ";")) (expression_statement "lVar4 = 0;" (assignment_expression "lVar4 = 0" (identifier "lVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar3 = *(long *)(lVar2 + 0x18);" (assignment_expression "lVar3 = *(long *)(lVar2 + 0x18)" (identifier "lVar3") (= "=") (pointer_expression "*(long *)(lVar2 + 0x18)" (* "*") (cast_expression "(long *)(lVar2 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x18)" (( "(") (binary_expression "lVar2 + 0x18" (identifier "lVar2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (while_statement "while( true ) {\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }\n    lVar4 = lVar4 + 1;\n    if (lVar4 == lVar1) break;\n    lVar3 = *(long *)(lVar2 + 0xa0);\n    lVar2 = lVar2 + 0x88;\n  }" ({ "{") (if_statement "if (param_2 == lVar3) {\n      FUN_0016b4a8(lVar2);\n      return;\n    }" (if "if") (parenthesized_expression "(param_2 == lVar3)" (( "(") (binary_expression "param_2 == lVar3" (identifier "param_2") (== "==") (identifier "lVar3")) () ")")) (compound_statement "{\n      FUN_0016b4a8(lVar2);\n      return;\n    }" ({ "{") (expression_statement "FUN_0016b4a8(lVar2);" (call_expression "FUN_0016b4a8(lVar2)" (identifier "FUN_0016b4a8") (argument_list "(lVar2)" (( "(") (identifier "lVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar4 = lVar4 + 1;" (assignment_expression "lVar4 = lVar4 + 1" (identifier "lVar4") (= "=") (binary_expression "lVar4 + 1" (identifier "lVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (lVar4 == lVar1) break;" (if "if") (parenthesized_expression "(lVar4 == lVar1)" (( "(") (binary_expression "lVar4 == lVar1" (identifier "lVar4") (== "==") (identifier "lVar1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar3 = *(long *)(lVar2 + 0xa0);" (assignment_expression "lVar3 = *(long *)(lVar2 + 0xa0)" (identifier "lVar3") (= "=") (pointer_expression "*(long *)(lVar2 + 0xa0)" (* "*") (cast_expression "(long *)(lVar2 + 0xa0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0xa0)" (( "(") (binary_expression "lVar2 + 0xa0" (identifier "lVar2") (+ "+") (number_literal "0xa0")) () ")"))))) (; ";")) (expression_statement "lVar2 = lVar2 + 0x88;" (assignment_expression "lVar2 = lVar2 + 0x88" (identifier "lVar2") (= "=") (binary_expression "lVar2 + 0x88" (identifier "lVar2") (+ "+") (number_literal "0x88"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *conn,void *var_2)

{
  size_t var_1;
  type_2 *var_6;
  void *var_3;
  size_t var_5;
  
  var_1 = (conn->data->set).general_ssl.max_ssl_sessions;
  if (var_1 == 0) {
    return;
  }
  var_6 = (conn->data->state).var_6;
  var_5 = 0;
  var_3 = var_6->sessionid;
  while( true ) {
    if (var_2 == var_3) {
      var_4(var_6);
      return;
    }
    var_5 = var_5 + 1;
    if (var_5 == var_1) break;
    var_3 = var_6[1].sessionid;
    var_6 = var_6 + 1;
  }
  return;
}


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

void MASKED(long *param_1,long param_2)

{
  long lVar1;
  long lVar2;
  long lVar3;
  long lVar4;
  
  lVar1 = *(long *)(*param_1 + 0xc20);
  if (lVar1 == 0) {
    return;
  }
  lVar2 = *(long *)(*param_1 + 0x1278);
  lVar4 = 0;
  lVar3 = *(long *)(lVar2 + 0x18);
  while( true ) {
    if (param_2 == lVar3) {
      FUN_0016b4a8(lVar2);
      return;
    }
    lVar4 = lVar4 + 1;
    if (lVar4 == lVar1) break;
    lVar3 = *(long *)(lVar2 + 0xa0);
    lVar2 = lVar2 + 0x88;
  }
  return;
}

