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

void ssh2_pkt_send_noqueue(Ssh_conflict ssh,Packet *pkt)

{
  int iVar1;
  ulong uVar2;
  uint uVar3;
  
  if ((ssh->cscipher == (ssh2_cipher *)0x0) || ((ssh->cscipher->flags & 1) == 0)) {
    iVar1 = ssh2_pkt_construct(ssh,pkt);
    iVar1 = s_write(ssh,pkt->body,iVar1);
    if (iVar1 < 0x8001) {
      uVar2 = ssh->outgoing_data_size;
    }
    else {
      ssh_throttle_all(ssh,1,iVar1);
      uVar2 = ssh->outgoing_data_size;
    }
    uVar3 = uVar2 + pkt->encrypted_len;
    ssh->outgoing_data_size = uVar3;
    if ((((ssh->kex_in_progress == 0) && (ssh->bare_connection == 0)) && (ssh->max_data_size != 0))
       && (ssh->max_data_size < uVar3)) {
      do_ssh2_transport(ssh,PTR_PC2_1357_27__000b8348 + -0x59e4,-1,(Packet *)0x0);
    }
    ssh_free_packet(pkt);
  }
  else {
    ssh2_pkt_defer_noqueue(ssh,pkt,0);
    ssh_pkt_defersend(ssh);
  }
  return;
}



void FUN_000417e8(int param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  uint uVar3;
  
  if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {
    uVar1 = FUN_000332a8(param_1,param_2);
    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);
    if (iVar2 < 0x8001) {
      iVar2 = *(int *)(param_1 + 0x688);
    }
    else {
      FUN_00044b34(param_1,1,iVar2);
      iVar2 = *(int *)(param_1 + 0x688);
    }
    uVar3 = iVar2 + *(int *)(param_2 + 0x20);
    *(uint *)(param_1 + 0x688) = uVar3;
    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&
        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {
      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);
    }
    FUN_00030d54(param_2);
  }
  else {
    FUN_00033c40(param_1,param_2,0);
    FUN_000416c4(param_1);
  }
  return;
}


lui gp,0x8
addiu gp,gp,-0x1558
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s0,a0,zero
lw v0,0x60(a0)
beq v0,zero,0x00041828
_or s1,a1,zero
lw v0,0x30(v0)
andi v0,v0,0x1
bne v0,zero,0x000418dc
_or a2,zero,zero
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7da8(gp)
addiu t9,t9,0x32a8
bal 0x000332a8
_nop
lw gp,0x10(sp)
or a2,v0,zero
lw a1,0x14(s1)
or a0,s0,zero
lw t9,-0x7da8(gp)
addiu t9,t9,0x2548
bal 0x00032548
_nop
lw gp,0x10(sp)
ori v1,zero,0x8001
slt v1,v0,v1
beq v1,zero,0x00041910
_or a2,v0,zero
lw v0,0x688(s0)
lw v1,0x20(s1)
addu v0,v0,v1
sw v0,0x688(s0)
lw v1,0x694(s0)
bne v1,zero,0x000418b4
_or a0,s1,zero
lw v1,0xec(s0)
bne v1,zero,0x000418b8
_lw t9,-0x7da8(gp)
lw v1,0x690(s0)
beq v1,zero,0x000418bc
_addiu t9,t9,0xd54
sltu v0,v1,v0
bne v0,zero,0x00041934
_or a3,zero,zero
lw t9,-0x7da8(gp)
addiu t9,t9,0xd54
bal 0x00030d54
_nop
lw gp,0x10(sp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7da8(gp)
addiu t9,t9,0x3c40
bal 0x00033c40
_nop
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x7c4c(gp)
addiu t9,t9,0x16c4
bal 0x000416c4
_nop
lw gp,0x10(sp)
b 0x000418cc
_lw ra,0x24(sp)
li a1,0x1
or a0,s0,zero
lw t9,-0x7c4c(gp)
addiu t9,t9,0x4b34
bal 0x00044b34
_nop
lw gp,0x10(sp)
b 0x00041878
_lw v0,0x688(s0)
li a2,-0x1
lw a1,-0x7f48(gp)
addiu a1,a1,-0x59e4
or a0,s0,zero
lw t9,-0x7c4c(gp)
addiu t9,t9,-0x27c0
bal 0x0003d840
_nop
lw gp,0x10(sp)
b 0x000418b4
_or a0,s1,zero
(translation_unit "void FUN_000417e8(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }\n  else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000417e8(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }\n  else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000417e8(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }\n  else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }\n  else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0))" ( (binary_expression "(*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x60) == 0)" ( (binary_expression "*(int *)(param_1 + 0x60) == 0" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)" ( (binary_expression "(*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0" (parenthesized_expression "(*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1)" ( (binary_expression "*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1" (pointer_expression "*(uint *)(*(int *)(param_1 + 0x60) + 0x30)" * (cast_expression "(uint *)(*(int *)(param_1 + 0x60) + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x30)" ( (binary_expression "*(int *)(param_1 + 0x60) + 0x30" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }" { (expression_statement "uVar1 = FUN_000332a8(param_1,param_2);" (assignment_expression "uVar1 = FUN_000332a8(param_1,param_2)" identifier = (call_expression "FUN_000332a8(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);" (assignment_expression "iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1)" identifier = (call_expression "FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1)" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0x14),uVar1)" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }" if (parenthesized_expression "(iVar2 < 0x8001)" ( (binary_expression "iVar2 < 0x8001" identifier < number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x688);\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x688);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x688)" identifier = (pointer_expression "*(int *)(param_1 + 0x688)" * (cast_expression "(int *)(param_1 + 0x688)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x688)" ( (binary_expression "param_1 + 0x688" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }" else (compound_statement "{\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }" { (expression_statement "FUN_00044b34(param_1,1,iVar2);" (call_expression "FUN_00044b34(param_1,1,iVar2)" identifier (argument_list "(param_1,1,iVar2)" ( identifier , number_literal , identifier ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x688);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x688)" identifier = (pointer_expression "*(int *)(param_1 + 0x688)" * (cast_expression "(int *)(param_1 + 0x688)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x688)" ( (binary_expression "param_1 + 0x688" identifier + number_literal) ))))) ;) }))) (expression_statement "uVar3 = iVar2 + *(int *)(param_2 + 0x20);" (assignment_expression "uVar3 = iVar2 + *(int *)(param_2 + 0x20)" identifier = (binary_expression "iVar2 + *(int *)(param_2 + 0x20)" identifier + (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))))) ;) (expression_statement "*(uint *)(param_1 + 0x688) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x688) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x688)" * (cast_expression "(uint *)(param_1 + 0x688)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x688)" ( (binary_expression "param_1 + 0x688" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }" if (parenthesized_expression "((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3))" ( (binary_expression "(((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)" (parenthesized_expression "(((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0))" ( (binary_expression "((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)" (parenthesized_expression "((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0))" ( (binary_expression "(*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x694) == 0)" ( (binary_expression "*(int *)(param_1 + 0x694) == 0" (pointer_expression "*(int *)(param_1 + 0x694)" * (cast_expression "(int *)(param_1 + 0x694)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x694)" ( (binary_expression "param_1 + 0x694" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0xec) == 0)" ( (binary_expression "*(int *)(param_1 + 0xec) == 0" (pointer_expression "*(int *)(param_1 + 0xec)" * (cast_expression "(int *)(param_1 + 0xec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec)" ( (binary_expression "param_1 + 0xec" identifier + number_literal) )))) == number_literal) ))) )) && (parenthesized_expression "(*(uint *)(param_1 + 0x690) != 0)" ( (binary_expression "*(uint *)(param_1 + 0x690) != 0" (pointer_expression "*(uint *)(param_1 + 0x690)" * (cast_expression "(uint *)(param_1 + 0x690)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x690)" ( (binary_expression "param_1 + 0x690" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "(*(uint *)(param_1 + 0x690) < uVar3)" ( (binary_expression "*(uint *)(param_1 + 0x690) < uVar3" (pointer_expression "*(uint *)(param_1 + 0x690)" * (cast_expression "(uint *)(param_1 + 0x690)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x690)" ( (binary_expression "param_1 + 0x690" identifier + number_literal) )))) < identifier) ))) )) (compound_statement "{\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }" { (expression_statement "FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);" (call_expression "FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0)" identifier (argument_list "(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0)" ( identifier , (binary_expression "PTR_DAT_000b8348 + -0x59e4" identifier + number_literal) , number_literal , number_literal ))) ;) })) (expression_statement "FUN_00030d54(param_2);" (call_expression "FUN_00030d54(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) }) (else_clause "else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }" else (compound_statement "{\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }" { (expression_statement "FUN_00033c40(param_1,param_2,0);" (call_expression "FUN_00033c40(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_000416c4(param_1);" (call_expression "FUN_000416c4(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh2_pkt_send_noqueue(Ssh_conflict ssh,Packet *pkt)\n\n{\n  int iVar1;\n  ulong uVar2;\n  uint uVar3;\n  \n  if ((ssh->cscipher == (ssh2_cipher *)0x0) || ((ssh->cscipher->flags & 1) == 0)) {\n    iVar1 = ssh2_pkt_construct(ssh,pkt);\n    iVar1 = s_write(ssh,pkt->body,iVar1);\n    if (iVar1 < 0x8001) {\n      uVar2 = ssh->outgoing_data_size;\n    }\n    else {\n      ssh_throttle_all(ssh,1,iVar1);\n      uVar2 = ssh->outgoing_data_size;\n    }\n    uVar3 = uVar2 + pkt->encrypted_len;\n    ssh->outgoing_data_size = uVar3;\n    if ((((ssh->kex_in_progress == 0) && (ssh->bare_connection == 0)) && (ssh->max_data_size != 0))\n       && (ssh->max_data_size < uVar3)) {\n      do_ssh2_transport(ssh,PTR_PC2_1357_27__000b8348 + -0x59e4,-1,(Packet *)0x0);\n    }\n    ssh_free_packet(pkt);\n  }\n  else {\n    ssh2_pkt_defer_noqueue(ssh,pkt,0);\n    ssh_pkt_defersend(ssh);\n  }\n  return;\n}\n\n" comment (function_definition "void ssh2_pkt_send_noqueue(Ssh_conflict ssh,Packet *pkt)\n\n{\n  int iVar1;\n  ulong uVar2;\n  uint uVar3;\n  \n  if ((ssh->cscipher == (ssh2_cipher *)0x0) || ((ssh->cscipher->flags & 1) == 0)) {\n    iVar1 = ssh2_pkt_construct(ssh,pkt);\n    iVar1 = s_write(ssh,pkt->body,iVar1);\n    if (iVar1 < 0x8001) {\n      uVar2 = ssh->outgoing_data_size;\n    }\n    else {\n      ssh_throttle_all(ssh,1,iVar1);\n      uVar2 = ssh->outgoing_data_size;\n    }\n    uVar3 = uVar2 + pkt->encrypted_len;\n    ssh->outgoing_data_size = uVar3;\n    if ((((ssh->kex_in_progress == 0) && (ssh->bare_connection == 0)) && (ssh->max_data_size != 0))\n       && (ssh->max_data_size < uVar3)) {\n      do_ssh2_transport(ssh,PTR_PC2_1357_27__000b8348 + -0x59e4,-1,(Packet *)0x0);\n    }\n    ssh_free_packet(pkt);\n  }\n  else {\n    ssh2_pkt_defer_noqueue(ssh,pkt,0);\n    ssh_pkt_defersend(ssh);\n  }\n  return;\n}" primitive_type (function_declarator "ssh2_pkt_send_noqueue(Ssh_conflict ssh,Packet *pkt)" identifier (parameter_list "(Ssh_conflict ssh,Packet *pkt)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "Packet *pkt" type_identifier (pointer_declarator "*pkt" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  uint uVar3;\n  \n  if ((ssh->cscipher == (ssh2_cipher *)0x0) || ((ssh->cscipher->flags & 1) == 0)) {\n    iVar1 = ssh2_pkt_construct(ssh,pkt);\n    iVar1 = s_write(ssh,pkt->body,iVar1);\n    if (iVar1 < 0x8001) {\n      uVar2 = ssh->outgoing_data_size;\n    }\n    else {\n      ssh_throttle_all(ssh,1,iVar1);\n      uVar2 = ssh->outgoing_data_size;\n    }\n    uVar3 = uVar2 + pkt->encrypted_len;\n    ssh->outgoing_data_size = uVar3;\n    if ((((ssh->kex_in_progress == 0) && (ssh->bare_connection == 0)) && (ssh->max_data_size != 0))\n       && (ssh->max_data_size < uVar3)) {\n      do_ssh2_transport(ssh,PTR_PC2_1357_27__000b8348 + -0x59e4,-1,(Packet *)0x0);\n    }\n    ssh_free_packet(pkt);\n  }\n  else {\n    ssh2_pkt_defer_noqueue(ssh,pkt,0);\n    ssh_pkt_defersend(ssh);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if ((ssh->cscipher == (ssh2_cipher *)0x0) || ((ssh->cscipher->flags & 1) == 0)) {\n    iVar1 = ssh2_pkt_construct(ssh,pkt);\n    iVar1 = s_write(ssh,pkt->body,iVar1);\n    if (iVar1 < 0x8001) {\n      uVar2 = ssh->outgoing_data_size;\n    }\n    else {\n      ssh_throttle_all(ssh,1,iVar1);\n      uVar2 = ssh->outgoing_data_size;\n    }\n    uVar3 = uVar2 + pkt->encrypted_len;\n    ssh->outgoing_data_size = uVar3;\n    if ((((ssh->kex_in_progress == 0) && (ssh->bare_connection == 0)) && (ssh->max_data_size != 0))\n       && (ssh->max_data_size < uVar3)) {\n      do_ssh2_transport(ssh,PTR_PC2_1357_27__000b8348 + -0x59e4,-1,(Packet *)0x0);\n    }\n    ssh_free_packet(pkt);\n  }\n  else {\n    ssh2_pkt_defer_noqueue(ssh,pkt,0);\n    ssh_pkt_defersend(ssh);\n  }" if (parenthesized_expression "((ssh->cscipher == (ssh2_cipher *)0x0) || ((ssh->cscipher->flags & 1) == 0))" ( (binary_expression "(ssh->cscipher == (ssh2_cipher *)0x0) || ((ssh->cscipher->flags & 1) == 0)" (parenthesized_expression "(ssh->cscipher == (ssh2_cipher *)0x0)" ( (binary_expression "ssh->cscipher == (ssh2_cipher *)0x0" (field_expression "ssh->cscipher" identifier -> field_identifier) == (cast_expression "(ssh2_cipher *)0x0" ( (type_descriptor "ssh2_cipher *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "((ssh->cscipher->flags & 1) == 0)" ( (binary_expression "(ssh->cscipher->flags & 1) == 0" (parenthesized_expression "(ssh->cscipher->flags & 1)" ( (binary_expression "ssh->cscipher->flags & 1" (field_expression "ssh->cscipher->flags" (field_expression "ssh->cscipher" identifier -> field_identifier) -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    iVar1 = ssh2_pkt_construct(ssh,pkt);\n    iVar1 = s_write(ssh,pkt->body,iVar1);\n    if (iVar1 < 0x8001) {\n      uVar2 = ssh->outgoing_data_size;\n    }\n    else {\n      ssh_throttle_all(ssh,1,iVar1);\n      uVar2 = ssh->outgoing_data_size;\n    }\n    uVar3 = uVar2 + pkt->encrypted_len;\n    ssh->outgoing_data_size = uVar3;\n    if ((((ssh->kex_in_progress == 0) && (ssh->bare_connection == 0)) && (ssh->max_data_size != 0))\n       && (ssh->max_data_size < uVar3)) {\n      do_ssh2_transport(ssh,PTR_PC2_1357_27__000b8348 + -0x59e4,-1,(Packet *)0x0);\n    }\n    ssh_free_packet(pkt);\n  }" { (expression_statement "iVar1 = ssh2_pkt_construct(ssh,pkt);" (assignment_expression "iVar1 = ssh2_pkt_construct(ssh,pkt)" identifier = (call_expression "ssh2_pkt_construct(ssh,pkt)" identifier (argument_list "(ssh,pkt)" ( identifier , identifier )))) ;) (expression_statement "iVar1 = s_write(ssh,pkt->body,iVar1);" (assignment_expression "iVar1 = s_write(ssh,pkt->body,iVar1)" identifier = (call_expression "s_write(ssh,pkt->body,iVar1)" identifier (argument_list "(ssh,pkt->body,iVar1)" ( identifier , (field_expression "pkt->body" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar1 < 0x8001) {\n      uVar2 = ssh->outgoing_data_size;\n    }\n    else {\n      ssh_throttle_all(ssh,1,iVar1);\n      uVar2 = ssh->outgoing_data_size;\n    }" if (parenthesized_expression "(iVar1 < 0x8001)" ( (binary_expression "iVar1 < 0x8001" identifier < number_literal) )) (compound_statement "{\n      uVar2 = ssh->outgoing_data_size;\n    }" { (expression_statement "uVar2 = ssh->outgoing_data_size;" (assignment_expression "uVar2 = ssh->outgoing_data_size" identifier = (field_expression "ssh->outgoing_data_size" identifier -> field_identifier)) ;) }) (else_clause "else {\n      ssh_throttle_all(ssh,1,iVar1);\n      uVar2 = ssh->outgoing_data_size;\n    }" else (compound_statement "{\n      ssh_throttle_all(ssh,1,iVar1);\n      uVar2 = ssh->outgoing_data_size;\n    }" { (expression_statement "ssh_throttle_all(ssh,1,iVar1);" (call_expression "ssh_throttle_all(ssh,1,iVar1)" identifier (argument_list "(ssh,1,iVar1)" ( identifier , number_literal , identifier ))) ;) (expression_statement "uVar2 = ssh->outgoing_data_size;" (assignment_expression "uVar2 = ssh->outgoing_data_size" identifier = (field_expression "ssh->outgoing_data_size" identifier -> field_identifier)) ;) }))) (expression_statement "uVar3 = uVar2 + pkt->encrypted_len;" (assignment_expression "uVar3 = uVar2 + pkt->encrypted_len" identifier = (binary_expression "uVar2 + pkt->encrypted_len" identifier + (field_expression "pkt->encrypted_len" identifier -> field_identifier))) ;) (expression_statement "ssh->outgoing_data_size = uVar3;" (assignment_expression "ssh->outgoing_data_size = uVar3" (field_expression "ssh->outgoing_data_size" identifier -> field_identifier) = identifier) ;) (if_statement "if ((((ssh->kex_in_progress == 0) && (ssh->bare_connection == 0)) && (ssh->max_data_size != 0))\n       && (ssh->max_data_size < uVar3)) {\n      do_ssh2_transport(ssh,PTR_PC2_1357_27__000b8348 + -0x59e4,-1,(Packet *)0x0);\n    }" if (parenthesized_expression "((((ssh->kex_in_progress == 0) && (ssh->bare_connection == 0)) && (ssh->max_data_size != 0))\n       && (ssh->max_data_size < uVar3))" ( (binary_expression "(((ssh->kex_in_progress == 0) && (ssh->bare_connection == 0)) && (ssh->max_data_size != 0))\n       && (ssh->max_data_size < uVar3)" (parenthesized_expression "(((ssh->kex_in_progress == 0) && (ssh->bare_connection == 0)) && (ssh->max_data_size != 0))" ( (binary_expression "((ssh->kex_in_progress == 0) && (ssh->bare_connection == 0)) && (ssh->max_data_size != 0)" (parenthesized_expression "((ssh->kex_in_progress == 0) && (ssh->bare_connection == 0))" ( (binary_expression "(ssh->kex_in_progress == 0) && (ssh->bare_connection == 0)" (parenthesized_expression "(ssh->kex_in_progress == 0)" ( (binary_expression "ssh->kex_in_progress == 0" (field_expression "ssh->kex_in_progress" identifier -> field_identifier) == number_literal) )) && (parenthesized_expression "(ssh->bare_connection == 0)" ( (binary_expression "ssh->bare_connection == 0" (field_expression "ssh->bare_connection" identifier -> field_identifier) == number_literal) ))) )) && (parenthesized_expression "(ssh->max_data_size != 0)" ( (binary_expression "ssh->max_data_size != 0" (field_expression "ssh->max_data_size" identifier -> field_identifier) != number_literal) ))) )) && (parenthesized_expression "(ssh->max_data_size < uVar3)" ( (binary_expression "ssh->max_data_size < uVar3" (field_expression "ssh->max_data_size" identifier -> field_identifier) < identifier) ))) )) (compound_statement "{\n      do_ssh2_transport(ssh,PTR_PC2_1357_27__000b8348 + -0x59e4,-1,(Packet *)0x0);\n    }" { (expression_statement "do_ssh2_transport(ssh,PTR_PC2_1357_27__000b8348 + -0x59e4,-1,(Packet *)0x0);" (call_expression "do_ssh2_transport(ssh,PTR_PC2_1357_27__000b8348 + -0x59e4,-1,(Packet *)0x0)" identifier (argument_list "(ssh,PTR_PC2_1357_27__000b8348 + -0x59e4,-1,(Packet *)0x0)" ( identifier , (binary_expression "PTR_PC2_1357_27__000b8348 + -0x59e4" identifier + number_literal) , number_literal , (cast_expression "(Packet *)0x0" ( (type_descriptor "Packet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (expression_statement "ssh_free_packet(pkt);" (call_expression "ssh_free_packet(pkt)" identifier (argument_list "(pkt)" ( identifier ))) ;) }) (else_clause "else {\n    ssh2_pkt_defer_noqueue(ssh,pkt,0);\n    ssh_pkt_defersend(ssh);\n  }" else (compound_statement "{\n    ssh2_pkt_defer_noqueue(ssh,pkt,0);\n    ssh_pkt_defersend(ssh);\n  }" { (expression_statement "ssh2_pkt_defer_noqueue(ssh,pkt,0);" (call_expression "ssh2_pkt_defer_noqueue(ssh,pkt,0)" identifier (argument_list "(ssh,pkt,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "ssh_pkt_defersend(ssh);" (call_expression "ssh_pkt_defersend(ssh)" identifier (argument_list "(ssh)" ( identifier ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000417e8(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }\n  else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000417e8(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }\n  else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000417e8(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }\n  else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }\n  else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0))" ( (binary_expression "(*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x60) == 0)" ( (binary_expression "*(int *)(param_1 + 0x60) == 0" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)" ( (binary_expression "(*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0" (parenthesized_expression "(*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1)" ( (binary_expression "*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1" (pointer_expression "*(uint *)(*(int *)(param_1 + 0x60) + 0x30)" * (cast_expression "(uint *)(*(int *)(param_1 + 0x60) + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x30)" ( (binary_expression "*(int *)(param_1 + 0x60) + 0x30" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }" { (expression_statement "uVar1 = FUN_000332a8(param_1,param_2);" (assignment_expression "uVar1 = FUN_000332a8(param_1,param_2)" identifier = (call_expression "FUN_000332a8(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);" (assignment_expression "iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1)" identifier = (call_expression "FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1)" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0x14),uVar1)" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }" if (parenthesized_expression "(iVar2 < 0x8001)" ( (binary_expression "iVar2 < 0x8001" identifier < number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x688);\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x688);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x688)" identifier = (pointer_expression "*(int *)(param_1 + 0x688)" * (cast_expression "(int *)(param_1 + 0x688)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x688)" ( (binary_expression "param_1 + 0x688" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }" else (compound_statement "{\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }" { (expression_statement "FUN_00044b34(param_1,1,iVar2);" (call_expression "FUN_00044b34(param_1,1,iVar2)" identifier (argument_list "(param_1,1,iVar2)" ( identifier , number_literal , identifier ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x688);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x688)" identifier = (pointer_expression "*(int *)(param_1 + 0x688)" * (cast_expression "(int *)(param_1 + 0x688)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x688)" ( (binary_expression "param_1 + 0x688" identifier + number_literal) ))))) ;) }))) (expression_statement "uVar3 = iVar2 + *(int *)(param_2 + 0x20);" (assignment_expression "uVar3 = iVar2 + *(int *)(param_2 + 0x20)" identifier = (binary_expression "iVar2 + *(int *)(param_2 + 0x20)" identifier + (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))))) ;) (expression_statement "*(uint *)(param_1 + 0x688) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x688) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x688)" * (cast_expression "(uint *)(param_1 + 0x688)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x688)" ( (binary_expression "param_1 + 0x688" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }" if (parenthesized_expression "((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3))" ( (binary_expression "(((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)" (parenthesized_expression "(((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0))" ( (binary_expression "((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)" (parenthesized_expression "((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0))" ( (binary_expression "(*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x694) == 0)" ( (binary_expression "*(int *)(param_1 + 0x694) == 0" (pointer_expression "*(int *)(param_1 + 0x694)" * (cast_expression "(int *)(param_1 + 0x694)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x694)" ( (binary_expression "param_1 + 0x694" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0xec) == 0)" ( (binary_expression "*(int *)(param_1 + 0xec) == 0" (pointer_expression "*(int *)(param_1 + 0xec)" * (cast_expression "(int *)(param_1 + 0xec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xec)" ( (binary_expression "param_1 + 0xec" identifier + number_literal) )))) == number_literal) ))) )) && (parenthesized_expression "(*(uint *)(param_1 + 0x690) != 0)" ( (binary_expression "*(uint *)(param_1 + 0x690) != 0" (pointer_expression "*(uint *)(param_1 + 0x690)" * (cast_expression "(uint *)(param_1 + 0x690)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x690)" ( (binary_expression "param_1 + 0x690" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "(*(uint *)(param_1 + 0x690) < uVar3)" ( (binary_expression "*(uint *)(param_1 + 0x690) < uVar3" (pointer_expression "*(uint *)(param_1 + 0x690)" * (cast_expression "(uint *)(param_1 + 0x690)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x690)" ( (binary_expression "param_1 + 0x690" identifier + number_literal) )))) < identifier) ))) )) (compound_statement "{\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }" { (expression_statement "FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);" (call_expression "FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0)" identifier (argument_list "(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0)" ( identifier , (binary_expression "PTR_DAT_000b8348 + -0x59e4" identifier + number_literal) , number_literal , number_literal ))) ;) })) (expression_statement "FUN_00030d54(param_2);" (call_expression "FUN_00030d54(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) }) (else_clause "else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }" else (compound_statement "{\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }" { (expression_statement "FUN_00033c40(param_1,param_2,0);" (call_expression "FUN_00033c40(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_000416c4(param_1);" (call_expression "FUN_000416c4(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (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 < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , 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 = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (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 (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) )))) < IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , LIT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_000417e8(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }\n  else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000417e8(int param_1,int param_2)" (identifier "FUN_000417e8") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  \n  if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }\n  else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (if_statement "if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }\n  else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0))" (( "(") (binary_expression "(*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x60) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) == 0" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)" (( "(") (binary_expression "(*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0" (parenthesized_expression "(*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1)" (( "(") (binary_expression "*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1" (pointer_expression "*(uint *)(*(int *)(param_1 + 0x60) + 0x30)" (* "*") (cast_expression "(uint *)(*(int *)(param_1 + 0x60) + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + 0x30)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + 0x30" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (number_literal "0x30")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar1 = FUN_000332a8(param_1,param_2);\n    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);\n    if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    uVar3 = iVar2 + *(int *)(param_2 + 0x20);\n    *(uint *)(param_1 + 0x688) = uVar3;\n    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }\n    FUN_00030d54(param_2);\n  }" ({ "{") (expression_statement "uVar1 = FUN_000332a8(param_1,param_2);" (assignment_expression "uVar1 = FUN_000332a8(param_1,param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_000332a8(param_1,param_2)" (identifier "FUN_000332a8") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);" (assignment_expression "iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1)" (identifier "FUN_00032548") (argument_list "(param_1,*(undefined4 *)(param_2 + 0x14),uVar1)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (identifier "uVar1") () ")")))) (; ";")) (if_statement "if (iVar2 < 0x8001) {\n      iVar2 = *(int *)(param_1 + 0x688);\n    }\n    else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }" (if "if") (parenthesized_expression "(iVar2 < 0x8001)" (( "(") (binary_expression "iVar2 < 0x8001" (identifier "iVar2") (< "<") (number_literal "0x8001")) () ")")) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x688);\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x688);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x688)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x688)" (* "*") (cast_expression "(int *)(param_1 + 0x688)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x688)" (( "(") (binary_expression "param_1 + 0x688" (identifier "param_1") (+ "+") (number_literal "0x688")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }" (else "else") (compound_statement "{\n      FUN_00044b34(param_1,1,iVar2);\n      iVar2 = *(int *)(param_1 + 0x688);\n    }" ({ "{") (expression_statement "FUN_00044b34(param_1,1,iVar2);" (call_expression "FUN_00044b34(param_1,1,iVar2)" (identifier "FUN_00044b34") (argument_list "(param_1,1,iVar2)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x688);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x688)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x688)" (* "*") (cast_expression "(int *)(param_1 + 0x688)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x688)" (( "(") (binary_expression "param_1 + 0x688" (identifier "param_1") (+ "+") (number_literal "0x688")) () ")"))))) (; ";")) (} "}")))) (expression_statement "uVar3 = iVar2 + *(int *)(param_2 + 0x20);" (assignment_expression "uVar3 = iVar2 + *(int *)(param_2 + 0x20)" (identifier "uVar3") (= "=") (binary_expression "iVar2 + *(int *)(param_2 + 0x20)" (identifier "iVar2") (+ "+") (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x688) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x688) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x688)" (* "*") (cast_expression "(uint *)(param_1 + 0x688)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x688)" (( "(") (binary_expression "param_1 + 0x688" (identifier "param_1") (+ "+") (number_literal "0x688")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }" (if "if") (parenthesized_expression "((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3))" (( "(") (binary_expression "(((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)" (parenthesized_expression "(((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0))" (( "(") (binary_expression "((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&\n        (*(uint *)(param_1 + 0x690) != 0)" (parenthesized_expression "((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0))" (( "(") (binary_expression "(*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x694) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x694) == 0" (pointer_expression "*(int *)(param_1 + 0x694)" (* "*") (cast_expression "(int *)(param_1 + 0x694)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x694)" (( "(") (binary_expression "param_1 + 0x694" (identifier "param_1") (+ "+") (number_literal "0x694")) () ")")))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0xec) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xec) == 0" (pointer_expression "*(int *)(param_1 + 0xec)" (* "*") (cast_expression "(int *)(param_1 + 0xec)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xec)" (( "(") (binary_expression "param_1 + 0xec" (identifier "param_1") (+ "+") (number_literal "0xec")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(uint *)(param_1 + 0x690) != 0)" (( "(") (binary_expression "*(uint *)(param_1 + 0x690) != 0" (pointer_expression "*(uint *)(param_1 + 0x690)" (* "*") (cast_expression "(uint *)(param_1 + 0x690)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x690)" (( "(") (binary_expression "param_1 + 0x690" (identifier "param_1") (+ "+") (number_literal "0x690")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(uint *)(param_1 + 0x690) < uVar3)" (( "(") (binary_expression "*(uint *)(param_1 + 0x690) < uVar3" (pointer_expression "*(uint *)(param_1 + 0x690)" (* "*") (cast_expression "(uint *)(param_1 + 0x690)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x690)" (( "(") (binary_expression "param_1 + 0x690" (identifier "param_1") (+ "+") (number_literal "0x690")) () ")")))) (< "<") (identifier "uVar3")) () ")"))) () ")")) (compound_statement "{\n      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);\n    }" ({ "{") (expression_statement "FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);" (call_expression "FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0)" (identifier "FUN_0003d840") (argument_list "(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_000b8348 + -0x59e4" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "-0x59e4")) (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00030d54(param_2);" (call_expression "FUN_00030d54(param_2)" (identifier "FUN_00030d54") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }" (else "else") (compound_statement "{\n    FUN_00033c40(param_1,param_2,0);\n    FUN_000416c4(param_1);\n  }" ({ "{") (expression_statement "FUN_00033c40(param_1,param_2,0);" (call_expression "FUN_00033c40(param_1,param_2,0)" (identifier "FUN_00033c40") (argument_list "(param_1,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000416c4(param_1);" (call_expression "FUN_000416c4(param_1)" (identifier "FUN_000416c4") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (number_literal))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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)))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (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: (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)))))))) (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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (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))))) right: (parenthesized_expression (binary_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: (identifier))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (return_statement))))

void MASKED(int param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  uint uVar3;
  
  if ((*(int *)(param_1 + 0x60) == 0) || ((*(uint *)(*(int *)(param_1 + 0x60) + 0x30) & 1) == 0)) {
    uVar1 = FUN_000332a8(param_1,param_2);
    iVar2 = FUN_00032548(param_1,*(undefined4 *)(param_2 + 0x14),uVar1);
    if (iVar2 < 0x8001) {
      iVar2 = *(int *)(param_1 + 0x688);
    }
    else {
      FUN_00044b34(param_1,1,iVar2);
      iVar2 = *(int *)(param_1 + 0x688);
    }
    uVar3 = iVar2 + *(int *)(param_2 + 0x20);
    *(uint *)(param_1 + 0x688) = uVar3;
    if ((((*(int *)(param_1 + 0x694) == 0) && (*(int *)(param_1 + 0xec) == 0)) &&
        (*(uint *)(param_1 + 0x690) != 0)) && (*(uint *)(param_1 + 0x690) < uVar3)) {
      FUN_0003d840(param_1,PTR_DAT_000b8348 + -0x59e4,0xffffffff,0);
    }
    FUN_00030d54(param_2);
  }
  else {
    FUN_00033c40(param_1,param_2,0);
    FUN_000416c4(param_1);
  }
  return;
}

