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

Packet * ssh2_chanreq_init(ssh_channel *c,char *type,cchandler_fn_t handler,void *ctx)

{
  Packet *pPVar1;
  
  if ((c->closes & 10U) == 0) {
    pPVar1 = ssh2_pkt_init(0x62);
                    /* WARNING: Subroutine does not return */
    ssh_pkt_adduint32(pPVar1,c->remoteid);
  }
  pPVar1 = (Packet *)
           (*(code *)PTR___assert_fail_000b0ac0)
                     (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,0x1f01,
                      PTR_s_Present_000b0188 + 0x5b34);
  return pPVar1;
}



undefined4 FUN_0003b920(int param_1,undefined4 param_2,int param_3,int param_4)

{
  undefined4 uVar1;
  int *piVar2;
  int iVar3;
  undefined *puVar4;
  undefined1 local_25;
  int local_24;
  
  puVar4 = PTR___stack_chk_guard_000b0c9c;
  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;
  if ((*(uint *)(param_1 + 0x14) & 10) == 0) {
    uVar1 = FUN_0003a5ec(0x62);
    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));
    FUN_0003a7dc(uVar1,param_2);
    local_25 = param_3 != 0;
    FUN_0003a494(uVar1,&local_25,1);
    if (param_3 != 0) {
      piVar2 = (int *)safemalloc(1,0xc);
      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;
      iVar3 = *(int *)(param_1 + 0x40);
      *piVar2 = param_3;
      piVar2[1] = param_4;
      piVar2[2] = 0;
      if (iVar3 == 0) {
        *(int **)(param_1 + 0x40) = piVar2;
        *(int **)(param_1 + 0x44) = piVar2;
      }
      else {
        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;
        *(int **)(param_1 + 0x44) = piVar2;
      }
    }
    if (local_24 == *(int *)puVar4) {
      return uVar1;
    }
    (*(code *)PTR___stack_chk_fail_000b0c70)();
  }
  uVar1 = 0x1f01;
  puVar4 = PTR_s_Present_000b0188 + 0x5b34;
  do {
    (*(code *)PTR___assert_fail_000b0ac0)
              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);
LAB_0003ba98:
    uVar1 = 0x1ee3;
    puVar4 = PTR_s_Present_000b0188 + 0x5b18;
  } while( true );
}


lui gp,0x8
addiu gp,gp,-0x37d0
addu gp,gp,t9
addiu sp,sp,-0x40
lw v0,0x14(a0)
sw s3,0x30(sp)
andi v0,v0,0xa
lw s3,-0x74b4(gp)
sw gp,0x10(sp)
sw ra,0x3c(sp)
sw s5,0x38(sp)
sw s4,0x34(sp)
sw s2,0x2c(sp)
sw s1,0x28(sp)
sw s0,0x24(sp)
lw v1,0x0(s3)
sw v1,0x1c(sp)
bne v0,zero,0x0003ba74
_lw t9,-0x7b0c(gp)
or s0,a0,zero
li a0,0x62
or s2,a2,zero
addiu t9,t9,-0x5a14
or s4,a3,zero
bal 0x0003a5ec
_or s5,a1,zero
lw gp,0x10(sp)
or a0,v0,zero
lw a1,0x4(s0)
lw t9,-0x7b0c(gp)
addiu t9,t9,-0x5894
bal 0x0003a76c
_or s1,v0,zero
or a1,s5,zero
lw gp,0x10(sp)
lw t9,-0x7b0c(gp)
addiu t9,t9,-0x5824
bal 0x0003a7dc
_or a0,s1,zero
sltu v0,zero,s2
lw gp,0x10(sp)
li a2,0x1
addiu a1,sp,0x1b
sb v0,0x1b(sp)
lw t9,-0x7b0c(gp)
addiu t9,t9,-0x5b6c
bal 0x0003a494
_or a0,s1,zero
beq s2,zero,0x0003ba28
_lw gp,0x10(sp)
lw t9,-0x7f68(gp)
li a1,0xc
bal 0x00020374
_li a0,0x1
lw v1,0x14(s0)
andi v1,v1,0xa
bne v1,zero,0x0003ba98
_lw gp,0x10(sp)
lw v1,0x40(s0)
sw s2,0x0(v0)
sw s4,0x4(v0)
beq v1,zero,0x0003ba5c
_sw zero,0x8(v0)
lw v1,0x44(s0)
sw v0,0x8(v1)
sw v0,0x44(s0)
lw a0,0x1c(sp)
or v0,s1,zero
lw v1,0x0(s3)
bne a0,v1,0x0003ba68
_lw ra,0x3c(sp)
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x40
sw v0,0x40(s0)
b 0x0003ba28
_sw v0,0x44(s0)
lw t9,-0x74e0(gp)
jalr t9
_nop
lw a3,-0x7fc8(gp)
li a2,0x1f01
lw t9,-0x7690(gp)
addiu a3,a3,0x5b34
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
addiu a1,a1,0x13b0
jalr t9
_addiu a0,a0,0x24a8
lw a3,-0x7fc8(gp)
li a2,0x1ee3
lw t9,-0x7690(gp)
b 0x0003ba84
_addiu a3,a3,0x5b18
(translation_unit "undefined4 FUN_0003b920(int param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 local_25;\n  int local_24;\n  \n  puVar4 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if ((*(uint *)(param_1 + 0x14) & 10) == 0) {\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  uVar1 = 0x1f01;\n  puVar4 = PTR_s_Present_000b0188 + 0x5b34;\n  do {\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_0003b920(int param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 local_25;\n  int local_24;\n  \n  puVar4 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if ((*(uint *)(param_1 + 0x14) & 10) == 0) {\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  uVar1 = 0x1f01;\n  puVar4 = PTR_s_Present_000b0188 + 0x5b34;\n  do {\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  } while( true );\n}" type_identifier (function_declarator "FUN_0003b920(int param_1,undefined4 param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 local_25;\n  int local_24;\n  \n  puVar4 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if ((*(uint *)(param_1 + 0x14) & 10) == 0) {\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  uVar1 = 0x1f01;\n  puVar4 = PTR_s_Present_000b0188 + 0x5b34;\n  do {\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  } while( true );\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 local_25;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((*(uint *)(param_1 + 0x14) & 10) == 0) {\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x14) & 10) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x14) & 10) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x14) & 10)" ( (binary_expression "*(uint *)(param_1 + 0x14) & 10" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" { (expression_statement "uVar1 = FUN_0003a5ec(0x62);" (assignment_expression "uVar1 = FUN_0003a5ec(0x62)" identifier = (call_expression "FUN_0003a5ec(0x62)" identifier (argument_list "(0x62)" ( number_literal )))) ;) (expression_statement "FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));" (call_expression "FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4))" identifier (argument_list "(uVar1,*(undefined4 *)(param_1 + 4))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0003a7dc(uVar1,param_2);" (call_expression "FUN_0003a7dc(uVar1,param_2)" identifier (argument_list "(uVar1,param_2)" ( identifier , identifier ))) ;) (expression_statement "local_25 = param_3 != 0;" (assignment_expression "local_25 = param_3 != 0" identifier = (binary_expression "param_3 != 0" identifier != number_literal)) ;) (expression_statement "FUN_0003a494(uVar1,&local_25,1);" (call_expression "FUN_0003a494(uVar1,&local_25,1)" identifier (argument_list "(uVar1,&local_25,1)" ( identifier , (pointer_expression "&local_25" & identifier) , number_literal ))) ;) (if_statement "if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }" { (expression_statement "piVar2 = (int *)safemalloc(1,0xc);" (assignment_expression "piVar2 = (int *)safemalloc(1,0xc)" identifier = (cast_expression "(int *)safemalloc(1,0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0xc)" identifier (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (if_statement "if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;" if (parenthesized_expression "((*(uint *)(param_1 + 0x14) & 10) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x14) & 10) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x14) & 10)" ( (binary_expression "*(uint *)(param_1 + 0x14) & 10" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0003ba98;" goto statement_identifier ;)) (expression_statement "iVar3 = *(int *)(param_1 + 0x40);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x40)" identifier = (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "*piVar2 = param_3;" (assignment_expression "*piVar2 = param_3" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = param_4;" (assignment_expression "piVar2[1] = param_4" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[2] = 0;" (assignment_expression "piVar2[2] = 0" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }" { (expression_statement "*(int **)(param_1 + 0x40) = piVar2;" (assignment_expression "*(int **)(param_1 + 0x40) = piVar2" (pointer_expression "*(int **)(param_1 + 0x40)" * (cast_expression "(int **)(param_1 + 0x40)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int **)(param_1 + 0x44) = piVar2;" (assignment_expression "*(int **)(param_1 + 0x44) = piVar2" (pointer_expression "*(int **)(param_1 + 0x44)" * (cast_expression "(int **)(param_1 + 0x44)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }" else (compound_statement "{\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }" { (expression_statement "*(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;" (assignment_expression "*(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2" (pointer_expression "*(int **)(*(int *)(param_1 + 0x44) + 8)" * (cast_expression "(int **)(*(int *)(param_1 + 0x44) + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x44) + 8)" ( (binary_expression "*(int *)(param_1 + 0x44) + 8" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (expression_statement "*(int **)(param_1 + 0x44) = piVar2;" (assignment_expression "*(int **)(param_1 + 0x44) = piVar2" (pointer_expression "*(int **)(param_1 + 0x44)" * (cast_expression "(int **)(param_1 + 0x44)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = identifier) ;) }))) })) (if_statement "if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }" if (parenthesized_expression "(local_24 == *(int *)puVar4)" ( (binary_expression "local_24 == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return uVar1;\n    }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "uVar1 = 0x1f01;" (assignment_expression "uVar1 = 0x1f01" identifier = number_literal) ;) (expression_statement "puVar4 = PTR_s_Present_000b0188 + 0x5b34;" (assignment_expression "puVar4 = PTR_s_Present_000b0188 + 0x5b34" identifier = (binary_expression "PTR_s_Present_000b0188 + 0x5b34" identifier + number_literal)) ;) (do_statement "do {\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  } while( true );" do (compound_statement "{\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);" (call_expression "(*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b0ac0)" ( (pointer_expression "*(code *)PTR___assert_fail_000b0ac0" * (cast_expression "(code *)PTR___assert_fail_000b0ac0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4)" ( (binary_expression "PTR_s_Present_000b0188 + 0x24a8" identifier + number_literal) , (binary_expression "PTR_s_Present_000b0188 + 0x13b0" identifier + number_literal) , identifier , identifier ))) ;) (labeled_statement "LAB_0003ba98:\n    uVar1 = 0x1ee3;" statement_identifier : (expression_statement "uVar1 = 0x1ee3;" (assignment_expression "uVar1 = 0x1ee3" identifier = number_literal) ;)) (expression_statement "puVar4 = PTR_s_Present_000b0188 + 0x5b18;" (assignment_expression "puVar4 = PTR_s_Present_000b0188 + 0x5b18" identifier = (binary_expression "PTR_s_Present_000b0188 + 0x5b18" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nPacket * ssh2_chanreq_init(ssh_channel *c,char *type,cchandler_fn_t handler,void *ctx)\n\n{\n  Packet *pPVar1;\n  \n  if ((c->closes & 10U) == 0) {\n    pPVar1 = ssh2_pkt_init(0x62);\n                    /* WARNING: Subroutine does not return */\n    ssh_pkt_adduint32(pPVar1,c->remoteid);\n  }\n  pPVar1 = (Packet *)\n           (*(code *)PTR___assert_fail_000b0ac0)\n                     (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,0x1f01,\n                      PTR_s_Present_000b0188 + 0x5b34);\n  return pPVar1;\n}\n\n" comment (function_definition "Packet * ssh2_chanreq_init(ssh_channel *c,char *type,cchandler_fn_t handler,void *ctx)\n\n{\n  Packet *pPVar1;\n  \n  if ((c->closes & 10U) == 0) {\n    pPVar1 = ssh2_pkt_init(0x62);\n                    /* WARNING: Subroutine does not return */\n    ssh_pkt_adduint32(pPVar1,c->remoteid);\n  }\n  pPVar1 = (Packet *)\n           (*(code *)PTR___assert_fail_000b0ac0)\n                     (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,0x1f01,\n                      PTR_s_Present_000b0188 + 0x5b34);\n  return pPVar1;\n}" type_identifier (pointer_declarator "* ssh2_chanreq_init(ssh_channel *c,char *type,cchandler_fn_t handler,void *ctx)" * (function_declarator "ssh2_chanreq_init(ssh_channel *c,char *type,cchandler_fn_t handler,void *ctx)" identifier (parameter_list "(ssh_channel *c,char *type,cchandler_fn_t handler,void *ctx)" ( (parameter_declaration "ssh_channel *c" type_identifier (pointer_declarator "*c" * identifier)) , (parameter_declaration "char *type" primitive_type (pointer_declarator "*type" * identifier)) , (parameter_declaration "cchandler_fn_t handler" type_identifier identifier) , (parameter_declaration "void *ctx" primitive_type (pointer_declarator "*ctx" * identifier)) )))) (compound_statement "{\n  Packet *pPVar1;\n  \n  if ((c->closes & 10U) == 0) {\n    pPVar1 = ssh2_pkt_init(0x62);\n                    /* WARNING: Subroutine does not return */\n    ssh_pkt_adduint32(pPVar1,c->remoteid);\n  }\n  pPVar1 = (Packet *)\n           (*(code *)PTR___assert_fail_000b0ac0)\n                     (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,0x1f01,\n                      PTR_s_Present_000b0188 + 0x5b34);\n  return pPVar1;\n}" { (declaration "Packet *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (if_statement "if ((c->closes & 10U) == 0) {\n    pPVar1 = ssh2_pkt_init(0x62);\n                    /* WARNING: Subroutine does not return */\n    ssh_pkt_adduint32(pPVar1,c->remoteid);\n  }" if (parenthesized_expression "((c->closes & 10U) == 0)" ( (binary_expression "(c->closes & 10U) == 0" (parenthesized_expression "(c->closes & 10U)" ( (binary_expression "c->closes & 10U" (field_expression "c->closes" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    pPVar1 = ssh2_pkt_init(0x62);\n                    /* WARNING: Subroutine does not return */\n    ssh_pkt_adduint32(pPVar1,c->remoteid);\n  }" { (expression_statement "pPVar1 = ssh2_pkt_init(0x62);" (assignment_expression "pPVar1 = ssh2_pkt_init(0x62)" identifier = (call_expression "ssh2_pkt_init(0x62)" identifier (argument_list "(0x62)" ( number_literal )))) ;) comment (expression_statement "ssh_pkt_adduint32(pPVar1,c->remoteid);" (call_expression "ssh_pkt_adduint32(pPVar1,c->remoteid)" identifier (argument_list "(pPVar1,c->remoteid)" ( identifier , (field_expression "c->remoteid" identifier -> field_identifier) ))) ;) })) (expression_statement "pPVar1 = (Packet *)\n           (*(code *)PTR___assert_fail_000b0ac0)\n                     (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,0x1f01,\n                      PTR_s_Present_000b0188 + 0x5b34);" (assignment_expression "pPVar1 = (Packet *)\n           (*(code *)PTR___assert_fail_000b0ac0)\n                     (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,0x1f01,\n                      PTR_s_Present_000b0188 + 0x5b34)" identifier = (cast_expression "(Packet *)\n           (*(code *)PTR___assert_fail_000b0ac0)\n                     (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,0x1f01,\n                      PTR_s_Present_000b0188 + 0x5b34)" ( (type_descriptor "Packet *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_000b0ac0)\n                     (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,0x1f01,\n                      PTR_s_Present_000b0188 + 0x5b34)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b0ac0)" ( (pointer_expression "*(code *)PTR___assert_fail_000b0ac0" * (cast_expression "(code *)PTR___assert_fail_000b0ac0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,0x1f01,\n                      PTR_s_Present_000b0188 + 0x5b34)" ( (binary_expression "PTR_s_Present_000b0188 + 0x24a8" identifier + number_literal) , (binary_expression "PTR_s_Present_000b0188 + 0x13b0" identifier + number_literal) , number_literal , (binary_expression "PTR_s_Present_000b0188 + 0x5b34" identifier + number_literal) ))))) ;) (return_statement "return pPVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_0003b920(int param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 local_25;\n  int local_24;\n  \n  puVar4 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if ((*(uint *)(param_1 + 0x14) & 10) == 0) {\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  uVar1 = 0x1f01;\n  puVar4 = PTR_s_Present_000b0188 + 0x5b34;\n  do {\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_0003b920(int param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 local_25;\n  int local_24;\n  \n  puVar4 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if ((*(uint *)(param_1 + 0x14) & 10) == 0) {\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  uVar1 = 0x1f01;\n  puVar4 = PTR_s_Present_000b0188 + 0x5b34;\n  do {\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  } while( true );\n}" type_identifier (function_declarator "FUN_0003b920(int param_1,undefined4 param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 local_25;\n  int local_24;\n  \n  puVar4 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if ((*(uint *)(param_1 + 0x14) & 10) == 0) {\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  uVar1 = 0x1f01;\n  puVar4 = PTR_s_Present_000b0188 + 0x5b34;\n  do {\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  } while( true );\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 local_25;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((*(uint *)(param_1 + 0x14) & 10) == 0) {\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x14) & 10) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x14) & 10) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x14) & 10)" ( (binary_expression "*(uint *)(param_1 + 0x14) & 10" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" { (expression_statement "uVar1 = FUN_0003a5ec(0x62);" (assignment_expression "uVar1 = FUN_0003a5ec(0x62)" identifier = (call_expression "FUN_0003a5ec(0x62)" identifier (argument_list "(0x62)" ( number_literal )))) ;) (expression_statement "FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));" (call_expression "FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4))" identifier (argument_list "(uVar1,*(undefined4 *)(param_1 + 4))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0003a7dc(uVar1,param_2);" (call_expression "FUN_0003a7dc(uVar1,param_2)" identifier (argument_list "(uVar1,param_2)" ( identifier , identifier ))) ;) (expression_statement "local_25 = param_3 != 0;" (assignment_expression "local_25 = param_3 != 0" identifier = (binary_expression "param_3 != 0" identifier != number_literal)) ;) (expression_statement "FUN_0003a494(uVar1,&local_25,1);" (call_expression "FUN_0003a494(uVar1,&local_25,1)" identifier (argument_list "(uVar1,&local_25,1)" ( identifier , (pointer_expression "&local_25" & identifier) , number_literal ))) ;) (if_statement "if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }" { (expression_statement "piVar2 = (int *)safemalloc(1,0xc);" (assignment_expression "piVar2 = (int *)safemalloc(1,0xc)" identifier = (cast_expression "(int *)safemalloc(1,0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0xc)" identifier (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (if_statement "if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;" if (parenthesized_expression "((*(uint *)(param_1 + 0x14) & 10) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x14) & 10) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x14) & 10)" ( (binary_expression "*(uint *)(param_1 + 0x14) & 10" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0003ba98;" goto statement_identifier ;)) (expression_statement "iVar3 = *(int *)(param_1 + 0x40);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x40)" identifier = (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "*piVar2 = param_3;" (assignment_expression "*piVar2 = param_3" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = param_4;" (assignment_expression "piVar2[1] = param_4" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[2] = 0;" (assignment_expression "piVar2[2] = 0" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }" { (expression_statement "*(int **)(param_1 + 0x40) = piVar2;" (assignment_expression "*(int **)(param_1 + 0x40) = piVar2" (pointer_expression "*(int **)(param_1 + 0x40)" * (cast_expression "(int **)(param_1 + 0x40)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int **)(param_1 + 0x44) = piVar2;" (assignment_expression "*(int **)(param_1 + 0x44) = piVar2" (pointer_expression "*(int **)(param_1 + 0x44)" * (cast_expression "(int **)(param_1 + 0x44)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }" else (compound_statement "{\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }" { (expression_statement "*(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;" (assignment_expression "*(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2" (pointer_expression "*(int **)(*(int *)(param_1 + 0x44) + 8)" * (cast_expression "(int **)(*(int *)(param_1 + 0x44) + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x44) + 8)" ( (binary_expression "*(int *)(param_1 + 0x44) + 8" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (expression_statement "*(int **)(param_1 + 0x44) = piVar2;" (assignment_expression "*(int **)(param_1 + 0x44) = piVar2" (pointer_expression "*(int **)(param_1 + 0x44)" * (cast_expression "(int **)(param_1 + 0x44)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = identifier) ;) }))) })) (if_statement "if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }" if (parenthesized_expression "(local_24 == *(int *)puVar4)" ( (binary_expression "local_24 == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return uVar1;\n    }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "uVar1 = 0x1f01;" (assignment_expression "uVar1 = 0x1f01" identifier = number_literal) ;) (expression_statement "puVar4 = PTR_s_Present_000b0188 + 0x5b34;" (assignment_expression "puVar4 = PTR_s_Present_000b0188 + 0x5b34" identifier = (binary_expression "PTR_s_Present_000b0188 + 0x5b34" identifier + number_literal)) ;) (do_statement "do {\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  } while( true );" do (compound_statement "{\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  }" { (expression_statement "(*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);" (call_expression "(*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b0ac0)" ( (pointer_expression "*(code *)PTR___assert_fail_000b0ac0" * (cast_expression "(code *)PTR___assert_fail_000b0ac0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4)" ( (binary_expression "PTR_s_Present_000b0188 + 0x24a8" identifier + number_literal) , (binary_expression "PTR_s_Present_000b0188 + 0x13b0" identifier + number_literal) , identifier , identifier ))) ;) (labeled_statement "LAB_0003ba98:\n    uVar1 = 0x1ee3;" statement_identifier : (expression_statement "uVar1 = 0x1ee3;" (assignment_expression "uVar1 = 0x1ee3" identifier = number_literal) ;)) (expression_statement "puVar4 = PTR_s_Present_000b0188 + 0x5b18;" (assignment_expression "puVar4 = PTR_s_Present_000b0188 + 0x5b18" identifier = (binary_expression "PTR_s_Present_000b0188 + 0x5b18" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (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) )) != LIT) )) (goto_statement goto statement_identifier ;)) (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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 FUN_0003b920(int param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  undefined4 uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 local_25;\n  int local_24;\n  \n  puVar4 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if ((*(uint *)(param_1 + 0x14) & 10) == 0) {\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  uVar1 = 0x1f01;\n  puVar4 = PTR_s_Present_000b0188 + 0x5b34;\n  do {\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  } while( true );\n}" (type_identifier "undefined4") (function_declarator "FUN_0003b920(int param_1,undefined4 param_2,int param_3,int param_4)" (identifier "FUN_0003b920") (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined1 local_25;\n  int local_24;\n  \n  puVar4 = PTR___stack_chk_guard_000b0c9c;\n  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;\n  if ((*(uint *)(param_1 + 0x14) & 10) == 0) {\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }\n  uVar1 = 0x1f01;\n  puVar4 = PTR_s_Present_000b0188 + 0x5b34;\n  do {\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  } while( true );\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined1 local_25;" (type_identifier "undefined1") (identifier "local_25") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "puVar4 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000b0c9c" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_guard_000b0c9c")) (; ";")) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000b0c9c" (identifier "local_24") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b0c9c")))) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x14) & 10) == 0) {\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x14) & 10) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x14) & 10) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x14) & 10)" (( "(") (binary_expression "*(uint *)(param_1 + 0x14) & 10" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = FUN_0003a5ec(0x62);\n    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));\n    FUN_0003a7dc(uVar1,param_2);\n    local_25 = param_3 != 0;\n    FUN_0003a494(uVar1,&local_25,1);\n    if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }\n    if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n  }" ({ "{") (expression_statement "uVar1 = FUN_0003a5ec(0x62);" (assignment_expression "uVar1 = FUN_0003a5ec(0x62)" (identifier "uVar1") (= "=") (call_expression "FUN_0003a5ec(0x62)" (identifier "FUN_0003a5ec") (argument_list "(0x62)" (( "(") (number_literal "0x62") () ")")))) (; ";")) (expression_statement "FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));" (call_expression "FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4))" (identifier "FUN_0003a76c") (argument_list "(uVar1,*(undefined4 *)(param_1 + 4))" (( "(") (identifier "uVar1") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0003a7dc(uVar1,param_2);" (call_expression "FUN_0003a7dc(uVar1,param_2)" (identifier "FUN_0003a7dc") (argument_list "(uVar1,param_2)" (( "(") (identifier "uVar1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "local_25 = param_3 != 0;" (assignment_expression "local_25 = param_3 != 0" (identifier "local_25") (= "=") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0"))) (; ";")) (expression_statement "FUN_0003a494(uVar1,&local_25,1);" (call_expression "FUN_0003a494(uVar1,&local_25,1)" (identifier "FUN_0003a494") (argument_list "(uVar1,&local_25,1)" (( "(") (identifier "uVar1") (, ",") (pointer_expression "&local_25" (& "&") (identifier "local_25")) (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (param_3 != 0) {\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar2 = (int *)safemalloc(1,0xc);\n      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;\n      iVar3 = *(int *)(param_1 + 0x40);\n      *piVar2 = param_3;\n      piVar2[1] = param_4;\n      piVar2[2] = 0;\n      if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n    }" ({ "{") (expression_statement "piVar2 = (int *)safemalloc(1,0xc);" (assignment_expression "piVar2 = (int *)safemalloc(1,0xc)" (identifier "piVar2") (= "=") (cast_expression "(int *)safemalloc(1,0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "safemalloc(1,0xc)" (identifier "safemalloc") (argument_list "(1,0xc)" (( "(") (number_literal "1") (, ",") (number_literal "0xc") () ")"))))) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x14) & 10) != 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x14) & 10) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x14) & 10)" (( "(") (binary_expression "*(uint *)(param_1 + 0x14) & 10" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003ba98;" (goto "goto") (statement_identifier "LAB_0003ba98") (; ";"))) (expression_statement "iVar3 = *(int *)(param_1 + 0x40);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x40)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (expression_statement "*piVar2 = param_3;" (assignment_expression "*piVar2 = param_3" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar2[1] = param_4;" (assignment_expression "piVar2[1] = param_4" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "piVar2[2] = 0;" (assignment_expression "piVar2[2] = 0" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar3 == 0) {\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }\n      else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(int **)(param_1 + 0x40) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }" ({ "{") (expression_statement "*(int **)(param_1 + 0x40) = piVar2;" (assignment_expression "*(int **)(param_1 + 0x40) = piVar2" (pointer_expression "*(int **)(param_1 + 0x40)" (* "*") (cast_expression "(int **)(param_1 + 0x40)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (identifier "piVar2")) (; ";")) (expression_statement "*(int **)(param_1 + 0x44) = piVar2;" (assignment_expression "*(int **)(param_1 + 0x44) = piVar2" (pointer_expression "*(int **)(param_1 + 0x44)" (* "*") (cast_expression "(int **)(param_1 + 0x44)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (identifier "piVar2")) (; ";")) (} "}")) (else_clause "else {\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }" (else "else") (compound_statement "{\n        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;\n        *(int **)(param_1 + 0x44) = piVar2;\n      }" ({ "{") (expression_statement "*(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;" (assignment_expression "*(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2" (pointer_expression "*(int **)(*(int *)(param_1 + 0x44) + 8)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 0x44) + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x44) + 8)" (( "(") (binary_expression "*(int *)(param_1 + 0x44) + 8" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "piVar2")) (; ";")) (expression_statement "*(int **)(param_1 + 0x44) = piVar2;" (assignment_expression "*(int **)(param_1 + 0x44) = piVar2" (pointer_expression "*(int **)(param_1 + 0x44)" (* "*") (cast_expression "(int **)(param_1 + 0x44)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (identifier "piVar2")) (; ";")) (} "}")))) (} "}"))) (if_statement "if (local_24 == *(int *)puVar4) {\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(local_24 == *(int *)puVar4)" (( "(") (binary_expression "local_24 == *(int *)puVar4" (identifier "local_24") (== "==") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) () ")")) (compound_statement "{\n      return uVar1;\n    }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b0c70"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = 0x1f01;" (assignment_expression "uVar1 = 0x1f01" (identifier "uVar1") (= "=") (number_literal "0x1f01")) (; ";")) (expression_statement "puVar4 = PTR_s_Present_000b0188 + 0x5b34;" (assignment_expression "puVar4 = PTR_s_Present_000b0188 + 0x5b34" (identifier "puVar4") (= "=") (binary_expression "PTR_s_Present_000b0188 + 0x5b34" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "0x5b34"))) (; ";")) (do_statement "do {\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  } while( true );" (do "do") (compound_statement "{\n    (*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);\nLAB_0003ba98:\n    uVar1 = 0x1ee3;\n    puVar4 = PTR_s_Present_000b0188 + 0x5b18;\n  }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);" (call_expression "(*(code *)PTR___assert_fail_000b0ac0)\n              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b0ac0)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000b0ac0" (* "*") (cast_expression "(code *)PTR___assert_fail_000b0ac0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000b0ac0"))) () ")")) (argument_list "(PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4)" (( "(") (binary_expression "PTR_s_Present_000b0188 + 0x24a8" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "0x24a8")) (, ",") (binary_expression "PTR_s_Present_000b0188 + 0x13b0" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "0x13b0")) (, ",") (identifier "uVar1") (, ",") (identifier "puVar4") () ")"))) (; ";")) (labeled_statement "LAB_0003ba98:\n    uVar1 = 0x1ee3;" (statement_identifier "LAB_0003ba98") (: ":") (expression_statement "uVar1 = 0x1ee3;" (assignment_expression "uVar1 = 0x1ee3" (identifier "uVar1") (= "=") (number_literal "0x1ee3")) (; ";"))) (expression_statement "puVar4 = PTR_s_Present_000b0188 + 0x5b18;" (assignment_expression "puVar4 = PTR_s_Present_000b0188 + 0x5b18" (identifier "puVar4") (= "=") (binary_expression "PTR_s_Present_000b0188 + 0x5b18" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "0x5b18"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (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: (identifier) 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 (number_literal))))) (expression_statement (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)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))))) (if_statement condition: (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: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_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: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (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: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (true))))))

undefined4 MASKED(int param_1,undefined4 param_2,int param_3,int param_4)

{
  undefined4 uVar1;
  int *piVar2;
  int iVar3;
  undefined *puVar4;
  undefined1 local_25;
  int local_24;
  
  puVar4 = PTR___stack_chk_guard_000b0c9c;
  local_24 = *(int *)PTR___stack_chk_guard_000b0c9c;
  if ((*(uint *)(param_1 + 0x14) & 10) == 0) {
    uVar1 = FUN_0003a5ec(0x62);
    FUN_0003a76c(uVar1,*(undefined4 *)(param_1 + 4));
    FUN_0003a7dc(uVar1,param_2);
    local_25 = param_3 != 0;
    FUN_0003a494(uVar1,&local_25,1);
    if (param_3 != 0) {
      piVar2 = (int *)safemalloc(1,0xc);
      if ((*(uint *)(param_1 + 0x14) & 10) != 0) goto LAB_0003ba98;
      iVar3 = *(int *)(param_1 + 0x40);
      *piVar2 = param_3;
      piVar2[1] = param_4;
      piVar2[2] = 0;
      if (iVar3 == 0) {
        *(int **)(param_1 + 0x40) = piVar2;
        *(int **)(param_1 + 0x44) = piVar2;
      }
      else {
        *(int **)(*(int *)(param_1 + 0x44) + 8) = piVar2;
        *(int **)(param_1 + 0x44) = piVar2;
      }
    }
    if (local_24 == *(int *)puVar4) {
      return uVar1;
    }
    (*(code *)PTR___stack_chk_fail_000b0c70)();
  }
  uVar1 = 0x1f01;
  puVar4 = PTR_s_Present_000b0188 + 0x5b34;
  do {
    (*(code *)PTR___assert_fail_000b0ac0)
              (PTR_s_Present_000b0188 + 0x24a8,PTR_s_Present_000b0188 + 0x13b0,uVar1,puVar4);
LAB_0003ba98:
    uVar1 = 0x1ee3;
    puVar4 = PTR_s_Present_000b0188 + 0x5b18;
  } while( true );
}

