
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void ssh_queueing_handler(Ssh_conflict ssh,Packet *pktin)

{
  queued_handler *ptr;
  int iVar1;
  queued_handler *pqVar2;
  
  ptr = ssh->qhead;
  if (ptr == (queued_handler *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");
  }
  iVar1 = ptr->msg1;
  if ((pktin->type != iVar1) && (pktin->type != ptr->msg2)) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,
                  "ssh_queueing_handler");
  }
  if (0 < iVar1) {
    if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,
                    "ssh_queueing_handler");
    }
    ssh->packet_dispatch[iVar1] = ssh->q_saved_handler1;
  }
  iVar1 = ptr->msg2;
  if (0 < iVar1) {
    if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,
                    "ssh_queueing_handler");
    }
    ssh->packet_dispatch[iVar1] = ssh->q_saved_handler2;
  }
  pqVar2 = ptr->next;
  if (pqVar2 == (queued_handler *)0x0) {
    ssh->qtail = (queued_handler *)0x0;
    ssh->qhead = (queued_handler *)0x0;
  }
  else {
    iVar1 = pqVar2->msg1;
    ssh->qhead = pqVar2;
    if (0 < iVar1) {
      ssh->q_saved_handler1 = ssh->packet_dispatch[iVar1];
      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;
    }
    iVar1 = pqVar2->msg2;
    if (0 < iVar1) {
      ssh->q_saved_handler2 = ssh->packet_dispatch[iVar1];
      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;
    }
  }
  (*ptr->handler)(ssh,pktin,ptr->ctx);
  safefree(ptr);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_00033b40(int param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  
  piVar1 = *(int **)(param_1 + 0x670);
  if (piVar1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");
  }
  iVar2 = *piVar1;
  if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,
                  "ssh_queueing_handler");
  }
  if (0 < iVar2) {
    iVar2 = param_1 + iVar2 * 4;
    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,
                    "ssh_queueing_handler");
    }
    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);
  }
  if (0 < piVar1[1]) {
    iVar2 = param_1 + piVar1[1] * 4;
    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,
                    "ssh_queueing_handler");
    }
    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);
  }
  piVar3 = (int *)piVar1[4];
  if (piVar3 == (int *)0x0) {
    *(undefined4 *)(param_1 + 0x674) = 0;
    *(undefined4 *)(param_1 + 0x670) = 0;
  }
  else {
    iVar2 = *piVar3;
    *(int **)(param_1 + 0x670) = piVar3;
    if (0 < iVar2) {
      iVar2 = param_1 + iVar2 * 4;
      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);
      *(code **)(iVar2 + 0x270) = FUN_00033b40;
    }
    if (0 < piVar3[1]) {
      iVar2 = param_1 + piVar3[1] * 4;
      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);
      *(code **)(iVar2 + 0x270) = FUN_00033b40;
    }
  }
  (*(code *)piVar1[2])(param_1,param_2,piVar1[3]);
  FUN_0001dd30(piVar1);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0x99227
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x20]
MOV ECX,dword ptr [ESP + 0x24]
MOV ESI,dword ptr [EAX + 0x670]
TEST ESI,ESI
JZ 0x00033c4e
MOV EDI,dword ptr [ECX + 0x8]
MOV EDX,dword ptr [ESI]
CMP EDI,EDX
JZ 0x00033b7a
CMP EDI,dword ptr [ESI + 0x4]
JNZ 0x00033c6d
TEST EDX,EDX
JLE 0x00033b9f
LEA EDX,[EAX + EDX*0x4]
LEA EDI,[EBX + 0xfff66dd0]
CMP dword ptr [EDX + 0x270],EDI
JNZ 0x00033cab
MOV EDI,dword ptr [EAX + 0x678]
MOV dword ptr [EDX + 0x270],EDI
MOV EDX,dword ptr [ESI + 0x4]
TEST EDX,EDX
JLE 0x00033bc7
LEA EDX,[EAX + EDX*0x4]
LEA EDI,[EBX + 0xfff66dd0]
CMP dword ptr [EDX + 0x270],EDI
JNZ 0x00033c8c
MOV EDI,dword ptr [EAX + 0x67c]
MOV dword ptr [EDX + 0x270],EDI
MOV EDX,dword ptr [ESI + 0x10]
TEST EDX,EDX
JZ 0x00033c38
MOV EDI,dword ptr [EDX]
MOV dword ptr [EAX + 0x670],EDX
TEST EDI,EDI
JLE 0x00033bf5
LEA EDI,[EAX + EDI*0x4]
MOV EBP,dword ptr [EDI + 0x270]
MOV dword ptr [EAX + 0x678],EBP
LEA EBP,[EBX + 0xfff66dd0]
MOV dword ptr [EDI + 0x270],EBP
MOV EDX,dword ptr [EDX + 0x4]
TEST EDX,EDX
JLE 0x00033c17
LEA EDX,[EAX + EDX*0x4]
MOV EDI,dword ptr [EDX + 0x270]
MOV dword ptr [EAX + 0x67c],EDI
LEA EDI,[EBX + 0xfff66dd0]
MOV dword ptr [EDX + 0x270],EDI
SUB ESP,0x4
PUSH dword ptr [ESI + 0xc]
PUSH ECX
PUSH EAX
CALL dword ptr [ESI + 0x8]
MOV dword ptr [ESP],ESI
CALL 0x0001dd30
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EAX + 0x674],0x0
MOV dword ptr [EAX + 0x670],0x0
JMP 0x00033c17
LEA EAX,[EBX + 0xfffc94b8]
PUSH EAX
LEA EAX,[EBX + 0xfffc5307]
PUSH 0x142c
PUSH EAX
LEA EAX,[EBX + 0xfffc530d]
PUSH EAX
CALL 0x00014880
LEA EAX,[EBX + 0xfffc94b8]
PUSH EAX
LEA EAX,[EBX + 0xfffc5307]
PUSH 0x142e
PUSH EAX
LEA EAX,[EBX + 0xfffc6b08]
PUSH EAX
CALL 0x00014880
LEA EAX,[EBX + 0xfffc94b8]
PUSH EAX
LEA EAX,[EBX + 0xfffc5307]
PUSH 0x1435
PUSH EAX
LEA EAX,[EBX + 0xfffc6b74]
PUSH EAX
CALL 0x00014880
LEA EAX,[EBX + 0xfffc94b8]
PUSH EAX
LEA EAX,[EBX + 0xfffc5307]
PUSH 0x1431
PUSH EAX
LEA EAX,[EBX + 0xfffc6b3c]
PUSH EAX
CALL 0x00014880
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00033b40(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar1 = *(int **)(param_1 + 0x670);\n  if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }\n  iVar2 = *piVar1;\n  if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }\n  if (0 < iVar2) {\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }\n  if (0 < piVar1[1]) {\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }\n  piVar3 = (int *)piVar1[4];\n  if (piVar3 == (int *)0x0) {\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }\n  else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }\n  (*(code *)piVar1[2])(param_1,param_2,piVar1[3]);\n  FUN_0001dd30(piVar1);\n  return;\n}\n\n" comment (function_definition "void FUN_00033b40(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar1 = *(int **)(param_1 + 0x670);\n  if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }\n  iVar2 = *piVar1;\n  if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }\n  if (0 < iVar2) {\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }\n  if (0 < piVar1[1]) {\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }\n  piVar3 = (int *)piVar1[4];\n  if (piVar3 == (int *)0x0) {\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }\n  else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }\n  (*(code *)piVar1[2])(param_1,param_2,piVar1[3]);\n  FUN_0001dd30(piVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00033b40(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar1 = *(int **)(param_1 + 0x670);\n  if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }\n  iVar2 = *piVar1;\n  if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }\n  if (0 < iVar2) {\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }\n  if (0 < piVar1[1]) {\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }\n  piVar3 = (int *)piVar1[4];\n  if (piVar3 == (int *)0x0) {\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }\n  else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }\n  (*(code *)piVar1[2])(param_1,param_2,piVar1[3]);\n  FUN_0001dd30(piVar1);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x670);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x670)" identifier = (pointer_expression "*(int **)(param_1 + 0x670)" * (cast_expression "(int **)(param_1 + 0x670)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x670)" ( (binary_expression "param_1 + 0x670" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }" { comment (expression_statement "__assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");" (call_expression "__assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler")" identifier (argument_list "("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler")" ( (string_literal ""qh != NULL"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""ssh_queueing_handler"" " string_content ") ))) ;) })) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }" if (parenthesized_expression "((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1]))" ( (binary_expression "(*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])" (parenthesized_expression "(*(int *)(param_2 + 8) != iVar2)" ( (binary_expression "*(int *)(param_2 + 8) != iVar2" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) != identifier) )) && (parenthesized_expression "(*(int *)(param_2 + 8) != piVar1[1])" ( (binary_expression "*(int *)(param_2 + 8) != piVar1[1]" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) != (subscript_expression "piVar1[1]" identifier [ number_literal ])) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }" { comment (expression_statement "__assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");" (call_expression "__assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler")" identifier (argument_list "("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler")" ( (string_literal ""pktin->type == qh->msg1 || pktin->type == qh->msg2"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""ssh_queueing_handler"" " string_content ") ))) ;) })) (if_statement "if (0 < iVar2) {\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }" { (expression_statement "iVar2 = param_1 + iVar2 * 4;" (assignment_expression "iVar2 = param_1 + iVar2 * 4" identifier = (binary_expression "param_1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal))) ;) (if_statement "if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }" if (parenthesized_expression "(*(code **)(iVar2 + 0x270) != FUN_00033b40)" ( (binary_expression "*(code **)(iVar2 + 0x270) != FUN_00033b40" (pointer_expression "*(code **)(iVar2 + 0x270)" * (cast_expression "(code **)(iVar2 + 0x270)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }" { comment (expression_statement "__assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");" (call_expression "__assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler")" identifier (argument_list "("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler")" ( (string_literal ""ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""ssh_queueing_handler"" " string_content ") ))) ;) })) (expression_statement "*(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);" (assignment_expression "*(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678)" (pointer_expression "*(undefined4 *)(iVar2 + 0x270)" * (cast_expression "(undefined4 *)(iVar2 + 0x270)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x678)" * (cast_expression "(undefined4 *)(param_1 + 0x678)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x678)" ( (binary_expression "param_1 + 0x678" identifier + number_literal) ))))) ;) })) (if_statement "if (0 < piVar1[1]) {\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }" if (parenthesized_expression "(0 < piVar1[1])" ( (binary_expression "0 < piVar1[1]" number_literal < (subscript_expression "piVar1[1]" identifier [ number_literal ])) )) (compound_statement "{\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }" { (expression_statement "iVar2 = param_1 + piVar1[1] * 4;" (assignment_expression "iVar2 = param_1 + piVar1[1] * 4" identifier = (binary_expression "param_1 + piVar1[1] * 4" identifier + (binary_expression "piVar1[1] * 4" (subscript_expression "piVar1[1]" identifier [ number_literal ]) * number_literal))) ;) (if_statement "if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }" if (parenthesized_expression "(*(code **)(iVar2 + 0x270) != FUN_00033b40)" ( (binary_expression "*(code **)(iVar2 + 0x270) != FUN_00033b40" (pointer_expression "*(code **)(iVar2 + 0x270)" * (cast_expression "(code **)(iVar2 + 0x270)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }" { comment (expression_statement "__assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");" (call_expression "__assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler")" identifier (argument_list "("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler")" ( (string_literal ""ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""ssh_queueing_handler"" " string_content ") ))) ;) })) (expression_statement "*(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);" (assignment_expression "*(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c)" (pointer_expression "*(undefined4 *)(iVar2 + 0x270)" * (cast_expression "(undefined4 *)(iVar2 + 0x270)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x67c)" * (cast_expression "(undefined4 *)(param_1 + 0x67c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x67c)" ( (binary_expression "param_1 + 0x67c" identifier + number_literal) ))))) ;) })) (expression_statement "piVar3 = (int *)piVar1[4];" (assignment_expression "piVar3 = (int *)piVar1[4]" identifier = (cast_expression "(int *)piVar1[4]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[4]" identifier [ number_literal ]))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }\n  else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x674) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x674) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x674)" * (cast_expression "(undefined4 *)(param_1 + 0x674)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x674)" ( (binary_expression "param_1 + 0x674" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x670) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x670) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x670)" * (cast_expression "(undefined4 *)(param_1 + 0x670)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x670)" ( (binary_expression "param_1 + 0x670" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }" else (compound_statement "{\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }" { (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "*(int **)(param_1 + 0x670) = piVar3;" (assignment_expression "*(int **)(param_1 + 0x670) = piVar3" (pointer_expression "*(int **)(param_1 + 0x670)" * (cast_expression "(int **)(param_1 + 0x670)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x670)" ( (binary_expression "param_1 + 0x670" identifier + number_literal) )))) = identifier) ;) (if_statement "if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }" { (expression_statement "iVar2 = param_1 + iVar2 * 4;" (assignment_expression "iVar2 = param_1 + iVar2 * 4" identifier = (binary_expression "param_1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);" (assignment_expression "*(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270)" (pointer_expression "*(undefined4 *)(param_1 + 0x678)" * (cast_expression "(undefined4 *)(param_1 + 0x678)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x678)" ( (binary_expression "param_1 + 0x678" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar2 + 0x270)" * (cast_expression "(undefined4 *)(iVar2 + 0x270)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) ))))) ;) (expression_statement "*(code **)(iVar2 + 0x270) = FUN_00033b40;" (assignment_expression "*(code **)(iVar2 + 0x270) = FUN_00033b40" (pointer_expression "*(code **)(iVar2 + 0x270)" * (cast_expression "(code **)(iVar2 + 0x270)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) )))) = identifier) ;) })) (if_statement "if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }" if (parenthesized_expression "(0 < piVar3[1])" ( (binary_expression "0 < piVar3[1]" number_literal < (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }" { (expression_statement "iVar2 = param_1 + piVar3[1] * 4;" (assignment_expression "iVar2 = param_1 + piVar3[1] * 4" identifier = (binary_expression "param_1 + piVar3[1] * 4" identifier + (binary_expression "piVar3[1] * 4" (subscript_expression "piVar3[1]" identifier [ number_literal ]) * number_literal))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);" (assignment_expression "*(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270)" (pointer_expression "*(undefined4 *)(param_1 + 0x67c)" * (cast_expression "(undefined4 *)(param_1 + 0x67c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x67c)" ( (binary_expression "param_1 + 0x67c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar2 + 0x270)" * (cast_expression "(undefined4 *)(iVar2 + 0x270)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) ))))) ;) (expression_statement "*(code **)(iVar2 + 0x270) = FUN_00033b40;" (assignment_expression "*(code **)(iVar2 + 0x270) = FUN_00033b40" (pointer_expression "*(code **)(iVar2 + 0x270)" * (cast_expression "(code **)(iVar2 + 0x270)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) )))) = identifier) ;) })) }))) (expression_statement "(*(code *)piVar1[2])(param_1,param_2,piVar1[3]);" (call_expression "(*(code *)piVar1[2])(param_1,param_2,piVar1[3])" (parenthesized_expression "(*(code *)piVar1[2])" ( (pointer_expression "*(code *)piVar1[2]" * (cast_expression "(code *)piVar1[2]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (argument_list "(param_1,param_2,piVar1[3])" ( identifier , identifier , (subscript_expression "piVar1[3]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001dd30(piVar1);" (call_expression "FUN_0001dd30(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh_queueing_handler(Ssh_conflict ssh,Packet *pktin)\n\n{\n  queued_handler *ptr;\n  int iVar1;\n  queued_handler *pqVar2;\n  \n  ptr = ssh->qhead;\n  if (ptr == (queued_handler *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }\n  iVar1 = ptr->msg1;\n  if ((pktin->type != iVar1) && (pktin->type != ptr->msg2)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }\n  if (0 < iVar1) {\n    if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    ssh->packet_dispatch[iVar1] = ssh->q_saved_handler1;\n  }\n  iVar1 = ptr->msg2;\n  if (0 < iVar1) {\n    if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    ssh->packet_dispatch[iVar1] = ssh->q_saved_handler2;\n  }\n  pqVar2 = ptr->next;\n  if (pqVar2 == (queued_handler *)0x0) {\n    ssh->qtail = (queued_handler *)0x0;\n    ssh->qhead = (queued_handler *)0x0;\n  }\n  else {\n    iVar1 = pqVar2->msg1;\n    ssh->qhead = pqVar2;\n    if (0 < iVar1) {\n      ssh->q_saved_handler1 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }\n    iVar1 = pqVar2->msg2;\n    if (0 < iVar1) {\n      ssh->q_saved_handler2 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }\n  }\n  (*ptr->handler)(ssh,pktin,ptr->ctx);\n  safefree(ptr);\n  return;\n}\n\n" comment comment comment (function_definition "void ssh_queueing_handler(Ssh_conflict ssh,Packet *pktin)\n\n{\n  queued_handler *ptr;\n  int iVar1;\n  queued_handler *pqVar2;\n  \n  ptr = ssh->qhead;\n  if (ptr == (queued_handler *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }\n  iVar1 = ptr->msg1;\n  if ((pktin->type != iVar1) && (pktin->type != ptr->msg2)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }\n  if (0 < iVar1) {\n    if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    ssh->packet_dispatch[iVar1] = ssh->q_saved_handler1;\n  }\n  iVar1 = ptr->msg2;\n  if (0 < iVar1) {\n    if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    ssh->packet_dispatch[iVar1] = ssh->q_saved_handler2;\n  }\n  pqVar2 = ptr->next;\n  if (pqVar2 == (queued_handler *)0x0) {\n    ssh->qtail = (queued_handler *)0x0;\n    ssh->qhead = (queued_handler *)0x0;\n  }\n  else {\n    iVar1 = pqVar2->msg1;\n    ssh->qhead = pqVar2;\n    if (0 < iVar1) {\n      ssh->q_saved_handler1 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }\n    iVar1 = pqVar2->msg2;\n    if (0 < iVar1) {\n      ssh->q_saved_handler2 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }\n  }\n  (*ptr->handler)(ssh,pktin,ptr->ctx);\n  safefree(ptr);\n  return;\n}" primitive_type (function_declarator "ssh_queueing_handler(Ssh_conflict ssh,Packet *pktin)" identifier (parameter_list "(Ssh_conflict ssh,Packet *pktin)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "Packet *pktin" type_identifier (pointer_declarator "*pktin" * identifier)) ))) (compound_statement "{\n  queued_handler *ptr;\n  int iVar1;\n  queued_handler *pqVar2;\n  \n  ptr = ssh->qhead;\n  if (ptr == (queued_handler *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }\n  iVar1 = ptr->msg1;\n  if ((pktin->type != iVar1) && (pktin->type != ptr->msg2)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }\n  if (0 < iVar1) {\n    if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    ssh->packet_dispatch[iVar1] = ssh->q_saved_handler1;\n  }\n  iVar1 = ptr->msg2;\n  if (0 < iVar1) {\n    if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    ssh->packet_dispatch[iVar1] = ssh->q_saved_handler2;\n  }\n  pqVar2 = ptr->next;\n  if (pqVar2 == (queued_handler *)0x0) {\n    ssh->qtail = (queued_handler *)0x0;\n    ssh->qhead = (queued_handler *)0x0;\n  }\n  else {\n    iVar1 = pqVar2->msg1;\n    ssh->qhead = pqVar2;\n    if (0 < iVar1) {\n      ssh->q_saved_handler1 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }\n    iVar1 = pqVar2->msg2;\n    if (0 < iVar1) {\n      ssh->q_saved_handler2 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }\n  }\n  (*ptr->handler)(ssh,pktin,ptr->ctx);\n  safefree(ptr);\n  return;\n}" { (declaration "queued_handler *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "queued_handler *pqVar2;" type_identifier (pointer_declarator "*pqVar2" * identifier) ;) (expression_statement "ptr = ssh->qhead;" (assignment_expression "ptr = ssh->qhead" identifier = (field_expression "ssh->qhead" identifier -> field_identifier)) ;) (if_statement "if (ptr == (queued_handler *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }" if (parenthesized_expression "(ptr == (queued_handler *)0x0)" ( (binary_expression "ptr == (queued_handler *)0x0" identifier == (cast_expression "(queued_handler *)0x0" ( (type_descriptor "queued_handler *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }" { comment (expression_statement "__assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");" (call_expression "__assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler")" identifier (argument_list "("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler")" ( (string_literal ""qh != NULL"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""ssh_queueing_handler"" " string_content ") ))) ;) })) (expression_statement "iVar1 = ptr->msg1;" (assignment_expression "iVar1 = ptr->msg1" identifier = (field_expression "ptr->msg1" identifier -> field_identifier)) ;) (if_statement "if ((pktin->type != iVar1) && (pktin->type != ptr->msg2)) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }" if (parenthesized_expression "((pktin->type != iVar1) && (pktin->type != ptr->msg2))" ( (binary_expression "(pktin->type != iVar1) && (pktin->type != ptr->msg2)" (parenthesized_expression "(pktin->type != iVar1)" ( (binary_expression "pktin->type != iVar1" (field_expression "pktin->type" identifier -> field_identifier) != identifier) )) && (parenthesized_expression "(pktin->type != ptr->msg2)" ( (binary_expression "pktin->type != ptr->msg2" (field_expression "pktin->type" identifier -> field_identifier) != (field_expression "ptr->msg2" identifier -> field_identifier)) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }" { comment (expression_statement "__assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");" (call_expression "__assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler")" identifier (argument_list "("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler")" ( (string_literal ""pktin->type == qh->msg1 || pktin->type == qh->msg2"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""ssh_queueing_handler"" " string_content ") ))) ;) })) (if_statement "if (0 < iVar1) {\n    if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    ssh->packet_dispatch[iVar1] = ssh->q_saved_handler1;\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    ssh->packet_dispatch[iVar1] = ssh->q_saved_handler1;\n  }" { (if_statement "if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }" if (parenthesized_expression "(ssh->packet_dispatch[iVar1] != ssh_queueing_handler)" ( (binary_expression "ssh->packet_dispatch[iVar1] != ssh_queueing_handler" (subscript_expression "ssh->packet_dispatch[iVar1]" (field_expression "ssh->packet_dispatch" identifier -> field_identifier) [ identifier ]) != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }" { comment (expression_statement "__assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");" (call_expression "__assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler")" identifier (argument_list "("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler")" ( (string_literal ""ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""ssh_queueing_handler"" " string_content ") ))) ;) })) (expression_statement "ssh->packet_dispatch[iVar1] = ssh->q_saved_handler1;" (assignment_expression "ssh->packet_dispatch[iVar1] = ssh->q_saved_handler1" (subscript_expression "ssh->packet_dispatch[iVar1]" (field_expression "ssh->packet_dispatch" identifier -> field_identifier) [ identifier ]) = (field_expression "ssh->q_saved_handler1" identifier -> field_identifier)) ;) })) (expression_statement "iVar1 = ptr->msg2;" (assignment_expression "iVar1 = ptr->msg2" identifier = (field_expression "ptr->msg2" identifier -> field_identifier)) ;) (if_statement "if (0 < iVar1) {\n    if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    ssh->packet_dispatch[iVar1] = ssh->q_saved_handler2;\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    ssh->packet_dispatch[iVar1] = ssh->q_saved_handler2;\n  }" { (if_statement "if (ssh->packet_dispatch[iVar1] != ssh_queueing_handler) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }" if (parenthesized_expression "(ssh->packet_dispatch[iVar1] != ssh_queueing_handler)" ( (binary_expression "ssh->packet_dispatch[iVar1] != ssh_queueing_handler" (subscript_expression "ssh->packet_dispatch[iVar1]" (field_expression "ssh->packet_dispatch" identifier -> field_identifier) [ identifier ]) != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }" { comment (expression_statement "__assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");" (call_expression "__assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler")" identifier (argument_list "("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler")" ( (string_literal ""ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""ssh_queueing_handler"" " string_content ") ))) ;) })) (expression_statement "ssh->packet_dispatch[iVar1] = ssh->q_saved_handler2;" (assignment_expression "ssh->packet_dispatch[iVar1] = ssh->q_saved_handler2" (subscript_expression "ssh->packet_dispatch[iVar1]" (field_expression "ssh->packet_dispatch" identifier -> field_identifier) [ identifier ]) = (field_expression "ssh->q_saved_handler2" identifier -> field_identifier)) ;) })) (expression_statement "pqVar2 = ptr->next;" (assignment_expression "pqVar2 = ptr->next" identifier = (field_expression "ptr->next" identifier -> field_identifier)) ;) (if_statement "if (pqVar2 == (queued_handler *)0x0) {\n    ssh->qtail = (queued_handler *)0x0;\n    ssh->qhead = (queued_handler *)0x0;\n  }\n  else {\n    iVar1 = pqVar2->msg1;\n    ssh->qhead = pqVar2;\n    if (0 < iVar1) {\n      ssh->q_saved_handler1 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }\n    iVar1 = pqVar2->msg2;\n    if (0 < iVar1) {\n      ssh->q_saved_handler2 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }\n  }" if (parenthesized_expression "(pqVar2 == (queued_handler *)0x0)" ( (binary_expression "pqVar2 == (queued_handler *)0x0" identifier == (cast_expression "(queued_handler *)0x0" ( (type_descriptor "queued_handler *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ssh->qtail = (queued_handler *)0x0;\n    ssh->qhead = (queued_handler *)0x0;\n  }" { (expression_statement "ssh->qtail = (queued_handler *)0x0;" (assignment_expression "ssh->qtail = (queued_handler *)0x0" (field_expression "ssh->qtail" identifier -> field_identifier) = (cast_expression "(queued_handler *)0x0" ( (type_descriptor "queued_handler *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ssh->qhead = (queued_handler *)0x0;" (assignment_expression "ssh->qhead = (queued_handler *)0x0" (field_expression "ssh->qhead" identifier -> field_identifier) = (cast_expression "(queued_handler *)0x0" ( (type_descriptor "queued_handler *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar1 = pqVar2->msg1;\n    ssh->qhead = pqVar2;\n    if (0 < iVar1) {\n      ssh->q_saved_handler1 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }\n    iVar1 = pqVar2->msg2;\n    if (0 < iVar1) {\n      ssh->q_saved_handler2 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }\n  }" else (compound_statement "{\n    iVar1 = pqVar2->msg1;\n    ssh->qhead = pqVar2;\n    if (0 < iVar1) {\n      ssh->q_saved_handler1 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }\n    iVar1 = pqVar2->msg2;\n    if (0 < iVar1) {\n      ssh->q_saved_handler2 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }\n  }" { (expression_statement "iVar1 = pqVar2->msg1;" (assignment_expression "iVar1 = pqVar2->msg1" identifier = (field_expression "pqVar2->msg1" identifier -> field_identifier)) ;) (expression_statement "ssh->qhead = pqVar2;" (assignment_expression "ssh->qhead = pqVar2" (field_expression "ssh->qhead" identifier -> field_identifier) = identifier) ;) (if_statement "if (0 < iVar1) {\n      ssh->q_saved_handler1 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n      ssh->q_saved_handler1 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }" { (expression_statement "ssh->q_saved_handler1 = ssh->packet_dispatch[iVar1];" (assignment_expression "ssh->q_saved_handler1 = ssh->packet_dispatch[iVar1]" (field_expression "ssh->q_saved_handler1" identifier -> field_identifier) = (subscript_expression "ssh->packet_dispatch[iVar1]" (field_expression "ssh->packet_dispatch" identifier -> field_identifier) [ identifier ])) ;) (expression_statement "ssh->packet_dispatch[iVar1] = ssh_queueing_handler;" (assignment_expression "ssh->packet_dispatch[iVar1] = ssh_queueing_handler" (subscript_expression "ssh->packet_dispatch[iVar1]" (field_expression "ssh->packet_dispatch" identifier -> field_identifier) [ identifier ]) = identifier) ;) })) (expression_statement "iVar1 = pqVar2->msg2;" (assignment_expression "iVar1 = pqVar2->msg2" identifier = (field_expression "pqVar2->msg2" identifier -> field_identifier)) ;) (if_statement "if (0 < iVar1) {\n      ssh->q_saved_handler2 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n      ssh->q_saved_handler2 = ssh->packet_dispatch[iVar1];\n      ssh->packet_dispatch[iVar1] = ssh_queueing_handler;\n    }" { (expression_statement "ssh->q_saved_handler2 = ssh->packet_dispatch[iVar1];" (assignment_expression "ssh->q_saved_handler2 = ssh->packet_dispatch[iVar1]" (field_expression "ssh->q_saved_handler2" identifier -> field_identifier) = (subscript_expression "ssh->packet_dispatch[iVar1]" (field_expression "ssh->packet_dispatch" identifier -> field_identifier) [ identifier ])) ;) (expression_statement "ssh->packet_dispatch[iVar1] = ssh_queueing_handler;" (assignment_expression "ssh->packet_dispatch[iVar1] = ssh_queueing_handler" (subscript_expression "ssh->packet_dispatch[iVar1]" (field_expression "ssh->packet_dispatch" identifier -> field_identifier) [ identifier ]) = identifier) ;) })) }))) (expression_statement "(*ptr->handler)(ssh,pktin,ptr->ctx);" (call_expression "(*ptr->handler)(ssh,pktin,ptr->ctx)" (parenthesized_expression "(*ptr->handler)" ( (pointer_expression "*ptr->handler" * (field_expression "ptr->handler" identifier -> field_identifier)) )) (argument_list "(ssh,pktin,ptr->ctx)" ( identifier , identifier , (field_expression "ptr->ctx" identifier -> field_identifier) ))) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00033b40(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar1 = *(int **)(param_1 + 0x670);\n  if (piVar1 == (int *)0x0) {\n                    \n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }\n  iVar2 = *piVar1;\n  if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {\n                    \n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }\n  if (0 < iVar2) {\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }\n  if (0 < piVar1[1]) {\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }\n  piVar3 = (int *)piVar1[4];\n  if (piVar3 == (int *)0x0) {\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }\n  else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }\n  (*(code *)piVar1[2])(param_1,param_2,piVar1[3]);\n  FUN_0001dd30(piVar1);\n  return;\n}\n\n" (function_definition "void FUN_00033b40(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar1 = *(int **)(param_1 + 0x670);\n  if (piVar1 == (int *)0x0) {\n                    \n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }\n  iVar2 = *piVar1;\n  if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {\n                    \n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }\n  if (0 < iVar2) {\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }\n  if (0 < piVar1[1]) {\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }\n  piVar3 = (int *)piVar1[4];\n  if (piVar3 == (int *)0x0) {\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }\n  else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }\n  (*(code *)piVar1[2])(param_1,param_2,piVar1[3]);\n  FUN_0001dd30(piVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00033b40(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar1 = *(int **)(param_1 + 0x670);\n  if (piVar1 == (int *)0x0) {\n                    \n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }\n  iVar2 = *piVar1;\n  if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {\n                    \n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }\n  if (0 < iVar2) {\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }\n  if (0 < piVar1[1]) {\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }\n  piVar3 = (int *)piVar1[4];\n  if (piVar3 == (int *)0x0) {\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }\n  else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }\n  (*(code *)piVar1[2])(param_1,param_2,piVar1[3]);\n  FUN_0001dd30(piVar1);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x670);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x670)" identifier = (pointer_expression "*(int **)(param_1 + 0x670)" * (cast_expression "(int **)(param_1 + 0x670)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x670)" ( (binary_expression "param_1 + 0x670" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n                    \n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }" { (expression_statement "__assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");" (call_expression "__assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler")" identifier (argument_list "("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler")" ( (string_literal ""qh != NULL"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""ssh_queueing_handler"" " string_content ") ))) ;) })) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {\n                    \n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }" if (parenthesized_expression "((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1]))" ( (binary_expression "(*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])" (parenthesized_expression "(*(int *)(param_2 + 8) != iVar2)" ( (binary_expression "*(int *)(param_2 + 8) != iVar2" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) != identifier) )) && (parenthesized_expression "(*(int *)(param_2 + 8) != piVar1[1])" ( (binary_expression "*(int *)(param_2 + 8) != piVar1[1]" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) != (subscript_expression "piVar1[1]" identifier [ number_literal ])) ))) )) (compound_statement "{\n                    \n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }" { (expression_statement "__assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");" (call_expression "__assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler")" identifier (argument_list "("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler")" ( (string_literal ""pktin->type == qh->msg1 || pktin->type == qh->msg2"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""ssh_queueing_handler"" " string_content ") ))) ;) })) (if_statement "if (0 < iVar2) {\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }" { (expression_statement "iVar2 = param_1 + iVar2 * 4;" (assignment_expression "iVar2 = param_1 + iVar2 * 4" identifier = (binary_expression "param_1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal))) ;) (if_statement "if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }" if (parenthesized_expression "(*(code **)(iVar2 + 0x270) != FUN_00033b40)" ( (binary_expression "*(code **)(iVar2 + 0x270) != FUN_00033b40" (pointer_expression "*(code **)(iVar2 + 0x270)" * (cast_expression "(code **)(iVar2 + 0x270)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }" { (expression_statement "__assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");" (call_expression "__assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler")" identifier (argument_list "("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler")" ( (string_literal ""ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""ssh_queueing_handler"" " string_content ") ))) ;) })) (expression_statement "*(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);" (assignment_expression "*(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678)" (pointer_expression "*(undefined4 *)(iVar2 + 0x270)" * (cast_expression "(undefined4 *)(iVar2 + 0x270)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x678)" * (cast_expression "(undefined4 *)(param_1 + 0x678)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x678)" ( (binary_expression "param_1 + 0x678" identifier + number_literal) ))))) ;) })) (if_statement "if (0 < piVar1[1]) {\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }" if (parenthesized_expression "(0 < piVar1[1])" ( (binary_expression "0 < piVar1[1]" number_literal < (subscript_expression "piVar1[1]" identifier [ number_literal ])) )) (compound_statement "{\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }" { (expression_statement "iVar2 = param_1 + piVar1[1] * 4;" (assignment_expression "iVar2 = param_1 + piVar1[1] * 4" identifier = (binary_expression "param_1 + piVar1[1] * 4" identifier + (binary_expression "piVar1[1] * 4" (subscript_expression "piVar1[1]" identifier [ number_literal ]) * number_literal))) ;) (if_statement "if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }" if (parenthesized_expression "(*(code **)(iVar2 + 0x270) != FUN_00033b40)" ( (binary_expression "*(code **)(iVar2 + 0x270) != FUN_00033b40" (pointer_expression "*(code **)(iVar2 + 0x270)" * (cast_expression "(code **)(iVar2 + 0x270)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }" { (expression_statement "__assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");" (call_expression "__assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler")" identifier (argument_list "("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler")" ( (string_literal ""ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""ssh_queueing_handler"" " string_content ") ))) ;) })) (expression_statement "*(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);" (assignment_expression "*(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c)" (pointer_expression "*(undefined4 *)(iVar2 + 0x270)" * (cast_expression "(undefined4 *)(iVar2 + 0x270)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x67c)" * (cast_expression "(undefined4 *)(param_1 + 0x67c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x67c)" ( (binary_expression "param_1 + 0x67c" identifier + number_literal) ))))) ;) })) (expression_statement "piVar3 = (int *)piVar1[4];" (assignment_expression "piVar3 = (int *)piVar1[4]" identifier = (cast_expression "(int *)piVar1[4]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[4]" identifier [ number_literal ]))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }\n  else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x674) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x674) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x674)" * (cast_expression "(undefined4 *)(param_1 + 0x674)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x674)" ( (binary_expression "param_1 + 0x674" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x670) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x670) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x670)" * (cast_expression "(undefined4 *)(param_1 + 0x670)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x670)" ( (binary_expression "param_1 + 0x670" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }" else (compound_statement "{\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }" { (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "*(int **)(param_1 + 0x670) = piVar3;" (assignment_expression "*(int **)(param_1 + 0x670) = piVar3" (pointer_expression "*(int **)(param_1 + 0x670)" * (cast_expression "(int **)(param_1 + 0x670)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x670)" ( (binary_expression "param_1 + 0x670" identifier + number_literal) )))) = identifier) ;) (if_statement "if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }" { (expression_statement "iVar2 = param_1 + iVar2 * 4;" (assignment_expression "iVar2 = param_1 + iVar2 * 4" identifier = (binary_expression "param_1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);" (assignment_expression "*(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270)" (pointer_expression "*(undefined4 *)(param_1 + 0x678)" * (cast_expression "(undefined4 *)(param_1 + 0x678)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x678)" ( (binary_expression "param_1 + 0x678" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar2 + 0x270)" * (cast_expression "(undefined4 *)(iVar2 + 0x270)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) ))))) ;) (expression_statement "*(code **)(iVar2 + 0x270) = FUN_00033b40;" (assignment_expression "*(code **)(iVar2 + 0x270) = FUN_00033b40" (pointer_expression "*(code **)(iVar2 + 0x270)" * (cast_expression "(code **)(iVar2 + 0x270)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) )))) = identifier) ;) })) (if_statement "if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }" if (parenthesized_expression "(0 < piVar3[1])" ( (binary_expression "0 < piVar3[1]" number_literal < (subscript_expression "piVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }" { (expression_statement "iVar2 = param_1 + piVar3[1] * 4;" (assignment_expression "iVar2 = param_1 + piVar3[1] * 4" identifier = (binary_expression "param_1 + piVar3[1] * 4" identifier + (binary_expression "piVar3[1] * 4" (subscript_expression "piVar3[1]" identifier [ number_literal ]) * number_literal))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);" (assignment_expression "*(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270)" (pointer_expression "*(undefined4 *)(param_1 + 0x67c)" * (cast_expression "(undefined4 *)(param_1 + 0x67c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x67c)" ( (binary_expression "param_1 + 0x67c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar2 + 0x270)" * (cast_expression "(undefined4 *)(iVar2 + 0x270)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) ))))) ;) (expression_statement "*(code **)(iVar2 + 0x270) = FUN_00033b40;" (assignment_expression "*(code **)(iVar2 + 0x270) = FUN_00033b40" (pointer_expression "*(code **)(iVar2 + 0x270)" * (cast_expression "(code **)(iVar2 + 0x270)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x270)" ( (binary_expression "iVar2 + 0x270" identifier + number_literal) )))) = identifier) ;) })) }))) (expression_statement "(*(code *)piVar1[2])(param_1,param_2,piVar1[3]);" (call_expression "(*(code *)piVar1[2])(param_1,param_2,piVar1[3])" (parenthesized_expression "(*(code *)piVar1[2])" ( (pointer_expression "*(code *)piVar1[2]" * (cast_expression "(code *)piVar1[2]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) )) (argument_list "(param_1,param_2,piVar1[3])" ( identifier , identifier , (subscript_expression "piVar1[3]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0001dd30(piVar1);" (call_expression "FUN_0001dd30(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (subscript_expression IDENT [ LIT ])) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00033b40(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar1 = *(int **)(param_1 + 0x670);\n  if (piVar1 == (int *)0x0) {\n                    \n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }\n  iVar2 = *piVar1;\n  if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {\n                    \n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }\n  if (0 < iVar2) {\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }\n  if (0 < piVar1[1]) {\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }\n  piVar3 = (int *)piVar1[4];\n  if (piVar3 == (int *)0x0) {\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }\n  else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }\n  (*(code *)piVar1[2])(param_1,param_2,piVar1[3]);\n  FUN_0001dd30(piVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00033b40(int param_1,int param_2)" (identifier "FUN_00033b40") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar1 = *(int **)(param_1 + 0x670);\n  if (piVar1 == (int *)0x0) {\n                    \n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }\n  iVar2 = *piVar1;\n  if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {\n                    \n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }\n  if (0 < iVar2) {\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }\n  if (0 < piVar1[1]) {\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }\n  piVar3 = (int *)piVar1[4];\n  if (piVar3 == (int *)0x0) {\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }\n  else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }\n  (*(code *)piVar1[2])(param_1,param_2,piVar1[3]);\n  FUN_0001dd30(piVar1);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 0x670);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x670)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0x670)" (* "*") (cast_expression "(int **)(param_1 + 0x670)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x670)" (( "(") (binary_expression "param_1 + 0x670" (identifier "param_1") (+ "+") (number_literal "0x670")) () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n                    \n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");\n  }" ({ "{") (expression_statement "__assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");" (call_expression "__assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler")" (identifier "__assert_fail") (argument_list "("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler")" (( "(") (string_literal ""qh != NULL"" (" """) (string_content "qh != NULL") (" """)) (, ",") (string_literal ""ssh.c"" (" """) (string_content "ssh.c") (" """)) (, ",") (number_literal "0x142c") (, ",") (string_literal ""ssh_queueing_handler"" (" """) (string_content "ssh_queueing_handler") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {\n                    \n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }" (if "if") (parenthesized_expression "((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1]))" (( "(") (binary_expression "(*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])" (parenthesized_expression "(*(int *)(param_2 + 8) != iVar2)" (( "(") (binary_expression "*(int *)(param_2 + 8) != iVar2" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (identifier "iVar2")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_2 + 8) != piVar1[1])" (( "(") (binary_expression "*(int *)(param_2 + 8) != piVar1[1]" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) () ")"))) () ")")) (compound_statement "{\n                    \n    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");\n  }" ({ "{") (expression_statement "__assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler");" (call_expression "__assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler")" (identifier "__assert_fail") (argument_list "("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,\n                  "ssh_queueing_handler")" (( "(") (string_literal ""pktin->type == qh->msg1 || pktin->type == qh->msg2"" (" """) (string_content "pktin->type == qh->msg1 || pktin->type == qh->msg2") (" """)) (, ",") (string_literal ""ssh.c"" (" """) (string_content "ssh.c") (" """)) (, ",") (number_literal "0x142e") (, ",") (string_literal ""ssh_queueing_handler"" (" """) (string_content "ssh_queueing_handler") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (0 < iVar2) {\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    iVar2 = param_1 + iVar2 * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);\n  }" ({ "{") (expression_statement "iVar2 = param_1 + iVar2 * 4;" (assignment_expression "iVar2 = param_1 + iVar2 * 4" (identifier "iVar2") (= "=") (binary_expression "param_1 + iVar2 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4")))) (; ";")) (if_statement "if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }" (if "if") (parenthesized_expression "(*(code **)(iVar2 + 0x270) != FUN_00033b40)" (( "(") (binary_expression "*(code **)(iVar2 + 0x270) != FUN_00033b40" (pointer_expression "*(code **)(iVar2 + 0x270)" (* "*") (cast_expression "(code **)(iVar2 + 0x270)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x270)" (( "(") (binary_expression "iVar2 + 0x270" (identifier "iVar2") (+ "+") (number_literal "0x270")) () ")")))) (!= "!=") (identifier "FUN_00033b40")) () ")")) (compound_statement "{\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");\n    }" ({ "{") (expression_statement "__assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler");" (call_expression "__assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler")" (identifier "__assert_fail") (argument_list "("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,\n                    "ssh_queueing_handler")" (( "(") (string_literal ""ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler"" (" """) (string_content "ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler") (" """)) (, ",") (string_literal ""ssh.c"" (" """) (string_content "ssh.c") (" """)) (, ",") (number_literal "0x1431") (, ",") (string_literal ""ssh_queueing_handler"" (" """) (string_content "ssh_queueing_handler") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);" (assignment_expression "*(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678)" (pointer_expression "*(undefined4 *)(iVar2 + 0x270)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x270)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x270)" (( "(") (binary_expression "iVar2 + 0x270" (identifier "iVar2") (+ "+") (number_literal "0x270")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x678)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x678)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x678)" (( "(") (binary_expression "param_1 + 0x678" (identifier "param_1") (+ "+") (number_literal "0x678")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (0 < piVar1[1]) {\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }" (if "if") (parenthesized_expression "(0 < piVar1[1])" (( "(") (binary_expression "0 < piVar1[1]" (number_literal "0") (< "<") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n    iVar2 = param_1 + piVar1[1] * 4;\n    if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }\n    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);\n  }" ({ "{") (expression_statement "iVar2 = param_1 + piVar1[1] * 4;" (assignment_expression "iVar2 = param_1 + piVar1[1] * 4" (identifier "iVar2") (= "=") (binary_expression "param_1 + piVar1[1] * 4" (identifier "param_1") (+ "+") (binary_expression "piVar1[1] * 4" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (* "*") (number_literal "4")))) (; ";")) (if_statement "if (*(code **)(iVar2 + 0x270) != FUN_00033b40) {\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }" (if "if") (parenthesized_expression "(*(code **)(iVar2 + 0x270) != FUN_00033b40)" (( "(") (binary_expression "*(code **)(iVar2 + 0x270) != FUN_00033b40" (pointer_expression "*(code **)(iVar2 + 0x270)" (* "*") (cast_expression "(code **)(iVar2 + 0x270)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x270)" (( "(") (binary_expression "iVar2 + 0x270" (identifier "iVar2") (+ "+") (number_literal "0x270")) () ")")))) (!= "!=") (identifier "FUN_00033b40")) () ")")) (compound_statement "{\n                    \n      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");\n    }" ({ "{") (expression_statement "__assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler");" (call_expression "__assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler")" (identifier "__assert_fail") (argument_list "("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,\n                    "ssh_queueing_handler")" (( "(") (string_literal ""ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler"" (" """) (string_content "ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler") (" """)) (, ",") (string_literal ""ssh.c"" (" """) (string_content "ssh.c") (" """)) (, ",") (number_literal "0x1435") (, ",") (string_literal ""ssh_queueing_handler"" (" """) (string_content "ssh_queueing_handler") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);" (assignment_expression "*(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c)" (pointer_expression "*(undefined4 *)(iVar2 + 0x270)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x270)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x270)" (( "(") (binary_expression "iVar2 + 0x270" (identifier "iVar2") (+ "+") (number_literal "0x270")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x67c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x67c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x67c)" (( "(") (binary_expression "param_1 + 0x67c" (identifier "param_1") (+ "+") (number_literal "0x67c")) () ")"))))) (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)piVar1[4];" (assignment_expression "piVar3 = (int *)piVar1[4]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar1[4]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) {\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }\n  else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x674) = 0;\n    *(undefined4 *)(param_1 + 0x670) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x674) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x674) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x674)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x674)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x674)" (( "(") (binary_expression "param_1 + 0x674" (identifier "param_1") (+ "+") (number_literal "0x674")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x670) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x670) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x670)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x670)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x670)" (( "(") (binary_expression "param_1 + 0x670" (identifier "param_1") (+ "+") (number_literal "0x670")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = *piVar3;\n    *(int **)(param_1 + 0x670) = piVar3;\n    if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n    if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }\n  }" ({ "{") (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" (identifier "iVar2") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "*(int **)(param_1 + 0x670) = piVar3;" (assignment_expression "*(int **)(param_1 + 0x670) = piVar3" (pointer_expression "*(int **)(param_1 + 0x670)" (* "*") (cast_expression "(int **)(param_1 + 0x670)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x670)" (( "(") (binary_expression "param_1 + 0x670" (identifier "param_1") (+ "+") (number_literal "0x670")) () ")")))) (= "=") (identifier "piVar3")) (; ";")) (if_statement "if (0 < iVar2) {\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n      iVar2 = param_1 + iVar2 * 4;\n      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }" ({ "{") (expression_statement "iVar2 = param_1 + iVar2 * 4;" (assignment_expression "iVar2 = param_1 + iVar2 * 4" (identifier "iVar2") (= "=") (binary_expression "param_1 + iVar2 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);" (assignment_expression "*(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270)" (pointer_expression "*(undefined4 *)(param_1 + 0x678)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x678)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x678)" (( "(") (binary_expression "param_1 + 0x678" (identifier "param_1") (+ "+") (number_literal "0x678")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 0x270)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x270)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x270)" (( "(") (binary_expression "iVar2 + 0x270" (identifier "iVar2") (+ "+") (number_literal "0x270")) () ")"))))) (; ";")) (expression_statement "*(code **)(iVar2 + 0x270) = FUN_00033b40;" (assignment_expression "*(code **)(iVar2 + 0x270) = FUN_00033b40" (pointer_expression "*(code **)(iVar2 + 0x270)" (* "*") (cast_expression "(code **)(iVar2 + 0x270)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x270)" (( "(") (binary_expression "iVar2 + 0x270" (identifier "iVar2") (+ "+") (number_literal "0x270")) () ")")))) (= "=") (identifier "FUN_00033b40")) (; ";")) (} "}"))) (if_statement "if (0 < piVar3[1]) {\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }" (if "if") (parenthesized_expression "(0 < piVar3[1])" (( "(") (binary_expression "0 < piVar3[1]" (number_literal "0") (< "<") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n      iVar2 = param_1 + piVar3[1] * 4;\n      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);\n      *(code **)(iVar2 + 0x270) = FUN_00033b40;\n    }" ({ "{") (expression_statement "iVar2 = param_1 + piVar3[1] * 4;" (assignment_expression "iVar2 = param_1 + piVar3[1] * 4" (identifier "iVar2") (= "=") (binary_expression "param_1 + piVar3[1] * 4" (identifier "param_1") (+ "+") (binary_expression "piVar3[1] * 4" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (* "*") (number_literal "4")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);" (assignment_expression "*(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270)" (pointer_expression "*(undefined4 *)(param_1 + 0x67c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x67c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x67c)" (( "(") (binary_expression "param_1 + 0x67c" (identifier "param_1") (+ "+") (number_literal "0x67c")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 0x270)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x270)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x270)" (( "(") (binary_expression "iVar2 + 0x270" (identifier "iVar2") (+ "+") (number_literal "0x270")) () ")"))))) (; ";")) (expression_statement "*(code **)(iVar2 + 0x270) = FUN_00033b40;" (assignment_expression "*(code **)(iVar2 + 0x270) = FUN_00033b40" (pointer_expression "*(code **)(iVar2 + 0x270)" (* "*") (cast_expression "(code **)(iVar2 + 0x270)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x270)" (( "(") (binary_expression "iVar2 + 0x270" (identifier "iVar2") (+ "+") (number_literal "0x270")) () ")")))) (= "=") (identifier "FUN_00033b40")) (; ";")) (} "}"))) (} "}")))) (expression_statement "(*(code *)piVar1[2])(param_1,param_2,piVar1[3]);" (call_expression "(*(code *)piVar1[2])(param_1,param_2,piVar1[3])" (parenthesized_expression "(*(code *)piVar1[2])" (( "(") (pointer_expression "*(code *)piVar1[2]" (* "*") (cast_expression "(code *)piVar1[2]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) () ")")) (argument_list "(param_1,param_2,piVar1[3])" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_0001dd30(piVar1);" (call_expression "FUN_0001dd30(piVar1)" (identifier "FUN_0001dd30") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 ssh,type_2 *pktin)

{
  type_3 *var_1;
  int var_3;
  type_3 *var_4;
  
  var_1 = ssh->qhead;
  if (var_1 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");
  }
  var_3 = var_1->msg1;
  if ((pktin->type != var_3) && (pktin->type != var_1->msg2)) {
                    /* WARNING: Subroutine does not return */
    var_2("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,
                  "ssh_queueing_handler");
  }
  if (0 < var_3) {
    if (ssh->packet_dispatch[var_3] != function_1) {
                    /* WARNING: Subroutine does not return */
      var_2("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,
                    "ssh_queueing_handler");
    }
    ssh->packet_dispatch[var_3] = ssh->q_saved_handler1;
  }
  var_3 = var_1->msg2;
  if (0 < var_3) {
    if (ssh->packet_dispatch[var_3] != function_1) {
                    /* WARNING: Subroutine does not return */
      var_2("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,
                    "ssh_queueing_handler");
    }
    ssh->packet_dispatch[var_3] = ssh->q_saved_handler2;
  }
  var_4 = var_1->next;
  if (var_4 == (type_3 *)0x0) {
    ssh->qtail = (type_3 *)0x0;
    ssh->qhead = (type_3 *)0x0;
  }
  else {
    var_3 = var_4->msg1;
    ssh->qhead = var_4;
    if (0 < var_3) {
      ssh->q_saved_handler1 = ssh->packet_dispatch[var_3];
      ssh->packet_dispatch[var_3] = function_1;
    }
    var_3 = var_4->msg2;
    if (0 < var_3) {
      ssh->q_saved_handler2 = ssh->packet_dispatch[var_3];
      ssh->packet_dispatch[var_3] = function_1;
    }
  }
  (*var_1->handler)(ssh,pktin,var_1->ctx);
  var_5(var_1);
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(int param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  int *piVar3;
  
  piVar1 = *(int **)(param_1 + 0x670);
  if (piVar1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("qh != NULL","ssh.c",0x142c,"ssh_queueing_handler");
  }
  iVar2 = *piVar1;
  if ((*(int *)(param_2 + 8) != iVar2) && (*(int *)(param_2 + 8) != piVar1[1])) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("pktin->type == qh->msg1 || pktin->type == qh->msg2","ssh.c",0x142e,
                  "ssh_queueing_handler");
  }
  if (0 < iVar2) {
    iVar2 = param_1 + iVar2 * 4;
    if (*(code **)(iVar2 + 0x270) != MASKED) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("ssh->packet_dispatch[qh->msg1] == ssh_queueing_handler","ssh.c",0x1431,
                    "ssh_queueing_handler");
    }
    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x678);
  }
  if (0 < piVar1[1]) {
    iVar2 = param_1 + piVar1[1] * 4;
    if (*(code **)(iVar2 + 0x270) != MASKED) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("ssh->packet_dispatch[qh->msg2] == ssh_queueing_handler","ssh.c",0x1435,
                    "ssh_queueing_handler");
    }
    *(undefined4 *)(iVar2 + 0x270) = *(undefined4 *)(param_1 + 0x67c);
  }
  piVar3 = (int *)piVar1[4];
  if (piVar3 == (int *)0x0) {
    *(undefined4 *)(param_1 + 0x674) = 0;
    *(undefined4 *)(param_1 + 0x670) = 0;
  }
  else {
    iVar2 = *piVar3;
    *(int **)(param_1 + 0x670) = piVar3;
    if (0 < iVar2) {
      iVar2 = param_1 + iVar2 * 4;
      *(undefined4 *)(param_1 + 0x678) = *(undefined4 *)(iVar2 + 0x270);
      *(code **)(iVar2 + 0x270) = MASKED;
    }
    if (0 < piVar3[1]) {
      iVar2 = param_1 + piVar3[1] * 4;
      *(undefined4 *)(param_1 + 0x67c) = *(undefined4 *)(iVar2 + 0x270);
      *(code **)(iVar2 + 0x270) = MASKED;
    }
  }
  (*(code *)piVar1[2])(param_1,param_2,piVar1[3]);
  FUN_0001dd30(piVar1);
  return;
}

