
void * xmalloc(size_t n)

{
  void *pvVar1;
  
  pvVar1 = (void *)(*(code *)PTR_malloc_00027208)();
  if ((pvVar1 == (void *)0x0) && (n != 0)) {
                    /* WARNING: Subroutine does not return */
    xalloc_die();
  }
  return pvVar1;
}



void xmalloc(uint param_1,uint param_2)

{
  ulonglong uVar1;
  int iVar2;
  uint uVar3;
  uint unaff_s0;
  code *pcVar4;
  code *pcVar5;
  undefined4 unaff_retaddr;
  undefined4 uVar6;
  undefined1 auStackX_0 [16];
  
  pcVar5 = xmalloc;
  while( true ) {
    uVar3 = param_1;
    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);
    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;
    *(uint *)((int)register0x00000074 + -8) = unaff_s0;
    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;
    param_1 = uVar3;
    iVar2 = (*pcVar4)();
    if ((iVar2 != 0) || (uVar3 == 0)) break;
    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);
    uVar6 = 0x147e4;
    xalloc_die();
    uVar1 = (ulonglong)param_1;
    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;
    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;
    unaff_s0 = uVar3;
    if (((int)(uVar1 * param_2) < 0) ||
       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {
      iVar2 = *(int *)(&UNK_0001294c + iVar2);
      unaff_retaddr = 0x14834;
      xalloc_die();
      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);
      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);
    }
    else {
      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);
      pcVar5 = *(code **)(&UNK_00012948 + iVar2);
      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);
    }
  }
  return;
}


lui gp,0x2
addiu gp,gp,-0x56d0
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7eb8(gp)
sw gp,0x10(sp)
sw s0,0x18(sp)
sw ra,0x1c(sp)
jalr t9
_or s0,a0,zero
beq v0,zero,0x000147d0
_lw gp,0x10(sp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
beq s0,zero,0x000147c4
_lw ra,0x1c(sp)
lw t9,-0x7f90(gp)
bal 0x00014bb0
_nop
lui gp,0x2
addiu gp,gp,-0x5724
addu gp,gp,t9
multu a0,a1
addiu sp,sp,-0x20
mflo a3
sw gp,0x10(sp)
sw ra,0x1c(sp)
bltz a3,0x00014828
_mfhi a2
sltu v0,zero,a2
bne v0,zero,0x00014828
_mul a0,a0,a1
lw ra,0x1c(sp)
lw t9,-0x7f94(gp)
b 0x00014790
_addiu sp,sp,0x20
lw t9,-0x7f90(gp)
bal 0x00014bb0
_nop
lui gp,0x2
addiu gp,gp,-0x5774
addu gp,gp,t9
lw t9,-0x7f94(gp)
b 0x00014790
_nop
(translation_unit "void xmalloc(uint param_1,uint param_2)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint unaff_s0;\n  code *pcVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xmalloc;\n  while( true ) {\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return;\n}\n\n" (function_definition "void xmalloc(uint param_1,uint param_2)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint unaff_s0;\n  code *pcVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xmalloc;\n  while( true ) {\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "xmalloc(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  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint unaff_s0;\n  code *pcVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xmalloc;\n  while( true ) {\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return;\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint unaff_s0;" type_identifier identifier ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined1 auStackX_0 [16];" type_identifier (array_declarator "auStackX_0 [16]" identifier [ number_literal ]) ;) (expression_statement "pcVar5 = xmalloc;" (assignment_expression "pcVar5 = xmalloc" identifier = identifier) ;) (while_statement "while( true ) {\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }" { (expression_statement "uVar3 = param_1;" (assignment_expression "uVar3 = param_1" identifier = identifier) ;) (expression_statement "pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);" (assignment_expression "pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5)" identifier = (pointer_expression "*(code **)(&DAT_00012a78 + (int)pcVar5)" * (cast_expression "(code **)(&DAT_00012a78 + (int)pcVar5)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_00012a78 + (int)pcVar5)" ( (binary_expression "&DAT_00012a78 + (int)pcVar5" (pointer_expression "&DAT_00012a78" & identifier) + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ))))) ;) (expression_statement "*(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;" (assignment_expression "*(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930" (pointer_expression "*(code **)((int)register0x00000074 + -0x10)" * (cast_expression "(code **)((int)register0x00000074 + -0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x10)" ( (binary_expression "(int)register0x00000074 + -0x10" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "pcVar5 + 0x1a930" identifier + number_literal)) ;) (expression_statement "*(uint *)((int)register0x00000074 + -8) = unaff_s0;" (assignment_expression "*(uint *)((int)register0x00000074 + -8) = unaff_s0" (pointer_expression "*(uint *)((int)register0x00000074 + -8)" * (cast_expression "(uint *)((int)register0x00000074 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -8)" ( (binary_expression "(int)register0x00000074 + -8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -4)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -4)" ( (binary_expression "(int)register0x00000074 + -4" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "param_1 = uVar3;" (assignment_expression "param_1 = uVar3" identifier = identifier) ;) (expression_statement "iVar2 = (*pcVar4)();" (assignment_expression "iVar2 = (*pcVar4)()" identifier = (call_expression "(*pcVar4)()" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 != 0) || (uVar3 == 0)) break;" if (parenthesized_expression "((iVar2 != 0) || (uVar3 == 0))" ( (binary_expression "(iVar2 != 0) || (uVar3 == 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) || (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);" (assignment_expression "iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90)" identifier = (pointer_expression "*(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90)" * (cast_expression "(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)register0x00000074 + -0x10) + -0x7f90)" ( (binary_expression "*(int *)((int)register0x00000074 + -0x10) + -0x7f90" (pointer_expression "*(int *)((int)register0x00000074 + -0x10)" * (cast_expression "(int *)((int)register0x00000074 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x10)" ( (binary_expression "(int)register0x00000074 + -0x10" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar6 = 0x147e4;" (assignment_expression "uVar6 = 0x147e4" identifier = number_literal) ;) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = (ulonglong)param_1;" (assignment_expression "uVar1 = (ulonglong)param_1" identifier = (cast_expression "(ulonglong)param_1" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) ;) (expression_statement "*(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;" (assignment_expression "*(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc" (pointer_expression "*(int *)((int)register0x00000074 + -0x30)" * (cast_expression "(int *)((int)register0x00000074 + -0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x30)" ( (binary_expression "(int)register0x00000074 + -0x30" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "iVar2 + 0x1a8dc" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x24) = uVar6" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x24)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x24)" ( (binary_expression "(int)register0x00000074 + -0x24" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "unaff_s0 = uVar3;" (assignment_expression "unaff_s0 = uVar3" identifier = identifier) ;) (if_statement "if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" if (parenthesized_expression "(((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0))" ( (binary_expression "((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)" (parenthesized_expression "((int)(uVar1 * param_2) < 0)" ( (binary_expression "(int)(uVar1 * param_2) < 0" (cast_expression "(int)(uVar1 * param_2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 * param_2)" ( (binary_expression "uVar1 * param_2" identifier * identifier) ))) < number_literal) )) || (parenthesized_expression "(param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)" ( (comma_expression "param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0" (assignment_expression "param_1 = param_1 * param_2" identifier = (binary_expression "param_1 * param_2" identifier * identifier)) , (binary_expression "(int)(uVar1 * param_2 >> 0x20) != 0" (cast_expression "(int)(uVar1 * param_2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 * param_2 >> 0x20)" ( (binary_expression "uVar1 * param_2 >> 0x20" (binary_expression "uVar1 * param_2" identifier * identifier) >> number_literal) ))) != number_literal)) ))) )) (compound_statement "{\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }" { (expression_statement "iVar2 = *(int *)(&UNK_0001294c + iVar2);" (assignment_expression "iVar2 = *(int *)(&UNK_0001294c + iVar2)" identifier = (pointer_expression "*(int *)(&UNK_0001294c + iVar2)" * (cast_expression "(int *)(&UNK_0001294c + iVar2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&UNK_0001294c + iVar2)" ( (binary_expression "&UNK_0001294c + iVar2" (pointer_expression "&UNK_0001294c" & identifier) + identifier) ))))) ;) (expression_statement "unaff_retaddr = 0x14834;" (assignment_expression "unaff_retaddr = 0x14834" identifier = number_literal) ;) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar5 = *(code **)(&DAT_000128f8 + iVar2);" (assignment_expression "pcVar5 = *(code **)(&DAT_000128f8 + iVar2)" identifier = (pointer_expression "*(code **)(&DAT_000128f8 + iVar2)" * (cast_expression "(code **)(&DAT_000128f8 + iVar2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_000128f8 + iVar2)" ( (binary_expression "&DAT_000128f8 + iVar2" (pointer_expression "&DAT_000128f8" & identifier) + identifier) ))))) ;) (expression_statement "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);" (assignment_expression "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40)" identifier = (cast_expression "(BADSPACEBASE *)((int)register0x00000074 + -0x40)" ( (type_descriptor "BADSPACEBASE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x40)" ( (binary_expression "(int)register0x00000074 + -0x40" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) (else_clause "else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" else (compound_statement "{\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" { (expression_statement "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);" (assignment_expression "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24)" identifier = (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x24)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x24)" ( (binary_expression "(int)register0x00000074 + -0x24" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar5 = *(code **)(&UNK_00012948 + iVar2);" (assignment_expression "pcVar5 = *(code **)(&UNK_00012948 + iVar2)" identifier = (pointer_expression "*(code **)(&UNK_00012948 + iVar2)" * (cast_expression "(code **)(&UNK_00012948 + iVar2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_00012948 + iVar2)" ( (binary_expression "&UNK_00012948 + iVar2" (pointer_expression "&UNK_00012948" & identifier) + identifier) ))))) ;) (expression_statement "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);" (assignment_expression "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20)" identifier = (cast_expression "(BADSPACEBASE *)((int)register0x00000074 + -0x20)" ( (type_descriptor "BADSPACEBASE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x20)" ( (binary_expression "(int)register0x00000074 + -0x20" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit "void * xmalloc(size_t n)\n\n{\n  void *pvVar1;\n  \n  pvVar1 = (void *)(*(code *)PTR_malloc_00027208)();\n  if ((pvVar1 == (void *)0x0) && (n != 0)) {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  return pvVar1;\n}\n\n" (function_definition "void * xmalloc(size_t n)\n\n{\n  void *pvVar1;\n  \n  pvVar1 = (void *)(*(code *)PTR_malloc_00027208)();\n  if ((pvVar1 == (void *)0x0) && (n != 0)) {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  return pvVar1;\n}" primitive_type (pointer_declarator "* xmalloc(size_t n)" * (function_declarator "xmalloc(size_t n)" identifier (parameter_list "(size_t n)" ( (parameter_declaration "size_t n" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  \n  pvVar1 = (void *)(*(code *)PTR_malloc_00027208)();\n  if ((pvVar1 == (void *)0x0) && (n != 0)) {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  return pvVar1;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (expression_statement "pvVar1 = (void *)(*(code *)PTR_malloc_00027208)();" (assignment_expression "pvVar1 = (void *)(*(code *)PTR_malloc_00027208)()" identifier = (cast_expression "(void *)(*(code *)PTR_malloc_00027208)()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00027208)()" (parenthesized_expression "(*(code *)PTR_malloc_00027208)" ( (pointer_expression "*(code *)PTR_malloc_00027208" * (cast_expression "(code *)PTR_malloc_00027208" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((pvVar1 == (void *)0x0) && (n != 0)) {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }" if (parenthesized_expression "((pvVar1 == (void *)0x0) && (n != 0))" ( (binary_expression "(pvVar1 == (void *)0x0) && (n != 0)" (parenthesized_expression "(pvVar1 == (void *)0x0)" ( (binary_expression "pvVar1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(n != 0)" ( (binary_expression "n != 0" identifier != number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }" { comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "void xmalloc(uint param_1,uint param_2)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint unaff_s0;\n  code *pcVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xmalloc;\n  while( true ) {\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return;\n}\n\n" (function_definition "void xmalloc(uint param_1,uint param_2)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint unaff_s0;\n  code *pcVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xmalloc;\n  while( true ) {\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "xmalloc(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  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint unaff_s0;\n  code *pcVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xmalloc;\n  while( true ) {\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return;\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint unaff_s0;" type_identifier identifier ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined1 auStackX_0 [16];" type_identifier (array_declarator "auStackX_0 [16]" identifier [ number_literal ]) ;) (expression_statement "pcVar5 = xmalloc;" (assignment_expression "pcVar5 = xmalloc" identifier = identifier) ;) (while_statement "while( true ) {\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }" { (expression_statement "uVar3 = param_1;" (assignment_expression "uVar3 = param_1" identifier = identifier) ;) (expression_statement "pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);" (assignment_expression "pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5)" identifier = (pointer_expression "*(code **)(&DAT_00012a78 + (int)pcVar5)" * (cast_expression "(code **)(&DAT_00012a78 + (int)pcVar5)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_00012a78 + (int)pcVar5)" ( (binary_expression "&DAT_00012a78 + (int)pcVar5" (pointer_expression "&DAT_00012a78" & identifier) + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ))))) ;) (expression_statement "*(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;" (assignment_expression "*(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930" (pointer_expression "*(code **)((int)register0x00000074 + -0x10)" * (cast_expression "(code **)((int)register0x00000074 + -0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x10)" ( (binary_expression "(int)register0x00000074 + -0x10" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "pcVar5 + 0x1a930" identifier + number_literal)) ;) (expression_statement "*(uint *)((int)register0x00000074 + -8) = unaff_s0;" (assignment_expression "*(uint *)((int)register0x00000074 + -8) = unaff_s0" (pointer_expression "*(uint *)((int)register0x00000074 + -8)" * (cast_expression "(uint *)((int)register0x00000074 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -8)" ( (binary_expression "(int)register0x00000074 + -8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -4)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -4)" ( (binary_expression "(int)register0x00000074 + -4" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "param_1 = uVar3;" (assignment_expression "param_1 = uVar3" identifier = identifier) ;) (expression_statement "iVar2 = (*pcVar4)();" (assignment_expression "iVar2 = (*pcVar4)()" identifier = (call_expression "(*pcVar4)()" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 != 0) || (uVar3 == 0)) break;" if (parenthesized_expression "((iVar2 != 0) || (uVar3 == 0))" ( (binary_expression "(iVar2 != 0) || (uVar3 == 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) || (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);" (assignment_expression "iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90)" identifier = (pointer_expression "*(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90)" * (cast_expression "(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)register0x00000074 + -0x10) + -0x7f90)" ( (binary_expression "*(int *)((int)register0x00000074 + -0x10) + -0x7f90" (pointer_expression "*(int *)((int)register0x00000074 + -0x10)" * (cast_expression "(int *)((int)register0x00000074 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x10)" ( (binary_expression "(int)register0x00000074 + -0x10" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar6 = 0x147e4;" (assignment_expression "uVar6 = 0x147e4" identifier = number_literal) ;) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = (ulonglong)param_1;" (assignment_expression "uVar1 = (ulonglong)param_1" identifier = (cast_expression "(ulonglong)param_1" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) ;) (expression_statement "*(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;" (assignment_expression "*(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc" (pointer_expression "*(int *)((int)register0x00000074 + -0x30)" * (cast_expression "(int *)((int)register0x00000074 + -0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x30)" ( (binary_expression "(int)register0x00000074 + -0x30" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "iVar2 + 0x1a8dc" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x24) = uVar6" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x24)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x24)" ( (binary_expression "(int)register0x00000074 + -0x24" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "unaff_s0 = uVar3;" (assignment_expression "unaff_s0 = uVar3" identifier = identifier) ;) (if_statement "if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" if (parenthesized_expression "(((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0))" ( (binary_expression "((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)" (parenthesized_expression "((int)(uVar1 * param_2) < 0)" ( (binary_expression "(int)(uVar1 * param_2) < 0" (cast_expression "(int)(uVar1 * param_2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 * param_2)" ( (binary_expression "uVar1 * param_2" identifier * identifier) ))) < number_literal) )) || (parenthesized_expression "(param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)" ( (comma_expression "param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0" (assignment_expression "param_1 = param_1 * param_2" identifier = (binary_expression "param_1 * param_2" identifier * identifier)) , (binary_expression "(int)(uVar1 * param_2 >> 0x20) != 0" (cast_expression "(int)(uVar1 * param_2 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 * param_2 >> 0x20)" ( (binary_expression "uVar1 * param_2 >> 0x20" (binary_expression "uVar1 * param_2" identifier * identifier) >> number_literal) ))) != number_literal)) ))) )) (compound_statement "{\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }" { (expression_statement "iVar2 = *(int *)(&UNK_0001294c + iVar2);" (assignment_expression "iVar2 = *(int *)(&UNK_0001294c + iVar2)" identifier = (pointer_expression "*(int *)(&UNK_0001294c + iVar2)" * (cast_expression "(int *)(&UNK_0001294c + iVar2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&UNK_0001294c + iVar2)" ( (binary_expression "&UNK_0001294c + iVar2" (pointer_expression "&UNK_0001294c" & identifier) + identifier) ))))) ;) (expression_statement "unaff_retaddr = 0x14834;" (assignment_expression "unaff_retaddr = 0x14834" identifier = number_literal) ;) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (expression_statement "pcVar5 = *(code **)(&DAT_000128f8 + iVar2);" (assignment_expression "pcVar5 = *(code **)(&DAT_000128f8 + iVar2)" identifier = (pointer_expression "*(code **)(&DAT_000128f8 + iVar2)" * (cast_expression "(code **)(&DAT_000128f8 + iVar2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_000128f8 + iVar2)" ( (binary_expression "&DAT_000128f8 + iVar2" (pointer_expression "&DAT_000128f8" & identifier) + identifier) ))))) ;) (expression_statement "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);" (assignment_expression "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40)" identifier = (cast_expression "(BADSPACEBASE *)((int)register0x00000074 + -0x40)" ( (type_descriptor "BADSPACEBASE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x40)" ( (binary_expression "(int)register0x00000074 + -0x40" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) (else_clause "else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" else (compound_statement "{\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" { (expression_statement "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);" (assignment_expression "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24)" identifier = (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x24)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x24)" ( (binary_expression "(int)register0x00000074 + -0x24" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar5 = *(code **)(&UNK_00012948 + iVar2);" (assignment_expression "pcVar5 = *(code **)(&UNK_00012948 + iVar2)" identifier = (pointer_expression "*(code **)(&UNK_00012948 + iVar2)" * (cast_expression "(code **)(&UNK_00012948 + iVar2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_00012948 + iVar2)" ( (binary_expression "&UNK_00012948 + iVar2" (pointer_expression "&UNK_00012948" & identifier) + identifier) ))))) ;) (expression_statement "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);" (assignment_expression "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20)" identifier = (cast_expression "(BADSPACEBASE *)((int)register0x00000074 + -0x20)" ( (type_descriptor "BADSPACEBASE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x20)" ( (binary_expression "(int)register0x00000074 + -0x20" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT * IDENT) ))) < LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT * IDENT)) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * IDENT) >> LIT) ))) != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) }))) })) (return_statement return ;) })))
(function_definition "void xmalloc(uint param_1,uint param_2)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint unaff_s0;\n  code *pcVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xmalloc;\n  while( true ) {\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "xmalloc(uint param_1,uint param_2)" (identifier "xmalloc") (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  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint unaff_s0;\n  code *pcVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xmalloc;\n  while( true ) {\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return;\n}" ({ "{") (declaration "ulonglong uVar1;" (type_identifier "ulonglong") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint unaff_s0;" (type_identifier "uint") (identifier "unaff_s0") (; ";")) (declaration "code *pcVar4;" (type_identifier "code") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "code *pcVar5;" (type_identifier "code") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined4 unaff_retaddr;" (type_identifier "undefined4") (identifier "unaff_retaddr") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined1 auStackX_0 [16];" (type_identifier "undefined1") (array_declarator "auStackX_0 [16]" (identifier "auStackX_0") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "pcVar5 = xmalloc;" (assignment_expression "pcVar5 = xmalloc" (identifier "pcVar5") (= "=") (identifier "xmalloc")) (; ";")) (while_statement "while( true ) {\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    uVar3 = param_1;\n    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;\n    *(uint *)((int)register0x00000074 + -8) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    param_1 = uVar3;\n    iVar2 = (*pcVar4)();\n    if ((iVar2 != 0) || (uVar3 == 0)) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x147e4;\n    xalloc_die();\n    uVar1 = (ulonglong)param_1;\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    unaff_s0 = uVar3;\n    if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }" ({ "{") (expression_statement "uVar3 = param_1;" (assignment_expression "uVar3 = param_1" (identifier "uVar3") (= "=") (identifier "param_1")) (; ";")) (expression_statement "pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);" (assignment_expression "pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5)" (identifier "pcVar4") (= "=") (pointer_expression "*(code **)(&DAT_00012a78 + (int)pcVar5)" (* "*") (cast_expression "(code **)(&DAT_00012a78 + (int)pcVar5)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_00012a78 + (int)pcVar5)" (( "(") (binary_expression "&DAT_00012a78 + (int)pcVar5" (pointer_expression "&DAT_00012a78" (& "&") (identifier "DAT_00012a78")) (+ "+") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5"))) () ")"))))) (; ";")) (expression_statement "*(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;" (assignment_expression "*(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930" (pointer_expression "*(code **)((int)register0x00000074 + -0x10)" (* "*") (cast_expression "(code **)((int)register0x00000074 + -0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x10)" (( "(") (binary_expression "(int)register0x00000074 + -0x10" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (binary_expression "pcVar5 + 0x1a930" (identifier "pcVar5") (+ "+") (number_literal "0x1a930"))) (; ";")) (expression_statement "*(uint *)((int)register0x00000074 + -8) = unaff_s0;" (assignment_expression "*(uint *)((int)register0x00000074 + -8) = unaff_s0" (pointer_expression "*(uint *)((int)register0x00000074 + -8)" (* "*") (cast_expression "(uint *)((int)register0x00000074 + -8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -8)" (( "(") (binary_expression "(int)register0x00000074 + -8" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-8")) () ")")))) (= "=") (identifier "unaff_s0")) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -4)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -4)" (( "(") (binary_expression "(int)register0x00000074 + -4" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-4")) () ")")))) (= "=") (identifier "unaff_retaddr")) (; ";")) (expression_statement "param_1 = uVar3;" (assignment_expression "param_1 = uVar3" (identifier "param_1") (= "=") (identifier "uVar3")) (; ";")) (expression_statement "iVar2 = (*pcVar4)();" (assignment_expression "iVar2 = (*pcVar4)()" (identifier "iVar2") (= "=") (call_expression "(*pcVar4)()" (parenthesized_expression "(*pcVar4)" (( "(") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar2 != 0) || (uVar3 == 0)) break;" (if "if") (parenthesized_expression "((iVar2 != 0) || (uVar3 == 0))" (( "(") (binary_expression "(iVar2 != 0) || (uVar3 == 0)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);" (assignment_expression "iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90)" (* "*") (cast_expression "(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)((int)register0x00000074 + -0x10) + -0x7f90)" (( "(") (binary_expression "*(int *)((int)register0x00000074 + -0x10) + -0x7f90" (pointer_expression "*(int *)((int)register0x00000074 + -0x10)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x10)" (( "(") (binary_expression "(int)register0x00000074 + -0x10" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x10")) () ")")))) (+ "+") (number_literal "-0x7f90")) () ")"))))) (; ";")) (expression_statement "uVar6 = 0x147e4;" (assignment_expression "uVar6 = 0x147e4" (identifier "uVar6") (= "=") (number_literal "0x147e4")) (; ";")) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" (identifier "xalloc_die") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = (ulonglong)param_1;" (assignment_expression "uVar1 = (ulonglong)param_1" (identifier "uVar1") (= "=") (cast_expression "(ulonglong)param_1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_1"))) (; ";")) (expression_statement "*(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;" (assignment_expression "*(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc" (pointer_expression "*(int *)((int)register0x00000074 + -0x30)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x30)" (( "(") (binary_expression "(int)register0x00000074 + -0x30" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x30")) () ")")))) (= "=") (binary_expression "iVar2 + 0x1a8dc" (identifier "iVar2") (+ "+") (number_literal "0x1a8dc"))) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x24) = uVar6" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x24)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x24)" (( "(") (binary_expression "(int)register0x00000074 + -0x24" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x24")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "unaff_s0 = uVar3;" (assignment_expression "unaff_s0 = uVar3" (identifier "unaff_s0") (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" (if "if") (parenthesized_expression "(((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0))" (( "(") (binary_expression "((int)(uVar1 * param_2) < 0) ||\n       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)" (parenthesized_expression "((int)(uVar1 * param_2) < 0)" (( "(") (binary_expression "(int)(uVar1 * param_2) < 0" (cast_expression "(int)(uVar1 * param_2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar1 * param_2)" (( "(") (binary_expression "uVar1 * param_2" (identifier "uVar1") (* "*") (identifier "param_2")) () ")"))) (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)" (( "(") (comma_expression "param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0" (assignment_expression "param_1 = param_1 * param_2" (identifier "param_1") (= "=") (binary_expression "param_1 * param_2" (identifier "param_1") (* "*") (identifier "param_2"))) (, ",") (binary_expression "(int)(uVar1 * param_2 >> 0x20) != 0" (cast_expression "(int)(uVar1 * param_2 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar1 * param_2 >> 0x20)" (( "(") (binary_expression "uVar1 * param_2 >> 0x20" (binary_expression "uVar1 * param_2" (identifier "uVar1") (* "*") (identifier "param_2")) (>> ">>") (number_literal "0x20")) () ")"))) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      iVar2 = *(int *)(&UNK_0001294c + iVar2);\n      unaff_retaddr = 0x14834;\n      xalloc_die();\n      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(&UNK_0001294c + iVar2);" (assignment_expression "iVar2 = *(int *)(&UNK_0001294c + iVar2)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(&UNK_0001294c + iVar2)" (* "*") (cast_expression "(int *)(&UNK_0001294c + iVar2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&UNK_0001294c + iVar2)" (( "(") (binary_expression "&UNK_0001294c + iVar2" (pointer_expression "&UNK_0001294c" (& "&") (identifier "UNK_0001294c")) (+ "+") (identifier "iVar2")) () ")"))))) (; ";")) (expression_statement "unaff_retaddr = 0x14834;" (assignment_expression "unaff_retaddr = 0x14834" (identifier "unaff_retaddr") (= "=") (number_literal "0x14834")) (; ";")) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" (identifier "xalloc_die") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar5 = *(code **)(&DAT_000128f8 + iVar2);" (assignment_expression "pcVar5 = *(code **)(&DAT_000128f8 + iVar2)" (identifier "pcVar5") (= "=") (pointer_expression "*(code **)(&DAT_000128f8 + iVar2)" (* "*") (cast_expression "(code **)(&DAT_000128f8 + iVar2)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_000128f8 + iVar2)" (( "(") (binary_expression "&DAT_000128f8 + iVar2" (pointer_expression "&DAT_000128f8" (& "&") (identifier "DAT_000128f8")) (+ "+") (identifier "iVar2")) () ")"))))) (; ";")) (expression_statement "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);" (assignment_expression "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40)" (identifier "register0x00000074") (= "=") (cast_expression "(BADSPACEBASE *)((int)register0x00000074 + -0x40)" (( "(") (type_descriptor "BADSPACEBASE *" (type_identifier "BADSPACEBASE") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x40)" (( "(") (binary_expression "(int)register0x00000074 + -0x40" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x40")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" (else "else") (compound_statement "{\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012948 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" ({ "{") (expression_statement "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);" (assignment_expression "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24)" (identifier "unaff_retaddr") (= "=") (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x24)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x24)" (( "(") (binary_expression "(int)register0x00000074 + -0x24" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x24")) () ")"))))) (; ";")) (expression_statement "pcVar5 = *(code **)(&UNK_00012948 + iVar2);" (assignment_expression "pcVar5 = *(code **)(&UNK_00012948 + iVar2)" (identifier "pcVar5") (= "=") (pointer_expression "*(code **)(&UNK_00012948 + iVar2)" (* "*") (cast_expression "(code **)(&UNK_00012948 + iVar2)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&UNK_00012948 + iVar2)" (( "(") (binary_expression "&UNK_00012948 + iVar2" (pointer_expression "&UNK_00012948" (& "&") (identifier "UNK_00012948")) (+ "+") (identifier "iVar2")) () ")"))))) (; ";")) (expression_statement "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);" (assignment_expression "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20)" (identifier "register0x00000074") (= "=") (cast_expression "(BADSPACEBASE *)((int)register0x00000074 + -0x20)" (( "(") (type_descriptor "BADSPACEBASE *" (type_identifier "BADSPACEBASE") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x20)" (( "(") (binary_expression "(int)register0x00000074 + -0x20" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x20")) () ")")))) (; ";")) (} "}")))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void * function_1(size_t var_2)

{
  void *var_1;
  
  var_1 = (void *)(*(type_1 *)PTR_malloc_00027208)();
  if ((var_1 == (void *)0x0) && (var_2 != 0)) {
                    /* WARNING: Subroutine does not return */
    var_3();
  }
  return var_1;
}


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

void MASKED(uint param_1,uint param_2)

{
  ulonglong uVar1;
  int iVar2;
  uint uVar3;
  uint unaff_s0;
  code *pcVar4;
  code *pcVar5;
  undefined4 unaff_retaddr;
  undefined4 uVar6;
  undefined1 auStackX_0 [16];
  
  pcVar5 = MASKED;
  while( true ) {
    uVar3 = param_1;
    pcVar4 = *(code **)(&DAT_00012a78 + (int)pcVar5);
    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a930;
    *(uint *)((int)register0x00000074 + -8) = unaff_s0;
    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;
    param_1 = uVar3;
    iVar2 = (*pcVar4)();
    if ((iVar2 != 0) || (uVar3 == 0)) break;
    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);
    uVar6 = 0x147e4;
    xalloc_die();
    uVar1 = (ulonglong)param_1;
    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a8dc;
    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;
    unaff_s0 = uVar3;
    if (((int)(uVar1 * param_2) < 0) ||
       (param_1 = param_1 * param_2, (int)(uVar1 * param_2 >> 0x20) != 0)) {
      iVar2 = *(int *)(&UNK_0001294c + iVar2);
      unaff_retaddr = 0x14834;
      xalloc_die();
      pcVar5 = *(code **)(&DAT_000128f8 + iVar2);
      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);
    }
    else {
      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);
      pcVar5 = *(code **)(&UNK_00012948 + iVar2);
      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);
    }
  }
  return;
}

