
void * xrealloc(void *p,size_t n)

{
  void *pvVar1;
  
  if (n != 0) {
    pvVar1 = (void *)(*(code *)PTR_realloc_0002720c)();
    if (pvVar1 != (void *)0x0) {
      return pvVar1;
    }
                    /* WARNING: Subroutine does not return */
    xalloc_die();
  }
  if (p == (void *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    pvVar1 = (void *)(*(code *)PTR_malloc_00027208)();
    return pvVar1;
  }
  (*(code *)PTR_free_00027248)();
  return (void *)0x0;
}



int xrealloc(int param_1,uint *param_2,uint param_3)

{
  ulonglong uVar1;
  int iVar2;
  uint uVar3;
  uint *puVar4;
  code *pcVar5;
  undefined4 unaff_retaddr;
  undefined4 uVar6;
  undefined1 auStackX_0 [16];
  
  pcVar5 = xrealloc;
  while( true ) {
    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;
    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;
    if (param_2 == (uint *)0x0) {
      if (param_1 != 0) {
        (**(code **)(&UNK_000129fc + (int)pcVar5))();
        return 0;
      }
                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();
      return iVar2;
    }
    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();
    if (iVar2 != 0) break;
    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);
    uVar6 = 0x148c4;
    xalloc_die();
    uVar1 = ZEXT48(param_2);
    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;
    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;
    puVar4 = param_2;
    if (((int)(uVar1 * param_3) < 0) ||
       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,
       (int)(uVar1 * param_3 >> 0x20) != 0)) {
      iVar2 = *(int *)(&UNK_0001286c + iVar2);
      uVar6 = 0x14914;
      xalloc_die();
      uVar3 = *puVar4;
      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;
      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;
      if (param_1 == 0) {
        if (uVar3 == 0) goto LAB_000149ac;
        goto LAB_00014984;
      }
      if (param_3 == 0) {
        trap(7);
      }
      if (uVar3 < 0x55555554 / param_3) {
        uVar3 = uVar3 + 1 + (uVar3 >> 1);
        param_2 = (uint *)(uVar3 * param_3);
      }
      else {
        do {
          xalloc_die();
LAB_000149ac:
          if (param_3 == 0) {
            trap(7);
          }
          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;
LAB_00014984:
        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||
                (param_2 = (uint *)(uVar3 * param_3),
                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));
      }
      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);
      pcVar5 = *(code **)(&DAT_00012814 + iVar2);
      *puVar4 = uVar3;
      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);
    }
    else {
      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);
      pcVar5 = *(code **)(&UNK_00012864 + iVar2);
      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);
    }
  }
  return iVar2;
}


lui gp,0x2
addiu gp,gp,-0x578c
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
bne a1,zero,0x00014880
_lw t9,-0x7eb4(gp)
bne a0,zero,0x0001489c
_lw ra,0x1c(sp)
lw t9,-0x7eb8(gp)
jr t9
_addiu sp,sp,0x20
jalr t9
_nop
beq v0,zero,0x000148b8
_lw gp,0x10(sp)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7e78(gp)
jalr t9
_nop
or v0,zero,zero
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7f90(gp)
bal 0x00014bb0
_nop
lui gp,0x2
addiu gp,gp,-0x5804
addu gp,gp,t9
multu a1,a2
addiu sp,sp,-0x20
mflo t1
sw gp,0x10(sp)
sw ra,0x1c(sp)
bltz t1,0x00014908
_mfhi t0
sltu v0,zero,t0
bne v0,zero,0x00014908
_mul a1,a1,a2
lw ra,0x1c(sp)
lw t9,-0x7f98(gp)
b 0x0001484c
_addiu sp,sp,0x20
lw t9,-0x7f90(gp)
bal 0x00014bb0
_nop
lui gp,0x2
addiu gp,gp,-0x5854
addu gp,gp,t9
addiu sp,sp,-0x20
lw v0,0x0(a1)
sw gp,0x10(sp)
sw ra,0x1c(sp)
beq a0,zero,0x0001497c
_or a3,a1,zero
lui v1,0x5555
addiu v1,v1,0x5554
teq a2,zero
divu v1,a2
mflo v1
sltu v1,v0,v1
beq v1,zero,0x000149a4
_lw t9,-0x7f90(gp)
srl v1,v0,0x1
addiu v0,v0,0x1
addu v0,v0,v1
mul a1,v0,a2
lw ra,0x1c(sp)
lw t9,-0x7f98(gp)
sw v0,0x0(a3)
b 0x0001484c
_addiu sp,sp,0x20
beq v0,zero,0x000149ac
_nop
multu v0,a2
mfhi t0
mflo t1
bltz t1,0x000149a0
_sltu v1,zero,t0
beq v1,zero,0x00014968
_mul a1,v0,a2
lw t9,-0x7f90(gp)
bal 0x00014bb0
_nop
li v1,0x40
sltiu v0,a2,0x41
teq a2,zero
divu v1,a2
xori v0,v0,0x1
mflo v1
b 0x00014984
_addu v0,v0,v1
(translation_unit "int xrealloc(int param_1,uint *param_2,uint param_3)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xrealloc;\n  while( true ) {\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int xrealloc(int param_1,uint *param_2,uint param_3)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xrealloc;\n  while( true ) {\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return iVar2;\n}" primitive_type (function_declarator "xrealloc(int param_1,uint *param_2,uint param_3)" identifier (parameter_list "(int param_1,uint *param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xrealloc;\n  while( true ) {\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return iVar2;\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * 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 = xrealloc;" (assignment_expression "pcVar5 = xrealloc" identifier = identifier) ;) (while_statement "while( true ) {\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }" { (expression_statement "*(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;" (assignment_expression "*(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874" (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 + 0x1a874" identifier + number_literal)) ;) (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) ;) (if_statement "if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }" if (parenthesized_expression "(param_2 == (uint *)0x0)" ( (binary_expression "param_2 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }" { (if_statement "if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }" { (expression_statement "(**(code **)(&UNK_000129fc + (int)pcVar5))();" (call_expression "(**(code **)(&UNK_000129fc + (int)pcVar5))()" (parenthesized_expression "(**(code **)(&UNK_000129fc + (int)pcVar5))" ( (pointer_expression "**(code **)(&UNK_000129fc + (int)pcVar5)" * (pointer_expression "*(code **)(&UNK_000129fc + (int)pcVar5)" * (cast_expression "(code **)(&UNK_000129fc + (int)pcVar5)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_000129fc + (int)pcVar5)" ( (binary_expression "&UNK_000129fc + (int)pcVar5" (pointer_expression "&UNK_000129fc" & identifier) + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) comment comment (expression_statement "iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();" (assignment_expression "iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))()" identifier = (call_expression "(**(code **)(&UNK_000129bc + (int)pcVar5))()" (parenthesized_expression "(**(code **)(&UNK_000129bc + (int)pcVar5))" ( (pointer_expression "**(code **)(&UNK_000129bc + (int)pcVar5)" * (pointer_expression "*(code **)(&UNK_000129bc + (int)pcVar5)" * (cast_expression "(code **)(&UNK_000129bc + (int)pcVar5)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_000129bc + (int)pcVar5)" ( (binary_expression "&UNK_000129bc + (int)pcVar5" (pointer_expression "&UNK_000129bc" & identifier) + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();" (assignment_expression "iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))()" identifier = (call_expression "(**(code **)(&DAT_000129c0 + (int)pcVar5))()" (parenthesized_expression "(**(code **)(&DAT_000129c0 + (int)pcVar5))" ( (pointer_expression "**(code **)(&DAT_000129c0 + (int)pcVar5)" * (pointer_expression "*(code **)(&DAT_000129c0 + (int)pcVar5)" * (cast_expression "(code **)(&DAT_000129c0 + (int)pcVar5)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_000129c0 + (int)pcVar5)" ( (binary_expression "&DAT_000129c0 + (int)pcVar5" (pointer_expression "&DAT_000129c0" & identifier) + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) break;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 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 = 0x148c4;" (assignment_expression "uVar6 = 0x148c4" identifier = number_literal) ;) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = ZEXT48(param_2);" (assignment_expression "uVar1 = ZEXT48(param_2)" identifier = (call_expression "ZEXT48(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;" (assignment_expression "*(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc" (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 + 0x1a7fc" 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 "puVar4 = param_2;" (assignment_expression "puVar4 = param_2" identifier = identifier) ;) (if_statement "if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" if (parenthesized_expression "(((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0))" ( (binary_expression "((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)" (parenthesized_expression "((int)(uVar1 * param_3) < 0)" ( (binary_expression "(int)(uVar1 * param_3) < 0" (cast_expression "(int)(uVar1 * param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 * param_3)" ( (binary_expression "uVar1 * param_3" identifier * identifier) ))) < number_literal) )) || (parenthesized_expression "(param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)" ( (comma_expression "param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0" (assignment_expression "param_2 = (uint *)((int)param_2 * param_3)" identifier = (cast_expression "(uint *)((int)param_2 * param_3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 * param_3)" ( (binary_expression "(int)param_2 * param_3" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) * identifier) )))) , (comma_expression "puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0" (assignment_expression "puVar4 = param_2" identifier = identifier) , (binary_expression "(int)(uVar1 * param_3 >> 0x20) != 0" (cast_expression "(int)(uVar1 * param_3 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 * param_3 >> 0x20)" ( (binary_expression "uVar1 * param_3 >> 0x20" (binary_expression "uVar1 * param_3" identifier * identifier) >> number_literal) ))) != number_literal))) ))) )) (compound_statement "{\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }" { (expression_statement "iVar2 = *(int *)(&UNK_0001286c + iVar2);" (assignment_expression "iVar2 = *(int *)(&UNK_0001286c + iVar2)" identifier = (pointer_expression "*(int *)(&UNK_0001286c + iVar2)" * (cast_expression "(int *)(&UNK_0001286c + iVar2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&UNK_0001286c + iVar2)" ( (binary_expression "&UNK_0001286c + iVar2" (pointer_expression "&UNK_0001286c" & identifier) + identifier) ))))) ;) (expression_statement "uVar6 = 0x14914;" (assignment_expression "uVar6 = 0x14914" identifier = number_literal) ;) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar3 = *puVar4;" (assignment_expression "uVar3 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "*(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;" (assignment_expression "*(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac" (pointer_expression "*(int *)((int)register0x00000074 + -0x50)" * (cast_expression "(int *)((int)register0x00000074 + -0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x50)" ( (binary_expression "(int)register0x00000074 + -0x50" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "iVar2 + 0x1a7ac" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x44) = uVar6" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x44)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x44)" ( (binary_expression "(int)register0x00000074 + -0x44" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }" { (if_statement "if (uVar3 == 0) goto LAB_000149ac;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000149ac;" goto statement_identifier ;)) (goto_statement "goto LAB_00014984;" goto statement_identifier ;) })) (if_statement "if (param_3 == 0) {\n        trap(7);\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        trap(7);\n      }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (if_statement "if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }" if (parenthesized_expression "(uVar3 < 0x55555554 / param_3)" ( (binary_expression "uVar3 < 0x55555554 / param_3" identifier < (binary_expression "0x55555554 / param_3" number_literal / identifier)) )) (compound_statement "{\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }" { (expression_statement "uVar3 = uVar3 + 1 + (uVar3 >> 1);" (assignment_expression "uVar3 = uVar3 + 1 + (uVar3 >> 1)" identifier = (binary_expression "uVar3 + 1 + (uVar3 >> 1)" (binary_expression "uVar3 + 1" identifier + number_literal) + (parenthesized_expression "(uVar3 >> 1)" ( (binary_expression "uVar3 >> 1" identifier >> number_literal) )))) ;) (expression_statement "param_2 = (uint *)(uVar3 * param_3);" (assignment_expression "param_2 = (uint *)(uVar3 * param_3)" identifier = (cast_expression "(uint *)(uVar3 * param_3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 * param_3)" ( (binary_expression "uVar3 * param_3" identifier * identifier) )))) ;) }) (else_clause "else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }" else (compound_statement "{\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }" { (do_statement "do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));" do (compound_statement "{\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        }" { (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }" statement_identifier : (if_statement "if (param_3 == 0) {\n            trap(7);\n          }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 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 "uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;" (assignment_expression "uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3" identifier = (binary_expression "(param_3 < 0x41 ^ 1) + 0x40 / param_3" (parenthesized_expression "(param_3 < 0x41 ^ 1)" ( (binary_expression "param_3 < 0x41 ^ 1" (binary_expression "param_3 < 0x41" identifier < number_literal) ^ number_literal) )) + (binary_expression "0x40 / param_3" number_literal / identifier))) ;) (labeled_statement "LAB_00014984:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0))" ( (binary_expression "((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0)" (parenthesized_expression "((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0)" ( (binary_expression "(int)((ulonglong)uVar3 * (ulonglong)param_3) < 0" (cast_expression "(int)((ulonglong)uVar3 * (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar3 * (ulonglong)param_3)" ( (binary_expression "(ulonglong)uVar3 * (ulonglong)param_3" (cast_expression "(ulonglong)uVar3" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) ))) < number_literal) )) || (parenthesized_expression "(param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0)" ( (comma_expression "param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0" (assignment_expression "param_2 = (uint *)(uVar3 * param_3)" identifier = (cast_expression "(uint *)(uVar3 * param_3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 * param_3)" ( (binary_expression "uVar3 * param_3" identifier * identifier) )))) , (binary_expression "(int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0" (cast_expression "(int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20)" ( (binary_expression "(ulonglong)uVar3 * (ulonglong)param_3 >> 0x20" (binary_expression "(ulonglong)uVar3 * (ulonglong)param_3" (cast_expression "(ulonglong)uVar3" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) != number_literal)) ))) )) ;) }))) (expression_statement "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);" (assignment_expression "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44)" identifier = (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x44)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x44)" ( (binary_expression "(int)register0x00000074 + -0x44" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar5 = *(code **)(&DAT_00012814 + iVar2);" (assignment_expression "pcVar5 = *(code **)(&DAT_00012814 + iVar2)" identifier = (pointer_expression "*(code **)(&DAT_00012814 + iVar2)" * (cast_expression "(code **)(&DAT_00012814 + iVar2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_00012814 + iVar2)" ( (binary_expression "&DAT_00012814 + iVar2" (pointer_expression "&DAT_00012814" & identifier) + identifier) ))))) ;) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" * 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_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" else (compound_statement "{\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + 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_00012864 + iVar2);" (assignment_expression "pcVar5 = *(code **)(&UNK_00012864 + iVar2)" identifier = (pointer_expression "*(code **)(&UNK_00012864 + iVar2)" * (cast_expression "(code **)(&UNK_00012864 + iVar2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_00012864 + iVar2)" ( (binary_expression "&UNK_00012864 + iVar2" (pointer_expression "&UNK_00012864" & 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 iVar2;" return identifier ;) })))
(translation_unit "void * xrealloc(void *p,size_t n)\n\n{\n  void *pvVar1;\n  \n  if (n != 0) {\n    pvVar1 = (void *)(*(code *)PTR_realloc_0002720c)();\n    if (pvVar1 != (void *)0x0) {\n      return pvVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  if (p == (void *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*(code *)PTR_malloc_00027208)();\n    return pvVar1;\n  }\n  (*(code *)PTR_free_00027248)();\n  return (void *)0x0;\n}\n\n" (function_definition "void * xrealloc(void *p,size_t n)\n\n{\n  void *pvVar1;\n  \n  if (n != 0) {\n    pvVar1 = (void *)(*(code *)PTR_realloc_0002720c)();\n    if (pvVar1 != (void *)0x0) {\n      return pvVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  if (p == (void *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*(code *)PTR_malloc_00027208)();\n    return pvVar1;\n  }\n  (*(code *)PTR_free_00027248)();\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* xrealloc(void *p,size_t n)" * (function_declarator "xrealloc(void *p,size_t n)" identifier (parameter_list "(void *p,size_t n)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "size_t n" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  \n  if (n != 0) {\n    pvVar1 = (void *)(*(code *)PTR_realloc_0002720c)();\n    if (pvVar1 != (void *)0x0) {\n      return pvVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  if (p == (void *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*(code *)PTR_malloc_00027208)();\n    return pvVar1;\n  }\n  (*(code *)PTR_free_00027248)();\n  return (void *)0x0;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (if_statement "if (n != 0) {\n    pvVar1 = (void *)(*(code *)PTR_realloc_0002720c)();\n    if (pvVar1 != (void *)0x0) {\n      return pvVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }" if (parenthesized_expression "(n != 0)" ( (binary_expression "n != 0" identifier != number_literal) )) (compound_statement "{\n    pvVar1 = (void *)(*(code *)PTR_realloc_0002720c)();\n    if (pvVar1 != (void *)0x0) {\n      return pvVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }" { (expression_statement "pvVar1 = (void *)(*(code *)PTR_realloc_0002720c)();" (assignment_expression "pvVar1 = (void *)(*(code *)PTR_realloc_0002720c)()" identifier = (cast_expression "(void *)(*(code *)PTR_realloc_0002720c)()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_realloc_0002720c)()" (parenthesized_expression "(*(code *)PTR_realloc_0002720c)" ( (pointer_expression "*(code *)PTR_realloc_0002720c" * (cast_expression "(code *)PTR_realloc_0002720c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (pvVar1 != (void *)0x0) {\n      return pvVar1;\n    }" if (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)) )) (compound_statement "{\n      return pvVar1;\n    }" { (return_statement "return pvVar1;" return identifier ;) })) comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (p == (void *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*(code *)PTR_malloc_00027208)();\n    return pvVar1;\n  }" if (parenthesized_expression "(p == (void *)0x0)" ( (binary_expression "p == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pvVar1 = (void *)(*(code *)PTR_malloc_00027208)();\n    return pvVar1;\n  }" { comment comment (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 "()" ( ))))) ;) (return_statement "return pvVar1;" return identifier ;) })) (expression_statement "(*(code *)PTR_free_00027248)();" (call_expression "(*(code *)PTR_free_00027248)()" (parenthesized_expression "(*(code *)PTR_free_00027248)" ( (pointer_expression "*(code *)PTR_free_00027248" * (cast_expression "(code *)PTR_free_00027248" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int xrealloc(int param_1,uint *param_2,uint param_3)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xrealloc;\n  while( true ) {\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int xrealloc(int param_1,uint *param_2,uint param_3)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xrealloc;\n  while( true ) {\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return iVar2;\n}" primitive_type (function_declarator "xrealloc(int param_1,uint *param_2,uint param_3)" identifier (parameter_list "(int param_1,uint *param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xrealloc;\n  while( true ) {\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return iVar2;\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * 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 = xrealloc;" (assignment_expression "pcVar5 = xrealloc" identifier = identifier) ;) (while_statement "while( true ) {\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }" { (expression_statement "*(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;" (assignment_expression "*(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874" (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 + 0x1a874" identifier + number_literal)) ;) (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) ;) (if_statement "if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }" if (parenthesized_expression "(param_2 == (uint *)0x0)" ( (binary_expression "param_2 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }" { (if_statement "if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }" { (expression_statement "(**(code **)(&UNK_000129fc + (int)pcVar5))();" (call_expression "(**(code **)(&UNK_000129fc + (int)pcVar5))()" (parenthesized_expression "(**(code **)(&UNK_000129fc + (int)pcVar5))" ( (pointer_expression "**(code **)(&UNK_000129fc + (int)pcVar5)" * (pointer_expression "*(code **)(&UNK_000129fc + (int)pcVar5)" * (cast_expression "(code **)(&UNK_000129fc + (int)pcVar5)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_000129fc + (int)pcVar5)" ( (binary_expression "&UNK_000129fc + (int)pcVar5" (pointer_expression "&UNK_000129fc" & identifier) + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();" (assignment_expression "iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))()" identifier = (call_expression "(**(code **)(&UNK_000129bc + (int)pcVar5))()" (parenthesized_expression "(**(code **)(&UNK_000129bc + (int)pcVar5))" ( (pointer_expression "**(code **)(&UNK_000129bc + (int)pcVar5)" * (pointer_expression "*(code **)(&UNK_000129bc + (int)pcVar5)" * (cast_expression "(code **)(&UNK_000129bc + (int)pcVar5)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_000129bc + (int)pcVar5)" ( (binary_expression "&UNK_000129bc + (int)pcVar5" (pointer_expression "&UNK_000129bc" & identifier) + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();" (assignment_expression "iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))()" identifier = (call_expression "(**(code **)(&DAT_000129c0 + (int)pcVar5))()" (parenthesized_expression "(**(code **)(&DAT_000129c0 + (int)pcVar5))" ( (pointer_expression "**(code **)(&DAT_000129c0 + (int)pcVar5)" * (pointer_expression "*(code **)(&DAT_000129c0 + (int)pcVar5)" * (cast_expression "(code **)(&DAT_000129c0 + (int)pcVar5)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_000129c0 + (int)pcVar5)" ( (binary_expression "&DAT_000129c0 + (int)pcVar5" (pointer_expression "&DAT_000129c0" & identifier) + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) break;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 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 = 0x148c4;" (assignment_expression "uVar6 = 0x148c4" identifier = number_literal) ;) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = ZEXT48(param_2);" (assignment_expression "uVar1 = ZEXT48(param_2)" identifier = (call_expression "ZEXT48(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;" (assignment_expression "*(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc" (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 + 0x1a7fc" 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 "puVar4 = param_2;" (assignment_expression "puVar4 = param_2" identifier = identifier) ;) (if_statement "if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" if (parenthesized_expression "(((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0))" ( (binary_expression "((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)" (parenthesized_expression "((int)(uVar1 * param_3) < 0)" ( (binary_expression "(int)(uVar1 * param_3) < 0" (cast_expression "(int)(uVar1 * param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 * param_3)" ( (binary_expression "uVar1 * param_3" identifier * identifier) ))) < number_literal) )) || (parenthesized_expression "(param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)" ( (comma_expression "param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0" (assignment_expression "param_2 = (uint *)((int)param_2 * param_3)" identifier = (cast_expression "(uint *)((int)param_2 * param_3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 * param_3)" ( (binary_expression "(int)param_2 * param_3" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) * identifier) )))) , (comma_expression "puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0" (assignment_expression "puVar4 = param_2" identifier = identifier) , (binary_expression "(int)(uVar1 * param_3 >> 0x20) != 0" (cast_expression "(int)(uVar1 * param_3 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 * param_3 >> 0x20)" ( (binary_expression "uVar1 * param_3 >> 0x20" (binary_expression "uVar1 * param_3" identifier * identifier) >> number_literal) ))) != number_literal))) ))) )) (compound_statement "{\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }" { (expression_statement "iVar2 = *(int *)(&UNK_0001286c + iVar2);" (assignment_expression "iVar2 = *(int *)(&UNK_0001286c + iVar2)" identifier = (pointer_expression "*(int *)(&UNK_0001286c + iVar2)" * (cast_expression "(int *)(&UNK_0001286c + iVar2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&UNK_0001286c + iVar2)" ( (binary_expression "&UNK_0001286c + iVar2" (pointer_expression "&UNK_0001286c" & identifier) + identifier) ))))) ;) (expression_statement "uVar6 = 0x14914;" (assignment_expression "uVar6 = 0x14914" identifier = number_literal) ;) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar3 = *puVar4;" (assignment_expression "uVar3 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "*(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;" (assignment_expression "*(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac" (pointer_expression "*(int *)((int)register0x00000074 + -0x50)" * (cast_expression "(int *)((int)register0x00000074 + -0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x50)" ( (binary_expression "(int)register0x00000074 + -0x50" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "iVar2 + 0x1a7ac" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x44) = uVar6" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x44)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x44)" ( (binary_expression "(int)register0x00000074 + -0x44" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }" { (if_statement "if (uVar3 == 0) goto LAB_000149ac;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000149ac;" goto statement_identifier ;)) (goto_statement "goto LAB_00014984;" goto statement_identifier ;) })) (if_statement "if (param_3 == 0) {\n        trap(7);\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        trap(7);\n      }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (if_statement "if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }" if (parenthesized_expression "(uVar3 < 0x55555554 / param_3)" ( (binary_expression "uVar3 < 0x55555554 / param_3" identifier < (binary_expression "0x55555554 / param_3" number_literal / identifier)) )) (compound_statement "{\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }" { (expression_statement "uVar3 = uVar3 + 1 + (uVar3 >> 1);" (assignment_expression "uVar3 = uVar3 + 1 + (uVar3 >> 1)" identifier = (binary_expression "uVar3 + 1 + (uVar3 >> 1)" (binary_expression "uVar3 + 1" identifier + number_literal) + (parenthesized_expression "(uVar3 >> 1)" ( (binary_expression "uVar3 >> 1" identifier >> number_literal) )))) ;) (expression_statement "param_2 = (uint *)(uVar3 * param_3);" (assignment_expression "param_2 = (uint *)(uVar3 * param_3)" identifier = (cast_expression "(uint *)(uVar3 * param_3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 * param_3)" ( (binary_expression "uVar3 * param_3" identifier * identifier) )))) ;) }) (else_clause "else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }" else (compound_statement "{\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }" { (do_statement "do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));" do (compound_statement "{\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        }" { (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }" statement_identifier : (if_statement "if (param_3 == 0) {\n            trap(7);\n          }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 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 "uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;" (assignment_expression "uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3" identifier = (binary_expression "(param_3 < 0x41 ^ 1) + 0x40 / param_3" (parenthesized_expression "(param_3 < 0x41 ^ 1)" ( (binary_expression "param_3 < 0x41 ^ 1" (binary_expression "param_3 < 0x41" identifier < number_literal) ^ number_literal) )) + (binary_expression "0x40 / param_3" number_literal / identifier))) ;) (labeled_statement "LAB_00014984:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0))" ( (binary_expression "((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0)" (parenthesized_expression "((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0)" ( (binary_expression "(int)((ulonglong)uVar3 * (ulonglong)param_3) < 0" (cast_expression "(int)((ulonglong)uVar3 * (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar3 * (ulonglong)param_3)" ( (binary_expression "(ulonglong)uVar3 * (ulonglong)param_3" (cast_expression "(ulonglong)uVar3" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) ))) < number_literal) )) || (parenthesized_expression "(param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0)" ( (comma_expression "param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0" (assignment_expression "param_2 = (uint *)(uVar3 * param_3)" identifier = (cast_expression "(uint *)(uVar3 * param_3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar3 * param_3)" ( (binary_expression "uVar3 * param_3" identifier * identifier) )))) , (binary_expression "(int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0" (cast_expression "(int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20)" ( (binary_expression "(ulonglong)uVar3 * (ulonglong)param_3 >> 0x20" (binary_expression "(ulonglong)uVar3 * (ulonglong)param_3" (cast_expression "(ulonglong)uVar3" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) != number_literal)) ))) )) ;) }))) (expression_statement "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);" (assignment_expression "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44)" identifier = (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x44)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x44)" ( (binary_expression "(int)register0x00000074 + -0x44" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar5 = *(code **)(&DAT_00012814 + iVar2);" (assignment_expression "pcVar5 = *(code **)(&DAT_00012814 + iVar2)" identifier = (pointer_expression "*(code **)(&DAT_00012814 + iVar2)" * (cast_expression "(code **)(&DAT_00012814 + iVar2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_00012814 + iVar2)" ( (binary_expression "&DAT_00012814 + iVar2" (pointer_expression "&DAT_00012814" & identifier) + identifier) ))))) ;) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" * 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_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" else (compound_statement "{\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + 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_00012864 + iVar2);" (assignment_expression "pcVar5 = *(code **)(&UNK_00012864 + iVar2)" identifier = (pointer_expression "*(code **)(&UNK_00012864 + iVar2)" * (cast_expression "(code **)(&UNK_00012864 + iVar2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_00012864 + iVar2)" ( (binary_expression "&UNK_00012864 + iVar2" (pointer_expression "&UNK_00012864" & 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 iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 (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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (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)) ))))) )) (argument_list ( ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (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)) ))))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (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)) ))))) )) (argument_list ( )))) ;) (if_statement if (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 = (call_expression IDENT (argument_list ( 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * IDENT) )))) , (comma_expression (assignment_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 * 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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression LIT / IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT * IDENT) )))) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT < LIT) ^ LIT) )) + (binary_expression LIT / IDENT))) ;) (labeled_statement statement_identifier : (expression_statement ;)) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) < LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT * IDENT) )))) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) ))) != LIT)) ))) )) ;) }))) (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 (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 IDENT ;) })))
(function_definition "int xrealloc(int param_1,uint *param_2,uint param_3)\n\n{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xrealloc;\n  while( true ) {\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "xrealloc(int param_1,uint *param_2,uint param_3)" (identifier "xrealloc") (parameter_list "(int param_1,uint *param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  ulonglong uVar1;\n  int iVar2;\n  uint uVar3;\n  uint *puVar4;\n  code *pcVar5;\n  undefined4 unaff_retaddr;\n  undefined4 uVar6;\n  undefined1 auStackX_0 [16];\n  \n  pcVar5 = xrealloc;\n  while( true ) {\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }\n  return iVar2;\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 *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (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 = xrealloc;" (assignment_expression "pcVar5 = xrealloc" (identifier "pcVar5") (= "=") (identifier "xrealloc")) (; ";")) (while_statement "while( true ) {\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }\n    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();\n    if (iVar2 != 0) break;\n    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);\n    uVar6 = 0x148c4;\n    xalloc_die();\n    uVar1 = ZEXT48(param_2);\n    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;\n    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;\n    puVar4 = param_2;\n    if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }\n  }" ({ "{") (expression_statement "*(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;" (assignment_expression "*(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874" (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 + 0x1a874" (identifier "pcVar5") (+ "+") (number_literal "0x1a874"))) (; ";")) (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")) (; ";")) (if_statement "if (param_2 == (uint *)0x0) {\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }" (if "if") (parenthesized_expression "(param_2 == (uint *)0x0)" (( "(") (binary_expression "param_2 == (uint *)0x0" (identifier "param_2") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }\n                    \n                    \n      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();\n      return iVar2;\n    }" ({ "{") (if_statement "if (param_1 != 0) {\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (**(code **)(&UNK_000129fc + (int)pcVar5))();\n        return 0;\n      }" ({ "{") (expression_statement "(**(code **)(&UNK_000129fc + (int)pcVar5))();" (call_expression "(**(code **)(&UNK_000129fc + (int)pcVar5))()" (parenthesized_expression "(**(code **)(&UNK_000129fc + (int)pcVar5))" (( "(") (pointer_expression "**(code **)(&UNK_000129fc + (int)pcVar5)" (* "*") (pointer_expression "*(code **)(&UNK_000129fc + (int)pcVar5)" (* "*") (cast_expression "(code **)(&UNK_000129fc + (int)pcVar5)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&UNK_000129fc + (int)pcVar5)" (( "(") (binary_expression "&UNK_000129fc + (int)pcVar5" (pointer_expression "&UNK_000129fc" (& "&") (identifier "UNK_000129fc")) (+ "+") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5"))) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();" (assignment_expression "iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))()" (identifier "iVar2") (= "=") (call_expression "(**(code **)(&UNK_000129bc + (int)pcVar5))()" (parenthesized_expression "(**(code **)(&UNK_000129bc + (int)pcVar5))" (( "(") (pointer_expression "**(code **)(&UNK_000129bc + (int)pcVar5)" (* "*") (pointer_expression "*(code **)(&UNK_000129bc + (int)pcVar5)" (* "*") (cast_expression "(code **)(&UNK_000129bc + (int)pcVar5)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&UNK_000129bc + (int)pcVar5)" (( "(") (binary_expression "&UNK_000129bc + (int)pcVar5" (pointer_expression "&UNK_000129bc" (& "&") (identifier "UNK_000129bc")) (+ "+") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5"))) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();" (assignment_expression "iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))()" (identifier "iVar2") (= "=") (call_expression "(**(code **)(&DAT_000129c0 + (int)pcVar5))()" (parenthesized_expression "(**(code **)(&DAT_000129c0 + (int)pcVar5))" (( "(") (pointer_expression "**(code **)(&DAT_000129c0 + (int)pcVar5)" (* "*") (pointer_expression "*(code **)(&DAT_000129c0 + (int)pcVar5)" (* "*") (cast_expression "(code **)(&DAT_000129c0 + (int)pcVar5)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_000129c0 + (int)pcVar5)" (( "(") (binary_expression "&DAT_000129c0 + (int)pcVar5" (pointer_expression "&DAT_000129c0" (& "&") (identifier "DAT_000129c0")) (+ "+") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5"))) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) break;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (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 = 0x148c4;" (assignment_expression "uVar6 = 0x148c4" (identifier "uVar6") (= "=") (number_literal "0x148c4")) (; ";")) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" (identifier "xalloc_die") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = ZEXT48(param_2);" (assignment_expression "uVar1 = ZEXT48(param_2)" (identifier "uVar1") (= "=") (call_expression "ZEXT48(param_2)" (identifier "ZEXT48") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;" (assignment_expression "*(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc" (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 + 0x1a7fc" (identifier "iVar2") (+ "+") (number_literal "0x1a7fc"))) (; ";")) (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 "puVar4 = param_2;" (assignment_expression "puVar4 = param_2" (identifier "puVar4") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)) {\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }\n    else {\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" (if "if") (parenthesized_expression "(((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0))" (( "(") (binary_expression "((int)(uVar1 * param_3) < 0) ||\n       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)" (parenthesized_expression "((int)(uVar1 * param_3) < 0)" (( "(") (binary_expression "(int)(uVar1 * param_3) < 0" (cast_expression "(int)(uVar1 * param_3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar1 * param_3)" (( "(") (binary_expression "uVar1 * param_3" (identifier "uVar1") (* "*") (identifier "param_3")) () ")"))) (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0)" (( "(") (comma_expression "param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0" (assignment_expression "param_2 = (uint *)((int)param_2 * param_3)" (identifier "param_2") (= "=") (cast_expression "(uint *)((int)param_2 * param_3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 * param_3)" (( "(") (binary_expression "(int)param_2 * param_3" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (* "*") (identifier "param_3")) () ")")))) (, ",") (comma_expression "puVar4 = param_2,\n       (int)(uVar1 * param_3 >> 0x20) != 0" (assignment_expression "puVar4 = param_2" (identifier "puVar4") (= "=") (identifier "param_2")) (, ",") (binary_expression "(int)(uVar1 * param_3 >> 0x20) != 0" (cast_expression "(int)(uVar1 * param_3 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar1 * param_3 >> 0x20)" (( "(") (binary_expression "uVar1 * param_3 >> 0x20" (binary_expression "uVar1 * param_3" (identifier "uVar1") (* "*") (identifier "param_3")) (>> ">>") (number_literal "0x20")) () ")"))) (!= "!=") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n      iVar2 = *(int *)(&UNK_0001286c + iVar2);\n      uVar6 = 0x14914;\n      xalloc_die();\n      uVar3 = *puVar4;\n      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;\n      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;\n      if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }\n      if (param_3 == 0) {\n        trap(7);\n      }\n      if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);\n      pcVar5 = *(code **)(&DAT_00012814 + iVar2);\n      *puVar4 = uVar3;\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(&UNK_0001286c + iVar2);" (assignment_expression "iVar2 = *(int *)(&UNK_0001286c + iVar2)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(&UNK_0001286c + iVar2)" (* "*") (cast_expression "(int *)(&UNK_0001286c + iVar2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&UNK_0001286c + iVar2)" (( "(") (binary_expression "&UNK_0001286c + iVar2" (pointer_expression "&UNK_0001286c" (& "&") (identifier "UNK_0001286c")) (+ "+") (identifier "iVar2")) () ")"))))) (; ";")) (expression_statement "uVar6 = 0x14914;" (assignment_expression "uVar6 = 0x14914" (identifier "uVar6") (= "=") (number_literal "0x14914")) (; ";")) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" (identifier "xalloc_die") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar3 = *puVar4;" (assignment_expression "uVar3 = *puVar4" (identifier "uVar3") (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "*(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;" (assignment_expression "*(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac" (pointer_expression "*(int *)((int)register0x00000074 + -0x50)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x50)" (( "(") (binary_expression "(int)register0x00000074 + -0x50" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x50")) () ")")))) (= "=") (binary_expression "iVar2 + 0x1a7ac" (identifier "iVar2") (+ "+") (number_literal "0x1a7ac"))) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x44) = uVar6" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x44)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x44)" (( "(") (binary_expression "(int)register0x00000074 + -0x44" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x44")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (param_1 == 0) {\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (uVar3 == 0) goto LAB_000149ac;\n        goto LAB_00014984;\n      }" ({ "{") (if_statement "if (uVar3 == 0) goto LAB_000149ac;" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000149ac;" (goto "goto") (statement_identifier "LAB_000149ac") (; ";"))) (goto_statement "goto LAB_00014984;" (goto "goto") (statement_identifier "LAB_00014984") (; ";")) (} "}"))) (if_statement "if (param_3 == 0) {\n        trap(7);\n      }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (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") () ")"))) (; ";")) (} "}"))) (if_statement "if (uVar3 < 0x55555554 / param_3) {\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }\n      else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }" (if "if") (parenthesized_expression "(uVar3 < 0x55555554 / param_3)" (( "(") (binary_expression "uVar3 < 0x55555554 / param_3" (identifier "uVar3") (< "<") (binary_expression "0x55555554 / param_3" (number_literal "0x55555554") (/ "/") (identifier "param_3"))) () ")")) (compound_statement "{\n        uVar3 = uVar3 + 1 + (uVar3 >> 1);\n        param_2 = (uint *)(uVar3 * param_3);\n      }" ({ "{") (expression_statement "uVar3 = uVar3 + 1 + (uVar3 >> 1);" (assignment_expression "uVar3 = uVar3 + 1 + (uVar3 >> 1)" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1 + (uVar3 >> 1)" (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1")) (+ "+") (parenthesized_expression "(uVar3 >> 1)" (( "(") (binary_expression "uVar3 >> 1" (identifier "uVar3") (>> ">>") (number_literal "1")) () ")")))) (; ";")) (expression_statement "param_2 = (uint *)(uVar3 * param_3);" (assignment_expression "param_2 = (uint *)(uVar3 * param_3)" (identifier "param_2") (= "=") (cast_expression "(uint *)(uVar3 * param_3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar3 * param_3)" (( "(") (binary_expression "uVar3 * param_3" (identifier "uVar3") (* "*") (identifier "param_3")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }" (else "else") (compound_statement "{\n        do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));\n      }" ({ "{") (do_statement "do {\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));" (do "do") (compound_statement "{\n          xalloc_die();\nLAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }\n          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;\nLAB_00014984:\n        }" ({ "{") (expression_statement "xalloc_die();" (call_expression "xalloc_die()" (identifier "xalloc_die") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_000149ac:\n          if (param_3 == 0) {\n            trap(7);\n          }" (statement_identifier "LAB_000149ac") (: ":") (if_statement "if (param_3 == 0) {\n            trap(7);\n          }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (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 "uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;" (assignment_expression "uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3" (identifier "uVar3") (= "=") (binary_expression "(param_3 < 0x41 ^ 1) + 0x40 / param_3" (parenthesized_expression "(param_3 < 0x41 ^ 1)" (( "(") (binary_expression "param_3 < 0x41 ^ 1" (binary_expression "param_3 < 0x41" (identifier "param_3") (< "<") (number_literal "0x41")) (^ "^") (number_literal "1")) () ")")) (+ "+") (binary_expression "0x40 / param_3" (number_literal "0x40") (/ "/") (identifier "param_3")))) (; ";")) (labeled_statement "LAB_00014984:" (statement_identifier "LAB_00014984") (: ":") (expression_statement "" (; ""))) (} "}")) (while "while") (parenthesized_expression "(((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0))" (( "(") (binary_expression "((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||\n                (param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0)" (parenthesized_expression "((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0)" (( "(") (binary_expression "(int)((ulonglong)uVar3 * (ulonglong)param_3) < 0" (cast_expression "(int)((ulonglong)uVar3 * (ulonglong)param_3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar3 * (ulonglong)param_3)" (( "(") (binary_expression "(ulonglong)uVar3 * (ulonglong)param_3" (cast_expression "(ulonglong)uVar3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar3")) (* "*") (cast_expression "(ulonglong)param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_3"))) () ")"))) (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0)" (( "(") (comma_expression "param_2 = (uint *)(uVar3 * param_3),\n                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0" (assignment_expression "param_2 = (uint *)(uVar3 * param_3)" (identifier "param_2") (= "=") (cast_expression "(uint *)(uVar3 * param_3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar3 * param_3)" (( "(") (binary_expression "uVar3 * param_3" (identifier "uVar3") (* "*") (identifier "param_3")) () ")")))) (, ",") (binary_expression "(int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0" (cast_expression "(int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar3 * (ulonglong)param_3 >> 0x20" (binary_expression "(ulonglong)uVar3 * (ulonglong)param_3" (cast_expression "(ulonglong)uVar3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar3")) (* "*") (cast_expression "(ulonglong)param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_3"))) (>> ">>") (number_literal "0x20")) () ")"))) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (; ";")) (} "}")))) (expression_statement "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);" (assignment_expression "unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44)" (identifier "unaff_retaddr") (= "=") (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x44)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x44)" (( "(") (binary_expression "(int)register0x00000074 + -0x44" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x44")) () ")"))))) (; ";")) (expression_statement "pcVar5 = *(code **)(&DAT_00012814 + iVar2);" (assignment_expression "pcVar5 = *(code **)(&DAT_00012814 + iVar2)" (identifier "pcVar5") (= "=") (pointer_expression "*(code **)(&DAT_00012814 + iVar2)" (* "*") (cast_expression "(code **)(&DAT_00012814 + iVar2)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_00012814 + iVar2)" (( "(") (binary_expression "&DAT_00012814 + iVar2" (pointer_expression "&DAT_00012814" (& "&") (identifier "DAT_00012814")) (+ "+") (identifier "iVar2")) () ")"))))) (; ";")) (expression_statement "*puVar4 = uVar3;" (assignment_expression "*puVar4 = uVar3" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar3")) (; ";")) (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_00012864 + iVar2);\n      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);\n    }" (else "else") (compound_statement "{\n      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);\n      pcVar5 = *(code **)(&UNK_00012864 + 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_00012864 + iVar2);" (assignment_expression "pcVar5 = *(code **)(&UNK_00012864 + iVar2)" (identifier "pcVar5") (= "=") (pointer_expression "*(code **)(&UNK_00012864 + iVar2)" (* "*") (cast_expression "(code **)(&UNK_00012864 + iVar2)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&UNK_00012864 + iVar2)" (( "(") (binary_expression "&UNK_00012864 + iVar2" (pointer_expression "&UNK_00012864" (& "&") (identifier "UNK_00012864")) (+ "+") (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 iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator 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: (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: (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))) (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: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (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)))))))) arguments: (argument_list))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (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)))))))) arguments: (argument_list)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (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)))))))) arguments: (argument_list)))) (if_statement condition: (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: (call_expression function: (identifier) arguments: (argument_list (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: (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: (identifier))))) right: (comma_expression left: (assignment_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: (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_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: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (labeled_statement label: (statement_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: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (binary_expression left: (number_literal) right: (identifier))))) (labeled_statement label: (statement_identifier) (expression_statement (MISSING ";")))) 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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (number_literal)))) 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: (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: (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 (identifier)))))

int MASKED(int param_1,uint *param_2,uint param_3)

{
  ulonglong uVar1;
  int iVar2;
  uint uVar3;
  uint *puVar4;
  code *pcVar5;
  undefined4 unaff_retaddr;
  undefined4 uVar6;
  undefined1 auStackX_0 [16];
  
  pcVar5 = MASKED;
  while( true ) {
    *(code **)((int)register0x00000074 + -0x10) = pcVar5 + 0x1a874;
    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;
    if (param_2 == (uint *)0x0) {
      if (param_1 != 0) {
        (**(code **)(&UNK_000129fc + (int)pcVar5))();
        return 0;
      }
                    /* WARNING: Could not recover jumptable at 0x00014878. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      iVar2 = (**(code **)(&UNK_000129bc + (int)pcVar5))();
      return iVar2;
    }
    iVar2 = (**(code **)(&DAT_000129c0 + (int)pcVar5))();
    if (iVar2 != 0) break;
    iVar2 = *(int *)(*(int *)((int)register0x00000074 + -0x10) + -0x7f90);
    uVar6 = 0x148c4;
    xalloc_die();
    uVar1 = ZEXT48(param_2);
    *(int *)((int)register0x00000074 + -0x30) = iVar2 + 0x1a7fc;
    *(undefined4 *)((int)register0x00000074 + -0x24) = uVar6;
    puVar4 = param_2;
    if (((int)(uVar1 * param_3) < 0) ||
       (param_2 = (uint *)((int)param_2 * param_3), puVar4 = param_2,
       (int)(uVar1 * param_3 >> 0x20) != 0)) {
      iVar2 = *(int *)(&UNK_0001286c + iVar2);
      uVar6 = 0x14914;
      xalloc_die();
      uVar3 = *puVar4;
      *(int *)((int)register0x00000074 + -0x50) = iVar2 + 0x1a7ac;
      *(undefined4 *)((int)register0x00000074 + -0x44) = uVar6;
      if (param_1 == 0) {
        if (uVar3 == 0) goto LAB_000149ac;
        goto LAB_00014984;
      }
      if (param_3 == 0) {
        trap(7);
      }
      if (uVar3 < 0x55555554 / param_3) {
        uVar3 = uVar3 + 1 + (uVar3 >> 1);
        param_2 = (uint *)(uVar3 * param_3);
      }
      else {
        do {
          xalloc_die();
LAB_000149ac:
          if (param_3 == 0) {
            trap(7);
          }
          uVar3 = (param_3 < 0x41 ^ 1) + 0x40 / param_3;
LAB_00014984:
        } while (((int)((ulonglong)uVar3 * (ulonglong)param_3) < 0) ||
                (param_2 = (uint *)(uVar3 * param_3),
                (int)((ulonglong)uVar3 * (ulonglong)param_3 >> 0x20) != 0));
      }
      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x44);
      pcVar5 = *(code **)(&DAT_00012814 + iVar2);
      *puVar4 = uVar3;
      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x40);
    }
    else {
      unaff_retaddr = *(undefined4 *)((int)register0x00000074 + -0x24);
      pcVar5 = *(code **)(&UNK_00012864 + iVar2);
      register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x20);
    }
  }
  return iVar2;
}

