
void * safemalloc(size_t n,size_t size)

{
  undefined *puVar1;
  void *pvVar2;
  int iVar3;
  int iVar4;
  char str [200];
  
  puVar1 = PTR___stack_chk_guard_000a7ec8;
  if (size == 0) {
    trap(7);
  }
  iVar3 = *(int *)PTR___stack_chk_guard_000a7ec8;
  iVar4 = size * n;
  if (n <= 0x7fffffff / size) {
    if (iVar4 == 0) {
      iVar4 = 1;
    }
    pvVar2 = (void *)(*(code *)PTR_malloc_000a7df0)(iVar4);
    if (pvVar2 != (void *)0x0) goto LAB_00033b28;
  }
  str._0_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);
  str._4_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);
  str._8_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);
  str._12_2_ = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);
  str[0xe] = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];
  (*(code *)PTR_modalfatalbox_000a73cc)
            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,str);
  pvVar2 = (void *)0x0;
LAB_00033b28:
  if (iVar3 == *(int *)puVar1) {
    return pvVar2;
  }
  (*(code *)PTR___stack_chk_fail_000a7b74)();
                    /* WARNING: Subroutine does not return */
  safemalloc(1,0x24);
}



undefined4 * safemalloc(uint param_1,uint param_2)

{
  undefined *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 local_d4;
  undefined4 local_d0;
  undefined4 local_cc;
  undefined2 local_c8;
  undefined1 local_c6;
  int local_c;
  
  puVar1 = PTR___stack_chk_guard_000a7ec8;
  if (param_2 == 0) {
    trap(7);
  }
  local_c = *(int *)PTR___stack_chk_guard_000a7ec8;
  iVar3 = param_2 * param_1;
  if (param_1 <= 0x7fffffff / param_2) {
    if (iVar3 == 0) {
      iVar3 = 1;
    }
    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);
    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;
  }
  local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);
  local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);
  local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);
  local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);
  local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];
  (*(code *)PTR_modalfatalbox_000a73cc)
            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);
  puVar2 = (undefined4 *)0x0;
LAB_00033b28:
  if (local_c == *(int *)puVar1) {
    return puVar2;
  }
  iVar3 = local_c;
  (*(code *)PTR___stack_chk_fail_000a7b74)();
  puVar2 = (undefined4 *)safemalloc(1,0x24);
  puVar2[7] = iVar3;
  puVar2[6] = 0;
  puVar2[5] = 0;
  puVar2[8] = 0;
  *puVar2 = 1;
  puVar2[3] = 0;
  puVar2[1] = 0;
  puVar2[4] = 0;
  puVar2[2] = 0;
  return puVar2;
}


lui gp,0x8
addiu gp,gp,-0x4a34
addu gp,gp,t9
lui v0,0x7fff
addiu sp,sp,-0xf0
ori v0,v0,0xffff
teq a1,zero
divu v0,a1
sw s0,0xe8(sp)
lw s0,-0x71c8(gp)
sw gp,0x10(sp)
sw ra,0xec(sp)
lw v1,0x0(s0)
sw v1,0xe4(sp)
mflo v0
sltu v0,v0,a0
bne v0,zero,0x00033b44
_mul a0,a1,a0
bne a0,zero,0x00033b18
_lw t9,-0x72a0(gp)
li a0,0x1
jalr t9
_nop
beq v0,zero,0x00033b44
_lw gp,0x10(sp)
lw a0,0xe4(sp)
lw v1,0x0(s0)
bne a0,v1,0x00033b98
_lw ra,0xec(sp)
lw s0,0xe8(sp)
jr ra
_addiu sp,sp,0xf0
lw a0,-0x7fb8(gp)
addiu v0,sp,0x1c
lw t9,-0x7cc4(gp)
or a1,v0,zero
addiu v1,a0,-0x40b0
lw t1,-0x40b0(a0)
lw a0,-0x7fb8(gp)
lw t0,0x4(v1)
lw a3,0x8(v1)
lhu a2,0xc(v1)
addiu a0,a0,-0x10f8
lbu v1,0xe(v1)
sw t1,0x1c(sp)
sw t0,0x20(sp)
sw a3,0x24(sp)
sh a2,0x28(sp)
jalr t9
_sb v1,0x2a(sp)
or v0,zero,zero
b 0x00033b28
_lw gp,0x10(sp)
lw t9,-0x751c(gp)
jalr t9
_nop
lui gp,0x8
addiu gp,gp,-0x4b14
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7fc0(gp)
li a1,0x24
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x1c(sp)
sw gp,0x10(sp)
bal 0x00033ac4
_li a0,0x1
li a0,0x1
lw ra,0x1c(sp)
sw s0,0x1c(v0)
sw zero,0x18(v0)
sw zero,0x14(v0)
sw zero,0x20(v0)
sw a0,0x0(v0)
sw zero,0xc(v0)
sw zero,0x4(v0)
sw zero,0x10(v0)
sw zero,0x8(v0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 * safemalloc(uint param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined4 local_cc;\n  undefined2 local_c8;\n  undefined1 local_c6;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000a7ec8;\n  if (param_2 == 0) {\n    trap(7);\n  }\n  local_c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = param_2 * param_1;\n  if (param_1 <= 0x7fffffff / param_2) {\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }\n  local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);\n  local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);\n  local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);\n  local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);\n  local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];\n  (*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);\n  puVar2 = (undefined4 *)0x0;\nLAB_00033b28:\n  if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }\n  iVar3 = local_c;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n  puVar2 = (undefined4 *)safemalloc(1,0x24);\n  puVar2[7] = iVar3;\n  puVar2[6] = 0;\n  puVar2[5] = 0;\n  puVar2[8] = 0;\n  *puVar2 = 1;\n  puVar2[3] = 0;\n  puVar2[1] = 0;\n  puVar2[4] = 0;\n  puVar2[2] = 0;\n  return puVar2;\n}\n\n" (function_definition "undefined4 * safemalloc(uint param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined4 local_cc;\n  undefined2 local_c8;\n  undefined1 local_c6;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000a7ec8;\n  if (param_2 == 0) {\n    trap(7);\n  }\n  local_c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = param_2 * param_1;\n  if (param_1 <= 0x7fffffff / param_2) {\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }\n  local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);\n  local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);\n  local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);\n  local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);\n  local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];\n  (*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);\n  puVar2 = (undefined4 *)0x0;\nLAB_00033b28:\n  if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }\n  iVar3 = local_c;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n  puVar2 = (undefined4 *)safemalloc(1,0x24);\n  puVar2[7] = iVar3;\n  puVar2[6] = 0;\n  puVar2[5] = 0;\n  puVar2[8] = 0;\n  *puVar2 = 1;\n  puVar2[3] = 0;\n  puVar2[1] = 0;\n  puVar2[4] = 0;\n  puVar2[2] = 0;\n  return puVar2;\n}" type_identifier (pointer_declarator "* safemalloc(uint param_1,uint param_2)" * (function_declarator "safemalloc(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined4 local_cc;\n  undefined2 local_c8;\n  undefined1 local_c6;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000a7ec8;\n  if (param_2 == 0) {\n    trap(7);\n  }\n  local_c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = param_2 * param_1;\n  if (param_1 <= 0x7fffffff / param_2) {\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }\n  local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);\n  local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);\n  local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);\n  local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);\n  local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];\n  (*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);\n  puVar2 = (undefined4 *)0x0;\nLAB_00033b28:\n  if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }\n  iVar3 = local_c;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n  puVar2 = (undefined4 *)safemalloc(1,0x24);\n  puVar2[7] = iVar3;\n  puVar2[6] = 0;\n  puVar2[5] = 0;\n  puVar2[8] = 0;\n  *puVar2 = 1;\n  puVar2[3] = 0;\n  puVar2[1] = 0;\n  puVar2[4] = 0;\n  puVar2[2] = 0;\n  return puVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 local_d4;" type_identifier identifier ;) (declaration "undefined4 local_d0;" type_identifier identifier ;) (declaration "undefined4 local_cc;" type_identifier identifier ;) (declaration "undefined2 local_c8;" type_identifier identifier ;) (declaration "undefined1 local_c6;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000a7ec8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000a7ec8" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    trap(7);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    trap(7);\n  }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000a7ec8;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000a7ec8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000a7ec8" * (cast_expression "(int *)PTR___stack_chk_guard_000a7ec8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar3 = param_2 * param_1;" (assignment_expression "iVar3 = param_2 * param_1" identifier = (binary_expression "param_2 * param_1" identifier * identifier)) ;) (if_statement "if (param_1 <= 0x7fffffff / param_2) {\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }" if (parenthesized_expression "(param_1 <= 0x7fffffff / param_2)" ( (binary_expression "param_1 <= 0x7fffffff / param_2" identifier <= (binary_expression "0x7fffffff / param_2" number_literal / identifier)) )) (compound_statement "{\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }" { (if_statement "if (iVar3 == 0) {\n      iVar3 = 1;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 1;\n    }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) })) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_000a7df0)(iVar3)" (parenthesized_expression "(*(code *)PTR_malloc_000a7df0)" ( (pointer_expression "*(code *)PTR_malloc_000a7df0" * (cast_expression "(code *)PTR_malloc_000a7df0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00033b28;" goto statement_identifier ;)) })) (expression_statement "local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);" (assignment_expression "local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" identifier = (pointer_expression "*(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" * (cast_expression "(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0" identifier + number_literal) ))))) ;) (expression_statement "local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);" (assignment_expression "local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" identifier = (pointer_expression "*(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" * (cast_expression "(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac" identifier + number_literal) ))))) ;) (expression_statement "local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);" (assignment_expression "local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" identifier = (pointer_expression "*(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" * (cast_expression "(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8" identifier + number_literal) ))))) ;) (expression_statement "local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);" (assignment_expression "local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" identifier = (pointer_expression "*(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" * (cast_expression "(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4" identifier + number_literal) ))))) ;) (expression_statement "local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];" (assignment_expression "local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2]" identifier = (subscript_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2]" identifier [ number_literal ])) ;) (expression_statement "(*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);" (call_expression "(*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4)" (parenthesized_expression "(*(code *)PTR_modalfatalbox_000a73cc)" ( (pointer_expression "*(code *)PTR_modalfatalbox_000a73cc" * (cast_expression "(code *)PTR_modalfatalbox_000a73cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8" identifier + number_literal) , (pointer_expression "&local_d4" & identifier) ))) ;) (expression_statement "puVar2 = (undefined4 *)0x0;" (assignment_expression "puVar2 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00033b28:\n  if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }" statement_identifier : (if_statement "if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar1)" ( (binary_expression "local_c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) }))) (expression_statement "iVar3 = local_c;" (assignment_expression "iVar3 = local_c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a7b74)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a7b74)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a7b74)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a7b74" * (cast_expression "(code *)PTR___stack_chk_fail_000a7b74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar2 = (undefined4 *)safemalloc(1,0x24);" (assignment_expression "puVar2 = (undefined4 *)safemalloc(1,0x24)" identifier = (cast_expression "(undefined4 *)safemalloc(1,0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x24)" identifier (argument_list "(1,0x24)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar2[7] = iVar3;" (assignment_expression "puVar2[7] = iVar3" (subscript_expression "puVar2[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[6] = 0;" (assignment_expression "puVar2[6] = 0" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[8] = 0;" (assignment_expression "puVar2[8] = 0" (subscript_expression "puVar2[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 1;" (assignment_expression "*puVar2 = 1" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "void * safemalloc(size_t n,size_t size)\n\n{\n  undefined *puVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  char str [200];\n  \n  puVar1 = PTR___stack_chk_guard_000a7ec8;\n  if (size == 0) {\n    trap(7);\n  }\n  iVar3 = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar4 = size * n;\n  if (n <= 0x7fffffff / size) {\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    pvVar2 = (void *)(*(code *)PTR_malloc_000a7df0)(iVar4);\n    if (pvVar2 != (void *)0x0) goto LAB_00033b28;\n  }\n  str._0_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);\n  str._4_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);\n  str._8_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);\n  str._12_2_ = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);\n  str[0xe] = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];\n  (*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,str);\n  pvVar2 = (void *)0x0;\nLAB_00033b28:\n  if (iVar3 == *(int *)puVar1) {\n    return pvVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    /* WARNING: Subroutine does not return */\n  safemalloc(1,0x24);\n}\n\n" (function_definition "void * safemalloc(size_t n,size_t size)\n\n{\n  undefined *puVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  char str [200];\n  \n  puVar1 = PTR___stack_chk_guard_000a7ec8;\n  if (size == 0) {\n    trap(7);\n  }\n  iVar3 = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar4 = size * n;\n  if (n <= 0x7fffffff / size) {\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    pvVar2 = (void *)(*(code *)PTR_malloc_000a7df0)(iVar4);\n    if (pvVar2 != (void *)0x0) goto LAB_00033b28;\n  }\n  str._0_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);\n  str._4_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);\n  str._8_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);\n  str._12_2_ = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);\n  str[0xe] = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];\n  (*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,str);\n  pvVar2 = (void *)0x0;\nLAB_00033b28:\n  if (iVar3 == *(int *)puVar1) {\n    return pvVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    /* WARNING: Subroutine does not return */\n  safemalloc(1,0x24);\n}" primitive_type (pointer_declarator "* safemalloc(size_t n,size_t size)" * (function_declarator "safemalloc(size_t n,size_t size)" identifier (parameter_list "(size_t n,size_t size)" ( (parameter_declaration "size_t n" primitive_type identifier) , (parameter_declaration "size_t size" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  void *pvVar2;\n  int iVar3;\n  int iVar4;\n  char str [200];\n  \n  puVar1 = PTR___stack_chk_guard_000a7ec8;\n  if (size == 0) {\n    trap(7);\n  }\n  iVar3 = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar4 = size * n;\n  if (n <= 0x7fffffff / size) {\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    pvVar2 = (void *)(*(code *)PTR_malloc_000a7df0)(iVar4);\n    if (pvVar2 != (void *)0x0) goto LAB_00033b28;\n  }\n  str._0_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);\n  str._4_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);\n  str._8_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);\n  str._12_2_ = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);\n  str[0xe] = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];\n  (*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,str);\n  pvVar2 = (void *)0x0;\nLAB_00033b28:\n  if (iVar3 == *(int *)puVar1) {\n    return pvVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    /* WARNING: Subroutine does not return */\n  safemalloc(1,0x24);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char str [200];" primitive_type (array_declarator "str [200]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000a7ec8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000a7ec8" identifier = identifier) ;) (if_statement "if (size == 0) {\n    trap(7);\n  }" if (parenthesized_expression "(size == 0)" ( (binary_expression "size == 0" identifier == number_literal) )) (compound_statement "{\n    trap(7);\n  }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_000a7ec8;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_000a7ec8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000a7ec8" * (cast_expression "(int *)PTR___stack_chk_guard_000a7ec8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar4 = size * n;" (assignment_expression "iVar4 = size * n" identifier = (binary_expression "size * n" identifier * identifier)) ;) (if_statement "if (n <= 0x7fffffff / size) {\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    pvVar2 = (void *)(*(code *)PTR_malloc_000a7df0)(iVar4);\n    if (pvVar2 != (void *)0x0) goto LAB_00033b28;\n  }" if (parenthesized_expression "(n <= 0x7fffffff / size)" ( (binary_expression "n <= 0x7fffffff / size" identifier <= (binary_expression "0x7fffffff / size" number_literal / identifier)) )) (compound_statement "{\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    pvVar2 = (void *)(*(code *)PTR_malloc_000a7df0)(iVar4);\n    if (pvVar2 != (void *)0x0) goto LAB_00033b28;\n  }" { (if_statement "if (iVar4 == 0) {\n      iVar4 = 1;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = 1;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) })) (expression_statement "pvVar2 = (void *)(*(code *)PTR_malloc_000a7df0)(iVar4);" (assignment_expression "pvVar2 = (void *)(*(code *)PTR_malloc_000a7df0)(iVar4)" identifier = (cast_expression "(void *)(*(code *)PTR_malloc_000a7df0)(iVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_000a7df0)(iVar4)" (parenthesized_expression "(*(code *)PTR_malloc_000a7df0)" ( (pointer_expression "*(code *)PTR_malloc_000a7df0" * (cast_expression "(code *)PTR_malloc_000a7df0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))))) ;) (if_statement "if (pvVar2 != (void *)0x0) goto LAB_00033b28;" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00033b28;" goto statement_identifier ;)) })) (expression_statement "str._0_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);" (assignment_expression "str._0_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" (field_expression "str._0_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" * (cast_expression "(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0" identifier + number_literal) ))))) ;) (expression_statement "str._4_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);" (assignment_expression "str._4_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" (field_expression "str._4_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" * (cast_expression "(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac" identifier + number_literal) ))))) ;) (expression_statement "str._8_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);" (assignment_expression "str._8_4_ = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" (field_expression "str._8_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" * (cast_expression "(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8" identifier + number_literal) ))))) ;) (expression_statement "str._12_2_ = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);" (assignment_expression "str._12_2_ = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" (field_expression "str._12_2_" identifier . field_identifier) = (pointer_expression "*(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" * (cast_expression "(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4" identifier + number_literal) ))))) ;) (expression_statement "str[0xe] = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];" (assignment_expression "str[0xe] = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2]" (subscript_expression "str[0xe]" identifier [ number_literal ]) = (subscript_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2]" identifier [ number_literal ])) ;) (expression_statement "(*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,str);" (call_expression "(*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,str)" (parenthesized_expression "(*(code *)PTR_modalfatalbox_000a73cc)" ( (pointer_expression "*(code *)PTR_modalfatalbox_000a73cc" * (cast_expression "(code *)PTR_modalfatalbox_000a73cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,str)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8" identifier + number_literal) , identifier ))) ;) (expression_statement "pvVar2 = (void *)0x0;" (assignment_expression "pvVar2 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00033b28:\n  if (iVar3 == *(int *)puVar1) {\n    return pvVar2;\n  }" statement_identifier : (if_statement "if (iVar3 == *(int *)puVar1) {\n    return pvVar2;\n  }" if (parenthesized_expression "(iVar3 == *(int *)puVar1)" ( (binary_expression "iVar3 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return pvVar2;\n  }" { (return_statement "return pvVar2;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_000a7b74)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a7b74)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a7b74)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a7b74" * (cast_expression "(code *)PTR___stack_chk_fail_000a7b74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment (expression_statement "safemalloc(1,0x24);" (call_expression "safemalloc(1,0x24)" identifier (argument_list "(1,0x24)" ( number_literal , number_literal ))) ;) })))
(translation_unit "undefined4 * safemalloc(uint param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined4 local_cc;\n  undefined2 local_c8;\n  undefined1 local_c6;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000a7ec8;\n  if (param_2 == 0) {\n    trap(7);\n  }\n  local_c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = param_2 * param_1;\n  if (param_1 <= 0x7fffffff / param_2) {\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }\n  local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);\n  local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);\n  local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);\n  local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);\n  local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];\n  (*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);\n  puVar2 = (undefined4 *)0x0;\nLAB_00033b28:\n  if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }\n  iVar3 = local_c;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n  puVar2 = (undefined4 *)safemalloc(1,0x24);\n  puVar2[7] = iVar3;\n  puVar2[6] = 0;\n  puVar2[5] = 0;\n  puVar2[8] = 0;\n  *puVar2 = 1;\n  puVar2[3] = 0;\n  puVar2[1] = 0;\n  puVar2[4] = 0;\n  puVar2[2] = 0;\n  return puVar2;\n}\n\n" (function_definition "undefined4 * safemalloc(uint param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined4 local_cc;\n  undefined2 local_c8;\n  undefined1 local_c6;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000a7ec8;\n  if (param_2 == 0) {\n    trap(7);\n  }\n  local_c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = param_2 * param_1;\n  if (param_1 <= 0x7fffffff / param_2) {\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }\n  local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);\n  local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);\n  local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);\n  local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);\n  local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];\n  (*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);\n  puVar2 = (undefined4 *)0x0;\nLAB_00033b28:\n  if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }\n  iVar3 = local_c;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n  puVar2 = (undefined4 *)safemalloc(1,0x24);\n  puVar2[7] = iVar3;\n  puVar2[6] = 0;\n  puVar2[5] = 0;\n  puVar2[8] = 0;\n  *puVar2 = 1;\n  puVar2[3] = 0;\n  puVar2[1] = 0;\n  puVar2[4] = 0;\n  puVar2[2] = 0;\n  return puVar2;\n}" type_identifier (pointer_declarator "* safemalloc(uint param_1,uint param_2)" * (function_declarator "safemalloc(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined4 local_cc;\n  undefined2 local_c8;\n  undefined1 local_c6;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000a7ec8;\n  if (param_2 == 0) {\n    trap(7);\n  }\n  local_c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = param_2 * param_1;\n  if (param_1 <= 0x7fffffff / param_2) {\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }\n  local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);\n  local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);\n  local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);\n  local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);\n  local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];\n  (*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);\n  puVar2 = (undefined4 *)0x0;\nLAB_00033b28:\n  if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }\n  iVar3 = local_c;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n  puVar2 = (undefined4 *)safemalloc(1,0x24);\n  puVar2[7] = iVar3;\n  puVar2[6] = 0;\n  puVar2[5] = 0;\n  puVar2[8] = 0;\n  *puVar2 = 1;\n  puVar2[3] = 0;\n  puVar2[1] = 0;\n  puVar2[4] = 0;\n  puVar2[2] = 0;\n  return puVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 local_d4;" type_identifier identifier ;) (declaration "undefined4 local_d0;" type_identifier identifier ;) (declaration "undefined4 local_cc;" type_identifier identifier ;) (declaration "undefined2 local_c8;" type_identifier identifier ;) (declaration "undefined1 local_c6;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000a7ec8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000a7ec8" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    trap(7);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    trap(7);\n  }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000a7ec8;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000a7ec8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000a7ec8" * (cast_expression "(int *)PTR___stack_chk_guard_000a7ec8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar3 = param_2 * param_1;" (assignment_expression "iVar3 = param_2 * param_1" identifier = (binary_expression "param_2 * param_1" identifier * identifier)) ;) (if_statement "if (param_1 <= 0x7fffffff / param_2) {\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }" if (parenthesized_expression "(param_1 <= 0x7fffffff / param_2)" ( (binary_expression "param_1 <= 0x7fffffff / param_2" identifier <= (binary_expression "0x7fffffff / param_2" number_literal / identifier)) )) (compound_statement "{\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }" { (if_statement "if (iVar3 == 0) {\n      iVar3 = 1;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 1;\n    }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) })) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_000a7df0)(iVar3)" (parenthesized_expression "(*(code *)PTR_malloc_000a7df0)" ( (pointer_expression "*(code *)PTR_malloc_000a7df0" * (cast_expression "(code *)PTR_malloc_000a7df0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00033b28;" goto statement_identifier ;)) })) (expression_statement "local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);" (assignment_expression "local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" identifier = (pointer_expression "*(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" * (cast_expression "(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0" identifier + number_literal) ))))) ;) (expression_statement "local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);" (assignment_expression "local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" identifier = (pointer_expression "*(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" * (cast_expression "(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac" identifier + number_literal) ))))) ;) (expression_statement "local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);" (assignment_expression "local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" identifier = (pointer_expression "*(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" * (cast_expression "(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8" identifier + number_literal) ))))) ;) (expression_statement "local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);" (assignment_expression "local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" identifier = (pointer_expression "*(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" * (cast_expression "(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4" identifier + number_literal) ))))) ;) (expression_statement "local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];" (assignment_expression "local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2]" identifier = (subscript_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2]" identifier [ number_literal ])) ;) (expression_statement "(*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);" (call_expression "(*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4)" (parenthesized_expression "(*(code *)PTR_modalfatalbox_000a73cc)" ( (pointer_expression "*(code *)PTR_modalfatalbox_000a73cc" * (cast_expression "(code *)PTR_modalfatalbox_000a73cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4)" ( (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8" identifier + number_literal) , (pointer_expression "&local_d4" & identifier) ))) ;) (expression_statement "puVar2 = (undefined4 *)0x0;" (assignment_expression "puVar2 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00033b28:\n  if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }" statement_identifier : (if_statement "if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar1)" ( (binary_expression "local_c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) }))) (expression_statement "iVar3 = local_c;" (assignment_expression "iVar3 = local_c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a7b74)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a7b74)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a7b74)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a7b74" * (cast_expression "(code *)PTR___stack_chk_fail_000a7b74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar2 = (undefined4 *)safemalloc(1,0x24);" (assignment_expression "puVar2 = (undefined4 *)safemalloc(1,0x24)" identifier = (cast_expression "(undefined4 *)safemalloc(1,0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x24)" identifier (argument_list "(1,0x24)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar2[7] = iVar3;" (assignment_expression "puVar2[7] = iVar3" (subscript_expression "puVar2[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[6] = 0;" (assignment_expression "puVar2[6] = 0" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[8] = 0;" (assignment_expression "puVar2[8] = 0" (subscript_expression "puVar2[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = 1;" (assignment_expression "*puVar2 = 1" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression LIT / IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (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 (assignment_expression IDENT = 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * safemalloc(uint param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined4 local_cc;\n  undefined2 local_c8;\n  undefined1 local_c6;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000a7ec8;\n  if (param_2 == 0) {\n    trap(7);\n  }\n  local_c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = param_2 * param_1;\n  if (param_1 <= 0x7fffffff / param_2) {\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }\n  local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);\n  local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);\n  local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);\n  local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);\n  local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];\n  (*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);\n  puVar2 = (undefined4 *)0x0;\nLAB_00033b28:\n  if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }\n  iVar3 = local_c;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n  puVar2 = (undefined4 *)safemalloc(1,0x24);\n  puVar2[7] = iVar3;\n  puVar2[6] = 0;\n  puVar2[5] = 0;\n  puVar2[8] = 0;\n  *puVar2 = 1;\n  puVar2[3] = 0;\n  puVar2[1] = 0;\n  puVar2[4] = 0;\n  puVar2[2] = 0;\n  return puVar2;\n}" (type_identifier "undefined4") (pointer_declarator "* safemalloc(uint param_1,uint param_2)" (* "*") (function_declarator "safemalloc(uint param_1,uint param_2)" (identifier "safemalloc") (parameter_list "(uint param_1,uint param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 local_d4;\n  undefined4 local_d0;\n  undefined4 local_cc;\n  undefined2 local_c8;\n  undefined1 local_c6;\n  int local_c;\n  \n  puVar1 = PTR___stack_chk_guard_000a7ec8;\n  if (param_2 == 0) {\n    trap(7);\n  }\n  local_c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = param_2 * param_1;\n  if (param_1 <= 0x7fffffff / param_2) {\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }\n  local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);\n  local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);\n  local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);\n  local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);\n  local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];\n  (*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);\n  puVar2 = (undefined4 *)0x0;\nLAB_00033b28:\n  if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }\n  iVar3 = local_c;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n  puVar2 = (undefined4 *)safemalloc(1,0x24);\n  puVar2[7] = iVar3;\n  puVar2[6] = 0;\n  puVar2[5] = 0;\n  puVar2[8] = 0;\n  *puVar2 = 1;\n  puVar2[3] = 0;\n  puVar2[1] = 0;\n  puVar2[4] = 0;\n  puVar2[2] = 0;\n  return puVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 local_d4;" (type_identifier "undefined4") (identifier "local_d4") (; ";")) (declaration "undefined4 local_d0;" (type_identifier "undefined4") (identifier "local_d0") (; ";")) (declaration "undefined4 local_cc;" (type_identifier "undefined4") (identifier "local_cc") (; ";")) (declaration "undefined2 local_c8;" (type_identifier "undefined2") (identifier "local_c8") (; ";")) (declaration "undefined1 local_c6;" (type_identifier "undefined1") (identifier "local_c6") (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_000a7ec8;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000a7ec8" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000a7ec8")) (; ";")) (if_statement "if (param_2 == 0) {\n    trap(7);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    trap(7);\n  }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000a7ec8;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000a7ec8" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000a7ec8" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000a7ec8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000a7ec8")))) (; ";")) (expression_statement "iVar3 = param_2 * param_1;" (assignment_expression "iVar3 = param_2 * param_1" (identifier "iVar3") (= "=") (binary_expression "param_2 * param_1" (identifier "param_2") (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (param_1 <= 0x7fffffff / param_2) {\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }" (if "if") (parenthesized_expression "(param_1 <= 0x7fffffff / param_2)" (( "(") (binary_expression "param_1 <= 0x7fffffff / param_2" (identifier "param_1") (<= "<=") (binary_expression "0x7fffffff / param_2" (number_literal "0x7fffffff") (/ "/") (identifier "param_2"))) () ")")) (compound_statement "{\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);\n    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;\n  }" ({ "{") (if_statement "if (iVar3 == 0) {\n      iVar3 = 1;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = 1;\n    }" ({ "{") (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" (identifier "iVar3") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_malloc_000a7df0)(iVar3)" (parenthesized_expression "(*(code *)PTR_malloc_000a7df0)" (( "(") (pointer_expression "*(code *)PTR_malloc_000a7df0" (* "*") (cast_expression "(code *)PTR_malloc_000a7df0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_000a7df0"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))))) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00033b28;" (goto "goto") (statement_identifier "LAB_00033b28") (; ";"))) (} "}"))) (expression_statement "local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);" (assignment_expression "local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" (identifier "local_d4") (= "=") (pointer_expression "*(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" (* "*") (cast_expression "(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0)" (( "(") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "-0x40b0")) () ")"))))) (; ";")) (expression_statement "local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);" (assignment_expression "local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" (identifier "local_d0") (= "=") (pointer_expression "*(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" (* "*") (cast_expression "(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac)" (( "(") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "-0x40ac")) () ")"))))) (; ";")) (expression_statement "local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);" (assignment_expression "local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" (identifier "local_cc") (= "=") (pointer_expression "*(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" (* "*") (cast_expression "(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8)" (( "(") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "-0x40a8")) () ")"))))) (; ";")) (expression_statement "local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);" (assignment_expression "local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" (identifier "local_c8") (= "=") (pointer_expression "*(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" (* "*") (cast_expression "(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4)" (( "(") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "-0x40a4")) () ")"))))) (; ";")) (expression_statement "local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];" (assignment_expression "local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2]" (identifier "local_c6") (= "=") (subscript_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2]" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") ([ "[") (number_literal "-0x40a2") (] "]"))) (; ";")) (expression_statement "(*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);" (call_expression "(*(code *)PTR_modalfatalbox_000a73cc)\n            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4)" (parenthesized_expression "(*(code *)PTR_modalfatalbox_000a73cc)" (( "(") (pointer_expression "*(code *)PTR_modalfatalbox_000a73cc" (* "*") (cast_expression "(code *)PTR_modalfatalbox_000a73cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_modalfatalbox_000a73cc"))) () ")")) (argument_list "(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4)" (( "(") (binary_expression "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8" (identifier "PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8") (+ "+") (number_literal "-0x10f8")) (, ",") (pointer_expression "&local_d4" (& "&") (identifier "local_d4")) () ")"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)0x0;" (assignment_expression "puVar2 = (undefined4 *)0x0" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (labeled_statement "LAB_00033b28:\n  if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }" (statement_identifier "LAB_00033b28") (: ":") (if_statement "if (local_c == *(int *)puVar1) {\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(local_c == *(int *)puVar1)" (( "(") (binary_expression "local_c == *(int *)puVar1" (identifier "local_c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return puVar2;\n  }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))) (expression_statement "iVar3 = local_c;" (assignment_expression "iVar3 = local_c" (identifier "iVar3") (= "=") (identifier "local_c")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000a7b74)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a7b74)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a7b74)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000a7b74" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000a7b74" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000a7b74"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)safemalloc(1,0x24);" (assignment_expression "puVar2 = (undefined4 *)safemalloc(1,0x24)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)safemalloc(1,0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "safemalloc(1,0x24)" (identifier "safemalloc") (argument_list "(1,0x24)" (( "(") (number_literal "1") (, ",") (number_literal "0x24") () ")"))))) (; ";")) (expression_statement "puVar2[7] = iVar3;" (assignment_expression "puVar2[7] = iVar3" (subscript_expression "puVar2[7]" (identifier "puVar2") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "puVar2[6] = 0;" (assignment_expression "puVar2[6] = 0" (subscript_expression "puVar2[6]" (identifier "puVar2") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[8] = 0;" (assignment_expression "puVar2[8] = 0" (subscript_expression "puVar2[8]" (identifier "puVar2") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar2 = 1;" (assignment_expression "*puVar2 = 1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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)) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (identifier)))))

undefined4 * MASKED(uint param_1,uint param_2)

{
  undefined *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 local_d4;
  undefined4 local_d0;
  undefined4 local_cc;
  undefined2 local_c8;
  undefined1 local_c6;
  int local_c;
  
  puVar1 = PTR___stack_chk_guard_000a7ec8;
  if (param_2 == 0) {
    trap(7);
  }
  local_c = *(int *)PTR___stack_chk_guard_000a7ec8;
  iVar3 = param_2 * param_1;
  if (param_1 <= 0x7fffffff / param_2) {
    if (iVar3 == 0) {
      iVar3 = 1;
    }
    puVar2 = (undefined4 *)(*(code *)PTR_malloc_000a7df0)(iVar3);
    if (puVar2 != (undefined4 *)0x0) goto LAB_00033b28;
  }
  local_d4 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40b0);
  local_d0 = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40ac);
  local_cc = *(undefined4 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a8);
  local_c8 = *(undefined2 *)(PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x40a4);
  local_c6 = PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8[-0x40a2];
  (*(code *)PTR_modalfatalbox_000a73cc)
            (PTR_s_ed_EOF_in_Duplicate_Session_data_000a70d8 + -0x10f8,&local_d4);
  puVar2 = (undefined4 *)0x0;
LAB_00033b28:
  if (local_c == *(int *)puVar1) {
    return puVar2;
  }
  iVar3 = local_c;
  (*(code *)PTR___stack_chk_fail_000a7b74)();
  puVar2 = (undefined4 *)MASKED(1,0x24);
  puVar2[7] = iVar3;
  puVar2[6] = 0;
  puVar2[5] = 0;
  puVar2[8] = 0;
  *puVar2 = 1;
  puVar2[3] = 0;
  puVar2[1] = 0;
  puVar2[4] = 0;
  puVar2[2] = 0;
  return puVar2;
}

