
void add_alias(char *name,char *value)

{
  undefined *puVar1;
  alias_t *paVar2;
  int iVar3;
  HASH_TABLE *pHVar4;
  
  puVar1 = PTR_aliases_00144e98;
  if (*(int *)PTR_aliases_00144e98 == 0) {
    pHVar4 = hash_create(0x40);
    *(HASH_TABLE **)puVar1 = pHVar4;
  }
  else {
    paVar2 = find_alias(name);
    if (paVar2 != (alias_t *)0x0) {
      (*(code *)PTR_free_001464fc)(paVar2->value);
      iVar3 = (*(code *)PTR_strlen_00146390)(value);
                    /* WARNING: Subroutine does not return */
      xmalloc(iVar3 + 1);
    }
  }
                    /* WARNING: Subroutine does not return */
  xmalloc(0xc);
}



void add_alias(undefined4 param_1,int param_2)

{
  char cVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  undefined4 *puVar7;
  byte bVar8;
  
  puVar2 = PTR_aliases_00144e98;
  if (*(int *)PTR_aliases_00144e98 == 0) {
    uVar6 = hash_create(0x40);
    *(undefined4 *)puVar2 = uVar6;
  }
  else {
    iVar4 = find_alias();
    if (iVar4 != 0) {
      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));
      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);
      uVar6 = xmalloc(iVar5 + 1);
      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);
      *(undefined4 *)(iVar4 + 4) = uVar6;
      puVar2 = PTR_strlen_00146390;
      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;
      *(byte *)(iVar4 + 8) = bVar8;
      iVar5 = (*(code *)puVar2)(param_2);
      cVar1 = *(char *)(param_2 + iVar5 + -1);
      if ((cVar1 != ' ') && (cVar1 != '\t')) {
        return;
      }
      *(byte *)(iVar4 + 8) = bVar8 | 1;
      return;
    }
  }
  puVar7 = (undefined4 *)xmalloc(0xc);
  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);
  uVar6 = xmalloc(iVar4 + 1);
  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);
  puVar3 = PTR_strlen_00146390;
  *puVar7 = uVar6;
  iVar4 = (*(code *)puVar3)(param_2);
  uVar6 = xmalloc(iVar4 + 1);
  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);
  puVar7[1] = uVar6;
  puVar3 = PTR_strlen_00146390;
  *(undefined1 *)(puVar7 + 2) = 0;
  iVar4 = (*(code *)puVar3)(param_2);
  cVar1 = *(char *)(param_2 + iVar4 + -1);
  if ((cVar1 == ' ') || (cVar1 == '\t')) {
    *(undefined1 *)(puVar7 + 2) = 1;
  }
  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);
  uVar6 = xmalloc(iVar4 + 1);
  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);
  iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);
  puVar2 = PTR_it_aliases_00145418;
  *(undefined4 **)(iVar4 + 8) = puVar7;
  set_itemlist_dirty(puVar2);
  return;
}


lui gp,0xc
addiu gp,gp,-0x3218
addu gp,gp,t9
addiu sp,sp,-0x30
sw s3,0x28(sp)
lw s3,-0x76a8(gp)
sw gp,0x10(sp)
sw s1,0x20(sp)
or s1,a0,zero
sw s0,0x1c(sp)
sw ra,0x2c(sp)
sw s2,0x24(sp)
lw v0,0x0(s3)
beq v0,zero,0x0008f844
_or s0,a1,zero
lw t9,-0x7b58(gp)
bal 0x0008f6b0
_nop
lw gp,0x10(sp)
beq v0,zero,0x0008f858
_or s2,v0,zero
lw t9,-0x6044(gp)
jalr t9
_lw a0,0x4(v0)
lw gp,0x10(sp)
lw t9,-0x61b0(gp)
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7f90(gp)
bal 0x000ad290
_addiu a0,v0,0x1
or a1,s0,zero
lw gp,0x10(sp)
lw t9,-0x6128(gp)
jalr t9
_or a0,v0,zero
or a0,s0,zero
lw gp,0x10(sp)
lbu s1,0x8(s2)
sw v0,0x4(s2)
lw t9,-0x61b0(gp)
andi s1,s1,0xfe
seb s1,s1
jalr t9
_sb s1,0x8(s2)
li v1,0x20
addu v0,s0,v0
lb v0,-0x1(v0)
beq v0,v1,0x0008f98c
_li v1,0x9
beq v0,v1,0x0008f98c
_lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x76a4(gp)
bal 0x00085cf0
_li a0,0x40
lw gp,0x10(sp)
sw v0,0x0(s3)
lw t9,-0x7f90(gp)
bal 0x000ad290
_li a0,0xc
or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x61b0(gp)
jalr t9
_or s2,v0,zero
lw gp,0x10(sp)
lw t9,-0x7f90(gp)
bal 0x000ad290
_addiu a0,v0,0x1
or a1,s1,zero
lw gp,0x10(sp)
lw t9,-0x6128(gp)
jalr t9
_or a0,v0,zero
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x61b0(gp)
jalr t9
_sw v0,0x0(s2)
lw gp,0x10(sp)
lw t9,-0x7f90(gp)
bal 0x000ad290
_addiu a0,v0,0x1
or a1,s0,zero
lw gp,0x10(sp)
lw t9,-0x6128(gp)
jalr t9
_or a0,v0,zero
or a0,s0,zero
lw gp,0x10(sp)
sw v0,0x4(s2)
lw t9,-0x61b0(gp)
jalr t9
_sb zero,0x8(s2)
li v1,0x20
addu v0,s0,v0
lb v0,-0x1(v0)
beq v0,v1,0x0008f980
_lw gp,0x10(sp)
li v1,0x9
beq v0,v1,0x0008f984
_li v0,0x1
lw t9,-0x61b0(gp)
jalr t9
_or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x7f90(gp)
bal 0x000ad290
_addiu a0,v0,0x1
or a1,s1,zero
lw gp,0x10(sp)
lw t9,-0x6128(gp)
jalr t9
_or a0,v0,zero
li a2,0x1
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x7574(gp)
bal 0x000863a4
_lw a1,0x0(s3)
lw gp,0x10(sp)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw a0,-0x7128(gp)
lw t9,-0x757c(gp)
sw s2,0x8(v0)
lw s2,0x24(sp)
b 0x000aa4e8
_addiu sp,sp,0x30
li v0,0x1
b 0x0008f90c
_sb v0,0x8(s2)
ori s1,s1,0x1
sb s1,0x8(s2)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void add_alias(undefined4 param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  byte bVar8;\n  \n  puVar2 = PTR_aliases_00144e98;\n  if (*(int *)PTR_aliases_00144e98 == 0) {\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }\n  else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }\n  puVar7 = (undefined4 *)xmalloc(0xc);\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  puVar3 = PTR_strlen_00146390;\n  *puVar7 = uVar6;\n  iVar4 = (*(code *)puVar3)(param_2);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n  puVar7[1] = uVar6;\n  puVar3 = PTR_strlen_00146390;\n  *(undefined1 *)(puVar7 + 2) = 0;\n  iVar4 = (*(code *)puVar3)(param_2);\n  cVar1 = *(char *)(param_2 + iVar4 + -1);\n  if ((cVar1 == ' ') || (cVar1 == '\t')) {\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);\n  puVar2 = PTR_it_aliases_00145418;\n  *(undefined4 **)(iVar4 + 8) = puVar7;\n  set_itemlist_dirty(puVar2);\n  return;\n}\n\n" (function_definition "void add_alias(undefined4 param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  byte bVar8;\n  \n  puVar2 = PTR_aliases_00144e98;\n  if (*(int *)PTR_aliases_00144e98 == 0) {\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }\n  else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }\n  puVar7 = (undefined4 *)xmalloc(0xc);\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  puVar3 = PTR_strlen_00146390;\n  *puVar7 = uVar6;\n  iVar4 = (*(code *)puVar3)(param_2);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n  puVar7[1] = uVar6;\n  puVar3 = PTR_strlen_00146390;\n  *(undefined1 *)(puVar7 + 2) = 0;\n  iVar4 = (*(code *)puVar3)(param_2);\n  cVar1 = *(char *)(param_2 + iVar4 + -1);\n  if ((cVar1 == ' ') || (cVar1 == '\t')) {\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);\n  puVar2 = PTR_it_aliases_00145418;\n  *(undefined4 **)(iVar4 + 8) = puVar7;\n  set_itemlist_dirty(puVar2);\n  return;\n}" primitive_type (function_declarator "add_alias(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  byte bVar8;\n  \n  puVar2 = PTR_aliases_00144e98;\n  if (*(int *)PTR_aliases_00144e98 == 0) {\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }\n  else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }\n  puVar7 = (undefined4 *)xmalloc(0xc);\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  puVar3 = PTR_strlen_00146390;\n  *puVar7 = uVar6;\n  iVar4 = (*(code *)puVar3)(param_2);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n  puVar7[1] = uVar6;\n  puVar3 = PTR_strlen_00146390;\n  *(undefined1 *)(puVar7 + 2) = 0;\n  iVar4 = (*(code *)puVar3)(param_2);\n  cVar1 = *(char *)(param_2 + iVar4 + -1);\n  if ((cVar1 == ' ') || (cVar1 == '\t')) {\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);\n  puVar2 = PTR_it_aliases_00145418;\n  *(undefined4 **)(iVar4 + 8) = puVar7;\n  set_itemlist_dirty(puVar2);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "puVar2 = PTR_aliases_00144e98;" (assignment_expression "puVar2 = PTR_aliases_00144e98" identifier = identifier) ;) (if_statement "if (*(int *)PTR_aliases_00144e98 == 0) {\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }\n  else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }" if (parenthesized_expression "(*(int *)PTR_aliases_00144e98 == 0)" ( (binary_expression "*(int *)PTR_aliases_00144e98 == 0" (pointer_expression "*(int *)PTR_aliases_00144e98" * (cast_expression "(int *)PTR_aliases_00144e98" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }" { (expression_statement "uVar6 = hash_create(0x40);" (assignment_expression "uVar6 = hash_create(0x40)" identifier = (call_expression "hash_create(0x40)" identifier (argument_list "(0x40)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)puVar2 = uVar6;" (assignment_expression "*(undefined4 *)puVar2 = uVar6" (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) }) (else_clause "else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }" else (compound_statement "{\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }" { (expression_statement "iVar4 = find_alias();" (assignment_expression "iVar4 = find_alias()" identifier = (call_expression "find_alias()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }" { (expression_statement "(*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));" (call_expression "(*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4))" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar4 + 4))" ( (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_00146390)(param_2);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00146390)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar6 = xmalloc(iVar5 + 1);" (assignment_expression "uVar6 = xmalloc(iVar5 + 1)" identifier = (call_expression "xmalloc(iVar5 + 1)" identifier (argument_list "(iVar5 + 1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);" (assignment_expression "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar6,param_2)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6,param_2)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar4 + 4) = uVar6;" (assignment_expression "*(undefined4 *)(iVar4 + 4) = uVar6" (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar2 = PTR_strlen_00146390;" (assignment_expression "puVar2 = PTR_strlen_00146390" identifier = identifier) ;) (expression_statement "bVar8 = *(byte *)(iVar4 + 8) & 0xfe;" (assignment_expression "bVar8 = *(byte *)(iVar4 + 8) & 0xfe" identifier = (binary_expression "*(byte *)(iVar4 + 8) & 0xfe" (pointer_expression "*(byte *)(iVar4 + 8)" * (cast_expression "(byte *)(iVar4 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(byte *)(iVar4 + 8) = bVar8;" (assignment_expression "*(byte *)(iVar4 + 8) = bVar8" (pointer_expression "*(byte *)(iVar4 + 8)" * (cast_expression "(byte *)(iVar4 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = (*(code *)puVar2)(param_2);" (assignment_expression "iVar5 = (*(code *)puVar2)(param_2)" identifier = (call_expression "(*(code *)puVar2)(param_2)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "cVar1 = *(char *)(param_2 + iVar5 + -1);" (assignment_expression "cVar1 = *(char *)(param_2 + iVar5 + -1)" identifier = (pointer_expression "*(char *)(param_2 + iVar5 + -1)" * (cast_expression "(char *)(param_2 + iVar5 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar5 + -1)" ( (binary_expression "param_2 + iVar5 + -1" (binary_expression "param_2 + iVar5" identifier + identifier) + number_literal) ))))) ;) (if_statement "if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }" if (parenthesized_expression "((cVar1 != ' ') && (cVar1 != '\t'))" ( (binary_expression "(cVar1 != ' ') && (cVar1 != '\t')" (parenthesized_expression "(cVar1 != ' ')" ( (binary_expression "cVar1 != ' '" identifier != (char_literal "' '" ' character ')) )) && (parenthesized_expression "(cVar1 != '\t')" ( (binary_expression "cVar1 != '\t'" identifier != (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "*(byte *)(iVar4 + 8) = bVar8 | 1;" (assignment_expression "*(byte *)(iVar4 + 8) = bVar8 | 1" (pointer_expression "*(byte *)(iVar4 + 8)" * (cast_expression "(byte *)(iVar4 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = (binary_expression "bVar8 | 1" identifier | number_literal)) ;) (return_statement "return;" return ;) })) }))) (expression_statement "puVar7 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar7 = (undefined4 *)xmalloc(0xc)" identifier = (cast_expression "(undefined4 *)xmalloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_00146390)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00146390)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar6 = xmalloc(iVar4 + 1);" (assignment_expression "uVar6 = xmalloc(iVar4 + 1)" identifier = (call_expression "xmalloc(iVar4 + 1)" identifier (argument_list "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);" (assignment_expression "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar6,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6,param_1)" ( identifier , identifier )))) ;) (expression_statement "puVar3 = PTR_strlen_00146390;" (assignment_expression "puVar3 = PTR_strlen_00146390" identifier = identifier) ;) (expression_statement "*puVar7 = uVar6;" (assignment_expression "*puVar7 = uVar6" (pointer_expression "*puVar7" * identifier) = identifier) ;) (expression_statement "iVar4 = (*(code *)puVar3)(param_2);" (assignment_expression "iVar4 = (*(code *)puVar3)(param_2)" identifier = (call_expression "(*(code *)puVar3)(param_2)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar6 = xmalloc(iVar4 + 1);" (assignment_expression "uVar6 = xmalloc(iVar4 + 1)" identifier = (call_expression "xmalloc(iVar4 + 1)" identifier (argument_list "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);" (assignment_expression "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar6,param_2)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6,param_2)" ( identifier , identifier )))) ;) (expression_statement "puVar7[1] = uVar6;" (assignment_expression "puVar7[1] = uVar6" (subscript_expression "puVar7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = PTR_strlen_00146390;" (assignment_expression "puVar3 = PTR_strlen_00146390" identifier = identifier) ;) (expression_statement "*(undefined1 *)(puVar7 + 2) = 0;" (assignment_expression "*(undefined1 *)(puVar7 + 2) = 0" (pointer_expression "*(undefined1 *)(puVar7 + 2)" * (cast_expression "(undefined1 *)(puVar7 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 2)" ( (binary_expression "puVar7 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = (*(code *)puVar3)(param_2);" (assignment_expression "iVar4 = (*(code *)puVar3)(param_2)" identifier = (call_expression "(*(code *)puVar3)(param_2)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "cVar1 = *(char *)(param_2 + iVar4 + -1);" (assignment_expression "cVar1 = *(char *)(param_2 + iVar4 + -1)" identifier = (pointer_expression "*(char *)(param_2 + iVar4 + -1)" * (cast_expression "(char *)(param_2 + iVar4 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar4 + -1)" ( (binary_expression "param_2 + iVar4 + -1" (binary_expression "param_2 + iVar4" identifier + identifier) + number_literal) ))))) ;) (if_statement "if ((cVar1 == ' ') || (cVar1 == '\t')) {\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }" if (parenthesized_expression "((cVar1 == ' ') || (cVar1 == '\t'))" ( (binary_expression "(cVar1 == ' ') || (cVar1 == '\t')" (parenthesized_expression "(cVar1 == ' ')" ( (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character ')) )) || (parenthesized_expression "(cVar1 == '\t')" ( (binary_expression "cVar1 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }" { (expression_statement "*(undefined1 *)(puVar7 + 2) = 1;" (assignment_expression "*(undefined1 *)(puVar7 + 2) = 1" (pointer_expression "*(undefined1 *)(puVar7 + 2)" * (cast_expression "(undefined1 *)(puVar7 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 2)" ( (binary_expression "puVar7 + 2" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "iVar4 = (*(code *)PTR_strlen_00146390)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00146390)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar6 = xmalloc(iVar4 + 1);" (assignment_expression "uVar6 = xmalloc(iVar4 + 1)" identifier = (call_expression "xmalloc(iVar4 + 1)" identifier (argument_list "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);" (assignment_expression "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar6,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6,param_1)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);" (assignment_expression "iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1)" identifier = (call_expression "hash_insert(uVar6,*(undefined4 *)puVar2,1)" identifier (argument_list "(uVar6,*(undefined4 *)puVar2,1)" ( identifier , (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal )))) ;) (expression_statement "puVar2 = PTR_it_aliases_00145418;" (assignment_expression "puVar2 = PTR_it_aliases_00145418" identifier = identifier) ;) (expression_statement "*(undefined4 **)(iVar4 + 8) = puVar7;" (assignment_expression "*(undefined4 **)(iVar4 + 8) = puVar7" (pointer_expression "*(undefined4 **)(iVar4 + 8)" * (cast_expression "(undefined4 **)(iVar4 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "set_itemlist_dirty(puVar2);" (call_expression "set_itemlist_dirty(puVar2)" identifier (argument_list "(puVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void add_alias(char *name,char *value)\n\n{\n  undefined *puVar1;\n  alias_t *paVar2;\n  int iVar3;\n  HASH_TABLE *pHVar4;\n  \n  puVar1 = PTR_aliases_00144e98;\n  if (*(int *)PTR_aliases_00144e98 == 0) {\n    pHVar4 = hash_create(0x40);\n    *(HASH_TABLE **)puVar1 = pHVar4;\n  }\n  else {\n    paVar2 = find_alias(name);\n    if (paVar2 != (alias_t *)0x0) {\n      (*(code *)PTR_free_001464fc)(paVar2->value);\n      iVar3 = (*(code *)PTR_strlen_00146390)(value);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar3 + 1);\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  xmalloc(0xc);\n}\n\n" (function_definition "void add_alias(char *name,char *value)\n\n{\n  undefined *puVar1;\n  alias_t *paVar2;\n  int iVar3;\n  HASH_TABLE *pHVar4;\n  \n  puVar1 = PTR_aliases_00144e98;\n  if (*(int *)PTR_aliases_00144e98 == 0) {\n    pHVar4 = hash_create(0x40);\n    *(HASH_TABLE **)puVar1 = pHVar4;\n  }\n  else {\n    paVar2 = find_alias(name);\n    if (paVar2 != (alias_t *)0x0) {\n      (*(code *)PTR_free_001464fc)(paVar2->value);\n      iVar3 = (*(code *)PTR_strlen_00146390)(value);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar3 + 1);\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  xmalloc(0xc);\n}" primitive_type (function_declarator "add_alias(char *name,char *value)" identifier (parameter_list "(char *name,char *value)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  alias_t *paVar2;\n  int iVar3;\n  HASH_TABLE *pHVar4;\n  \n  puVar1 = PTR_aliases_00144e98;\n  if (*(int *)PTR_aliases_00144e98 == 0) {\n    pHVar4 = hash_create(0x40);\n    *(HASH_TABLE **)puVar1 = pHVar4;\n  }\n  else {\n    paVar2 = find_alias(name);\n    if (paVar2 != (alias_t *)0x0) {\n      (*(code *)PTR_free_001464fc)(paVar2->value);\n      iVar3 = (*(code *)PTR_strlen_00146390)(value);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar3 + 1);\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  xmalloc(0xc);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "alias_t *paVar2;" type_identifier (pointer_declarator "*paVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "HASH_TABLE *pHVar4;" type_identifier (pointer_declarator "*pHVar4" * identifier) ;) (expression_statement "puVar1 = PTR_aliases_00144e98;" (assignment_expression "puVar1 = PTR_aliases_00144e98" identifier = identifier) ;) (if_statement "if (*(int *)PTR_aliases_00144e98 == 0) {\n    pHVar4 = hash_create(0x40);\n    *(HASH_TABLE **)puVar1 = pHVar4;\n  }\n  else {\n    paVar2 = find_alias(name);\n    if (paVar2 != (alias_t *)0x0) {\n      (*(code *)PTR_free_001464fc)(paVar2->value);\n      iVar3 = (*(code *)PTR_strlen_00146390)(value);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar3 + 1);\n    }\n  }" if (parenthesized_expression "(*(int *)PTR_aliases_00144e98 == 0)" ( (binary_expression "*(int *)PTR_aliases_00144e98 == 0" (pointer_expression "*(int *)PTR_aliases_00144e98" * (cast_expression "(int *)PTR_aliases_00144e98" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    pHVar4 = hash_create(0x40);\n    *(HASH_TABLE **)puVar1 = pHVar4;\n  }" { (expression_statement "pHVar4 = hash_create(0x40);" (assignment_expression "pHVar4 = hash_create(0x40)" identifier = (call_expression "hash_create(0x40)" identifier (argument_list "(0x40)" ( number_literal )))) ;) (expression_statement "*(HASH_TABLE **)puVar1 = pHVar4;" (assignment_expression "*(HASH_TABLE **)puVar1 = pHVar4" (pointer_expression "*(HASH_TABLE **)puVar1" * (cast_expression "(HASH_TABLE **)puVar1" ( (type_descriptor "HASH_TABLE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) }) (else_clause "else {\n    paVar2 = find_alias(name);\n    if (paVar2 != (alias_t *)0x0) {\n      (*(code *)PTR_free_001464fc)(paVar2->value);\n      iVar3 = (*(code *)PTR_strlen_00146390)(value);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar3 + 1);\n    }\n  }" else (compound_statement "{\n    paVar2 = find_alias(name);\n    if (paVar2 != (alias_t *)0x0) {\n      (*(code *)PTR_free_001464fc)(paVar2->value);\n      iVar3 = (*(code *)PTR_strlen_00146390)(value);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar3 + 1);\n    }\n  }" { (expression_statement "paVar2 = find_alias(name);" (assignment_expression "paVar2 = find_alias(name)" identifier = (call_expression "find_alias(name)" identifier (argument_list "(name)" ( identifier )))) ;) (if_statement "if (paVar2 != (alias_t *)0x0) {\n      (*(code *)PTR_free_001464fc)(paVar2->value);\n      iVar3 = (*(code *)PTR_strlen_00146390)(value);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar3 + 1);\n    }" if (parenthesized_expression "(paVar2 != (alias_t *)0x0)" ( (binary_expression "paVar2 != (alias_t *)0x0" identifier != (cast_expression "(alias_t *)0x0" ( (type_descriptor "alias_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_free_001464fc)(paVar2->value);\n      iVar3 = (*(code *)PTR_strlen_00146390)(value);\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar3 + 1);\n    }" { (expression_statement "(*(code *)PTR_free_001464fc)(paVar2->value);" (call_expression "(*(code *)PTR_free_001464fc)(paVar2->value)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(paVar2->value)" ( (field_expression "paVar2->value" identifier -> field_identifier) ))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_00146390)(value);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00146390)(value)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(value)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(value)" ( identifier )))) ;) comment (expression_statement "xmalloc(iVar3 + 1);" (call_expression "xmalloc(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) ))) ;) })) }))) comment (expression_statement "xmalloc(0xc);" (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))) ;) })))
(translation_unit "void add_alias(undefined4 param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  byte bVar8;\n  \n  puVar2 = PTR_aliases_00144e98;\n  if (*(int *)PTR_aliases_00144e98 == 0) {\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }\n  else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }\n  puVar7 = (undefined4 *)xmalloc(0xc);\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  puVar3 = PTR_strlen_00146390;\n  *puVar7 = uVar6;\n  iVar4 = (*(code *)puVar3)(param_2);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n  puVar7[1] = uVar6;\n  puVar3 = PTR_strlen_00146390;\n  *(undefined1 *)(puVar7 + 2) = 0;\n  iVar4 = (*(code *)puVar3)(param_2);\n  cVar1 = *(char *)(param_2 + iVar4 + -1);\n  if ((cVar1 == ' ') || (cVar1 == '\t')) {\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);\n  puVar2 = PTR_it_aliases_00145418;\n  *(undefined4 **)(iVar4 + 8) = puVar7;\n  set_itemlist_dirty(puVar2);\n  return;\n}\n\n" (function_definition "void add_alias(undefined4 param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  byte bVar8;\n  \n  puVar2 = PTR_aliases_00144e98;\n  if (*(int *)PTR_aliases_00144e98 == 0) {\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }\n  else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }\n  puVar7 = (undefined4 *)xmalloc(0xc);\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  puVar3 = PTR_strlen_00146390;\n  *puVar7 = uVar6;\n  iVar4 = (*(code *)puVar3)(param_2);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n  puVar7[1] = uVar6;\n  puVar3 = PTR_strlen_00146390;\n  *(undefined1 *)(puVar7 + 2) = 0;\n  iVar4 = (*(code *)puVar3)(param_2);\n  cVar1 = *(char *)(param_2 + iVar4 + -1);\n  if ((cVar1 == ' ') || (cVar1 == '\t')) {\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);\n  puVar2 = PTR_it_aliases_00145418;\n  *(undefined4 **)(iVar4 + 8) = puVar7;\n  set_itemlist_dirty(puVar2);\n  return;\n}" primitive_type (function_declarator "add_alias(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  byte bVar8;\n  \n  puVar2 = PTR_aliases_00144e98;\n  if (*(int *)PTR_aliases_00144e98 == 0) {\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }\n  else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }\n  puVar7 = (undefined4 *)xmalloc(0xc);\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  puVar3 = PTR_strlen_00146390;\n  *puVar7 = uVar6;\n  iVar4 = (*(code *)puVar3)(param_2);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n  puVar7[1] = uVar6;\n  puVar3 = PTR_strlen_00146390;\n  *(undefined1 *)(puVar7 + 2) = 0;\n  iVar4 = (*(code *)puVar3)(param_2);\n  cVar1 = *(char *)(param_2 + iVar4 + -1);\n  if ((cVar1 == ' ') || (cVar1 == '\t')) {\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);\n  puVar2 = PTR_it_aliases_00145418;\n  *(undefined4 **)(iVar4 + 8) = puVar7;\n  set_itemlist_dirty(puVar2);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "puVar2 = PTR_aliases_00144e98;" (assignment_expression "puVar2 = PTR_aliases_00144e98" identifier = identifier) ;) (if_statement "if (*(int *)PTR_aliases_00144e98 == 0) {\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }\n  else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }" if (parenthesized_expression "(*(int *)PTR_aliases_00144e98 == 0)" ( (binary_expression "*(int *)PTR_aliases_00144e98 == 0" (pointer_expression "*(int *)PTR_aliases_00144e98" * (cast_expression "(int *)PTR_aliases_00144e98" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }" { (expression_statement "uVar6 = hash_create(0x40);" (assignment_expression "uVar6 = hash_create(0x40)" identifier = (call_expression "hash_create(0x40)" identifier (argument_list "(0x40)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)puVar2 = uVar6;" (assignment_expression "*(undefined4 *)puVar2 = uVar6" (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) }) (else_clause "else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }" else (compound_statement "{\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }" { (expression_statement "iVar4 = find_alias();" (assignment_expression "iVar4 = find_alias()" identifier = (call_expression "find_alias()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }" { (expression_statement "(*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));" (call_expression "(*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4))" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(iVar4 + 4))" ( (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_00146390)(param_2);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00146390)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar6 = xmalloc(iVar5 + 1);" (assignment_expression "uVar6 = xmalloc(iVar5 + 1)" identifier = (call_expression "xmalloc(iVar5 + 1)" identifier (argument_list "(iVar5 + 1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);" (assignment_expression "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar6,param_2)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6,param_2)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar4 + 4) = uVar6;" (assignment_expression "*(undefined4 *)(iVar4 + 4) = uVar6" (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar2 = PTR_strlen_00146390;" (assignment_expression "puVar2 = PTR_strlen_00146390" identifier = identifier) ;) (expression_statement "bVar8 = *(byte *)(iVar4 + 8) & 0xfe;" (assignment_expression "bVar8 = *(byte *)(iVar4 + 8) & 0xfe" identifier = (binary_expression "*(byte *)(iVar4 + 8) & 0xfe" (pointer_expression "*(byte *)(iVar4 + 8)" * (cast_expression "(byte *)(iVar4 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(byte *)(iVar4 + 8) = bVar8;" (assignment_expression "*(byte *)(iVar4 + 8) = bVar8" (pointer_expression "*(byte *)(iVar4 + 8)" * (cast_expression "(byte *)(iVar4 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = (*(code *)puVar2)(param_2);" (assignment_expression "iVar5 = (*(code *)puVar2)(param_2)" identifier = (call_expression "(*(code *)puVar2)(param_2)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "cVar1 = *(char *)(param_2 + iVar5 + -1);" (assignment_expression "cVar1 = *(char *)(param_2 + iVar5 + -1)" identifier = (pointer_expression "*(char *)(param_2 + iVar5 + -1)" * (cast_expression "(char *)(param_2 + iVar5 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar5 + -1)" ( (binary_expression "param_2 + iVar5 + -1" (binary_expression "param_2 + iVar5" identifier + identifier) + number_literal) ))))) ;) (if_statement "if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }" if (parenthesized_expression "((cVar1 != ' ') && (cVar1 != '\t'))" ( (binary_expression "(cVar1 != ' ') && (cVar1 != '\t')" (parenthesized_expression "(cVar1 != ' ')" ( (binary_expression "cVar1 != ' '" identifier != (char_literal "' '" ' character ')) )) && (parenthesized_expression "(cVar1 != '\t')" ( (binary_expression "cVar1 != '\t'" identifier != (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "*(byte *)(iVar4 + 8) = bVar8 | 1;" (assignment_expression "*(byte *)(iVar4 + 8) = bVar8 | 1" (pointer_expression "*(byte *)(iVar4 + 8)" * (cast_expression "(byte *)(iVar4 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = (binary_expression "bVar8 | 1" identifier | number_literal)) ;) (return_statement "return;" return ;) })) }))) (expression_statement "puVar7 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar7 = (undefined4 *)xmalloc(0xc)" identifier = (cast_expression "(undefined4 *)xmalloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_00146390)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00146390)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar6 = xmalloc(iVar4 + 1);" (assignment_expression "uVar6 = xmalloc(iVar4 + 1)" identifier = (call_expression "xmalloc(iVar4 + 1)" identifier (argument_list "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);" (assignment_expression "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar6,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6,param_1)" ( identifier , identifier )))) ;) (expression_statement "puVar3 = PTR_strlen_00146390;" (assignment_expression "puVar3 = PTR_strlen_00146390" identifier = identifier) ;) (expression_statement "*puVar7 = uVar6;" (assignment_expression "*puVar7 = uVar6" (pointer_expression "*puVar7" * identifier) = identifier) ;) (expression_statement "iVar4 = (*(code *)puVar3)(param_2);" (assignment_expression "iVar4 = (*(code *)puVar3)(param_2)" identifier = (call_expression "(*(code *)puVar3)(param_2)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar6 = xmalloc(iVar4 + 1);" (assignment_expression "uVar6 = xmalloc(iVar4 + 1)" identifier = (call_expression "xmalloc(iVar4 + 1)" identifier (argument_list "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);" (assignment_expression "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar6,param_2)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6,param_2)" ( identifier , identifier )))) ;) (expression_statement "puVar7[1] = uVar6;" (assignment_expression "puVar7[1] = uVar6" (subscript_expression "puVar7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = PTR_strlen_00146390;" (assignment_expression "puVar3 = PTR_strlen_00146390" identifier = identifier) ;) (expression_statement "*(undefined1 *)(puVar7 + 2) = 0;" (assignment_expression "*(undefined1 *)(puVar7 + 2) = 0" (pointer_expression "*(undefined1 *)(puVar7 + 2)" * (cast_expression "(undefined1 *)(puVar7 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 2)" ( (binary_expression "puVar7 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = (*(code *)puVar3)(param_2);" (assignment_expression "iVar4 = (*(code *)puVar3)(param_2)" identifier = (call_expression "(*(code *)puVar3)(param_2)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "cVar1 = *(char *)(param_2 + iVar4 + -1);" (assignment_expression "cVar1 = *(char *)(param_2 + iVar4 + -1)" identifier = (pointer_expression "*(char *)(param_2 + iVar4 + -1)" * (cast_expression "(char *)(param_2 + iVar4 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar4 + -1)" ( (binary_expression "param_2 + iVar4 + -1" (binary_expression "param_2 + iVar4" identifier + identifier) + number_literal) ))))) ;) (if_statement "if ((cVar1 == ' ') || (cVar1 == '\t')) {\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }" if (parenthesized_expression "((cVar1 == ' ') || (cVar1 == '\t'))" ( (binary_expression "(cVar1 == ' ') || (cVar1 == '\t')" (parenthesized_expression "(cVar1 == ' ')" ( (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character ')) )) || (parenthesized_expression "(cVar1 == '\t')" ( (binary_expression "cVar1 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }" { (expression_statement "*(undefined1 *)(puVar7 + 2) = 1;" (assignment_expression "*(undefined1 *)(puVar7 + 2) = 1" (pointer_expression "*(undefined1 *)(puVar7 + 2)" * (cast_expression "(undefined1 *)(puVar7 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 2)" ( (binary_expression "puVar7 + 2" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "iVar4 = (*(code *)PTR_strlen_00146390)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00146390)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar6 = xmalloc(iVar4 + 1);" (assignment_expression "uVar6 = xmalloc(iVar4 + 1)" identifier = (call_expression "xmalloc(iVar4 + 1)" identifier (argument_list "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);" (assignment_expression "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar6,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6,param_1)" ( identifier , identifier )))) ;) (expression_statement "iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);" (assignment_expression "iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1)" identifier = (call_expression "hash_insert(uVar6,*(undefined4 *)puVar2,1)" identifier (argument_list "(uVar6,*(undefined4 *)puVar2,1)" ( identifier , (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal )))) ;) (expression_statement "puVar2 = PTR_it_aliases_00145418;" (assignment_expression "puVar2 = PTR_it_aliases_00145418" identifier = identifier) ;) (expression_statement "*(undefined4 **)(iVar4 + 8) = puVar7;" (assignment_expression "*(undefined4 **)(iVar4 + 8) = puVar7" (pointer_expression "*(undefined4 **)(iVar4 + 8)" * (cast_expression "(undefined4 **)(iVar4 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "set_itemlist_dirty(puVar2);" (call_expression "set_itemlist_dirty(puVar2)" identifier (argument_list "(puVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT | LIT)) ;) (return_statement return ;) })) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void add_alias(undefined4 param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  byte bVar8;\n  \n  puVar2 = PTR_aliases_00144e98;\n  if (*(int *)PTR_aliases_00144e98 == 0) {\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }\n  else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }\n  puVar7 = (undefined4 *)xmalloc(0xc);\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  puVar3 = PTR_strlen_00146390;\n  *puVar7 = uVar6;\n  iVar4 = (*(code *)puVar3)(param_2);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n  puVar7[1] = uVar6;\n  puVar3 = PTR_strlen_00146390;\n  *(undefined1 *)(puVar7 + 2) = 0;\n  iVar4 = (*(code *)puVar3)(param_2);\n  cVar1 = *(char *)(param_2 + iVar4 + -1);\n  if ((cVar1 == ' ') || (cVar1 == '\t')) {\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);\n  puVar2 = PTR_it_aliases_00145418;\n  *(undefined4 **)(iVar4 + 8) = puVar7;\n  set_itemlist_dirty(puVar2);\n  return;\n}" (primitive_type "void") (function_declarator "add_alias(undefined4 param_1,int param_2)" (identifier "add_alias") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined4 *puVar7;\n  byte bVar8;\n  \n  puVar2 = PTR_aliases_00144e98;\n  if (*(int *)PTR_aliases_00144e98 == 0) {\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }\n  else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }\n  puVar7 = (undefined4 *)xmalloc(0xc);\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  puVar3 = PTR_strlen_00146390;\n  *puVar7 = uVar6;\n  iVar4 = (*(code *)puVar3)(param_2);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n  puVar7[1] = uVar6;\n  puVar3 = PTR_strlen_00146390;\n  *(undefined1 *)(puVar7 + 2) = 0;\n  iVar4 = (*(code *)puVar3)(param_2);\n  cVar1 = *(char *)(param_2 + iVar4 + -1);\n  if ((cVar1 == ' ') || (cVar1 == '\t')) {\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }\n  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);\n  uVar6 = xmalloc(iVar4 + 1);\n  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);\n  iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);\n  puVar2 = PTR_it_aliases_00145418;\n  *(undefined4 **)(iVar4 + 8) = puVar7;\n  set_itemlist_dirty(puVar2);\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "byte bVar8;" (type_identifier "byte") (identifier "bVar8") (; ";")) (expression_statement "puVar2 = PTR_aliases_00144e98;" (assignment_expression "puVar2 = PTR_aliases_00144e98" (identifier "puVar2") (= "=") (identifier "PTR_aliases_00144e98")) (; ";")) (if_statement "if (*(int *)PTR_aliases_00144e98 == 0) {\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }\n  else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)PTR_aliases_00144e98 == 0)" (( "(") (binary_expression "*(int *)PTR_aliases_00144e98 == 0" (pointer_expression "*(int *)PTR_aliases_00144e98" (* "*") (cast_expression "(int *)PTR_aliases_00144e98" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_aliases_00144e98"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar6 = hash_create(0x40);\n    *(undefined4 *)puVar2 = uVar6;\n  }" ({ "{") (expression_statement "uVar6 = hash_create(0x40);" (assignment_expression "uVar6 = hash_create(0x40)" (identifier "uVar6") (= "=") (call_expression "hash_create(0x40)" (identifier "hash_create") (argument_list "(0x40)" (( "(") (number_literal "0x40") () ")")))) (; ";")) (expression_statement "*(undefined4 *)puVar2 = uVar6;" (assignment_expression "*(undefined4 *)puVar2 = uVar6" (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (= "=") (identifier "uVar6")) (; ";")) (} "}")) (else_clause "else {\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    iVar4 = find_alias();\n    if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar4 = find_alias();" (assignment_expression "iVar4 = find_alias()" (identifier "iVar4") (= "=") (call_expression "find_alias()" (identifier "find_alias") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));\n      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);\n      uVar6 = xmalloc(iVar5 + 1);\n      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);\n      *(undefined4 *)(iVar4 + 4) = uVar6;\n      puVar2 = PTR_strlen_00146390;\n      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;\n      *(byte *)(iVar4 + 8) = bVar8;\n      iVar5 = (*(code *)puVar2)(param_2);\n      cVar1 = *(char *)(param_2 + iVar5 + -1);\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }\n      *(byte *)(iVar4 + 8) = bVar8 | 1;\n      return;\n    }" ({ "{") (expression_statement "(*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));" (call_expression "(*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4))" (parenthesized_expression "(*(code *)PTR_free_001464fc)" (( "(") (pointer_expression "*(code *)PTR_free_001464fc" (* "*") (cast_expression "(code *)PTR_free_001464fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001464fc"))) () ")")) (argument_list "(*(undefined4 *)(iVar4 + 4))" (( "(") (pointer_expression "*(undefined4 *)(iVar4 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_strlen_00146390)(param_2);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00146390)(param_2)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar6 = xmalloc(iVar5 + 1);" (assignment_expression "uVar6 = xmalloc(iVar5 + 1)" (identifier "uVar6") (= "=") (call_expression "xmalloc(iVar5 + 1)" (identifier "xmalloc") (argument_list "(iVar5 + 1)" (( "(") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);" (assignment_expression "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2)" (identifier "uVar6") (= "=") (call_expression "(*(code *)PTR_strcpy_00146418)(uVar6,param_2)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(uVar6,param_2)" (( "(") (identifier "uVar6") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 4) = uVar6;" (assignment_expression "*(undefined4 *)(iVar4 + 4) = uVar6" (pointer_expression "*(undefined4 *)(iVar4 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "puVar2 = PTR_strlen_00146390;" (assignment_expression "puVar2 = PTR_strlen_00146390" (identifier "puVar2") (= "=") (identifier "PTR_strlen_00146390")) (; ";")) (expression_statement "bVar8 = *(byte *)(iVar4 + 8) & 0xfe;" (assignment_expression "bVar8 = *(byte *)(iVar4 + 8) & 0xfe" (identifier "bVar8") (= "=") (binary_expression "*(byte *)(iVar4 + 8) & 0xfe" (pointer_expression "*(byte *)(iVar4 + 8)" (* "*") (cast_expression "(byte *)(iVar4 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0xfe"))) (; ";")) (expression_statement "*(byte *)(iVar4 + 8) = bVar8;" (assignment_expression "*(byte *)(iVar4 + 8) = bVar8" (pointer_expression "*(byte *)(iVar4 + 8)" (* "*") (cast_expression "(byte *)(iVar4 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "bVar8")) (; ";")) (expression_statement "iVar5 = (*(code *)puVar2)(param_2);" (assignment_expression "iVar5 = (*(code *)puVar2)(param_2)" (identifier "iVar5") (= "=") (call_expression "(*(code *)puVar2)(param_2)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "cVar1 = *(char *)(param_2 + iVar5 + -1);" (assignment_expression "cVar1 = *(char *)(param_2 + iVar5 + -1)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_2 + iVar5 + -1)" (* "*") (cast_expression "(char *)(param_2 + iVar5 + -1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar5 + -1)" (( "(") (binary_expression "param_2 + iVar5 + -1" (binary_expression "param_2 + iVar5" (identifier "param_2") (+ "+") (identifier "iVar5")) (+ "+") (number_literal "-1")) () ")"))))) (; ";")) (if_statement "if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        return;\n      }" (if "if") (parenthesized_expression "((cVar1 != ' ') && (cVar1 != '\t'))" (( "(") (binary_expression "(cVar1 != ' ') && (cVar1 != '\t')" (parenthesized_expression "(cVar1 != ' ')" (( "(") (binary_expression "cVar1 != ' '" (identifier "cVar1") (!= "!=") (char_literal "' '" (' "'") (character " ") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(cVar1 != '\t')" (( "(") (binary_expression "cVar1 != '\t'" (identifier "cVar1") (!= "!=") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(byte *)(iVar4 + 8) = bVar8 | 1;" (assignment_expression "*(byte *)(iVar4 + 8) = bVar8 | 1" (pointer_expression "*(byte *)(iVar4 + 8)" (* "*") (cast_expression "(byte *)(iVar4 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "bVar8 | 1" (identifier "bVar8") (| "|") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "puVar7 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar7 = (undefined4 *)xmalloc(0xc)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)xmalloc(0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0xc)" (identifier "xmalloc") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_strlen_00146390)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00146390)(param_1)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar6 = xmalloc(iVar4 + 1);" (assignment_expression "uVar6 = xmalloc(iVar4 + 1)" (identifier "uVar6") (= "=") (call_expression "xmalloc(iVar4 + 1)" (identifier "xmalloc") (argument_list "(iVar4 + 1)" (( "(") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);" (assignment_expression "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1)" (identifier "uVar6") (= "=") (call_expression "(*(code *)PTR_strcpy_00146418)(uVar6,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(uVar6,param_1)" (( "(") (identifier "uVar6") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "puVar3 = PTR_strlen_00146390;" (assignment_expression "puVar3 = PTR_strlen_00146390" (identifier "puVar3") (= "=") (identifier "PTR_strlen_00146390")) (; ";")) (expression_statement "*puVar7 = uVar6;" (assignment_expression "*puVar7 = uVar6" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "iVar4 = (*(code *)puVar3)(param_2);" (assignment_expression "iVar4 = (*(code *)puVar3)(param_2)" (identifier "iVar4") (= "=") (call_expression "(*(code *)puVar3)(param_2)" (parenthesized_expression "(*(code *)puVar3)" (( "(") (pointer_expression "*(code *)puVar3" (* "*") (cast_expression "(code *)puVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar6 = xmalloc(iVar4 + 1);" (assignment_expression "uVar6 = xmalloc(iVar4 + 1)" (identifier "uVar6") (= "=") (call_expression "xmalloc(iVar4 + 1)" (identifier "xmalloc") (argument_list "(iVar4 + 1)" (( "(") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);" (assignment_expression "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2)" (identifier "uVar6") (= "=") (call_expression "(*(code *)PTR_strcpy_00146418)(uVar6,param_2)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(uVar6,param_2)" (( "(") (identifier "uVar6") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "puVar7[1] = uVar6;" (assignment_expression "puVar7[1] = uVar6" (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "puVar3 = PTR_strlen_00146390;" (assignment_expression "puVar3 = PTR_strlen_00146390" (identifier "puVar3") (= "=") (identifier "PTR_strlen_00146390")) (; ";")) (expression_statement "*(undefined1 *)(puVar7 + 2) = 0;" (assignment_expression "*(undefined1 *)(puVar7 + 2) = 0" (pointer_expression "*(undefined1 *)(puVar7 + 2)" (* "*") (cast_expression "(undefined1 *)(puVar7 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 2)" (( "(") (binary_expression "puVar7 + 2" (identifier "puVar7") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = (*(code *)puVar3)(param_2);" (assignment_expression "iVar4 = (*(code *)puVar3)(param_2)" (identifier "iVar4") (= "=") (call_expression "(*(code *)puVar3)(param_2)" (parenthesized_expression "(*(code *)puVar3)" (( "(") (pointer_expression "*(code *)puVar3" (* "*") (cast_expression "(code *)puVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "cVar1 = *(char *)(param_2 + iVar4 + -1);" (assignment_expression "cVar1 = *(char *)(param_2 + iVar4 + -1)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_2 + iVar4 + -1)" (* "*") (cast_expression "(char *)(param_2 + iVar4 + -1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar4 + -1)" (( "(") (binary_expression "param_2 + iVar4 + -1" (binary_expression "param_2 + iVar4" (identifier "param_2") (+ "+") (identifier "iVar4")) (+ "+") (number_literal "-1")) () ")"))))) (; ";")) (if_statement "if ((cVar1 == ' ') || (cVar1 == '\t')) {\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }" (if "if") (parenthesized_expression "((cVar1 == ' ') || (cVar1 == '\t'))" (( "(") (binary_expression "(cVar1 == ' ') || (cVar1 == '\t')" (parenthesized_expression "(cVar1 == ' ')" (( "(") (binary_expression "cVar1 == ' '" (identifier "cVar1") (== "==") (char_literal "' '" (' "'") (character " ") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(cVar1 == '\t')" (( "(") (binary_expression "cVar1 == '\t'" (identifier "cVar1") (== "==") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    *(undefined1 *)(puVar7 + 2) = 1;\n  }" ({ "{") (expression_statement "*(undefined1 *)(puVar7 + 2) = 1;" (assignment_expression "*(undefined1 *)(puVar7 + 2) = 1" (pointer_expression "*(undefined1 *)(puVar7 + 2)" (* "*") (cast_expression "(undefined1 *)(puVar7 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 2)" (( "(") (binary_expression "puVar7 + 2" (identifier "puVar7") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "iVar4 = (*(code *)PTR_strlen_00146390)(param_1);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00146390)(param_1)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar6 = xmalloc(iVar4 + 1);" (assignment_expression "uVar6 = xmalloc(iVar4 + 1)" (identifier "uVar6") (= "=") (call_expression "xmalloc(iVar4 + 1)" (identifier "xmalloc") (argument_list "(iVar4 + 1)" (( "(") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);" (assignment_expression "uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1)" (identifier "uVar6") (= "=") (call_expression "(*(code *)PTR_strcpy_00146418)(uVar6,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(uVar6,param_1)" (( "(") (identifier "uVar6") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);" (assignment_expression "iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1)" (identifier "iVar4") (= "=") (call_expression "hash_insert(uVar6,*(undefined4 *)puVar2,1)" (identifier "hash_insert") (argument_list "(uVar6,*(undefined4 *)puVar2,1)" (( "(") (identifier "uVar6") (, ",") (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "puVar2 = PTR_it_aliases_00145418;" (assignment_expression "puVar2 = PTR_it_aliases_00145418" (identifier "puVar2") (= "=") (identifier "PTR_it_aliases_00145418")) (; ";")) (expression_statement "*(undefined4 **)(iVar4 + 8) = puVar7;" (assignment_expression "*(undefined4 **)(iVar4 + 8) = puVar7" (pointer_expression "*(undefined4 **)(iVar4 + 8)" (* "*") (cast_expression "(undefined4 **)(iVar4 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar7")) (; ";")) (expression_statement "set_itemlist_dirty(puVar2);" (call_expression "set_itemlist_dirty(puVar2)" (identifier "set_itemlist_dirty") (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *name,char *value)

{
  type_1 *puVar1;
  type_2 *var_3;
  int var_5;
  type_3 *pHVar4;
  
  puVar1 = PTR_aliases_00144e98;
  if (*(int *)PTR_aliases_00144e98 == 0) {
    pHVar4 = var_1(0x40);
    *(type_3 **)puVar1 = pHVar4;
  }
  else {
    var_3 = var_2(name);
    if (var_3 != (type_2 *)0x0) {
      (*(type_4 *)PTR_free_001464fc)(var_3->value);
      var_5 = (*(type_4 *)PTR_strlen_00146390)(value);
                    /* WARNING: Subroutine does not return */
      var_4(var_5 + 1);
    }
  }
                    /* WARNING: Subroutine does not return */
  var_4(0xc);
}


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

void MASKED(undefined4 param_1,int param_2)

{
  char cVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  undefined4 *puVar7;
  byte bVar8;
  
  puVar2 = PTR_aliases_00144e98;
  if (*(int *)PTR_aliases_00144e98 == 0) {
    uVar6 = hash_create(0x40);
    *(undefined4 *)puVar2 = uVar6;
  }
  else {
    iVar4 = find_alias();
    if (iVar4 != 0) {
      (*(code *)PTR_free_001464fc)(*(undefined4 *)(iVar4 + 4));
      iVar5 = (*(code *)PTR_strlen_00146390)(param_2);
      uVar6 = xmalloc(iVar5 + 1);
      uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);
      *(undefined4 *)(iVar4 + 4) = uVar6;
      puVar2 = PTR_strlen_00146390;
      bVar8 = *(byte *)(iVar4 + 8) & 0xfe;
      *(byte *)(iVar4 + 8) = bVar8;
      iVar5 = (*(code *)puVar2)(param_2);
      cVar1 = *(char *)(param_2 + iVar5 + -1);
      if ((cVar1 != ' ') && (cVar1 != '\t')) {
        return;
      }
      *(byte *)(iVar4 + 8) = bVar8 | 1;
      return;
    }
  }
  puVar7 = (undefined4 *)xmalloc(0xc);
  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);
  uVar6 = xmalloc(iVar4 + 1);
  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);
  puVar3 = PTR_strlen_00146390;
  *puVar7 = uVar6;
  iVar4 = (*(code *)puVar3)(param_2);
  uVar6 = xmalloc(iVar4 + 1);
  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_2);
  puVar7[1] = uVar6;
  puVar3 = PTR_strlen_00146390;
  *(undefined1 *)(puVar7 + 2) = 0;
  iVar4 = (*(code *)puVar3)(param_2);
  cVar1 = *(char *)(param_2 + iVar4 + -1);
  if ((cVar1 == ' ') || (cVar1 == '\t')) {
    *(undefined1 *)(puVar7 + 2) = 1;
  }
  iVar4 = (*(code *)PTR_strlen_00146390)(param_1);
  uVar6 = xmalloc(iVar4 + 1);
  uVar6 = (*(code *)PTR_strcpy_00146418)(uVar6,param_1);
  iVar4 = hash_insert(uVar6,*(undefined4 *)puVar2,1);
  puVar2 = PTR_it_aliases_00145418;
  *(undefined4 **)(iVar4 + 8) = puVar7;
  set_itemlist_dirty(puVar2);
  return;
}

