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

void __regparm3 ssh_channel_init(ssh_channel *c)

{
  Ssh_conflict psVar1;
  uint uVar2;
  void *pvVar3;
  tree234 *t;
  int iVar4;
  uint uVar5;
  int iVar6;
  uint index;
  int in_GS_OFFSET;
  uint local_34;
  uint i;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x42f6b;
  psVar1 = c->ssh;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = count234(psVar1->channels);
  t = psVar1->channels;
  local_34 = 0xffffffff;
  uVar5 = uVar2 + 1;
  while (1 < uVar5) {
    while( true ) {
      index = local_34 + uVar2 >> 1;
      pvVar3 = index234(t,index);
      t = psVar1->channels;
      if (*(int *)((int)pvVar3 + 8) == index + 0x100) break;
      uVar2 = index;
      if (index - local_34 < 2) goto LAB_00042ffd;
    }
    local_34 = index;
    uVar5 = uVar2 - index;
  }
LAB_00042ffd:
  i = local_34 + 0x101;
  pvVar3 = find234(t,&i,ssh_channelfind);
  if (pvVar3 != (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,
                  "alloc_channel_id");
  }
  iVar4 = psVar1->version;
  c->localid = local_34 + 0x101;
  c->closes = 0;
  c->pending_eof = 0;
  c->throttling_conn = 0;
  if (iVar4 == 2) {
    iVar4 = conf_get_int(psVar1->conf,0xa9);
    iVar6 = 0x4000;
    if ((iVar4 != 0) && (psVar1->bare_connection == 0)) {
      iVar6 = (-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff) + 0x4000;
    }
    (c->v).v2.remlocwin = iVar6;
    (c->v).v2.locmaxwin = iVar6;
    (c->v).v2.locwindow = iVar6;
    (c->v).v2.chanreq_head = (outstanding_channel_request *)0x0;
    (c->v).v2.throttle_state = ADDRTYPE_IPV6;
    bufchain_init(&(c->v).v2.outbuffer);
  }
  add234(psVar1->channels,c);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void __regparm3 FUN_00042f60(int *param_1)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  undefined4 uVar4;
  uint uVar5;
  int iVar6;
  uint uVar7;
  int in_GS_OFFSET;
  uint local_34;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x42f6b;
  iVar1 = *param_1;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));
  uVar4 = *(undefined4 *)(iVar1 + 0x124);
  local_34 = 0xffffffff;
  uVar5 = uVar2 + 1;
  while (1 < uVar5) {
    while( true ) {
      uVar7 = local_34 + uVar2 >> 1;
      iVar3 = FUN_0009eb10(uVar4,uVar7);
      uVar4 = *(undefined4 *)(iVar1 + 0x124);
      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;
      uVar2 = uVar7;
      if (uVar7 - local_34 < 2) goto LAB_00042ffd;
    }
    local_34 = uVar7;
    uVar5 = uVar2 - uVar7;
  }
LAB_00042ffd:
  local_24 = local_34 + 0x101;
  iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);
  if (iVar3 != 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,
                  "alloc_channel_id");
  }
  iVar3 = *(int *)(iVar1 + 0x198);
  param_1[2] = local_34 + 0x101;
  param_1[5] = 0;
  param_1[6] = 0;
  param_1[7] = 0;
  if (iVar3 == 2) {
    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);
    iVar6 = 0x4000;
    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {
      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;
    }
    param_1[0xf] = iVar6;
    param_1[0xe] = iVar6;
    param_1[0xd] = iVar6;
    param_1[0x10] = 0;
    param_1[0x12] = 2;
    FUN_00032630(param_1 + 8);
  }
  FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000c60b0();
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x0001c520
ADD EBX,0xf77e5
SUB ESP,0x38
MOV EBP,dword ptr [EDI]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x28],EAX
XOR EAX,EAX
PUSH dword ptr [EBP + 0x124]
CALL 0x0009ea80
ADD ESP,0x10
MOV EDX,EAX
MOV EAX,dword ptr [EBP + 0x124]
LEA ECX,[EDX + 0x1]
MOV dword ptr [ESP + 0x8],0xffffffff
CMP ECX,0x1
JBE 0x00042ffd
LEA ESI,[ESI]
NOP
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x8
LEA ESI,[ECX + EDX*0x1]
SHR ESI,0x1
PUSH ESI
PUSH EAX
CALL 0x0009eb10
ADD ESP,0x10
LEA ECX,[ESI + 0x100]
MOV EDX,dword ptr [ESP + 0xc]
CMP dword ptr [EAX + 0x8],ECX
MOV EAX,dword ptr [EBP + 0x124]
JZ 0x00042ff0
MOV EDX,ESI
SUB EDX,dword ptr [ESP + 0x8]
CMP EDX,0x1
JBE 0x00042ffd
MOV EDX,ESI
JMP 0x00042fb0
MOV ECX,EDX
MOV dword ptr [ESP + 0x8],ESI
SUB ECX,ESI
CMP ECX,0x1
JA 0x00042fb0
MOV ESI,dword ptr [ESP + 0x8]
LEA EDX,[EBX + 0xfff04b90]
SUB ESP,0x4
ADD ESI,0x101
MOV dword ptr [ESP + 0x1c],ESI
PUSH EDX
LEA EDX,[ESP + 0x20]
PUSH EDX
PUSH EAX
CALL 0x0009ee90
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000430e6
CMP dword ptr [EBP + 0x198],0x2
MOV dword ptr [EDI + 0x8],ESI
MOV dword ptr [EDI + 0x14],0x0
MOV dword ptr [EDI + 0x18],0x0
MOV dword ptr [EDI + 0x1c],0x0
JZ 0x00043078
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [EBP + 0x124]
CALL 0x0009eab0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x000430e1
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0xa9
PUSH dword ptr [EBP + 0x248]
CALL 0x00021220
ADD ESP,0x10
MOV EDX,0x4000
TEST EAX,EAX
JZ 0x000430b6
MOV EAX,dword ptr [EBP + 0xec]
TEST EAX,EAX
JNZ 0x000430b6
CMP dword ptr [EBP + 0xf4],0x1
SBB EDX,EDX
AND EDX,0x7fffbfff
ADD EDX,0x4000
SUB ESP,0xc
LEA EAX,[EDI + 0x20]
MOV dword ptr [EDI + 0x3c],EDX
PUSH EAX
MOV dword ptr [EDI + 0x38],EDX
MOV dword ptr [EDI + 0x34],EDX
MOV dword ptr [EDI + 0x40],0x0
MOV dword ptr [EDI + 0x48],0x2
CALL 0x00032630
ADD ESP,0x10
JMP 0x0004304c
CALL 0x000c60b0
LEA EAX,[EBX + 0xfffaade8]
PUSH EAX
LEA EAX,[EBX + 0xfffa6c1f]
PUSH 0x4a9
PUSH EAX
LEA EAX,[EBX + 0xfffa8a0c]
PUSH EAX
CALL 0x0001c000
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00042f60(int *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x42f6b;\n  iVar1 = *param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));\n  uVar4 = *(undefined4 *)(iVar1 + 0x124);\n  local_34 = 0xffffffff;\n  uVar5 = uVar2 + 1;\n  while (1 < uVar5) {\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }\nLAB_00042ffd:\n  local_24 = local_34 + 0x101;\n  iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);\n  if (iVar3 != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }\n  iVar3 = *(int *)(iVar1 + 0x198);\n  param_1[2] = local_34 + 0x101;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  if (iVar3 == 2) {\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }\n  FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}\n\n" comment (function_definition "void __regparm3 FUN_00042f60(int *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x42f6b;\n  iVar1 = *param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));\n  uVar4 = *(undefined4 *)(iVar1 + 0x124);\n  local_34 = 0xffffffff;\n  uVar5 = uVar2 + 1;\n  while (1 < uVar5) {\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }\nLAB_00042ffd:\n  local_24 = local_34 + 0x101;\n  iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);\n  if (iVar3 != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }\n  iVar3 = *(int *)(iVar1 + 0x198);\n  param_1[2] = local_34 + 0x101;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  if (iVar3 == 2) {\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }\n  FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00042f60(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x42f6b;\n  iVar1 = *param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));\n  uVar4 = *(undefined4 *)(iVar1 + 0x124);\n  local_34 = 0xffffffff;\n  uVar5 = uVar2 + 1;\n  while (1 < uVar5) {\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }\nLAB_00042ffd:\n  local_24 = local_34 + 0x101;\n  iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);\n  if (iVar3 != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }\n  iVar3 = *(int *)(iVar1 + 0x198);\n  param_1[2] = local_34 + 0x101;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  if (iVar3 == 2) {\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }\n  FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000c60b0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x42f6b;" (assignment_expression "uStack_14 = 0x42f6b" identifier = number_literal) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));" (assignment_expression "uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124))" identifier = (call_expression "FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124))" identifier (argument_list "(*(undefined4 *)(iVar1 + 0x124))" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x124)" * (cast_expression "(undefined4 *)(iVar1 + 0x124)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x124)" ( (binary_expression "iVar1 + 0x124" identifier + number_literal) )))) )))) ;) (expression_statement "uVar4 = *(undefined4 *)(iVar1 + 0x124);" (assignment_expression "uVar4 = *(undefined4 *)(iVar1 + 0x124)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0x124)" * (cast_expression "(undefined4 *)(iVar1 + 0x124)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x124)" ( (binary_expression "iVar1 + 0x124" identifier + number_literal) ))))) ;) (expression_statement "local_34 = 0xffffffff;" (assignment_expression "local_34 = 0xffffffff" identifier = number_literal) ;) (expression_statement "uVar5 = uVar2 + 1;" (assignment_expression "uVar5 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (while_statement "while (1 < uVar5) {\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }" while (parenthesized_expression "(1 < uVar5)" ( (binary_expression "1 < uVar5" number_literal < identifier) )) (compound_statement "{\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }" { (while_statement "while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }" { (expression_statement "uVar7 = local_34 + uVar2 >> 1;" (assignment_expression "uVar7 = local_34 + uVar2 >> 1" identifier = (binary_expression "local_34 + uVar2 >> 1" (binary_expression "local_34 + uVar2" identifier + identifier) >> number_literal)) ;) (expression_statement "iVar3 = FUN_0009eb10(uVar4,uVar7);" (assignment_expression "iVar3 = FUN_0009eb10(uVar4,uVar7)" identifier = (call_expression "FUN_0009eb10(uVar4,uVar7)" identifier (argument_list "(uVar4,uVar7)" ( identifier , identifier )))) ;) (expression_statement "uVar4 = *(undefined4 *)(iVar1 + 0x124);" (assignment_expression "uVar4 = *(undefined4 *)(iVar1 + 0x124)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0x124)" * (cast_expression "(undefined4 *)(iVar1 + 0x124)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x124)" ( (binary_expression "iVar1 + 0x124" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;" if (parenthesized_expression "(*(int *)(iVar3 + 8) == uVar7 + 0x100)" ( (binary_expression "*(int *)(iVar3 + 8) == uVar7 + 0x100" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) == (binary_expression "uVar7 + 0x100" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = uVar7;" (assignment_expression "uVar2 = uVar7" identifier = identifier) ;) (if_statement "if (uVar7 - local_34 < 2) goto LAB_00042ffd;" if (parenthesized_expression "(uVar7 - local_34 < 2)" ( (binary_expression "uVar7 - local_34 < 2" (binary_expression "uVar7 - local_34" identifier - identifier) < number_literal) )) (goto_statement "goto LAB_00042ffd;" goto statement_identifier ;)) })) (expression_statement "local_34 = uVar7;" (assignment_expression "local_34 = uVar7" identifier = identifier) ;) (expression_statement "uVar5 = uVar2 - uVar7;" (assignment_expression "uVar5 = uVar2 - uVar7" identifier = (binary_expression "uVar2 - uVar7" identifier - identifier)) ;) })) (labeled_statement "LAB_00042ffd:\n  local_24 = local_34 + 0x101;" statement_identifier : (expression_statement "local_24 = local_34 + 0x101;" (assignment_expression "local_24 = local_34 + 0x101" identifier = (binary_expression "local_34 + 0x101" identifier + number_literal)) ;)) (expression_statement "iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);" (assignment_expression "iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0)" identifier = (call_expression "FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0)" identifier (argument_list "(uVar4,&local_24,FUN_0003f2e0)" ( identifier , (pointer_expression "&local_24" & identifier) , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }" { comment (expression_statement "__assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");" (call_expression "__assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id")" identifier (argument_list "("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id")" ( (string_literal ""NULL == find234(ssh->channels, &i, ssh_channelfind)"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""alloc_channel_id"" " string_content ") ))) ;) })) (expression_statement "iVar3 = *(int *)(iVar1 + 0x198);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x198)" identifier = (pointer_expression "*(int *)(iVar1 + 0x198)" * (cast_expression "(int *)(iVar1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x198)" ( (binary_expression "iVar1 + 0x198" identifier + number_literal) ))))) ;) (expression_statement "param_1[2] = local_34 + 0x101;" (assignment_expression "param_1[2] = local_34 + 0x101" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "local_34 + 0x101" identifier + number_literal)) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[7] = 0;" (assignment_expression "param_1[7] = 0" (subscript_expression "param_1[7]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar3 == 2) {\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }" if (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) )) (compound_statement "{\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }" { (expression_statement "iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);" (assignment_expression "iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9)" identifier = (call_expression "FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9)" identifier (argument_list "(*(undefined4 *)(iVar1 + 0x248),0xa9)" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x248)" * (cast_expression "(undefined4 *)(iVar1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x248)" ( (binary_expression "iVar1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "iVar6 = 0x4000;" (assignment_expression "iVar6 = 0x4000" identifier = number_literal) ;) (if_statement "if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }" if (parenthesized_expression "((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0))" ( (binary_expression "(iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 0xec) == 0)" ( (binary_expression "*(int *)(iVar1 + 0xec) == 0" (pointer_expression "*(int *)(iVar1 + 0xec)" * (cast_expression "(int *)(iVar1 + 0xec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xec)" ( (binary_expression "iVar1 + 0xec" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }" { (expression_statement "iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;" (assignment_expression "iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000" identifier = (binary_expression "(-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000" (parenthesized_expression "(-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff)" ( (binary_expression "-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff" (unary_expression "-(uint)(*(int *)(iVar1 + 0xf4) == 0)" - (call_expression "(uint)(*(int *)(iVar1 + 0xf4) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(iVar1 + 0xf4) == 0)" ( (binary_expression "*(int *)(iVar1 + 0xf4) == 0" (pointer_expression "*(int *)(iVar1 + 0xf4)" * (cast_expression "(int *)(iVar1 + 0xf4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xf4)" ( (binary_expression "iVar1 + 0xf4" identifier + number_literal) )))) == number_literal) )))) & number_literal) )) + number_literal)) ;) })) (expression_statement "param_1[0xf] = iVar6;" (assignment_expression "param_1[0xf] = iVar6" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0xe] = iVar6;" (assignment_expression "param_1[0xe] = iVar6" (subscript_expression "param_1[0xe]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0xd] = iVar6;" (assignment_expression "param_1[0xd] = iVar6" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0x10] = 0;" (assignment_expression "param_1[0x10] = 0" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x12] = 2;" (assignment_expression "param_1[0x12] = 2" (subscript_expression "param_1[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00032630(param_1 + 8);" (call_expression "FUN_00032630(param_1 + 8)" identifier (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) })) (expression_statement "FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);" (call_expression "FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1)" identifier (argument_list "(*(undefined4 *)(iVar1 + 0x124),param_1)" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x124)" * (cast_expression "(undefined4 *)(iVar1 + 0x124)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x124)" ( (binary_expression "iVar1 + 0x124" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid __regparm3 ssh_channel_init(ssh_channel *c)\n\n{\n  Ssh_conflict psVar1;\n  uint uVar2;\n  void *pvVar3;\n  tree234 *t;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  uint index;\n  int in_GS_OFFSET;\n  uint local_34;\n  uint i;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x42f6b;\n  psVar1 = c->ssh;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = count234(psVar1->channels);\n  t = psVar1->channels;\n  local_34 = 0xffffffff;\n  uVar5 = uVar2 + 1;\n  while (1 < uVar5) {\n    while( true ) {\n      index = local_34 + uVar2 >> 1;\n      pvVar3 = index234(t,index);\n      t = psVar1->channels;\n      if (*(int *)((int)pvVar3 + 8) == index + 0x100) break;\n      uVar2 = index;\n      if (index - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = index;\n    uVar5 = uVar2 - index;\n  }\nLAB_00042ffd:\n  i = local_34 + 0x101;\n  pvVar3 = find234(t,&i,ssh_channelfind);\n  if (pvVar3 != (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }\n  iVar4 = psVar1->version;\n  c->localid = local_34 + 0x101;\n  c->closes = 0;\n  c->pending_eof = 0;\n  c->throttling_conn = 0;\n  if (iVar4 == 2) {\n    iVar4 = conf_get_int(psVar1->conf,0xa9);\n    iVar6 = 0x4000;\n    if ((iVar4 != 0) && (psVar1->bare_connection == 0)) {\n      iVar6 = (-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff) + 0x4000;\n    }\n    (c->v).v2.remlocwin = iVar6;\n    (c->v).v2.locmaxwin = iVar6;\n    (c->v).v2.locwindow = iVar6;\n    (c->v).v2.chanreq_head = (outstanding_channel_request *)0x0;\n    (c->v).v2.throttle_state = ADDRTYPE_IPV6;\n    bufchain_init(&(c->v).v2.outbuffer);\n  }\n  add234(psVar1->channels,c);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void __regparm3 ssh_channel_init(ssh_channel *c)\n\n{\n  Ssh_conflict psVar1;\n  uint uVar2;\n  void *pvVar3;\n  tree234 *t;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  uint index;\n  int in_GS_OFFSET;\n  uint local_34;\n  uint i;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x42f6b;\n  psVar1 = c->ssh;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = count234(psVar1->channels);\n  t = psVar1->channels;\n  local_34 = 0xffffffff;\n  uVar5 = uVar2 + 1;\n  while (1 < uVar5) {\n    while( true ) {\n      index = local_34 + uVar2 >> 1;\n      pvVar3 = index234(t,index);\n      t = psVar1->channels;\n      if (*(int *)((int)pvVar3 + 8) == index + 0x100) break;\n      uVar2 = index;\n      if (index - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = index;\n    uVar5 = uVar2 - index;\n  }\nLAB_00042ffd:\n  i = local_34 + 0x101;\n  pvVar3 = find234(t,&i,ssh_channelfind);\n  if (pvVar3 != (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }\n  iVar4 = psVar1->version;\n  c->localid = local_34 + 0x101;\n  c->closes = 0;\n  c->pending_eof = 0;\n  c->throttling_conn = 0;\n  if (iVar4 == 2) {\n    iVar4 = conf_get_int(psVar1->conf,0xa9);\n    iVar6 = 0x4000;\n    if ((iVar4 != 0) && (psVar1->bare_connection == 0)) {\n      iVar6 = (-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff) + 0x4000;\n    }\n    (c->v).v2.remlocwin = iVar6;\n    (c->v).v2.locmaxwin = iVar6;\n    (c->v).v2.locwindow = iVar6;\n    (c->v).v2.chanreq_head = (outstanding_channel_request *)0x0;\n    (c->v).v2.throttle_state = ADDRTYPE_IPV6;\n    bufchain_init(&(c->v).v2.outbuffer);\n  }\n  add234(psVar1->channels,c);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "ssh_channel_init(ssh_channel *c)" identifier (parameter_list "(ssh_channel *c)" ( (parameter_declaration "ssh_channel *c" type_identifier (pointer_declarator "*c" * identifier)) ))) (compound_statement "{\n  Ssh_conflict psVar1;\n  uint uVar2;\n  void *pvVar3;\n  tree234 *t;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  uint index;\n  int in_GS_OFFSET;\n  uint local_34;\n  uint i;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x42f6b;\n  psVar1 = c->ssh;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = count234(psVar1->channels);\n  t = psVar1->channels;\n  local_34 = 0xffffffff;\n  uVar5 = uVar2 + 1;\n  while (1 < uVar5) {\n    while( true ) {\n      index = local_34 + uVar2 >> 1;\n      pvVar3 = index234(t,index);\n      t = psVar1->channels;\n      if (*(int *)((int)pvVar3 + 8) == index + 0x100) break;\n      uVar2 = index;\n      if (index - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = index;\n    uVar5 = uVar2 - index;\n  }\nLAB_00042ffd:\n  i = local_34 + 0x101;\n  pvVar3 = find234(t,&i,ssh_channelfind);\n  if (pvVar3 != (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }\n  iVar4 = psVar1->version;\n  c->localid = local_34 + 0x101;\n  c->closes = 0;\n  c->pending_eof = 0;\n  c->throttling_conn = 0;\n  if (iVar4 == 2) {\n    iVar4 = conf_get_int(psVar1->conf,0xa9);\n    iVar6 = 0x4000;\n    if ((iVar4 != 0) && (psVar1->bare_connection == 0)) {\n      iVar6 = (-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff) + 0x4000;\n    }\n    (c->v).v2.remlocwin = iVar6;\n    (c->v).v2.locmaxwin = iVar6;\n    (c->v).v2.locwindow = iVar6;\n    (c->v).v2.chanreq_head = (outstanding_channel_request *)0x0;\n    (c->v).v2.throttle_state = ADDRTYPE_IPV6;\n    bufchain_init(&(c->v).v2.outbuffer);\n  }\n  add234(psVar1->channels,c);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "Ssh_conflict psVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "tree234 *t;" type_identifier (pointer_declarator "*t" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint index;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "uint i;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x42f6b;" (assignment_expression "uStack_14 = 0x42f6b" identifier = number_literal) ;) (expression_statement "psVar1 = c->ssh;" (assignment_expression "psVar1 = c->ssh" identifier = (field_expression "c->ssh" identifier -> field_identifier)) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = count234(psVar1->channels);" (assignment_expression "uVar2 = count234(psVar1->channels)" identifier = (call_expression "count234(psVar1->channels)" identifier (argument_list "(psVar1->channels)" ( (field_expression "psVar1->channels" identifier -> field_identifier) )))) ;) (expression_statement "t = psVar1->channels;" (assignment_expression "t = psVar1->channels" identifier = (field_expression "psVar1->channels" identifier -> field_identifier)) ;) (expression_statement "local_34 = 0xffffffff;" (assignment_expression "local_34 = 0xffffffff" identifier = number_literal) ;) (expression_statement "uVar5 = uVar2 + 1;" (assignment_expression "uVar5 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (while_statement "while (1 < uVar5) {\n    while( true ) {\n      index = local_34 + uVar2 >> 1;\n      pvVar3 = index234(t,index);\n      t = psVar1->channels;\n      if (*(int *)((int)pvVar3 + 8) == index + 0x100) break;\n      uVar2 = index;\n      if (index - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = index;\n    uVar5 = uVar2 - index;\n  }" while (parenthesized_expression "(1 < uVar5)" ( (binary_expression "1 < uVar5" number_literal < identifier) )) (compound_statement "{\n    while( true ) {\n      index = local_34 + uVar2 >> 1;\n      pvVar3 = index234(t,index);\n      t = psVar1->channels;\n      if (*(int *)((int)pvVar3 + 8) == index + 0x100) break;\n      uVar2 = index;\n      if (index - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = index;\n    uVar5 = uVar2 - index;\n  }" { (while_statement "while( true ) {\n      index = local_34 + uVar2 >> 1;\n      pvVar3 = index234(t,index);\n      t = psVar1->channels;\n      if (*(int *)((int)pvVar3 + 8) == index + 0x100) break;\n      uVar2 = index;\n      if (index - local_34 < 2) goto LAB_00042ffd;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      index = local_34 + uVar2 >> 1;\n      pvVar3 = index234(t,index);\n      t = psVar1->channels;\n      if (*(int *)((int)pvVar3 + 8) == index + 0x100) break;\n      uVar2 = index;\n      if (index - local_34 < 2) goto LAB_00042ffd;\n    }" { (expression_statement "index = local_34 + uVar2 >> 1;" (assignment_expression "index = local_34 + uVar2 >> 1" identifier = (binary_expression "local_34 + uVar2 >> 1" (binary_expression "local_34 + uVar2" identifier + identifier) >> number_literal)) ;) (expression_statement "pvVar3 = index234(t,index);" (assignment_expression "pvVar3 = index234(t,index)" identifier = (call_expression "index234(t,index)" identifier (argument_list "(t,index)" ( identifier , identifier )))) ;) (expression_statement "t = psVar1->channels;" (assignment_expression "t = psVar1->channels" identifier = (field_expression "psVar1->channels" identifier -> field_identifier)) ;) (if_statement "if (*(int *)((int)pvVar3 + 8) == index + 0x100) break;" if (parenthesized_expression "(*(int *)((int)pvVar3 + 8) == index + 0x100)" ( (binary_expression "*(int *)((int)pvVar3 + 8) == index + 0x100" (pointer_expression "*(int *)((int)pvVar3 + 8)" * (cast_expression "(int *)((int)pvVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar3 + 8)" ( (binary_expression "(int)pvVar3 + 8" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (binary_expression "index + 0x100" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = index;" (assignment_expression "uVar2 = index" identifier = identifier) ;) (if_statement "if (index - local_34 < 2) goto LAB_00042ffd;" if (parenthesized_expression "(index - local_34 < 2)" ( (binary_expression "index - local_34 < 2" (binary_expression "index - local_34" identifier - identifier) < number_literal) )) (goto_statement "goto LAB_00042ffd;" goto statement_identifier ;)) })) (expression_statement "local_34 = index;" (assignment_expression "local_34 = index" identifier = identifier) ;) (expression_statement "uVar5 = uVar2 - index;" (assignment_expression "uVar5 = uVar2 - index" identifier = (binary_expression "uVar2 - index" identifier - identifier)) ;) })) (labeled_statement "LAB_00042ffd:\n  i = local_34 + 0x101;" statement_identifier : (expression_statement "i = local_34 + 0x101;" (assignment_expression "i = local_34 + 0x101" identifier = (binary_expression "local_34 + 0x101" identifier + number_literal)) ;)) (expression_statement "pvVar3 = find234(t,&i,ssh_channelfind);" (assignment_expression "pvVar3 = find234(t,&i,ssh_channelfind)" identifier = (call_expression "find234(t,&i,ssh_channelfind)" identifier (argument_list "(t,&i,ssh_channelfind)" ( identifier , (pointer_expression "&i" & identifier) , identifier )))) ;) (if_statement "if (pvVar3 != (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }" { comment (expression_statement "__assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");" (call_expression "__assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id")" identifier (argument_list "("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id")" ( (string_literal ""NULL == find234(ssh->channels, &i, ssh_channelfind)"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""alloc_channel_id"" " string_content ") ))) ;) })) (expression_statement "iVar4 = psVar1->version;" (assignment_expression "iVar4 = psVar1->version" identifier = (field_expression "psVar1->version" identifier -> field_identifier)) ;) (expression_statement "c->localid = local_34 + 0x101;" (assignment_expression "c->localid = local_34 + 0x101" (field_expression "c->localid" identifier -> field_identifier) = (binary_expression "local_34 + 0x101" identifier + number_literal)) ;) (expression_statement "c->closes = 0;" (assignment_expression "c->closes = 0" (field_expression "c->closes" identifier -> field_identifier) = number_literal) ;) (expression_statement "c->pending_eof = 0;" (assignment_expression "c->pending_eof = 0" (field_expression "c->pending_eof" identifier -> field_identifier) = number_literal) ;) (expression_statement "c->throttling_conn = 0;" (assignment_expression "c->throttling_conn = 0" (field_expression "c->throttling_conn" identifier -> field_identifier) = number_literal) ;) (if_statement "if (iVar4 == 2) {\n    iVar4 = conf_get_int(psVar1->conf,0xa9);\n    iVar6 = 0x4000;\n    if ((iVar4 != 0) && (psVar1->bare_connection == 0)) {\n      iVar6 = (-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff) + 0x4000;\n    }\n    (c->v).v2.remlocwin = iVar6;\n    (c->v).v2.locmaxwin = iVar6;\n    (c->v).v2.locwindow = iVar6;\n    (c->v).v2.chanreq_head = (outstanding_channel_request *)0x0;\n    (c->v).v2.throttle_state = ADDRTYPE_IPV6;\n    bufchain_init(&(c->v).v2.outbuffer);\n  }" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (compound_statement "{\n    iVar4 = conf_get_int(psVar1->conf,0xa9);\n    iVar6 = 0x4000;\n    if ((iVar4 != 0) && (psVar1->bare_connection == 0)) {\n      iVar6 = (-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff) + 0x4000;\n    }\n    (c->v).v2.remlocwin = iVar6;\n    (c->v).v2.locmaxwin = iVar6;\n    (c->v).v2.locwindow = iVar6;\n    (c->v).v2.chanreq_head = (outstanding_channel_request *)0x0;\n    (c->v).v2.throttle_state = ADDRTYPE_IPV6;\n    bufchain_init(&(c->v).v2.outbuffer);\n  }" { (expression_statement "iVar4 = conf_get_int(psVar1->conf,0xa9);" (assignment_expression "iVar4 = conf_get_int(psVar1->conf,0xa9)" identifier = (call_expression "conf_get_int(psVar1->conf,0xa9)" identifier (argument_list "(psVar1->conf,0xa9)" ( (field_expression "psVar1->conf" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "iVar6 = 0x4000;" (assignment_expression "iVar6 = 0x4000" identifier = number_literal) ;) (if_statement "if ((iVar4 != 0) && (psVar1->bare_connection == 0)) {\n      iVar6 = (-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff) + 0x4000;\n    }" if (parenthesized_expression "((iVar4 != 0) && (psVar1->bare_connection == 0))" ( (binary_expression "(iVar4 != 0) && (psVar1->bare_connection == 0)" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(psVar1->bare_connection == 0)" ( (binary_expression "psVar1->bare_connection == 0" (field_expression "psVar1->bare_connection" identifier -> field_identifier) == number_literal) ))) )) (compound_statement "{\n      iVar6 = (-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff) + 0x4000;\n    }" { (expression_statement "iVar6 = (-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff) + 0x4000;" (assignment_expression "iVar6 = (-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff) + 0x4000" identifier = (binary_expression "(-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff) + 0x4000" (parenthesized_expression "(-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff)" ( (binary_expression "-(uint)(psVar1->connshare == (void *)0x0) & 0x7fffbfff" (unary_expression "-(uint)(psVar1->connshare == (void *)0x0)" - (call_expression "(uint)(psVar1->connshare == (void *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(psVar1->connshare == (void *)0x0)" ( (binary_expression "psVar1->connshare == (void *)0x0" (field_expression "psVar1->connshare" identifier -> field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )))) & number_literal) )) + number_literal)) ;) })) (expression_statement "(c->v).v2.remlocwin = iVar6;" (assignment_expression "(c->v).v2.remlocwin = iVar6" (field_expression "(c->v).v2.remlocwin" (field_expression "(c->v).v2" (parenthesized_expression "(c->v)" ( (field_expression "c->v" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(c->v).v2.locmaxwin = iVar6;" (assignment_expression "(c->v).v2.locmaxwin = iVar6" (field_expression "(c->v).v2.locmaxwin" (field_expression "(c->v).v2" (parenthesized_expression "(c->v)" ( (field_expression "c->v" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(c->v).v2.locwindow = iVar6;" (assignment_expression "(c->v).v2.locwindow = iVar6" (field_expression "(c->v).v2.locwindow" (field_expression "(c->v).v2" (parenthesized_expression "(c->v)" ( (field_expression "c->v" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(c->v).v2.chanreq_head = (outstanding_channel_request *)0x0;" (assignment_expression "(c->v).v2.chanreq_head = (outstanding_channel_request *)0x0" (field_expression "(c->v).v2.chanreq_head" (field_expression "(c->v).v2" (parenthesized_expression "(c->v)" ( (field_expression "c->v" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(outstanding_channel_request *)0x0" ( (type_descriptor "outstanding_channel_request *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(c->v).v2.throttle_state = ADDRTYPE_IPV6;" (assignment_expression "(c->v).v2.throttle_state = ADDRTYPE_IPV6" (field_expression "(c->v).v2.throttle_state" (field_expression "(c->v).v2" (parenthesized_expression "(c->v)" ( (field_expression "c->v" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "bufchain_init(&(c->v).v2.outbuffer);" (call_expression "bufchain_init(&(c->v).v2.outbuffer)" identifier (argument_list "(&(c->v).v2.outbuffer)" ( (pointer_expression "&(c->v).v2.outbuffer" & (field_expression "(c->v).v2.outbuffer" (field_expression "(c->v).v2" (parenthesized_expression "(c->v)" ( (field_expression "c->v" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ))) ;) })) (expression_statement "add234(psVar1->channels,c);" (call_expression "add234(psVar1->channels,c)" identifier (argument_list "(psVar1->channels,c)" ( (field_expression "psVar1->channels" identifier -> field_identifier) , identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __regparm3 FUN_00042f60(int *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x42f6b;\n  iVar1 = *param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));\n  uVar4 = *(undefined4 *)(iVar1 + 0x124);\n  local_34 = 0xffffffff;\n  uVar5 = uVar2 + 1;\n  while (1 < uVar5) {\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }\nLAB_00042ffd:\n  local_24 = local_34 + 0x101;\n  iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);\n  if (iVar3 != 0) {\n                    \n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }\n  iVar3 = *(int *)(iVar1 + 0x198);\n  param_1[2] = local_34 + 0x101;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  if (iVar3 == 2) {\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }\n  FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}\n\n" (function_definition "void __regparm3 FUN_00042f60(int *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x42f6b;\n  iVar1 = *param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));\n  uVar4 = *(undefined4 *)(iVar1 + 0x124);\n  local_34 = 0xffffffff;\n  uVar5 = uVar2 + 1;\n  while (1 < uVar5) {\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }\nLAB_00042ffd:\n  local_24 = local_34 + 0x101;\n  iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);\n  if (iVar3 != 0) {\n                    \n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }\n  iVar3 = *(int *)(iVar1 + 0x198);\n  param_1[2] = local_34 + 0x101;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  if (iVar3 == 2) {\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }\n  FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00042f60(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x42f6b;\n  iVar1 = *param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));\n  uVar4 = *(undefined4 *)(iVar1 + 0x124);\n  local_34 = 0xffffffff;\n  uVar5 = uVar2 + 1;\n  while (1 < uVar5) {\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }\nLAB_00042ffd:\n  local_24 = local_34 + 0x101;\n  iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);\n  if (iVar3 != 0) {\n                    \n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }\n  iVar3 = *(int *)(iVar1 + 0x198);\n  param_1[2] = local_34 + 0x101;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  if (iVar3 == 2) {\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }\n  FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x42f6b;" (assignment_expression "uStack_14 = 0x42f6b" identifier = number_literal) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));" (assignment_expression "uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124))" identifier = (call_expression "FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124))" identifier (argument_list "(*(undefined4 *)(iVar1 + 0x124))" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x124)" * (cast_expression "(undefined4 *)(iVar1 + 0x124)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x124)" ( (binary_expression "iVar1 + 0x124" identifier + number_literal) )))) )))) ;) (expression_statement "uVar4 = *(undefined4 *)(iVar1 + 0x124);" (assignment_expression "uVar4 = *(undefined4 *)(iVar1 + 0x124)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0x124)" * (cast_expression "(undefined4 *)(iVar1 + 0x124)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x124)" ( (binary_expression "iVar1 + 0x124" identifier + number_literal) ))))) ;) (expression_statement "local_34 = 0xffffffff;" (assignment_expression "local_34 = 0xffffffff" identifier = number_literal) ;) (expression_statement "uVar5 = uVar2 + 1;" (assignment_expression "uVar5 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (while_statement "while (1 < uVar5) {\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }" while (parenthesized_expression "(1 < uVar5)" ( (binary_expression "1 < uVar5" number_literal < identifier) )) (compound_statement "{\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }" { (while_statement "while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }" { (expression_statement "uVar7 = local_34 + uVar2 >> 1;" (assignment_expression "uVar7 = local_34 + uVar2 >> 1" identifier = (binary_expression "local_34 + uVar2 >> 1" (binary_expression "local_34 + uVar2" identifier + identifier) >> number_literal)) ;) (expression_statement "iVar3 = FUN_0009eb10(uVar4,uVar7);" (assignment_expression "iVar3 = FUN_0009eb10(uVar4,uVar7)" identifier = (call_expression "FUN_0009eb10(uVar4,uVar7)" identifier (argument_list "(uVar4,uVar7)" ( identifier , identifier )))) ;) (expression_statement "uVar4 = *(undefined4 *)(iVar1 + 0x124);" (assignment_expression "uVar4 = *(undefined4 *)(iVar1 + 0x124)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0x124)" * (cast_expression "(undefined4 *)(iVar1 + 0x124)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x124)" ( (binary_expression "iVar1 + 0x124" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;" if (parenthesized_expression "(*(int *)(iVar3 + 8) == uVar7 + 0x100)" ( (binary_expression "*(int *)(iVar3 + 8) == uVar7 + 0x100" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) == (binary_expression "uVar7 + 0x100" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = uVar7;" (assignment_expression "uVar2 = uVar7" identifier = identifier) ;) (if_statement "if (uVar7 - local_34 < 2) goto LAB_00042ffd;" if (parenthesized_expression "(uVar7 - local_34 < 2)" ( (binary_expression "uVar7 - local_34 < 2" (binary_expression "uVar7 - local_34" identifier - identifier) < number_literal) )) (goto_statement "goto LAB_00042ffd;" goto statement_identifier ;)) })) (expression_statement "local_34 = uVar7;" (assignment_expression "local_34 = uVar7" identifier = identifier) ;) (expression_statement "uVar5 = uVar2 - uVar7;" (assignment_expression "uVar5 = uVar2 - uVar7" identifier = (binary_expression "uVar2 - uVar7" identifier - identifier)) ;) })) (labeled_statement "LAB_00042ffd:\n  local_24 = local_34 + 0x101;" statement_identifier : (expression_statement "local_24 = local_34 + 0x101;" (assignment_expression "local_24 = local_34 + 0x101" identifier = (binary_expression "local_34 + 0x101" identifier + number_literal)) ;)) (expression_statement "iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);" (assignment_expression "iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0)" identifier = (call_expression "FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0)" identifier (argument_list "(uVar4,&local_24,FUN_0003f2e0)" ( identifier , (pointer_expression "&local_24" & identifier) , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n                    \n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }" { (expression_statement "__assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");" (call_expression "__assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id")" identifier (argument_list "("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id")" ( (string_literal ""NULL == find234(ssh->channels, &i, ssh_channelfind)"" " string_content ") , (string_literal ""ssh.c"" " string_content ") , number_literal , (string_literal ""alloc_channel_id"" " string_content ") ))) ;) })) (expression_statement "iVar3 = *(int *)(iVar1 + 0x198);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x198)" identifier = (pointer_expression "*(int *)(iVar1 + 0x198)" * (cast_expression "(int *)(iVar1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x198)" ( (binary_expression "iVar1 + 0x198" identifier + number_literal) ))))) ;) (expression_statement "param_1[2] = local_34 + 0x101;" (assignment_expression "param_1[2] = local_34 + 0x101" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "local_34 + 0x101" identifier + number_literal)) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[7] = 0;" (assignment_expression "param_1[7] = 0" (subscript_expression "param_1[7]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar3 == 2) {\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }" if (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) )) (compound_statement "{\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }" { (expression_statement "iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);" (assignment_expression "iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9)" identifier = (call_expression "FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9)" identifier (argument_list "(*(undefined4 *)(iVar1 + 0x248),0xa9)" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x248)" * (cast_expression "(undefined4 *)(iVar1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x248)" ( (binary_expression "iVar1 + 0x248" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "iVar6 = 0x4000;" (assignment_expression "iVar6 = 0x4000" identifier = number_literal) ;) (if_statement "if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }" if (parenthesized_expression "((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0))" ( (binary_expression "(iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 0xec) == 0)" ( (binary_expression "*(int *)(iVar1 + 0xec) == 0" (pointer_expression "*(int *)(iVar1 + 0xec)" * (cast_expression "(int *)(iVar1 + 0xec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xec)" ( (binary_expression "iVar1 + 0xec" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }" { (expression_statement "iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;" (assignment_expression "iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000" identifier = (binary_expression "(-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000" (parenthesized_expression "(-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff)" ( (binary_expression "-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff" (unary_expression "-(uint)(*(int *)(iVar1 + 0xf4) == 0)" - (call_expression "(uint)(*(int *)(iVar1 + 0xf4) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(iVar1 + 0xf4) == 0)" ( (binary_expression "*(int *)(iVar1 + 0xf4) == 0" (pointer_expression "*(int *)(iVar1 + 0xf4)" * (cast_expression "(int *)(iVar1 + 0xf4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xf4)" ( (binary_expression "iVar1 + 0xf4" identifier + number_literal) )))) == number_literal) )))) & number_literal) )) + number_literal)) ;) })) (expression_statement "param_1[0xf] = iVar6;" (assignment_expression "param_1[0xf] = iVar6" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0xe] = iVar6;" (assignment_expression "param_1[0xe] = iVar6" (subscript_expression "param_1[0xe]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0xd] = iVar6;" (assignment_expression "param_1[0xd] = iVar6" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[0x10] = 0;" (assignment_expression "param_1[0x10] = 0" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x12] = 2;" (assignment_expression "param_1[0x12] = 2" (subscript_expression "param_1[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00032630(param_1 + 8);" (call_expression "FUN_00032630(param_1 + 8)" identifier (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) })) (expression_statement "FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);" (call_expression "FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1)" identifier (argument_list "(*(undefined4 *)(iVar1 + 0x124),param_1)" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x124)" * (cast_expression "(undefined4 *)(iVar1 + 0x124)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x124)" ( (binary_expression "iVar1 + 0x124" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (while_statement while (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (binary_expression IDENT + LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) < LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_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 ") ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )))) & LIT) )) + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __regparm3 FUN_00042f60(int *param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x42f6b;\n  iVar1 = *param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));\n  uVar4 = *(undefined4 *)(iVar1 + 0x124);\n  local_34 = 0xffffffff;\n  uVar5 = uVar2 + 1;\n  while (1 < uVar5) {\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }\nLAB_00042ffd:\n  local_24 = local_34 + 0x101;\n  iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);\n  if (iVar3 != 0) {\n                    \n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }\n  iVar3 = *(int *)(iVar1 + 0x198);\n  param_1[2] = local_34 + 0x101;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  if (iVar3 == 2) {\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }\n  FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00042f60(int *param_1)" (identifier "FUN_00042f60") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  int in_GS_OFFSET;\n  uint local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x42f6b;\n  iVar1 = *param_1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));\n  uVar4 = *(undefined4 *)(iVar1 + 0x124);\n  local_34 = 0xffffffff;\n  uVar5 = uVar2 + 1;\n  while (1 < uVar5) {\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }\nLAB_00042ffd:\n  local_24 = local_34 + 0x101;\n  iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);\n  if (iVar3 != 0) {\n                    \n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }\n  iVar3 = *(int *)(iVar1 + 0x198);\n  param_1[2] = local_34 + 0x101;\n  param_1[5] = 0;\n  param_1[6] = 0;\n  param_1[7] = 0;\n  if (iVar3 == 2) {\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }\n  FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000c60b0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint local_34;" (type_identifier "uint") (identifier "local_34") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x42f6b;" (assignment_expression "uStack_14 = 0x42f6b" (identifier "uStack_14") (= "=") (number_literal "0x42f6b")) (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));" (assignment_expression "uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124))" (identifier "uVar2") (= "=") (call_expression "FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124))" (identifier "FUN_0009ea80") (argument_list "(*(undefined4 *)(iVar1 + 0x124))" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + 0x124)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x124)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x124)" (( "(") (binary_expression "iVar1 + 0x124" (identifier "iVar1") (+ "+") (number_literal "0x124")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(iVar1 + 0x124);" (assignment_expression "uVar4 = *(undefined4 *)(iVar1 + 0x124)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0x124)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x124)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x124)" (( "(") (binary_expression "iVar1 + 0x124" (identifier "iVar1") (+ "+") (number_literal "0x124")) () ")"))))) (; ";")) (expression_statement "local_34 = 0xffffffff;" (assignment_expression "local_34 = 0xffffffff" (identifier "local_34") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "uVar5 = uVar2 + 1;" (assignment_expression "uVar5 = uVar2 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (while_statement "while (1 < uVar5) {\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }" (while "while") (parenthesized_expression "(1 < uVar5)" (( "(") (binary_expression "1 < uVar5" (number_literal "1") (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n    while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }\n    local_34 = uVar7;\n    uVar5 = uVar2 - uVar7;\n  }" ({ "{") (while_statement "while( true ) {\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      uVar7 = local_34 + uVar2 >> 1;\n      iVar3 = FUN_0009eb10(uVar4,uVar7);\n      uVar4 = *(undefined4 *)(iVar1 + 0x124);\n      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;\n      uVar2 = uVar7;\n      if (uVar7 - local_34 < 2) goto LAB_00042ffd;\n    }" ({ "{") (expression_statement "uVar7 = local_34 + uVar2 >> 1;" (assignment_expression "uVar7 = local_34 + uVar2 >> 1" (identifier "uVar7") (= "=") (binary_expression "local_34 + uVar2 >> 1" (binary_expression "local_34 + uVar2" (identifier "local_34") (+ "+") (identifier "uVar2")) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = FUN_0009eb10(uVar4,uVar7);" (assignment_expression "iVar3 = FUN_0009eb10(uVar4,uVar7)" (identifier "iVar3") (= "=") (call_expression "FUN_0009eb10(uVar4,uVar7)" (identifier "FUN_0009eb10") (argument_list "(uVar4,uVar7)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar7") () ")")))) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(iVar1 + 0x124);" (assignment_expression "uVar4 = *(undefined4 *)(iVar1 + 0x124)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0x124)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x124)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x124)" (( "(") (binary_expression "iVar1 + 0x124" (identifier "iVar1") (+ "+") (number_literal "0x124")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 8) == uVar7 + 0x100)" (( "(") (binary_expression "*(int *)(iVar3 + 8) == uVar7 + 0x100" (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (== "==") (binary_expression "uVar7 + 0x100" (identifier "uVar7") (+ "+") (number_literal "0x100"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar2 = uVar7;" (assignment_expression "uVar2 = uVar7" (identifier "uVar2") (= "=") (identifier "uVar7")) (; ";")) (if_statement "if (uVar7 - local_34 < 2) goto LAB_00042ffd;" (if "if") (parenthesized_expression "(uVar7 - local_34 < 2)" (( "(") (binary_expression "uVar7 - local_34 < 2" (binary_expression "uVar7 - local_34" (identifier "uVar7") (- "-") (identifier "local_34")) (< "<") (number_literal "2")) () ")")) (goto_statement "goto LAB_00042ffd;" (goto "goto") (statement_identifier "LAB_00042ffd") (; ";"))) (} "}"))) (expression_statement "local_34 = uVar7;" (assignment_expression "local_34 = uVar7" (identifier "local_34") (= "=") (identifier "uVar7")) (; ";")) (expression_statement "uVar5 = uVar2 - uVar7;" (assignment_expression "uVar5 = uVar2 - uVar7" (identifier "uVar5") (= "=") (binary_expression "uVar2 - uVar7" (identifier "uVar2") (- "-") (identifier "uVar7"))) (; ";")) (} "}"))) (labeled_statement "LAB_00042ffd:\n  local_24 = local_34 + 0x101;" (statement_identifier "LAB_00042ffd") (: ":") (expression_statement "local_24 = local_34 + 0x101;" (assignment_expression "local_24 = local_34 + 0x101" (identifier "local_24") (= "=") (binary_expression "local_34 + 0x101" (identifier "local_34") (+ "+") (number_literal "0x101"))) (; ";"))) (expression_statement "iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);" (assignment_expression "iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0)" (identifier "iVar3") (= "=") (call_expression "FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0)" (identifier "FUN_0009ee90") (argument_list "(uVar4,&local_24,FUN_0003f2e0)" (( "(") (identifier "uVar4") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (identifier "FUN_0003f2e0") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n                    \n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");\n  }" ({ "{") (expression_statement "__assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id");" (call_expression "__assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id")" (identifier "__assert_fail") (argument_list "("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,\n                  "alloc_channel_id")" (( "(") (string_literal ""NULL == find234(ssh->channels, &i, ssh_channelfind)"" (" """) (string_content "NULL == find234(ssh->channels, &i, ssh_channelfind)") (" """)) (, ",") (string_literal ""ssh.c"" (" """) (string_content "ssh.c") (" """)) (, ",") (number_literal "0x4a9") (, ",") (string_literal ""alloc_channel_id"" (" """) (string_content "alloc_channel_id") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(iVar1 + 0x198);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x198)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar1 + 0x198)" (* "*") (cast_expression "(int *)(iVar1 + 0x198)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x198)" (( "(") (binary_expression "iVar1 + 0x198" (identifier "iVar1") (+ "+") (number_literal "0x198")) () ")"))))) (; ";")) (expression_statement "param_1[2] = local_34 + 0x101;" (assignment_expression "param_1[2] = local_34 + 0x101" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "local_34 + 0x101" (identifier "local_34") (+ "+") (number_literal "0x101"))) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[7] = 0;" (assignment_expression "param_1[7] = 0" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar3 == 2) {\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }" (if "if") (parenthesized_expression "(iVar3 == 2)" (( "(") (binary_expression "iVar3 == 2" (identifier "iVar3") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);\n    iVar6 = 0x4000;\n    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }\n    param_1[0xf] = iVar6;\n    param_1[0xe] = iVar6;\n    param_1[0xd] = iVar6;\n    param_1[0x10] = 0;\n    param_1[0x12] = 2;\n    FUN_00032630(param_1 + 8);\n  }" ({ "{") (expression_statement "iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);" (assignment_expression "iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9)" (identifier "iVar3") (= "=") (call_expression "FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9)" (identifier "FUN_00021220") (argument_list "(*(undefined4 *)(iVar1 + 0x248),0xa9)" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x248)" (( "(") (binary_expression "iVar1 + 0x248" (identifier "iVar1") (+ "+") (number_literal "0x248")) () ")")))) (, ",") (number_literal "0xa9") () ")")))) (; ";")) (expression_statement "iVar6 = 0x4000;" (assignment_expression "iVar6 = 0x4000" (identifier "iVar6") (= "=") (number_literal "0x4000")) (; ";")) (if_statement "if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }" (if "if") (parenthesized_expression "((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0))" (( "(") (binary_expression "(iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)" (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar1 + 0xec) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0xec) == 0" (pointer_expression "*(int *)(iVar1 + 0xec)" (* "*") (cast_expression "(int *)(iVar1 + 0xec)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xec)" (( "(") (binary_expression "iVar1 + 0xec" (identifier "iVar1") (+ "+") (number_literal "0xec")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;\n    }" ({ "{") (expression_statement "iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;" (assignment_expression "iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000" (identifier "iVar6") (= "=") (binary_expression "(-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000" (parenthesized_expression "(-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff)" (( "(") (binary_expression "-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff" (unary_expression "-(uint)(*(int *)(iVar1 + 0xf4) == 0)" (- "-") (call_expression "(uint)(*(int *)(iVar1 + 0xf4) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(iVar1 + 0xf4) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0xf4) == 0" (pointer_expression "*(int *)(iVar1 + 0xf4)" (* "*") (cast_expression "(int *)(iVar1 + 0xf4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xf4)" (( "(") (binary_expression "iVar1 + 0xf4" (identifier "iVar1") (+ "+") (number_literal "0xf4")) () ")")))) (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "0x7fffbfff")) () ")")) (+ "+") (number_literal "0x4000"))) (; ";")) (} "}"))) (expression_statement "param_1[0xf] = iVar6;" (assignment_expression "param_1[0xf] = iVar6" (subscript_expression "param_1[0xf]" (identifier "param_1") ([ "[") (number_literal "0xf") (] "]")) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "param_1[0xe] = iVar6;" (assignment_expression "param_1[0xe] = iVar6" (subscript_expression "param_1[0xe]" (identifier "param_1") ([ "[") (number_literal "0xe") (] "]")) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "param_1[0xd] = iVar6;" (assignment_expression "param_1[0xd] = iVar6" (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]")) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "param_1[0x10] = 0;" (assignment_expression "param_1[0x10] = 0" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x12] = 2;" (assignment_expression "param_1[0x12] = 2" (subscript_expression "param_1[0x12]" (identifier "param_1") ([ "[") (number_literal "0x12") (] "]")) (= "=") (number_literal "2")) (; ";")) (expression_statement "FUN_00032630(param_1 + 8);" (call_expression "FUN_00032630(param_1 + 8)" (identifier "FUN_00032630") (argument_list "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);" (call_expression "FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1)" (identifier "FUN_0009eab0") (argument_list "(*(undefined4 *)(iVar1 + 0x124),param_1)" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + 0x124)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x124)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x124)" (( "(") (binary_expression "iVar1 + 0x124" (identifier "iVar1") (+ "+") (number_literal "0x124")) () ")")))) (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000c60b0();" (call_expression "FUN_000c60b0()" (identifier "FUN_000c60b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *c)

{
  type_2 psVar1;
  type_3 var_3;
  void *var_9;
  type_4 *t;
  int var_11;
  type_3 var_4;
  int iVar6;
  type_3 var_7;
  int var_1;
  type_3 var_5;
  type_3 i;
  int var_15;
  type_5 uStack_14;
  
  uStack_14 = 0x42f6b;
  psVar1 = c->ssh;
  var_15 = *(int *)(var_1 + 0x14);
  var_3 = var_2(psVar1->channels);
  t = psVar1->channels;
  var_5 = 0xffffffff;
  var_4 = var_3 + 1;
  while (1 < var_4) {
    while( true ) {
      var_7 = var_5 + var_3 >> 1;
      var_9 = var_6(t,var_7);
      t = psVar1->channels;
      if (*(int *)((int)var_9 + 8) == var_7 + 0x100) break;
      var_3 = var_7;
      if (var_7 - var_5 < 2) goto LAB_00042ffd;
    }
    var_5 = var_7;
    var_4 = var_3 - var_7;
  }
LAB_00042ffd:
  i = var_5 + 0x101;
  var_9 = var_8(t,&i,ssh_channelfind);
  if (var_9 != (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_10("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,
                  "alloc_channel_id");
  }
  var_11 = psVar1->version;
  c->localid = var_5 + 0x101;
  c->closes = 0;
  c->pending_eof = 0;
  c->throttling_conn = 0;
  if (var_11 == 2) {
    var_11 = var_12(psVar1->conf,0xa9);
    iVar6 = 0x4000;
    if ((var_11 != 0) && (psVar1->bare_connection == 0)) {
      iVar6 = (-(type_3)(psVar1->connshare == (void *)0x0) & 0x7fffbfff) + 0x4000;
    }
    (c->v).v2.remlocwin = iVar6;
    (c->v).v2.locmaxwin = iVar6;
    (c->v).v2.locwindow = iVar6;
    (c->v).v2.chanreq_head = (type_6 *)0x0;
    (c->v).v2.throttle_state = ADDRTYPE_IPV6;
    var_13(&(c->v).v2.outbuffer);
  }
  var_14(psVar1->channels,c);
  if (var_15 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_16();
}


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

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

void __regparm3 MASKED(int *param_1)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  undefined4 uVar4;
  uint uVar5;
  int iVar6;
  uint uVar7;
  int in_GS_OFFSET;
  uint local_34;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x42f6b;
  iVar1 = *param_1;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = FUN_0009ea80(*(undefined4 *)(iVar1 + 0x124));
  uVar4 = *(undefined4 *)(iVar1 + 0x124);
  local_34 = 0xffffffff;
  uVar5 = uVar2 + 1;
  while (1 < uVar5) {
    while( true ) {
      uVar7 = local_34 + uVar2 >> 1;
      iVar3 = FUN_0009eb10(uVar4,uVar7);
      uVar4 = *(undefined4 *)(iVar1 + 0x124);
      if (*(int *)(iVar3 + 8) == uVar7 + 0x100) break;
      uVar2 = uVar7;
      if (uVar7 - local_34 < 2) goto LAB_00042ffd;
    }
    local_34 = uVar7;
    uVar5 = uVar2 - uVar7;
  }
LAB_00042ffd:
  local_24 = local_34 + 0x101;
  iVar3 = FUN_0009ee90(uVar4,&local_24,FUN_0003f2e0);
  if (iVar3 != 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("NULL == find234(ssh->channels, &i, ssh_channelfind)","ssh.c",0x4a9,
                  "alloc_channel_id");
  }
  iVar3 = *(int *)(iVar1 + 0x198);
  param_1[2] = local_34 + 0x101;
  param_1[5] = 0;
  param_1[6] = 0;
  param_1[7] = 0;
  if (iVar3 == 2) {
    iVar3 = FUN_00021220(*(undefined4 *)(iVar1 + 0x248),0xa9);
    iVar6 = 0x4000;
    if ((iVar3 != 0) && (*(int *)(iVar1 + 0xec) == 0)) {
      iVar6 = (-(uint)(*(int *)(iVar1 + 0xf4) == 0) & 0x7fffbfff) + 0x4000;
    }
    param_1[0xf] = iVar6;
    param_1[0xe] = iVar6;
    param_1[0xd] = iVar6;
    param_1[0x10] = 0;
    param_1[0x12] = 2;
    FUN_00032630(param_1 + 8);
  }
  FUN_0009eab0(*(undefined4 *)(iVar1 + 0x124),param_1);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000c60b0();
}

