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

void ssh2_msg_channel_data(Ssh_conflict ssh,Packet *pktin)

{
  int *piVar1;
  ssh_channel *c;
  int iVar2;
  int iVar3;
  ulong uVar4;
  uint is_stderr;
  int in_GS_OFFSET;
  char *data;
  int length;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  c = ssh_channel_msg(ssh,pktin);
  if (c != (ssh_channel *)0x0) {
    if (pktin->type == 0x5f) {
      uVar4 = ssh_pkt_getuint32(pktin);
      ssh_pkt_getstring(pktin,&data,&length);
      if (data == (char *)0x0) goto LAB_0003b71b;
      piVar1 = &(c->v).v2.locwindow;
      *piVar1 = *piVar1 - length;
      piVar1 = &(c->v).v2.remlocwin;
      *piVar1 = *piVar1 - length;
      is_stderr = (uint)(uVar4 == 1);
      if (1 < uVar4) {
        length = 0;
      }
    }
    else {
      ssh_pkt_getstring(pktin,&data,&length);
      if (data == (char *)0x0) goto LAB_0003b71b;
      piVar1 = &(c->v).v2.locwindow;
      *piVar1 = *piVar1 - length;
      is_stderr = 0;
      piVar1 = &(c->v).v2.remlocwin;
      *piVar1 = *piVar1 - length;
    }
    iVar2 = ssh_channel_data(c,is_stderr,data,length);
    iVar3 = (c->v).v2.locmaxwin;
    if ((((c->v).v2.remlocwin < 1) && ((c->v).v2.throttle_state == ADDRTYPE_IPV6)) &&
       (iVar3 < 0x40000000)) {
      iVar3 = iVar3 + 0x4000;
      (c->v).v2.locmaxwin = iVar3;
    }
    if (iVar2 < iVar3) {
      ssh2_set_window(c,iVar3 - iVar2);
      iVar3 = (c->v).v2.locmaxwin;
    }
    if (((iVar3 < iVar2) || ((iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2)))) &&
       (c->throttling_conn == 0)) {
      c->throttling_conn = 1;
      ssh_throttle_conn(ssh,1);
    }
  }
LAB_0003b71b:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



void FUN_0003b6d0(undefined4 param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  int in_GS_OFFSET;
  int local_28;
  int local_24;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_00039170();
  if (iVar2 != 0) {
    if (*(int *)(param_2 + 8) == 0x5f) {
      uVar5 = FUN_0002b030();
      FUN_0002b920();
      if (local_28 == 0) goto LAB_0003b71b;
      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;
      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;
      if (1 < uVar5) {
        local_24 = 0;
      }
    }
    else {
      FUN_0002b920();
      if (local_28 == 0) goto LAB_0003b71b;
      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;
      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;
    }
    iVar3 = FUN_0003b600(local_24);
    iVar4 = *(int *)(iVar2 + 0x38);
    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {
      iVar4 = iVar4 + 0x4000;
      *(int *)(iVar2 + 0x38) = iVar4;
    }
    if (iVar3 < iVar4) {
      FUN_00038610();
      iVar4 = *(int *)(iVar2 + 0x38);
    }
    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&
       (*(int *)(iVar2 + 0x1c) == 0)) {
      *(undefined4 *)(iVar2 + 0x1c) = 1;
      FUN_0002df80();
    }
  }
LAB_0003b71b:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0006f2a0();
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x34]
MOV EAX,EDI
MOV EDX,ESI
CALL 0x00039170
TEST EAX,EAX
JZ 0x0003b71b
CMP dword ptr [ESI + 0x8],0x5f
MOV EBX,EAX
JZ 0x0003b7e0
LEA ECX,[ESP + 0x8]
LEA EDX,[ESP + 0x4]
MOV EAX,ESI
CALL 0x0002b920
MOV ECX,dword ptr [ESP + 0x4]
TEST ECX,ECX
JNZ 0x0003b738
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0003b82b
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x8]
SUB dword ptr [EBX + 0x34],EAX
XOR EDX,EDX
SUB dword ptr [EBX + 0x3c],EAX
SUB ESP,0xc
PUSH EAX
MOV EAX,EBX
CALL 0x0003b600
MOV EDX,dword ptr [EBX + 0x3c]
ADD ESP,0x10
MOV ESI,EAX
TEST EDX,EDX
MOV EDX,dword ptr [EBX + 0x38]
JLE 0x0003b788
CMP ESI,EDX
JL 0x0003b7c8
CMP ESI,EDX
JLE 0x0003b7a8
MOV EAX,dword ptr [EBX + 0x1c]
TEST EAX,EAX
JNZ 0x0003b71b
MOV dword ptr [EBX + 0x1c],0x1
MOV EDX,0x1
MOV EAX,EDI
CALL 0x0002df80
JMP 0x0003b71b
CMP dword ptr [EBX + 0x48],0x2
JNZ 0x0003b75e
CMP EDX,0x3fffffff
JG 0x0003b75e
ADD EDX,0x4000
MOV dword ptr [EBX + 0x38],EDX
JMP 0x0003b75e
MOV EAX,EDI
CALL 0x0002b8d0
TEST EAX,EAX
JZ 0x0003b71b
TEST ESI,ESI
JLE 0x0003b71b
JMP 0x0003b766
SUB EDX,ESI
MOV EAX,EBX
CALL 0x00038610
MOV EDX,dword ptr [EBX + 0x38]
JMP 0x0003b762
MOV EAX,ESI
CALL 0x0002b030
LEA ECX,[ESP + 0x8]
LEA EDX,[ESP + 0x4]
MOV EBP,EAX
MOV EAX,ESI
CALL 0x0002b920
MOV ECX,dword ptr [ESP + 0x4]
TEST ECX,ECX
JZ 0x0003b71b
MOV EAX,dword ptr [ESP + 0x8]
XOR EDX,EDX
SUB dword ptr [EBX + 0x34],EAX
SUB dword ptr [EBX + 0x3c],EAX
CMP EBP,0x1
SETZ DL
JBE 0x0003b744
MOV dword ptr [ESP + 0x8],0x0
XOR EAX,EAX
JMP 0x0003b744
CALL 0x0006f2a0
(translation_unit "void FUN_0003b6d0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00039170();\n  if (iVar2 != 0) {\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }\nLAB_0003b71b:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f2a0();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0003b6d0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00039170();\n  if (iVar2 != 0) {\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }\nLAB_0003b71b:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f2a0();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0003b6d0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00039170();\n  if (iVar2 != 0) {\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }\nLAB_0003b71b:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f2a0();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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 "iVar2 = FUN_00039170();" (assignment_expression "iVar2 = FUN_00039170()" identifier = (call_expression "FUN_00039170()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }" { (if_statement "if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 0x5f)" ( (binary_expression "*(int *)(param_2 + 8) == 0x5f" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }" { (expression_statement "uVar5 = FUN_0002b030();" (assignment_expression "uVar5 = FUN_0002b030()" identifier = (call_expression "FUN_0002b030()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0002b920();" (call_expression "FUN_0002b920()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_28 == 0) goto LAB_0003b71b;" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003b71b;" goto statement_identifier ;)) (expression_statement "*(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;" (assignment_expression "*(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24" (pointer_expression "*(int *)(iVar2 + 0x34)" * (cast_expression "(int *)(iVar2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 0x34) - local_24" (pointer_expression "*(int *)(iVar2 + 0x34)" * (cast_expression "(int *)(iVar2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;" (assignment_expression "*(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 0x3c) - local_24" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (1 < uVar5) {\n        local_24 = 0;\n      }" if (parenthesized_expression "(1 < uVar5)" ( (binary_expression "1 < uVar5" number_literal < identifier) )) (compound_statement "{\n        local_24 = 0;\n      }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }" else (compound_statement "{\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }" { (expression_statement "FUN_0002b920();" (call_expression "FUN_0002b920()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_28 == 0) goto LAB_0003b71b;" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003b71b;" goto statement_identifier ;)) (expression_statement "*(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;" (assignment_expression "*(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24" (pointer_expression "*(int *)(iVar2 + 0x34)" * (cast_expression "(int *)(iVar2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 0x34) - local_24" (pointer_expression "*(int *)(iVar2 + 0x34)" * (cast_expression "(int *)(iVar2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;" (assignment_expression "*(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 0x3c) - local_24" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) - identifier)) ;) }))) (expression_statement "iVar3 = FUN_0003b600(local_24);" (assignment_expression "iVar3 = FUN_0003b600(local_24)" identifier = (call_expression "FUN_0003b600(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0x38);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x38)" identifier = (pointer_expression "*(int *)(iVar2 + 0x38)" * (cast_expression "(int *)(iVar2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }" if (parenthesized_expression "(((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000))" ( (binary_expression "((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)" (parenthesized_expression "((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2))" ( (binary_expression "(*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)" (parenthesized_expression "(*(int *)(iVar2 + 0x3c) < 1)" ( (binary_expression "*(int *)(iVar2 + 0x3c) < 1" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) < number_literal) )) && (parenthesized_expression "(*(int *)(iVar2 + 0x48) == 2)" ( (binary_expression "*(int *)(iVar2 + 0x48) == 2" (pointer_expression "*(int *)(iVar2 + 0x48)" * (cast_expression "(int *)(iVar2 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x48)" ( (binary_expression "iVar2 + 0x48" identifier + number_literal) )))) == number_literal) ))) )) && (parenthesized_expression "(iVar4 < 0x40000000)" ( (binary_expression "iVar4 < 0x40000000" identifier < number_literal) ))) )) (compound_statement "{\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }" { (expression_statement "iVar4 = iVar4 + 0x4000;" (assignment_expression "iVar4 = iVar4 + 0x4000" identifier = (binary_expression "iVar4 + 0x4000" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar2 + 0x38) = iVar4;" (assignment_expression "*(int *)(iVar2 + 0x38) = iVar4" (pointer_expression "*(int *)(iVar2 + 0x38)" * (cast_expression "(int *)(iVar2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) )))) = identifier) ;) })) (if_statement "if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }" if (parenthesized_expression "(iVar3 < iVar4)" ( (binary_expression "iVar3 < iVar4" identifier < identifier) )) (compound_statement "{\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }" { (expression_statement "FUN_00038610();" (call_expression "FUN_00038610()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0x38);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x38)" identifier = (pointer_expression "*(int *)(iVar2 + 0x38)" * (cast_expression "(int *)(iVar2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) ))))) ;) })) (if_statement "if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }" if (parenthesized_expression "(((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0))" ( (binary_expression "((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)" (parenthesized_expression "((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3))))" ( (binary_expression "(iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))" (parenthesized_expression "(iVar4 < iVar3)" ( (binary_expression "iVar4 < iVar3" identifier < identifier) )) || (parenthesized_expression "((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))" ( (parenthesized_expression "(iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3))" ( (comma_expression "iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)" (assignment_expression "iVar4 = FUN_0002b8d0()" identifier = (call_expression "FUN_0002b8d0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar4 != 0 && (0 < iVar3)" (binary_expression "iVar4 != 0" identifier != number_literal) && (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )))) )) ))) )) && (parenthesized_expression "(*(int *)(iVar2 + 0x1c) == 0)" ( (binary_expression "*(int *)(iVar2 + 0x1c) == 0" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }" { (expression_statement "*(undefined4 *)(iVar2 + 0x1c) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x1c) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 0x1c)" * (cast_expression "(undefined4 *)(iVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0002df80();" (call_expression "FUN_0002df80()" identifier (argument_list "()" ( ))) ;) })) })) (labeled_statement "LAB_0003b71b:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f2a0();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f2a0();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(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                    /* WARNING: Subroutine does not return */\n    FUN_0006f2a0();\n  }" { comment (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh2_msg_channel_data(Ssh_conflict ssh,Packet *pktin)\n\n{\n  int *piVar1;\n  ssh_channel *c;\n  int iVar2;\n  int iVar3;\n  ulong uVar4;\n  uint is_stderr;\n  int in_GS_OFFSET;\n  char *data;\n  int length;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  c = ssh_channel_msg(ssh,pktin);\n  if (c != (ssh_channel *)0x0) {\n    if (pktin->type == 0x5f) {\n      uVar4 = ssh_pkt_getuint32(pktin);\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n      is_stderr = (uint)(uVar4 == 1);\n      if (1 < uVar4) {\n        length = 0;\n      }\n    }\n    else {\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      is_stderr = 0;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n    }\n    iVar2 = ssh_channel_data(c,is_stderr,data,length);\n    iVar3 = (c->v).v2.locmaxwin;\n    if ((((c->v).v2.remlocwin < 1) && ((c->v).v2.throttle_state == ADDRTYPE_IPV6)) &&\n       (iVar3 < 0x40000000)) {\n      iVar3 = iVar3 + 0x4000;\n      (c->v).v2.locmaxwin = iVar3;\n    }\n    if (iVar2 < iVar3) {\n      ssh2_set_window(c,iVar3 - iVar2);\n      iVar3 = (c->v).v2.locmaxwin;\n    }\n    if (((iVar3 < iVar2) || ((iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2)))) &&\n       (c->throttling_conn == 0)) {\n      c->throttling_conn = 1;\n      ssh_throttle_conn(ssh,1);\n    }\n  }\nLAB_0003b71b:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment comment (function_definition "void ssh2_msg_channel_data(Ssh_conflict ssh,Packet *pktin)\n\n{\n  int *piVar1;\n  ssh_channel *c;\n  int iVar2;\n  int iVar3;\n  ulong uVar4;\n  uint is_stderr;\n  int in_GS_OFFSET;\n  char *data;\n  int length;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  c = ssh_channel_msg(ssh,pktin);\n  if (c != (ssh_channel *)0x0) {\n    if (pktin->type == 0x5f) {\n      uVar4 = ssh_pkt_getuint32(pktin);\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n      is_stderr = (uint)(uVar4 == 1);\n      if (1 < uVar4) {\n        length = 0;\n      }\n    }\n    else {\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      is_stderr = 0;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n    }\n    iVar2 = ssh_channel_data(c,is_stderr,data,length);\n    iVar3 = (c->v).v2.locmaxwin;\n    if ((((c->v).v2.remlocwin < 1) && ((c->v).v2.throttle_state == ADDRTYPE_IPV6)) &&\n       (iVar3 < 0x40000000)) {\n      iVar3 = iVar3 + 0x4000;\n      (c->v).v2.locmaxwin = iVar3;\n    }\n    if (iVar2 < iVar3) {\n      ssh2_set_window(c,iVar3 - iVar2);\n      iVar3 = (c->v).v2.locmaxwin;\n    }\n    if (((iVar3 < iVar2) || ((iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2)))) &&\n       (c->throttling_conn == 0)) {\n      c->throttling_conn = 1;\n      ssh_throttle_conn(ssh,1);\n    }\n  }\nLAB_0003b71b:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (function_declarator "ssh2_msg_channel_data(Ssh_conflict ssh,Packet *pktin)" identifier (parameter_list "(Ssh_conflict ssh,Packet *pktin)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "Packet *pktin" type_identifier (pointer_declarator "*pktin" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  ssh_channel *c;\n  int iVar2;\n  int iVar3;\n  ulong uVar4;\n  uint is_stderr;\n  int in_GS_OFFSET;\n  char *data;\n  int length;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  c = ssh_channel_msg(ssh,pktin);\n  if (c != (ssh_channel *)0x0) {\n    if (pktin->type == 0x5f) {\n      uVar4 = ssh_pkt_getuint32(pktin);\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n      is_stderr = (uint)(uVar4 == 1);\n      if (1 < uVar4) {\n        length = 0;\n      }\n    }\n    else {\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      is_stderr = 0;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n    }\n    iVar2 = ssh_channel_data(c,is_stderr,data,length);\n    iVar3 = (c->v).v2.locmaxwin;\n    if ((((c->v).v2.remlocwin < 1) && ((c->v).v2.throttle_state == ADDRTYPE_IPV6)) &&\n       (iVar3 < 0x40000000)) {\n      iVar3 = iVar3 + 0x4000;\n      (c->v).v2.locmaxwin = iVar3;\n    }\n    if (iVar2 < iVar3) {\n      ssh2_set_window(c,iVar3 - iVar2);\n      iVar3 = (c->v).v2.locmaxwin;\n    }\n    if (((iVar3 < iVar2) || ((iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2)))) &&\n       (c->throttling_conn == 0)) {\n      c->throttling_conn = 1;\n      ssh_throttle_conn(ssh,1);\n    }\n  }\nLAB_0003b71b:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "ssh_channel *c;" type_identifier (pointer_declarator "*c" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "uint is_stderr;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *data;" primitive_type (pointer_declarator "*data" * identifier) ;) (declaration "int length;" primitive_type identifier ;) (declaration "int local_20;" primitive_type 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 "c = ssh_channel_msg(ssh,pktin);" (assignment_expression "c = ssh_channel_msg(ssh,pktin)" identifier = (call_expression "ssh_channel_msg(ssh,pktin)" identifier (argument_list "(ssh,pktin)" ( identifier , identifier )))) ;) (if_statement "if (c != (ssh_channel *)0x0) {\n    if (pktin->type == 0x5f) {\n      uVar4 = ssh_pkt_getuint32(pktin);\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n      is_stderr = (uint)(uVar4 == 1);\n      if (1 < uVar4) {\n        length = 0;\n      }\n    }\n    else {\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      is_stderr = 0;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n    }\n    iVar2 = ssh_channel_data(c,is_stderr,data,length);\n    iVar3 = (c->v).v2.locmaxwin;\n    if ((((c->v).v2.remlocwin < 1) && ((c->v).v2.throttle_state == ADDRTYPE_IPV6)) &&\n       (iVar3 < 0x40000000)) {\n      iVar3 = iVar3 + 0x4000;\n      (c->v).v2.locmaxwin = iVar3;\n    }\n    if (iVar2 < iVar3) {\n      ssh2_set_window(c,iVar3 - iVar2);\n      iVar3 = (c->v).v2.locmaxwin;\n    }\n    if (((iVar3 < iVar2) || ((iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2)))) &&\n       (c->throttling_conn == 0)) {\n      c->throttling_conn = 1;\n      ssh_throttle_conn(ssh,1);\n    }\n  }" if (parenthesized_expression "(c != (ssh_channel *)0x0)" ( (binary_expression "c != (ssh_channel *)0x0" identifier != (cast_expression "(ssh_channel *)0x0" ( (type_descriptor "ssh_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (pktin->type == 0x5f) {\n      uVar4 = ssh_pkt_getuint32(pktin);\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n      is_stderr = (uint)(uVar4 == 1);\n      if (1 < uVar4) {\n        length = 0;\n      }\n    }\n    else {\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      is_stderr = 0;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n    }\n    iVar2 = ssh_channel_data(c,is_stderr,data,length);\n    iVar3 = (c->v).v2.locmaxwin;\n    if ((((c->v).v2.remlocwin < 1) && ((c->v).v2.throttle_state == ADDRTYPE_IPV6)) &&\n       (iVar3 < 0x40000000)) {\n      iVar3 = iVar3 + 0x4000;\n      (c->v).v2.locmaxwin = iVar3;\n    }\n    if (iVar2 < iVar3) {\n      ssh2_set_window(c,iVar3 - iVar2);\n      iVar3 = (c->v).v2.locmaxwin;\n    }\n    if (((iVar3 < iVar2) || ((iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2)))) &&\n       (c->throttling_conn == 0)) {\n      c->throttling_conn = 1;\n      ssh_throttle_conn(ssh,1);\n    }\n  }" { (if_statement "if (pktin->type == 0x5f) {\n      uVar4 = ssh_pkt_getuint32(pktin);\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n      is_stderr = (uint)(uVar4 == 1);\n      if (1 < uVar4) {\n        length = 0;\n      }\n    }\n    else {\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      is_stderr = 0;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n    }" if (parenthesized_expression "(pktin->type == 0x5f)" ( (binary_expression "pktin->type == 0x5f" (field_expression "pktin->type" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      uVar4 = ssh_pkt_getuint32(pktin);\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n      is_stderr = (uint)(uVar4 == 1);\n      if (1 < uVar4) {\n        length = 0;\n      }\n    }" { (expression_statement "uVar4 = ssh_pkt_getuint32(pktin);" (assignment_expression "uVar4 = ssh_pkt_getuint32(pktin)" identifier = (call_expression "ssh_pkt_getuint32(pktin)" identifier (argument_list "(pktin)" ( identifier )))) ;) (expression_statement "ssh_pkt_getstring(pktin,&data,&length);" (call_expression "ssh_pkt_getstring(pktin,&data,&length)" identifier (argument_list "(pktin,&data,&length)" ( identifier , (pointer_expression "&data" & identifier) , (pointer_expression "&length" & identifier) ))) ;) (if_statement "if (data == (char *)0x0) goto LAB_0003b71b;" if (parenthesized_expression "(data == (char *)0x0)" ( (binary_expression "data == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0003b71b;" goto statement_identifier ;)) (expression_statement "piVar1 = &(c->v).v2.locwindow;" (assignment_expression "piVar1 = &(c->v).v2.locwindow" identifier = (pointer_expression "&(c->v).v2.locwindow" & (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))) ;) (expression_statement "*piVar1 = *piVar1 - length;" (assignment_expression "*piVar1 = *piVar1 - length" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 - length" (pointer_expression "*piVar1" * identifier) - identifier)) ;) (expression_statement "piVar1 = &(c->v).v2.remlocwin;" (assignment_expression "piVar1 = &(c->v).v2.remlocwin" identifier = (pointer_expression "&(c->v).v2.remlocwin" & (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))) ;) (expression_statement "*piVar1 = *piVar1 - length;" (assignment_expression "*piVar1 = *piVar1 - length" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 - length" (pointer_expression "*piVar1" * identifier) - identifier)) ;) (expression_statement "is_stderr = (uint)(uVar4 == 1);" (assignment_expression "is_stderr = (uint)(uVar4 == 1)" identifier = (call_expression "(uint)(uVar4 == 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar4 == 1)" ( (binary_expression "uVar4 == 1" identifier == number_literal) )))) ;) (if_statement "if (1 < uVar4) {\n        length = 0;\n      }" if (parenthesized_expression "(1 < uVar4)" ( (binary_expression "1 < uVar4" number_literal < identifier) )) (compound_statement "{\n        length = 0;\n      }" { (expression_statement "length = 0;" (assignment_expression "length = 0" identifier = number_literal) ;) })) }) (else_clause "else {\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      is_stderr = 0;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n    }" else (compound_statement "{\n      ssh_pkt_getstring(pktin,&data,&length);\n      if (data == (char *)0x0) goto LAB_0003b71b;\n      piVar1 = &(c->v).v2.locwindow;\n      *piVar1 = *piVar1 - length;\n      is_stderr = 0;\n      piVar1 = &(c->v).v2.remlocwin;\n      *piVar1 = *piVar1 - length;\n    }" { (expression_statement "ssh_pkt_getstring(pktin,&data,&length);" (call_expression "ssh_pkt_getstring(pktin,&data,&length)" identifier (argument_list "(pktin,&data,&length)" ( identifier , (pointer_expression "&data" & identifier) , (pointer_expression "&length" & identifier) ))) ;) (if_statement "if (data == (char *)0x0) goto LAB_0003b71b;" if (parenthesized_expression "(data == (char *)0x0)" ( (binary_expression "data == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0003b71b;" goto statement_identifier ;)) (expression_statement "piVar1 = &(c->v).v2.locwindow;" (assignment_expression "piVar1 = &(c->v).v2.locwindow" identifier = (pointer_expression "&(c->v).v2.locwindow" & (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))) ;) (expression_statement "*piVar1 = *piVar1 - length;" (assignment_expression "*piVar1 = *piVar1 - length" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 - length" (pointer_expression "*piVar1" * identifier) - identifier)) ;) (expression_statement "is_stderr = 0;" (assignment_expression "is_stderr = 0" identifier = number_literal) ;) (expression_statement "piVar1 = &(c->v).v2.remlocwin;" (assignment_expression "piVar1 = &(c->v).v2.remlocwin" identifier = (pointer_expression "&(c->v).v2.remlocwin" & (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))) ;) (expression_statement "*piVar1 = *piVar1 - length;" (assignment_expression "*piVar1 = *piVar1 - length" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 - length" (pointer_expression "*piVar1" * identifier) - identifier)) ;) }))) (expression_statement "iVar2 = ssh_channel_data(c,is_stderr,data,length);" (assignment_expression "iVar2 = ssh_channel_data(c,is_stderr,data,length)" identifier = (call_expression "ssh_channel_data(c,is_stderr,data,length)" identifier (argument_list "(c,is_stderr,data,length)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar3 = (c->v).v2.locmaxwin;" (assignment_expression "iVar3 = (c->v).v2.locmaxwin" identifier = (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)) ;) (if_statement "if ((((c->v).v2.remlocwin < 1) && ((c->v).v2.throttle_state == ADDRTYPE_IPV6)) &&\n       (iVar3 < 0x40000000)) {\n      iVar3 = iVar3 + 0x4000;\n      (c->v).v2.locmaxwin = iVar3;\n    }" if (parenthesized_expression "((((c->v).v2.remlocwin < 1) && ((c->v).v2.throttle_state == ADDRTYPE_IPV6)) &&\n       (iVar3 < 0x40000000))" ( (binary_expression "(((c->v).v2.remlocwin < 1) && ((c->v).v2.throttle_state == ADDRTYPE_IPV6)) &&\n       (iVar3 < 0x40000000)" (parenthesized_expression "(((c->v).v2.remlocwin < 1) && ((c->v).v2.throttle_state == ADDRTYPE_IPV6))" ( (binary_expression "((c->v).v2.remlocwin < 1) && ((c->v).v2.throttle_state == ADDRTYPE_IPV6)" (parenthesized_expression "((c->v).v2.remlocwin < 1)" ( (binary_expression "(c->v).v2.remlocwin < 1" (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) < number_literal) )) && (parenthesized_expression "((c->v).v2.throttle_state == ADDRTYPE_IPV6)" ( (binary_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) ))) )) && (parenthesized_expression "(iVar3 < 0x40000000)" ( (binary_expression "iVar3 < 0x40000000" identifier < number_literal) ))) )) (compound_statement "{\n      iVar3 = iVar3 + 0x4000;\n      (c->v).v2.locmaxwin = iVar3;\n    }" { (expression_statement "iVar3 = iVar3 + 0x4000;" (assignment_expression "iVar3 = iVar3 + 0x4000" identifier = (binary_expression "iVar3 + 0x4000" identifier + number_literal)) ;) (expression_statement "(c->v).v2.locmaxwin = iVar3;" (assignment_expression "(c->v).v2.locmaxwin = iVar3" (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) ;) })) (if_statement "if (iVar2 < iVar3) {\n      ssh2_set_window(c,iVar3 - iVar2);\n      iVar3 = (c->v).v2.locmaxwin;\n    }" if (parenthesized_expression "(iVar2 < iVar3)" ( (binary_expression "iVar2 < iVar3" identifier < identifier) )) (compound_statement "{\n      ssh2_set_window(c,iVar3 - iVar2);\n      iVar3 = (c->v).v2.locmaxwin;\n    }" { (expression_statement "ssh2_set_window(c,iVar3 - iVar2);" (call_expression "ssh2_set_window(c,iVar3 - iVar2)" identifier (argument_list "(c,iVar3 - iVar2)" ( identifier , (binary_expression "iVar3 - iVar2" identifier - identifier) ))) ;) (expression_statement "iVar3 = (c->v).v2.locmaxwin;" (assignment_expression "iVar3 = (c->v).v2.locmaxwin" identifier = (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)) ;) })) (if_statement "if (((iVar3 < iVar2) || ((iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2)))) &&\n       (c->throttling_conn == 0)) {\n      c->throttling_conn = 1;\n      ssh_throttle_conn(ssh,1);\n    }" if (parenthesized_expression "(((iVar3 < iVar2) || ((iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2)))) &&\n       (c->throttling_conn == 0))" ( (binary_expression "((iVar3 < iVar2) || ((iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2)))) &&\n       (c->throttling_conn == 0)" (parenthesized_expression "((iVar3 < iVar2) || ((iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2))))" ( (binary_expression "(iVar3 < iVar2) || ((iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2)))" (parenthesized_expression "(iVar3 < iVar2)" ( (binary_expression "iVar3 < iVar2" identifier < identifier) )) || (parenthesized_expression "((iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2)))" ( (parenthesized_expression "(iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2))" ( (comma_expression "iVar3 = ssh_is_simple(ssh), iVar3 != 0 && (0 < iVar2)" (assignment_expression "iVar3 = ssh_is_simple(ssh)" identifier = (call_expression "ssh_is_simple(ssh)" identifier (argument_list "(ssh)" ( identifier )))) , (binary_expression "iVar3 != 0 && (0 < iVar2)" (binary_expression "iVar3 != 0" identifier != number_literal) && (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )))) )) ))) )) && (parenthesized_expression "(c->throttling_conn == 0)" ( (binary_expression "c->throttling_conn == 0" (field_expression "c->throttling_conn" identifier -> field_identifier) == number_literal) ))) )) (compound_statement "{\n      c->throttling_conn = 1;\n      ssh_throttle_conn(ssh,1);\n    }" { (expression_statement "c->throttling_conn = 1;" (assignment_expression "c->throttling_conn = 1" (field_expression "c->throttling_conn" identifier -> field_identifier) = number_literal) ;) (expression_statement "ssh_throttle_conn(ssh,1);" (call_expression "ssh_throttle_conn(ssh,1)" identifier (argument_list "(ssh,1)" ( identifier , number_literal ))) ;) })) })) (labeled_statement "LAB_0003b71b:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0003b6d0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00039170();\n  if (iVar2 != 0) {\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }\nLAB_0003b71b:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f2a0();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0003b6d0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00039170();\n  if (iVar2 != 0) {\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }\nLAB_0003b71b:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f2a0();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0003b6d0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00039170();\n  if (iVar2 != 0) {\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }\nLAB_0003b71b:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f2a0();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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 "iVar2 = FUN_00039170();" (assignment_expression "iVar2 = FUN_00039170()" identifier = (call_expression "FUN_00039170()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }" { (if_statement "if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }" if (parenthesized_expression "(*(int *)(param_2 + 8) == 0x5f)" ( (binary_expression "*(int *)(param_2 + 8) == 0x5f" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }" { (expression_statement "uVar5 = FUN_0002b030();" (assignment_expression "uVar5 = FUN_0002b030()" identifier = (call_expression "FUN_0002b030()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0002b920();" (call_expression "FUN_0002b920()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_28 == 0) goto LAB_0003b71b;" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003b71b;" goto statement_identifier ;)) (expression_statement "*(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;" (assignment_expression "*(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24" (pointer_expression "*(int *)(iVar2 + 0x34)" * (cast_expression "(int *)(iVar2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 0x34) - local_24" (pointer_expression "*(int *)(iVar2 + 0x34)" * (cast_expression "(int *)(iVar2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;" (assignment_expression "*(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 0x3c) - local_24" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (1 < uVar5) {\n        local_24 = 0;\n      }" if (parenthesized_expression "(1 < uVar5)" ( (binary_expression "1 < uVar5" number_literal < identifier) )) (compound_statement "{\n        local_24 = 0;\n      }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }" else (compound_statement "{\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }" { (expression_statement "FUN_0002b920();" (call_expression "FUN_0002b920()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_28 == 0) goto LAB_0003b71b;" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0003b71b;" goto statement_identifier ;)) (expression_statement "*(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;" (assignment_expression "*(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24" (pointer_expression "*(int *)(iVar2 + 0x34)" * (cast_expression "(int *)(iVar2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 0x34) - local_24" (pointer_expression "*(int *)(iVar2 + 0x34)" * (cast_expression "(int *)(iVar2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;" (assignment_expression "*(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 0x3c) - local_24" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) - identifier)) ;) }))) (expression_statement "iVar3 = FUN_0003b600(local_24);" (assignment_expression "iVar3 = FUN_0003b600(local_24)" identifier = (call_expression "FUN_0003b600(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0x38);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x38)" identifier = (pointer_expression "*(int *)(iVar2 + 0x38)" * (cast_expression "(int *)(iVar2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }" if (parenthesized_expression "(((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000))" ( (binary_expression "((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)" (parenthesized_expression "((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2))" ( (binary_expression "(*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)" (parenthesized_expression "(*(int *)(iVar2 + 0x3c) < 1)" ( (binary_expression "*(int *)(iVar2 + 0x3c) < 1" (pointer_expression "*(int *)(iVar2 + 0x3c)" * (cast_expression "(int *)(iVar2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x3c)" ( (binary_expression "iVar2 + 0x3c" identifier + number_literal) )))) < number_literal) )) && (parenthesized_expression "(*(int *)(iVar2 + 0x48) == 2)" ( (binary_expression "*(int *)(iVar2 + 0x48) == 2" (pointer_expression "*(int *)(iVar2 + 0x48)" * (cast_expression "(int *)(iVar2 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x48)" ( (binary_expression "iVar2 + 0x48" identifier + number_literal) )))) == number_literal) ))) )) && (parenthesized_expression "(iVar4 < 0x40000000)" ( (binary_expression "iVar4 < 0x40000000" identifier < number_literal) ))) )) (compound_statement "{\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }" { (expression_statement "iVar4 = iVar4 + 0x4000;" (assignment_expression "iVar4 = iVar4 + 0x4000" identifier = (binary_expression "iVar4 + 0x4000" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar2 + 0x38) = iVar4;" (assignment_expression "*(int *)(iVar2 + 0x38) = iVar4" (pointer_expression "*(int *)(iVar2 + 0x38)" * (cast_expression "(int *)(iVar2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) )))) = identifier) ;) })) (if_statement "if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }" if (parenthesized_expression "(iVar3 < iVar4)" ( (binary_expression "iVar3 < iVar4" identifier < identifier) )) (compound_statement "{\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }" { (expression_statement "FUN_00038610();" (call_expression "FUN_00038610()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + 0x38);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x38)" identifier = (pointer_expression "*(int *)(iVar2 + 0x38)" * (cast_expression "(int *)(iVar2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) ))))) ;) })) (if_statement "if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }" if (parenthesized_expression "(((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0))" ( (binary_expression "((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)" (parenthesized_expression "((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3))))" ( (binary_expression "(iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))" (parenthesized_expression "(iVar4 < iVar3)" ( (binary_expression "iVar4 < iVar3" identifier < identifier) )) || (parenthesized_expression "((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))" ( (parenthesized_expression "(iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3))" ( (comma_expression "iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)" (assignment_expression "iVar4 = FUN_0002b8d0()" identifier = (call_expression "FUN_0002b8d0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar4 != 0 && (0 < iVar3)" (binary_expression "iVar4 != 0" identifier != number_literal) && (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )))) )) ))) )) && (parenthesized_expression "(*(int *)(iVar2 + 0x1c) == 0)" ( (binary_expression "*(int *)(iVar2 + 0x1c) == 0" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }" { (expression_statement "*(undefined4 *)(iVar2 + 0x1c) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x1c) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 0x1c)" * (cast_expression "(undefined4 *)(iVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0002df80();" (call_expression "FUN_0002df80()" identifier (argument_list "()" ( ))) ;) })) })) (labeled_statement "LAB_0003b71b:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f2a0();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f2a0();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(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                    \n    FUN_0006f2a0();\n  }" { (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE 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 = (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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (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 = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) && (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) || (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (binary_expression LIT < IDENT) )))) )) ))) )) && (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) (labeled_statement statement_identifier : (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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_0003b6d0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00039170();\n  if (iVar2 != 0) {\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }\nLAB_0003b71b:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f2a0();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0003b6d0(undefined4 param_1,int param_2)" (identifier "FUN_0003b6d0") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  int local_28;\n  int local_24;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00039170();\n  if (iVar2 != 0) {\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }\nLAB_0003b71b:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f2a0();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (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 "iVar2 = FUN_00039170();" (assignment_expression "iVar2 = FUN_00039170()" (identifier "iVar2") (= "=") (call_expression "FUN_00039170()" (identifier "FUN_00039170") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }\n    iVar3 = FUN_0003b600(local_24);\n    iVar4 = *(int *)(iVar2 + 0x38);\n    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }\n    if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }\n    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }\n  }" ({ "{") (if_statement "if (*(int *)(param_2 + 8) == 0x5f) {\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }\n    else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 8) == 0x5f)" (( "(") (binary_expression "*(int *)(param_2 + 8) == 0x5f" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0x5f")) () ")")) (compound_statement "{\n      uVar5 = FUN_0002b030();\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n      if (1 < uVar5) {\n        local_24 = 0;\n      }\n    }" ({ "{") (expression_statement "uVar5 = FUN_0002b030();" (assignment_expression "uVar5 = FUN_0002b030()" (identifier "uVar5") (= "=") (call_expression "FUN_0002b030()" (identifier "FUN_0002b030") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_0002b920();" (call_expression "FUN_0002b920()" (identifier "FUN_0002b920") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_28 == 0) goto LAB_0003b71b;" (if "if") (parenthesized_expression "(local_28 == 0)" (( "(") (binary_expression "local_28 == 0" (identifier "local_28") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003b71b;" (goto "goto") (statement_identifier "LAB_0003b71b") (; ";"))) (expression_statement "*(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;" (assignment_expression "*(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24" (pointer_expression "*(int *)(iVar2 + 0x34)" (* "*") (cast_expression "(int *)(iVar2 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x34)" (( "(") (binary_expression "iVar2 + 0x34" (identifier "iVar2") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "*(int *)(iVar2 + 0x34) - local_24" (pointer_expression "*(int *)(iVar2 + 0x34)" (* "*") (cast_expression "(int *)(iVar2 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x34)" (( "(") (binary_expression "iVar2 + 0x34" (identifier "iVar2") (+ "+") (number_literal "0x34")) () ")")))) (- "-") (identifier "local_24"))) (; ";")) (expression_statement "*(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;" (assignment_expression "*(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24" (pointer_expression "*(int *)(iVar2 + 0x3c)" (* "*") (cast_expression "(int *)(iVar2 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x3c)" (( "(") (binary_expression "iVar2 + 0x3c" (identifier "iVar2") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (binary_expression "*(int *)(iVar2 + 0x3c) - local_24" (pointer_expression "*(int *)(iVar2 + 0x3c)" (* "*") (cast_expression "(int *)(iVar2 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x3c)" (( "(") (binary_expression "iVar2 + 0x3c" (identifier "iVar2") (+ "+") (number_literal "0x3c")) () ")")))) (- "-") (identifier "local_24"))) (; ";")) (if_statement "if (1 < uVar5) {\n        local_24 = 0;\n      }" (if "if") (parenthesized_expression "(1 < uVar5)" (( "(") (binary_expression "1 < uVar5" (number_literal "1") (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n        local_24 = 0;\n      }" ({ "{") (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }" (else "else") (compound_statement "{\n      FUN_0002b920();\n      if (local_28 == 0) goto LAB_0003b71b;\n      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;\n      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;\n    }" ({ "{") (expression_statement "FUN_0002b920();" (call_expression "FUN_0002b920()" (identifier "FUN_0002b920") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_28 == 0) goto LAB_0003b71b;" (if "if") (parenthesized_expression "(local_28 == 0)" (( "(") (binary_expression "local_28 == 0" (identifier "local_28") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003b71b;" (goto "goto") (statement_identifier "LAB_0003b71b") (; ";"))) (expression_statement "*(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;" (assignment_expression "*(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24" (pointer_expression "*(int *)(iVar2 + 0x34)" (* "*") (cast_expression "(int *)(iVar2 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x34)" (( "(") (binary_expression "iVar2 + 0x34" (identifier "iVar2") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "*(int *)(iVar2 + 0x34) - local_24" (pointer_expression "*(int *)(iVar2 + 0x34)" (* "*") (cast_expression "(int *)(iVar2 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x34)" (( "(") (binary_expression "iVar2 + 0x34" (identifier "iVar2") (+ "+") (number_literal "0x34")) () ")")))) (- "-") (identifier "local_24"))) (; ";")) (expression_statement "*(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;" (assignment_expression "*(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24" (pointer_expression "*(int *)(iVar2 + 0x3c)" (* "*") (cast_expression "(int *)(iVar2 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x3c)" (( "(") (binary_expression "iVar2 + 0x3c" (identifier "iVar2") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (binary_expression "*(int *)(iVar2 + 0x3c) - local_24" (pointer_expression "*(int *)(iVar2 + 0x3c)" (* "*") (cast_expression "(int *)(iVar2 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x3c)" (( "(") (binary_expression "iVar2 + 0x3c" (identifier "iVar2") (+ "+") (number_literal "0x3c")) () ")")))) (- "-") (identifier "local_24"))) (; ";")) (} "}")))) (expression_statement "iVar3 = FUN_0003b600(local_24);" (assignment_expression "iVar3 = FUN_0003b600(local_24)" (identifier "iVar3") (= "=") (call_expression "FUN_0003b600(local_24)" (identifier "FUN_0003b600") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")")))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar2 + 0x38);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x38)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar2 + 0x38)" (* "*") (cast_expression "(int *)(iVar2 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x38)" (( "(") (binary_expression "iVar2 + 0x38" (identifier "iVar2") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (if_statement "if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }" (if "if") (parenthesized_expression "(((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000))" (( "(") (binary_expression "((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)" (parenthesized_expression "((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2))" (( "(") (binary_expression "(*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)" (parenthesized_expression "(*(int *)(iVar2 + 0x3c) < 1)" (( "(") (binary_expression "*(int *)(iVar2 + 0x3c) < 1" (pointer_expression "*(int *)(iVar2 + 0x3c)" (* "*") (cast_expression "(int *)(iVar2 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x3c)" (( "(") (binary_expression "iVar2 + 0x3c" (identifier "iVar2") (+ "+") (number_literal "0x3c")) () ")")))) (< "<") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar2 + 0x48) == 2)" (( "(") (binary_expression "*(int *)(iVar2 + 0x48) == 2" (pointer_expression "*(int *)(iVar2 + 0x48)" (* "*") (cast_expression "(int *)(iVar2 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x48)" (( "(") (binary_expression "iVar2 + 0x48" (identifier "iVar2") (+ "+") (number_literal "0x48")) () ")")))) (== "==") (number_literal "2")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar4 < 0x40000000)" (( "(") (binary_expression "iVar4 < 0x40000000" (identifier "iVar4") (< "<") (number_literal "0x40000000")) () ")"))) () ")")) (compound_statement "{\n      iVar4 = iVar4 + 0x4000;\n      *(int *)(iVar2 + 0x38) = iVar4;\n    }" ({ "{") (expression_statement "iVar4 = iVar4 + 0x4000;" (assignment_expression "iVar4 = iVar4 + 0x4000" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 0x4000" (identifier "iVar4") (+ "+") (number_literal "0x4000"))) (; ";")) (expression_statement "*(int *)(iVar2 + 0x38) = iVar4;" (assignment_expression "*(int *)(iVar2 + 0x38) = iVar4" (pointer_expression "*(int *)(iVar2 + 0x38)" (* "*") (cast_expression "(int *)(iVar2 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x38)" (( "(") (binary_expression "iVar2 + 0x38" (identifier "iVar2") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (if_statement "if (iVar3 < iVar4) {\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }" (if "if") (parenthesized_expression "(iVar3 < iVar4)" (( "(") (binary_expression "iVar3 < iVar4" (identifier "iVar3") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n      FUN_00038610();\n      iVar4 = *(int *)(iVar2 + 0x38);\n    }" ({ "{") (expression_statement "FUN_00038610();" (call_expression "FUN_00038610()" (identifier "FUN_00038610") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar2 + 0x38);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x38)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar2 + 0x38)" (* "*") (cast_expression "(int *)(iVar2 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x38)" (( "(") (binary_expression "iVar2 + 0x38" (identifier "iVar2") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)) {\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }" (if "if") (parenthesized_expression "(((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0))" (( "(") (binary_expression "((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&\n       (*(int *)(iVar2 + 0x1c) == 0)" (parenthesized_expression "((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3))))" (( "(") (binary_expression "(iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))" (parenthesized_expression "(iVar4 < iVar3)" (( "(") (binary_expression "iVar4 < iVar3" (identifier "iVar4") (< "<") (identifier "iVar3")) () ")")) (|| "||") (parenthesized_expression "((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))" (( "(") (parenthesized_expression "(iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3))" (( "(") (comma_expression "iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)" (assignment_expression "iVar4 = FUN_0002b8d0()" (identifier "iVar4") (= "=") (call_expression "FUN_0002b8d0()" (identifier "FUN_0002b8d0") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar4 != 0 && (0 < iVar3)" (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")))) () ")")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar2 + 0x1c) == 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0x1c) == 0" (pointer_expression "*(int *)(iVar2 + 0x1c)" (* "*") (cast_expression "(int *)(iVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      *(undefined4 *)(iVar2 + 0x1c) = 1;\n      FUN_0002df80();\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar2 + 0x1c) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x1c) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_0002df80();" (call_expression "FUN_0002df80()" (identifier "FUN_0002df80") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_0003b71b:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f2a0();\n  }" (statement_identifier "LAB_0003b71b") (: ":") (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f2a0();\n  }" (if "if") (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (!= "!=") (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                    \n    FUN_0006f2a0();\n  }" ({ "{") (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" (identifier "FUN_0006f2a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 ssh,type_2 *pktin)

{
  int *piVar1;
  type_3 *var_3;
  int var_12;
  int var_11;
  type_4 var_8;
  type_5 is_stderr;
  int var_1;
  char *var_6;
  int var_7;
  int var_16;
  
  var_16 = *(int *)(var_1 + 0x14);
  var_3 = var_2(ssh,pktin);
  if (var_3 != (type_3 *)0x0) {
    if (pktin->type == 0x5f) {
      var_8 = var_4(pktin);
      var_5(pktin,&var_6,&var_7);
      if (var_6 == (char *)0x0) goto LAB_0003b71b;
      piVar1 = &(var_3->v).v2.locwindow;
      *piVar1 = *piVar1 - var_7;
      piVar1 = &(var_3->v).v2.remlocwin;
      *piVar1 = *piVar1 - var_7;
      is_stderr = (type_5)(var_8 == 1);
      if (1 < var_8) {
        var_7 = 0;
      }
    }
    else {
      var_5(pktin,&var_6,&var_7);
      if (var_6 == (char *)0x0) goto LAB_0003b71b;
      piVar1 = &(var_3->v).v2.locwindow;
      *piVar1 = *piVar1 - var_7;
      is_stderr = 0;
      piVar1 = &(var_3->v).v2.remlocwin;
      *piVar1 = *piVar1 - var_7;
    }
    var_12 = var_9(var_3,is_stderr,var_6,var_7);
    var_11 = (var_3->v).v2.locmaxwin;
    if ((((var_3->v).v2.remlocwin < 1) && ((var_3->v).v2.throttle_state == var_10)) &&
       (var_11 < 0x40000000)) {
      var_11 = var_11 + 0x4000;
      (var_3->v).v2.locmaxwin = var_11;
    }
    if (var_12 < var_11) {
      var_13(var_3,var_11 - var_12);
      var_11 = (var_3->v).v2.locmaxwin;
    }
    if (((var_11 < var_12) || ((var_11 = var_14(ssh), var_11 != 0 && (0 < var_12)))) &&
       (var_3->throttling_conn == 0)) {
      var_3->throttling_conn = 1;
      var_15(ssh,1);
    }
  }
LAB_0003b71b:
  if (var_16 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_17();
  }
  return;
}


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

void MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  int in_GS_OFFSET;
  int local_28;
  int local_24;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_00039170();
  if (iVar2 != 0) {
    if (*(int *)(param_2 + 8) == 0x5f) {
      uVar5 = FUN_0002b030();
      FUN_0002b920();
      if (local_28 == 0) goto LAB_0003b71b;
      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;
      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;
      if (1 < uVar5) {
        local_24 = 0;
      }
    }
    else {
      FUN_0002b920();
      if (local_28 == 0) goto LAB_0003b71b;
      *(int *)(iVar2 + 0x34) = *(int *)(iVar2 + 0x34) - local_24;
      *(int *)(iVar2 + 0x3c) = *(int *)(iVar2 + 0x3c) - local_24;
    }
    iVar3 = FUN_0003b600(local_24);
    iVar4 = *(int *)(iVar2 + 0x38);
    if (((*(int *)(iVar2 + 0x3c) < 1) && (*(int *)(iVar2 + 0x48) == 2)) && (iVar4 < 0x40000000)) {
      iVar4 = iVar4 + 0x4000;
      *(int *)(iVar2 + 0x38) = iVar4;
    }
    if (iVar3 < iVar4) {
      FUN_00038610();
      iVar4 = *(int *)(iVar2 + 0x38);
    }
    if (((iVar4 < iVar3) || ((iVar4 = FUN_0002b8d0(), iVar4 != 0 && (0 < iVar3)))) &&
       (*(int *)(iVar2 + 0x1c) == 0)) {
      *(undefined4 *)(iVar2 + 0x1c) = 1;
      FUN_0002df80();
    }
  }
LAB_0003b71b:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0006f2a0();
  }
  return;
}

