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

void term_free(Terminal *term)

{
  beeptime *ptr;
  void *ptr_00;
  termline *ptVar1;
  long lVar2;
  
  while (ptr_00 = delpos234(term->scrollback,0), ptr_00 != (void *)0x0) {
    safefree(ptr_00);
  }
  freetree234(term->scrollback);
  while (ptVar1 = (termline *)delpos234(term->screen,0), ptVar1 != (termline *)0x0) {
    freeline(ptVar1);
  }
  freetree234(term->screen);
  while (ptVar1 = (termline *)delpos234(term->alt_screen,0), ptVar1 != (termline *)0x0) {
    freeline(ptVar1);
  }
  freetree234(term->alt_screen);
  if ((term->disptext != (termline **)0x0) && (L'\0' < term->rows)) {
    lVar2 = 0;
    do {
      freeline(term->disptext[lVar2]);
      lVar2 = lVar2 + 1;
    } while ((wchar_t)lVar2 < term->rows);
  }
  safefree(term->disptext);
  ptr = term->beephead;
  while (ptr != (beeptime *)0x0) {
    term->beephead = ptr->next;
    safefree(ptr);
    ptr = term->beephead;
  }
  bufchain_clear((bufchain *)&term->inbuf);
  if (term->print_job != (printer_job *)0x0) {
    printer_finish_job(term->print_job);
  }
  bufchain_clear((bufchain *)&term->printer_buf);
  safefree(term->paste_buffer);
  safefree(term->ltemp);
  safefree(term->wcFrom);
  safefree(term->wcTo);
  if (L'\0' < term->bidi_cache_size) {
    lVar2 = 0;
    do {
      safefree(term->pre_bidi_cache[lVar2].chars);
      safefree(term->post_bidi_cache[lVar2].chars);
      safefree(term->post_bidi_cache[lVar2].forward);
      safefree(term->post_bidi_cache[lVar2].backward);
      lVar2 = lVar2 + 1;
    } while ((wchar_t)lVar2 < term->bidi_cache_size);
  }
  safefree(term->pre_bidi_cache);
  safefree(term->post_bidi_cache);
  safefree(term->tabs);
  expire_timer_context(term);
  conf_free(term->conf);
  safefree(term);
  return;
}



void FUN_00131659(long param_1)

{
  undefined8 *puVar1;
  long lVar2;
  long lVar3;
  
  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {
    FUN_00122b5a(lVar2);
  }
  FUN_00139644(*(undefined8 *)(param_1 + 8));
  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {
    FUN_0012dc02(lVar2);
  }
  FUN_00139644(*(undefined8 *)(param_1 + 0x10));
  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {
    FUN_0012dc02(lVar2);
  }
  FUN_00139644(*(undefined8 *)(param_1 + 0x18));
  if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {
    lVar2 = 0;
    do {
      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));
      lVar2 = lVar2 + 1;
    } while ((int)lVar2 < *(int *)(param_1 + 0x188));
  }
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));
  puVar1 = *(undefined8 **)(param_1 + 0x40);
  while (puVar1 != (undefined8 *)0x0) {
    *(undefined8 *)(param_1 + 0x40) = *puVar1;
    FUN_00122b5a();
    puVar1 = *(undefined8 **)(param_1 + 0x40);
  }
  FUN_00122c57(param_1 + 0xa0);
  if (*(long *)(param_1 + 0x160) != 0) {
    FUN_00152cf5();
  }
  FUN_00122c57(param_1 + 0x148);
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));
  if (0 < *(int *)(param_1 + 0x1188)) {
    lVar2 = 0;
    do {
      lVar3 = lVar2 * 0x20;
      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));
      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));
      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));
      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));
      lVar2 = lVar2 + 1;
    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));
  }
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));
  FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));
  FUN_0013864c(param_1);
  FUN_00115459(*(undefined8 *)(param_1 + 0x1120));
  FUN_00122b5a(param_1);
  return;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RBX + 0x8]
MOV ESI,0x0
CALL 0x0013991c
TEST RAX,RAX
JZ 0x0013167d
MOV RDI,RAX
CALL 0x00122b5a
JMP 0x00131660
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x00139644
JMP 0x00131690
MOV RDI,RAX
CALL 0x0012dc02
MOV RDI,qword ptr [RBX + 0x10]
MOV ESI,0x0
CALL 0x0013991c
TEST RAX,RAX
JNZ 0x00131688
MOV RDI,qword ptr [RBX + 0x10]
CALL 0x00139644
MOV RDI,qword ptr [RBX + 0x18]
MOV ESI,0x0
CALL 0x0013991c
TEST RAX,RAX
JZ 0x001316c9
MOV RDI,RAX
CALL 0x0012dc02
JMP 0x001316ac
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x00139644
CMP qword ptr [RBX + 0x28],0x0
JZ 0x00131700
CMP dword ptr [RBX + 0x188],0x0
JLE 0x00131700
MOV EBP,0x0
MOV RAX,qword ptr [RBX + 0x28]
MOV RDI,qword ptr [RAX + RBP*0x8]
CALL 0x0012dc02
ADD RBP,0x1
CMP dword ptr [RBX + 0x188],EBP
JG 0x001316e7
MOV RDI,qword ptr [RBX + 0x28]
CALL 0x00122b5a
MOV RDI,qword ptr [RBX + 0x40]
TEST RDI,RDI
JZ 0x00131727
MOV RAX,qword ptr [RDI]
MOV qword ptr [RBX + 0x40],RAX
CALL 0x00122b5a
MOV RDI,qword ptr [RBX + 0x40]
TEST RDI,RDI
JNZ 0x00131712
LEA RDI,[RBX + 0xa0]
CALL 0x00122c57
MOV RDI,qword ptr [RBX + 0x160]
TEST RDI,RDI
JZ 0x00131744
CALL 0x00152cf5
LEA RDI,[RBX + 0x148]
CALL 0x00122c57
MOV RDI,qword ptr [RBX + 0x10e0]
CALL 0x00122b5a
MOV RDI,qword ptr [RBX + 0x1150]
CALL 0x00122b5a
MOV RDI,qword ptr [RBX + 0x1160]
CALL 0x00122b5a
MOV RDI,qword ptr [RBX + 0x1168]
CALL 0x00122b5a
CMP dword ptr [RBX + 0x1188],0x0
JLE 0x001317e7
MOV R12D,0x0
MOV RBP,R12
SHL RBP,0x5
MOV RAX,qword ptr [RBX + 0x1178]
MOV RDI,qword ptr [RAX + RBP*0x1 + 0x8]
CALL 0x00122b5a
MOV RAX,qword ptr [RBX + 0x1180]
MOV RDI,qword ptr [RAX + RBP*0x1 + 0x8]
CALL 0x00122b5a
MOV RAX,qword ptr [RBX + 0x1180]
MOV RDI,qword ptr [RAX + RBP*0x1 + 0x10]
CALL 0x00122b5a
MOV RAX,qword ptr [RBX + 0x1180]
MOV RDI,qword ptr [RAX + RBP*0x1 + 0x18]
CALL 0x00122b5a
ADD R12,0x1
CMP dword ptr [RBX + 0x1188],R12D
JG 0x0013178f
MOV RDI,qword ptr [RBX + 0x1178]
CALL 0x00122b5a
MOV RDI,qword ptr [RBX + 0x1180]
CALL 0x00122b5a
MOV RDI,qword ptr [RBX + 0xea8]
CALL 0x00122b5a
MOV RDI,RBX
CALL 0x0013864c
MOV RDI,qword ptr [RBX + 0x1120]
CALL 0x00115459
MOV RDI,RBX
CALL 0x00122b5a
POP RBX
POP RBP
POP R12
RET
(translation_unit "void FUN_00131659(long param_1)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  long lVar3;\n  \n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {\n    FUN_00122b5a(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 8));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x10));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x18));\n  if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));\n  puVar1 = *(undefined8 **)(param_1 + 0x40);\n  while (puVar1 != (undefined8 *)0x0) {\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }\n  FUN_00122c57(param_1 + 0xa0);\n  if (*(long *)(param_1 + 0x160) != 0) {\n    FUN_00152cf5();\n  }\n  FUN_00122c57(param_1 + 0x148);\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));\n  if (0 < *(int *)(param_1 + 0x1188)) {\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));\n  FUN_0013864c(param_1);\n  FUN_00115459(*(undefined8 *)(param_1 + 0x1120));\n  FUN_00122b5a(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00131659(long param_1)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  long lVar3;\n  \n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {\n    FUN_00122b5a(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 8));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x10));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x18));\n  if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));\n  puVar1 = *(undefined8 **)(param_1 + 0x40);\n  while (puVar1 != (undefined8 *)0x0) {\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }\n  FUN_00122c57(param_1 + 0xa0);\n  if (*(long *)(param_1 + 0x160) != 0) {\n    FUN_00152cf5();\n  }\n  FUN_00122c57(param_1 + 0x148);\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));\n  if (0 < *(int *)(param_1 + 0x1188)) {\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));\n  FUN_0013864c(param_1);\n  FUN_00115459(*(undefined8 *)(param_1 + 0x1120));\n  FUN_00122b5a(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00131659(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  long lVar3;\n  \n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {\n    FUN_00122b5a(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 8));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x10));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x18));\n  if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));\n  puVar1 = *(undefined8 **)(param_1 + 0x40);\n  while (puVar1 != (undefined8 *)0x0) {\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }\n  FUN_00122c57(param_1 + 0xa0);\n  if (*(long *)(param_1 + 0x160) != 0) {\n    FUN_00152cf5();\n  }\n  FUN_00122c57(param_1 + 0x148);\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));\n  if (0 < *(int *)(param_1 + 0x1188)) {\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));\n  FUN_0013864c(param_1);\n  FUN_00115459(*(undefined8 *)(param_1 + 0x1120));\n  FUN_00122b5a(param_1);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (while_statement "while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {\n    FUN_00122b5a(lVar2);\n  }" while (parenthesized_expression "(lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0)" ( (comma_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0" (assignment_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0)" identifier = (call_expression "FUN_0013991c(*(undefined8 *)(param_1 + 8),0)" identifier (argument_list "(*(undefined8 *)(param_1 + 8),0)" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , number_literal )))) , (binary_expression "lVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n    FUN_00122b5a(lVar2);\n  }" { (expression_statement "FUN_00122b5a(lVar2);" (call_expression "FUN_00122b5a(lVar2)" identifier (argument_list "(lVar2)" ( identifier ))) ;) })) (expression_statement "FUN_00139644(*(undefined8 *)(param_1 + 8));" (call_expression "FUN_00139644(*(undefined8 *)(param_1 + 8))" identifier (argument_list "(*(undefined8 *)(param_1 + 8))" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (while_statement "while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }" while (parenthesized_expression "(lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0)" ( (comma_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0" (assignment_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0)" identifier = (call_expression "FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x10),0)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , number_literal )))) , (binary_expression "lVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n    FUN_0012dc02(lVar2);\n  }" { (expression_statement "FUN_0012dc02(lVar2);" (call_expression "FUN_0012dc02(lVar2)" identifier (argument_list "(lVar2)" ( identifier ))) ;) })) (expression_statement "FUN_00139644(*(undefined8 *)(param_1 + 0x10));" (call_expression "FUN_00139644(*(undefined8 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (while_statement "while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }" while (parenthesized_expression "(lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0)" ( (comma_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0" (assignment_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0)" identifier = (call_expression "FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x18),0)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , number_literal )))) , (binary_expression "lVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n    FUN_0012dc02(lVar2);\n  }" { (expression_statement "FUN_0012dc02(lVar2);" (call_expression "FUN_0012dc02(lVar2)" identifier (argument_list "(lVar2)" ( identifier ))) ;) })) (expression_statement "FUN_00139644(*(undefined8 *)(param_1 + 0x18));" (call_expression "FUN_00139644(*(undefined8 *)(param_1 + 0x18))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))) ;) (if_statement "if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }" if (parenthesized_expression "((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188)))" ( (binary_expression "(*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))" (parenthesized_expression "(*(long *)(param_1 + 0x28) != 0)" ( (binary_expression "*(long *)(param_1 + 0x28) != 0" (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(0 < *(int *)(param_1 + 0x188))" ( (binary_expression "0 < *(int *)(param_1 + 0x188)" number_literal < (pointer_expression "*(int *)(param_1 + 0x188)" * (cast_expression "(int *)(param_1 + 0x188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x188)" ( (binary_expression "param_1 + 0x188" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }" { (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));" do (compound_statement "{\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    }" { (expression_statement "FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));" (call_expression "FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8))" identifier (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8))" ( (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x28) + lVar2 * 8)" ( (binary_expression "*(long *)(param_1 + 0x28) + lVar2 * 8" (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) + (binary_expression "lVar2 * 8" identifier * number_literal)) )))) ))) ;) (expression_statement "lVar2 = lVar2 + 1;" (assignment_expression "lVar2 = lVar2 + 1" identifier = (binary_expression "lVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar2 < *(int *)(param_1 + 0x188))" ( (binary_expression "(int)lVar2 < *(int *)(param_1 + 0x188)" (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) < (pointer_expression "*(int *)(param_1 + 0x188)" * (cast_expression "(int *)(param_1 + 0x188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x188)" ( (binary_expression "param_1 + 0x188" identifier + number_literal) ))))) )) ;) })) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x28))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))) ;) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x40);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x40)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0x40)" * (cast_expression "(undefined8 **)(param_1 + 0x40)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (while_statement "while (puVar1 != (undefined8 *)0x0) {\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }" while (parenthesized_expression "(puVar1 != (undefined8 *)0x0)" ( (binary_expression "puVar1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }" { (expression_statement "*(undefined8 *)(param_1 + 0x40) = *puVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x40) = *puVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x40)" * (cast_expression "(undefined8 *)(param_1 + 0x40)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "FUN_00122b5a();" (call_expression "FUN_00122b5a()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x40);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x40)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0x40)" * (cast_expression "(undefined8 **)(param_1 + 0x40)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_00122c57(param_1 + 0xa0);" (call_expression "FUN_00122c57(param_1 + 0xa0)" identifier (argument_list "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) ))) ;) (if_statement "if (*(long *)(param_1 + 0x160) != 0) {\n    FUN_00152cf5();\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x160) != 0)" ( (binary_expression "*(long *)(param_1 + 0x160) != 0" (pointer_expression "*(long *)(param_1 + 0x160)" * (cast_expression "(long *)(param_1 + 0x160)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x160)" ( (binary_expression "param_1 + 0x160" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00152cf5();\n  }" { (expression_statement "FUN_00152cf5();" (call_expression "FUN_00152cf5()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00122c57(param_1 + 0x148);" (call_expression "FUN_00122c57(param_1 + 0x148)" identifier (argument_list "(param_1 + 0x148)" ( (binary_expression "param_1 + 0x148" identifier + number_literal) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x10e0))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10e0)" * (cast_expression "(undefined8 *)(param_1 + 0x10e0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10e0)" ( (binary_expression "param_1 + 0x10e0" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1150))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1150)" * (cast_expression "(undefined8 *)(param_1 + 0x1150)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1150)" ( (binary_expression "param_1 + 0x1150" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1160))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1160)" * (cast_expression "(undefined8 *)(param_1 + 0x1160)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1160)" ( (binary_expression "param_1 + 0x1160" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1168))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1168)" * (cast_expression "(undefined8 *)(param_1 + 0x1168)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1168)" ( (binary_expression "param_1 + 0x1168" identifier + number_literal) )))) ))) ;) (if_statement "if (0 < *(int *)(param_1 + 0x1188)) {\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x1188))" ( (binary_expression "0 < *(int *)(param_1 + 0x1188)" number_literal < (pointer_expression "*(int *)(param_1 + 0x1188)" * (cast_expression "(int *)(param_1 + 0x1188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1188)" ( (binary_expression "param_1 + 0x1188" identifier + number_literal) ))))) )) (compound_statement "{\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }" { (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));" do (compound_statement "{\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    }" { (expression_statement "lVar3 = lVar2 * 0x20;" (assignment_expression "lVar3 = lVar2 * 0x20" identifier = (binary_expression "lVar2 * 0x20" identifier * number_literal)) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));" (call_expression "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3))" identifier (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3))" ( (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x1178) + 8 + lVar3)" ( (binary_expression "*(long *)(param_1 + 0x1178) + 8 + lVar3" (binary_expression "*(long *)(param_1 + 0x1178) + 8" (pointer_expression "*(long *)(param_1 + 0x1178)" * (cast_expression "(long *)(param_1 + 0x1178)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1178)" ( (binary_expression "param_1 + 0x1178" identifier + number_literal) )))) + number_literal) + identifier) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));" (call_expression "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3))" identifier (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3))" ( (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x1180) + 8 + lVar3)" ( (binary_expression "*(long *)(param_1 + 0x1180) + 8 + lVar3" (binary_expression "*(long *)(param_1 + 0x1180) + 8" (pointer_expression "*(long *)(param_1 + 0x1180)" * (cast_expression "(long *)(param_1 + 0x1180)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1180)" ( (binary_expression "param_1 + 0x1180" identifier + number_literal) )))) + number_literal) + identifier) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));" (call_expression "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3))" identifier (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3))" ( (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x1180) + 0x10 + lVar3)" ( (binary_expression "*(long *)(param_1 + 0x1180) + 0x10 + lVar3" (binary_expression "*(long *)(param_1 + 0x1180) + 0x10" (pointer_expression "*(long *)(param_1 + 0x1180)" * (cast_expression "(long *)(param_1 + 0x1180)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1180)" ( (binary_expression "param_1 + 0x1180" identifier + number_literal) )))) + number_literal) + identifier) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));" (call_expression "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3))" identifier (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3))" ( (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x1180) + 0x18 + lVar3)" ( (binary_expression "*(long *)(param_1 + 0x1180) + 0x18 + lVar3" (binary_expression "*(long *)(param_1 + 0x1180) + 0x18" (pointer_expression "*(long *)(param_1 + 0x1180)" * (cast_expression "(long *)(param_1 + 0x1180)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1180)" ( (binary_expression "param_1 + 0x1180" identifier + number_literal) )))) + number_literal) + identifier) )))) ))) ;) (expression_statement "lVar2 = lVar2 + 1;" (assignment_expression "lVar2 = lVar2 + 1" identifier = (binary_expression "lVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar2 < *(int *)(param_1 + 0x1188))" ( (binary_expression "(int)lVar2 < *(int *)(param_1 + 0x1188)" (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) < (pointer_expression "*(int *)(param_1 + 0x1188)" * (cast_expression "(int *)(param_1 + 0x1188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1188)" ( (binary_expression "param_1 + 0x1188" identifier + number_literal) ))))) )) ;) })) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1178))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1178)" * (cast_expression "(undefined8 *)(param_1 + 0x1178)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1178)" ( (binary_expression "param_1 + 0x1178" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1180))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1180)" * (cast_expression "(undefined8 *)(param_1 + 0x1180)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1180)" ( (binary_expression "param_1 + 0x1180" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8))" identifier (argument_list "(*(undefined8 *)(param_1 + 0xea8))" ( (pointer_expression "*(undefined8 *)(param_1 + 0xea8)" * (cast_expression "(undefined8 *)(param_1 + 0xea8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xea8)" ( (binary_expression "param_1 + 0xea8" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0013864c(param_1);" (call_expression "FUN_0013864c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00115459(*(undefined8 *)(param_1 + 0x1120));" (call_expression "FUN_00115459(*(undefined8 *)(param_1 + 0x1120))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1120))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1120)" * (cast_expression "(undefined8 *)(param_1 + 0x1120)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1120)" ( (binary_expression "param_1 + 0x1120" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(param_1);" (call_expression "FUN_00122b5a(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid term_free(Terminal *term)\n\n{\n  beeptime *ptr;\n  void *ptr_00;\n  termline *ptVar1;\n  long lVar2;\n  \n  while (ptr_00 = delpos234(term->scrollback,0), ptr_00 != (void *)0x0) {\n    safefree(ptr_00);\n  }\n  freetree234(term->scrollback);\n  while (ptVar1 = (termline *)delpos234(term->screen,0), ptVar1 != (termline *)0x0) {\n    freeline(ptVar1);\n  }\n  freetree234(term->screen);\n  while (ptVar1 = (termline *)delpos234(term->alt_screen,0), ptVar1 != (termline *)0x0) {\n    freeline(ptVar1);\n  }\n  freetree234(term->alt_screen);\n  if ((term->disptext != (termline **)0x0) && (L'\0' < term->rows)) {\n    lVar2 = 0;\n    do {\n      freeline(term->disptext[lVar2]);\n      lVar2 = lVar2 + 1;\n    } while ((wchar_t)lVar2 < term->rows);\n  }\n  safefree(term->disptext);\n  ptr = term->beephead;\n  while (ptr != (beeptime *)0x0) {\n    term->beephead = ptr->next;\n    safefree(ptr);\n    ptr = term->beephead;\n  }\n  bufchain_clear((bufchain *)&term->inbuf);\n  if (term->print_job != (printer_job *)0x0) {\n    printer_finish_job(term->print_job);\n  }\n  bufchain_clear((bufchain *)&term->printer_buf);\n  safefree(term->paste_buffer);\n  safefree(term->ltemp);\n  safefree(term->wcFrom);\n  safefree(term->wcTo);\n  if (L'\0' < term->bidi_cache_size) {\n    lVar2 = 0;\n    do {\n      safefree(term->pre_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].forward);\n      safefree(term->post_bidi_cache[lVar2].backward);\n      lVar2 = lVar2 + 1;\n    } while ((wchar_t)lVar2 < term->bidi_cache_size);\n  }\n  safefree(term->pre_bidi_cache);\n  safefree(term->post_bidi_cache);\n  safefree(term->tabs);\n  expire_timer_context(term);\n  conf_free(term->conf);\n  safefree(term);\n  return;\n}\n\n" comment (function_definition "void term_free(Terminal *term)\n\n{\n  beeptime *ptr;\n  void *ptr_00;\n  termline *ptVar1;\n  long lVar2;\n  \n  while (ptr_00 = delpos234(term->scrollback,0), ptr_00 != (void *)0x0) {\n    safefree(ptr_00);\n  }\n  freetree234(term->scrollback);\n  while (ptVar1 = (termline *)delpos234(term->screen,0), ptVar1 != (termline *)0x0) {\n    freeline(ptVar1);\n  }\n  freetree234(term->screen);\n  while (ptVar1 = (termline *)delpos234(term->alt_screen,0), ptVar1 != (termline *)0x0) {\n    freeline(ptVar1);\n  }\n  freetree234(term->alt_screen);\n  if ((term->disptext != (termline **)0x0) && (L'\0' < term->rows)) {\n    lVar2 = 0;\n    do {\n      freeline(term->disptext[lVar2]);\n      lVar2 = lVar2 + 1;\n    } while ((wchar_t)lVar2 < term->rows);\n  }\n  safefree(term->disptext);\n  ptr = term->beephead;\n  while (ptr != (beeptime *)0x0) {\n    term->beephead = ptr->next;\n    safefree(ptr);\n    ptr = term->beephead;\n  }\n  bufchain_clear((bufchain *)&term->inbuf);\n  if (term->print_job != (printer_job *)0x0) {\n    printer_finish_job(term->print_job);\n  }\n  bufchain_clear((bufchain *)&term->printer_buf);\n  safefree(term->paste_buffer);\n  safefree(term->ltemp);\n  safefree(term->wcFrom);\n  safefree(term->wcTo);\n  if (L'\0' < term->bidi_cache_size) {\n    lVar2 = 0;\n    do {\n      safefree(term->pre_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].forward);\n      safefree(term->post_bidi_cache[lVar2].backward);\n      lVar2 = lVar2 + 1;\n    } while ((wchar_t)lVar2 < term->bidi_cache_size);\n  }\n  safefree(term->pre_bidi_cache);\n  safefree(term->post_bidi_cache);\n  safefree(term->tabs);\n  expire_timer_context(term);\n  conf_free(term->conf);\n  safefree(term);\n  return;\n}" primitive_type (function_declarator "term_free(Terminal *term)" identifier (parameter_list "(Terminal *term)" ( (parameter_declaration "Terminal *term" type_identifier (pointer_declarator "*term" * identifier)) ))) (compound_statement "{\n  beeptime *ptr;\n  void *ptr_00;\n  termline *ptVar1;\n  long lVar2;\n  \n  while (ptr_00 = delpos234(term->scrollback,0), ptr_00 != (void *)0x0) {\n    safefree(ptr_00);\n  }\n  freetree234(term->scrollback);\n  while (ptVar1 = (termline *)delpos234(term->screen,0), ptVar1 != (termline *)0x0) {\n    freeline(ptVar1);\n  }\n  freetree234(term->screen);\n  while (ptVar1 = (termline *)delpos234(term->alt_screen,0), ptVar1 != (termline *)0x0) {\n    freeline(ptVar1);\n  }\n  freetree234(term->alt_screen);\n  if ((term->disptext != (termline **)0x0) && (L'\0' < term->rows)) {\n    lVar2 = 0;\n    do {\n      freeline(term->disptext[lVar2]);\n      lVar2 = lVar2 + 1;\n    } while ((wchar_t)lVar2 < term->rows);\n  }\n  safefree(term->disptext);\n  ptr = term->beephead;\n  while (ptr != (beeptime *)0x0) {\n    term->beephead = ptr->next;\n    safefree(ptr);\n    ptr = term->beephead;\n  }\n  bufchain_clear((bufchain *)&term->inbuf);\n  if (term->print_job != (printer_job *)0x0) {\n    printer_finish_job(term->print_job);\n  }\n  bufchain_clear((bufchain *)&term->printer_buf);\n  safefree(term->paste_buffer);\n  safefree(term->ltemp);\n  safefree(term->wcFrom);\n  safefree(term->wcTo);\n  if (L'\0' < term->bidi_cache_size) {\n    lVar2 = 0;\n    do {\n      safefree(term->pre_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].forward);\n      safefree(term->post_bidi_cache[lVar2].backward);\n      lVar2 = lVar2 + 1;\n    } while ((wchar_t)lVar2 < term->bidi_cache_size);\n  }\n  safefree(term->pre_bidi_cache);\n  safefree(term->post_bidi_cache);\n  safefree(term->tabs);\n  expire_timer_context(term);\n  conf_free(term->conf);\n  safefree(term);\n  return;\n}" { (declaration "beeptime *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "void *ptr_00;" primitive_type (pointer_declarator "*ptr_00" * identifier) ;) (declaration "termline *ptVar1;" type_identifier (pointer_declarator "*ptVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (while_statement "while (ptr_00 = delpos234(term->scrollback,0), ptr_00 != (void *)0x0) {\n    safefree(ptr_00);\n  }" while (parenthesized_expression "(ptr_00 = delpos234(term->scrollback,0), ptr_00 != (void *)0x0)" ( (comma_expression "ptr_00 = delpos234(term->scrollback,0), ptr_00 != (void *)0x0" (assignment_expression "ptr_00 = delpos234(term->scrollback,0)" identifier = (call_expression "delpos234(term->scrollback,0)" identifier (argument_list "(term->scrollback,0)" ( (field_expression "term->scrollback" identifier -> field_identifier) , number_literal )))) , (binary_expression "ptr_00 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n    safefree(ptr_00);\n  }" { (expression_statement "safefree(ptr_00);" (call_expression "safefree(ptr_00)" identifier (argument_list "(ptr_00)" ( identifier ))) ;) })) (expression_statement "freetree234(term->scrollback);" (call_expression "freetree234(term->scrollback)" identifier (argument_list "(term->scrollback)" ( (field_expression "term->scrollback" identifier -> field_identifier) ))) ;) (while_statement "while (ptVar1 = (termline *)delpos234(term->screen,0), ptVar1 != (termline *)0x0) {\n    freeline(ptVar1);\n  }" while (parenthesized_expression "(ptVar1 = (termline *)delpos234(term->screen,0), ptVar1 != (termline *)0x0)" ( (comma_expression "ptVar1 = (termline *)delpos234(term->screen,0), ptVar1 != (termline *)0x0" (assignment_expression "ptVar1 = (termline *)delpos234(term->screen,0)" identifier = (cast_expression "(termline *)delpos234(term->screen,0)" ( (type_descriptor "termline *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "delpos234(term->screen,0)" identifier (argument_list "(term->screen,0)" ( (field_expression "term->screen" identifier -> field_identifier) , number_literal ))))) , (binary_expression "ptVar1 != (termline *)0x0" identifier != (cast_expression "(termline *)0x0" ( (type_descriptor "termline *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n    freeline(ptVar1);\n  }" { (expression_statement "freeline(ptVar1);" (call_expression "freeline(ptVar1)" identifier (argument_list "(ptVar1)" ( identifier ))) ;) })) (expression_statement "freetree234(term->screen);" (call_expression "freetree234(term->screen)" identifier (argument_list "(term->screen)" ( (field_expression "term->screen" identifier -> field_identifier) ))) ;) (while_statement "while (ptVar1 = (termline *)delpos234(term->alt_screen,0), ptVar1 != (termline *)0x0) {\n    freeline(ptVar1);\n  }" while (parenthesized_expression "(ptVar1 = (termline *)delpos234(term->alt_screen,0), ptVar1 != (termline *)0x0)" ( (comma_expression "ptVar1 = (termline *)delpos234(term->alt_screen,0), ptVar1 != (termline *)0x0" (assignment_expression "ptVar1 = (termline *)delpos234(term->alt_screen,0)" identifier = (cast_expression "(termline *)delpos234(term->alt_screen,0)" ( (type_descriptor "termline *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "delpos234(term->alt_screen,0)" identifier (argument_list "(term->alt_screen,0)" ( (field_expression "term->alt_screen" identifier -> field_identifier) , number_literal ))))) , (binary_expression "ptVar1 != (termline *)0x0" identifier != (cast_expression "(termline *)0x0" ( (type_descriptor "termline *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n    freeline(ptVar1);\n  }" { (expression_statement "freeline(ptVar1);" (call_expression "freeline(ptVar1)" identifier (argument_list "(ptVar1)" ( identifier ))) ;) })) (expression_statement "freetree234(term->alt_screen);" (call_expression "freetree234(term->alt_screen)" identifier (argument_list "(term->alt_screen)" ( (field_expression "term->alt_screen" identifier -> field_identifier) ))) ;) (if_statement "if ((term->disptext != (termline **)0x0) && (L'\0' < term->rows)) {\n    lVar2 = 0;\n    do {\n      freeline(term->disptext[lVar2]);\n      lVar2 = lVar2 + 1;\n    } while ((wchar_t)lVar2 < term->rows);\n  }" if (parenthesized_expression "((term->disptext != (termline **)0x0) && (L'\0' < term->rows))" ( (binary_expression "(term->disptext != (termline **)0x0) && (L'\0' < term->rows)" (parenthesized_expression "(term->disptext != (termline **)0x0)" ( (binary_expression "term->disptext != (termline **)0x0" (field_expression "term->disptext" identifier -> field_identifier) != (cast_expression "(termline **)0x0" ( (type_descriptor "termline **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) && (parenthesized_expression "(L'\0' < term->rows)" ( (binary_expression "L'\0' < term->rows" (char_literal "L'\0'" L' escape_sequence ') < (field_expression "term->rows" identifier -> field_identifier)) ))) )) (compound_statement "{\n    lVar2 = 0;\n    do {\n      freeline(term->disptext[lVar2]);\n      lVar2 = lVar2 + 1;\n    } while ((wchar_t)lVar2 < term->rows);\n  }" { (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      freeline(term->disptext[lVar2]);\n      lVar2 = lVar2 + 1;\n    } while ((wchar_t)lVar2 < term->rows);" do (compound_statement "{\n      freeline(term->disptext[lVar2]);\n      lVar2 = lVar2 + 1;\n    }" { (expression_statement "freeline(term->disptext[lVar2]);" (call_expression "freeline(term->disptext[lVar2])" identifier (argument_list "(term->disptext[lVar2])" ( (subscript_expression "term->disptext[lVar2]" (field_expression "term->disptext" identifier -> field_identifier) [ identifier ]) ))) ;) (expression_statement "lVar2 = lVar2 + 1;" (assignment_expression "lVar2 = lVar2 + 1" identifier = (binary_expression "lVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((wchar_t)lVar2 < term->rows)" ( (binary_expression "(wchar_t)lVar2 < term->rows" (cast_expression "(wchar_t)lVar2" ( (type_descriptor "wchar_t" type_identifier) ) identifier) < (field_expression "term->rows" identifier -> field_identifier)) )) ;) })) (expression_statement "safefree(term->disptext);" (call_expression "safefree(term->disptext)" identifier (argument_list "(term->disptext)" ( (field_expression "term->disptext" identifier -> field_identifier) ))) ;) (expression_statement "ptr = term->beephead;" (assignment_expression "ptr = term->beephead" identifier = (field_expression "term->beephead" identifier -> field_identifier)) ;) (while_statement "while (ptr != (beeptime *)0x0) {\n    term->beephead = ptr->next;\n    safefree(ptr);\n    ptr = term->beephead;\n  }" while (parenthesized_expression "(ptr != (beeptime *)0x0)" ( (binary_expression "ptr != (beeptime *)0x0" identifier != (cast_expression "(beeptime *)0x0" ( (type_descriptor "beeptime *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    term->beephead = ptr->next;\n    safefree(ptr);\n    ptr = term->beephead;\n  }" { (expression_statement "term->beephead = ptr->next;" (assignment_expression "term->beephead = ptr->next" (field_expression "term->beephead" identifier -> field_identifier) = (field_expression "ptr->next" identifier -> field_identifier)) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (expression_statement "ptr = term->beephead;" (assignment_expression "ptr = term->beephead" identifier = (field_expression "term->beephead" identifier -> field_identifier)) ;) })) (expression_statement "bufchain_clear((bufchain *)&term->inbuf);" (call_expression "bufchain_clear((bufchain *)&term->inbuf)" identifier (argument_list "((bufchain *)&term->inbuf)" ( (cast_expression "(bufchain *)&term->inbuf" ( (type_descriptor "bufchain *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&term->inbuf" & (field_expression "term->inbuf" identifier -> field_identifier))) ))) ;) (if_statement "if (term->print_job != (printer_job *)0x0) {\n    printer_finish_job(term->print_job);\n  }" if (parenthesized_expression "(term->print_job != (printer_job *)0x0)" ( (binary_expression "term->print_job != (printer_job *)0x0" (field_expression "term->print_job" identifier -> field_identifier) != (cast_expression "(printer_job *)0x0" ( (type_descriptor "printer_job *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    printer_finish_job(term->print_job);\n  }" { (expression_statement "printer_finish_job(term->print_job);" (call_expression "printer_finish_job(term->print_job)" identifier (argument_list "(term->print_job)" ( (field_expression "term->print_job" identifier -> field_identifier) ))) ;) })) (expression_statement "bufchain_clear((bufchain *)&term->printer_buf);" (call_expression "bufchain_clear((bufchain *)&term->printer_buf)" identifier (argument_list "((bufchain *)&term->printer_buf)" ( (cast_expression "(bufchain *)&term->printer_buf" ( (type_descriptor "bufchain *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&term->printer_buf" & (field_expression "term->printer_buf" identifier -> field_identifier))) ))) ;) (expression_statement "safefree(term->paste_buffer);" (call_expression "safefree(term->paste_buffer)" identifier (argument_list "(term->paste_buffer)" ( (field_expression "term->paste_buffer" identifier -> field_identifier) ))) ;) (expression_statement "safefree(term->ltemp);" (call_expression "safefree(term->ltemp)" identifier (argument_list "(term->ltemp)" ( (field_expression "term->ltemp" identifier -> field_identifier) ))) ;) (expression_statement "safefree(term->wcFrom);" (call_expression "safefree(term->wcFrom)" identifier (argument_list "(term->wcFrom)" ( (field_expression "term->wcFrom" identifier -> field_identifier) ))) ;) (expression_statement "safefree(term->wcTo);" (call_expression "safefree(term->wcTo)" identifier (argument_list "(term->wcTo)" ( (field_expression "term->wcTo" identifier -> field_identifier) ))) ;) (if_statement "if (L'\0' < term->bidi_cache_size) {\n    lVar2 = 0;\n    do {\n      safefree(term->pre_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].forward);\n      safefree(term->post_bidi_cache[lVar2].backward);\n      lVar2 = lVar2 + 1;\n    } while ((wchar_t)lVar2 < term->bidi_cache_size);\n  }" if (parenthesized_expression "(L'\0' < term->bidi_cache_size)" ( (binary_expression "L'\0' < term->bidi_cache_size" (char_literal "L'\0'" L' escape_sequence ') < (field_expression "term->bidi_cache_size" identifier -> field_identifier)) )) (compound_statement "{\n    lVar2 = 0;\n    do {\n      safefree(term->pre_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].forward);\n      safefree(term->post_bidi_cache[lVar2].backward);\n      lVar2 = lVar2 + 1;\n    } while ((wchar_t)lVar2 < term->bidi_cache_size);\n  }" { (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      safefree(term->pre_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].forward);\n      safefree(term->post_bidi_cache[lVar2].backward);\n      lVar2 = lVar2 + 1;\n    } while ((wchar_t)lVar2 < term->bidi_cache_size);" do (compound_statement "{\n      safefree(term->pre_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].chars);\n      safefree(term->post_bidi_cache[lVar2].forward);\n      safefree(term->post_bidi_cache[lVar2].backward);\n      lVar2 = lVar2 + 1;\n    }" { (expression_statement "safefree(term->pre_bidi_cache[lVar2].chars);" (call_expression "safefree(term->pre_bidi_cache[lVar2].chars)" identifier (argument_list "(term->pre_bidi_cache[lVar2].chars)" ( (field_expression "term->pre_bidi_cache[lVar2].chars" (subscript_expression "term->pre_bidi_cache[lVar2]" (field_expression "term->pre_bidi_cache" identifier -> field_identifier) [ identifier ]) . field_identifier) ))) ;) (expression_statement "safefree(term->post_bidi_cache[lVar2].chars);" (call_expression "safefree(term->post_bidi_cache[lVar2].chars)" identifier (argument_list "(term->post_bidi_cache[lVar2].chars)" ( (field_expression "term->post_bidi_cache[lVar2].chars" (subscript_expression "term->post_bidi_cache[lVar2]" (field_expression "term->post_bidi_cache" identifier -> field_identifier) [ identifier ]) . field_identifier) ))) ;) (expression_statement "safefree(term->post_bidi_cache[lVar2].forward);" (call_expression "safefree(term->post_bidi_cache[lVar2].forward)" identifier (argument_list "(term->post_bidi_cache[lVar2].forward)" ( (field_expression "term->post_bidi_cache[lVar2].forward" (subscript_expression "term->post_bidi_cache[lVar2]" (field_expression "term->post_bidi_cache" identifier -> field_identifier) [ identifier ]) . field_identifier) ))) ;) (expression_statement "safefree(term->post_bidi_cache[lVar2].backward);" (call_expression "safefree(term->post_bidi_cache[lVar2].backward)" identifier (argument_list "(term->post_bidi_cache[lVar2].backward)" ( (field_expression "term->post_bidi_cache[lVar2].backward" (subscript_expression "term->post_bidi_cache[lVar2]" (field_expression "term->post_bidi_cache" identifier -> field_identifier) [ identifier ]) . field_identifier) ))) ;) (expression_statement "lVar2 = lVar2 + 1;" (assignment_expression "lVar2 = lVar2 + 1" identifier = (binary_expression "lVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((wchar_t)lVar2 < term->bidi_cache_size)" ( (binary_expression "(wchar_t)lVar2 < term->bidi_cache_size" (cast_expression "(wchar_t)lVar2" ( (type_descriptor "wchar_t" type_identifier) ) identifier) < (field_expression "term->bidi_cache_size" identifier -> field_identifier)) )) ;) })) (expression_statement "safefree(term->pre_bidi_cache);" (call_expression "safefree(term->pre_bidi_cache)" identifier (argument_list "(term->pre_bidi_cache)" ( (field_expression "term->pre_bidi_cache" identifier -> field_identifier) ))) ;) (expression_statement "safefree(term->post_bidi_cache);" (call_expression "safefree(term->post_bidi_cache)" identifier (argument_list "(term->post_bidi_cache)" ( (field_expression "term->post_bidi_cache" identifier -> field_identifier) ))) ;) (expression_statement "safefree(term->tabs);" (call_expression "safefree(term->tabs)" identifier (argument_list "(term->tabs)" ( (field_expression "term->tabs" identifier -> field_identifier) ))) ;) (expression_statement "expire_timer_context(term);" (call_expression "expire_timer_context(term)" identifier (argument_list "(term)" ( identifier ))) ;) (expression_statement "conf_free(term->conf);" (call_expression "conf_free(term->conf)" identifier (argument_list "(term->conf)" ( (field_expression "term->conf" identifier -> field_identifier) ))) ;) (expression_statement "safefree(term);" (call_expression "safefree(term)" identifier (argument_list "(term)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00131659(long param_1)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  long lVar3;\n  \n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {\n    FUN_00122b5a(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 8));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x10));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x18));\n  if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));\n  puVar1 = *(undefined8 **)(param_1 + 0x40);\n  while (puVar1 != (undefined8 *)0x0) {\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }\n  FUN_00122c57(param_1 + 0xa0);\n  if (*(long *)(param_1 + 0x160) != 0) {\n    FUN_00152cf5();\n  }\n  FUN_00122c57(param_1 + 0x148);\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));\n  if (0 < *(int *)(param_1 + 0x1188)) {\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));\n  FUN_0013864c(param_1);\n  FUN_00115459(*(undefined8 *)(param_1 + 0x1120));\n  FUN_00122b5a(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00131659(long param_1)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  long lVar3;\n  \n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {\n    FUN_00122b5a(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 8));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x10));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x18));\n  if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));\n  puVar1 = *(undefined8 **)(param_1 + 0x40);\n  while (puVar1 != (undefined8 *)0x0) {\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }\n  FUN_00122c57(param_1 + 0xa0);\n  if (*(long *)(param_1 + 0x160) != 0) {\n    FUN_00152cf5();\n  }\n  FUN_00122c57(param_1 + 0x148);\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));\n  if (0 < *(int *)(param_1 + 0x1188)) {\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));\n  FUN_0013864c(param_1);\n  FUN_00115459(*(undefined8 *)(param_1 + 0x1120));\n  FUN_00122b5a(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00131659(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  long lVar3;\n  \n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {\n    FUN_00122b5a(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 8));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x10));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x18));\n  if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));\n  puVar1 = *(undefined8 **)(param_1 + 0x40);\n  while (puVar1 != (undefined8 *)0x0) {\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }\n  FUN_00122c57(param_1 + 0xa0);\n  if (*(long *)(param_1 + 0x160) != 0) {\n    FUN_00152cf5();\n  }\n  FUN_00122c57(param_1 + 0x148);\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));\n  if (0 < *(int *)(param_1 + 0x1188)) {\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));\n  FUN_0013864c(param_1);\n  FUN_00115459(*(undefined8 *)(param_1 + 0x1120));\n  FUN_00122b5a(param_1);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (while_statement "while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {\n    FUN_00122b5a(lVar2);\n  }" while (parenthesized_expression "(lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0)" ( (comma_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0" (assignment_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0)" identifier = (call_expression "FUN_0013991c(*(undefined8 *)(param_1 + 8),0)" identifier (argument_list "(*(undefined8 *)(param_1 + 8),0)" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , number_literal )))) , (binary_expression "lVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n    FUN_00122b5a(lVar2);\n  }" { (expression_statement "FUN_00122b5a(lVar2);" (call_expression "FUN_00122b5a(lVar2)" identifier (argument_list "(lVar2)" ( identifier ))) ;) })) (expression_statement "FUN_00139644(*(undefined8 *)(param_1 + 8));" (call_expression "FUN_00139644(*(undefined8 *)(param_1 + 8))" identifier (argument_list "(*(undefined8 *)(param_1 + 8))" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (while_statement "while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }" while (parenthesized_expression "(lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0)" ( (comma_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0" (assignment_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0)" identifier = (call_expression "FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x10),0)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , number_literal )))) , (binary_expression "lVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n    FUN_0012dc02(lVar2);\n  }" { (expression_statement "FUN_0012dc02(lVar2);" (call_expression "FUN_0012dc02(lVar2)" identifier (argument_list "(lVar2)" ( identifier ))) ;) })) (expression_statement "FUN_00139644(*(undefined8 *)(param_1 + 0x10));" (call_expression "FUN_00139644(*(undefined8 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (while_statement "while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }" while (parenthesized_expression "(lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0)" ( (comma_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0" (assignment_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0)" identifier = (call_expression "FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x18),0)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , number_literal )))) , (binary_expression "lVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n    FUN_0012dc02(lVar2);\n  }" { (expression_statement "FUN_0012dc02(lVar2);" (call_expression "FUN_0012dc02(lVar2)" identifier (argument_list "(lVar2)" ( identifier ))) ;) })) (expression_statement "FUN_00139644(*(undefined8 *)(param_1 + 0x18));" (call_expression "FUN_00139644(*(undefined8 *)(param_1 + 0x18))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))) ;) (if_statement "if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }" if (parenthesized_expression "((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188)))" ( (binary_expression "(*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))" (parenthesized_expression "(*(long *)(param_1 + 0x28) != 0)" ( (binary_expression "*(long *)(param_1 + 0x28) != 0" (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(0 < *(int *)(param_1 + 0x188))" ( (binary_expression "0 < *(int *)(param_1 + 0x188)" number_literal < (pointer_expression "*(int *)(param_1 + 0x188)" * (cast_expression "(int *)(param_1 + 0x188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x188)" ( (binary_expression "param_1 + 0x188" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }" { (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));" do (compound_statement "{\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    }" { (expression_statement "FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));" (call_expression "FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8))" identifier (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8))" ( (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x28) + lVar2 * 8)" ( (binary_expression "*(long *)(param_1 + 0x28) + lVar2 * 8" (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) + (binary_expression "lVar2 * 8" identifier * number_literal)) )))) ))) ;) (expression_statement "lVar2 = lVar2 + 1;" (assignment_expression "lVar2 = lVar2 + 1" identifier = (binary_expression "lVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar2 < *(int *)(param_1 + 0x188))" ( (binary_expression "(int)lVar2 < *(int *)(param_1 + 0x188)" (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) < (pointer_expression "*(int *)(param_1 + 0x188)" * (cast_expression "(int *)(param_1 + 0x188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x188)" ( (binary_expression "param_1 + 0x188" identifier + number_literal) ))))) )) ;) })) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x28))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))) ;) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x40);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x40)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0x40)" * (cast_expression "(undefined8 **)(param_1 + 0x40)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (while_statement "while (puVar1 != (undefined8 *)0x0) {\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }" while (parenthesized_expression "(puVar1 != (undefined8 *)0x0)" ( (binary_expression "puVar1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }" { (expression_statement "*(undefined8 *)(param_1 + 0x40) = *puVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x40) = *puVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x40)" * (cast_expression "(undefined8 *)(param_1 + 0x40)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "FUN_00122b5a();" (call_expression "FUN_00122b5a()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x40);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x40)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0x40)" * (cast_expression "(undefined8 **)(param_1 + 0x40)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_00122c57(param_1 + 0xa0);" (call_expression "FUN_00122c57(param_1 + 0xa0)" identifier (argument_list "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) ))) ;) (if_statement "if (*(long *)(param_1 + 0x160) != 0) {\n    FUN_00152cf5();\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x160) != 0)" ( (binary_expression "*(long *)(param_1 + 0x160) != 0" (pointer_expression "*(long *)(param_1 + 0x160)" * (cast_expression "(long *)(param_1 + 0x160)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x160)" ( (binary_expression "param_1 + 0x160" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00152cf5();\n  }" { (expression_statement "FUN_00152cf5();" (call_expression "FUN_00152cf5()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00122c57(param_1 + 0x148);" (call_expression "FUN_00122c57(param_1 + 0x148)" identifier (argument_list "(param_1 + 0x148)" ( (binary_expression "param_1 + 0x148" identifier + number_literal) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x10e0))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10e0)" * (cast_expression "(undefined8 *)(param_1 + 0x10e0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10e0)" ( (binary_expression "param_1 + 0x10e0" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1150))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1150)" * (cast_expression "(undefined8 *)(param_1 + 0x1150)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1150)" ( (binary_expression "param_1 + 0x1150" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1160))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1160)" * (cast_expression "(undefined8 *)(param_1 + 0x1160)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1160)" ( (binary_expression "param_1 + 0x1160" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1168))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1168)" * (cast_expression "(undefined8 *)(param_1 + 0x1168)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1168)" ( (binary_expression "param_1 + 0x1168" identifier + number_literal) )))) ))) ;) (if_statement "if (0 < *(int *)(param_1 + 0x1188)) {\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x1188))" ( (binary_expression "0 < *(int *)(param_1 + 0x1188)" number_literal < (pointer_expression "*(int *)(param_1 + 0x1188)" * (cast_expression "(int *)(param_1 + 0x1188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1188)" ( (binary_expression "param_1 + 0x1188" identifier + number_literal) ))))) )) (compound_statement "{\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }" { (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));" do (compound_statement "{\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    }" { (expression_statement "lVar3 = lVar2 * 0x20;" (assignment_expression "lVar3 = lVar2 * 0x20" identifier = (binary_expression "lVar2 * 0x20" identifier * number_literal)) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));" (call_expression "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3))" identifier (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3))" ( (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x1178) + 8 + lVar3)" ( (binary_expression "*(long *)(param_1 + 0x1178) + 8 + lVar3" (binary_expression "*(long *)(param_1 + 0x1178) + 8" (pointer_expression "*(long *)(param_1 + 0x1178)" * (cast_expression "(long *)(param_1 + 0x1178)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1178)" ( (binary_expression "param_1 + 0x1178" identifier + number_literal) )))) + number_literal) + identifier) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));" (call_expression "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3))" identifier (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3))" ( (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x1180) + 8 + lVar3)" ( (binary_expression "*(long *)(param_1 + 0x1180) + 8 + lVar3" (binary_expression "*(long *)(param_1 + 0x1180) + 8" (pointer_expression "*(long *)(param_1 + 0x1180)" * (cast_expression "(long *)(param_1 + 0x1180)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1180)" ( (binary_expression "param_1 + 0x1180" identifier + number_literal) )))) + number_literal) + identifier) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));" (call_expression "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3))" identifier (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3))" ( (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x1180) + 0x10 + lVar3)" ( (binary_expression "*(long *)(param_1 + 0x1180) + 0x10 + lVar3" (binary_expression "*(long *)(param_1 + 0x1180) + 0x10" (pointer_expression "*(long *)(param_1 + 0x1180)" * (cast_expression "(long *)(param_1 + 0x1180)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1180)" ( (binary_expression "param_1 + 0x1180" identifier + number_literal) )))) + number_literal) + identifier) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));" (call_expression "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3))" identifier (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3))" ( (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x1180) + 0x18 + lVar3)" ( (binary_expression "*(long *)(param_1 + 0x1180) + 0x18 + lVar3" (binary_expression "*(long *)(param_1 + 0x1180) + 0x18" (pointer_expression "*(long *)(param_1 + 0x1180)" * (cast_expression "(long *)(param_1 + 0x1180)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1180)" ( (binary_expression "param_1 + 0x1180" identifier + number_literal) )))) + number_literal) + identifier) )))) ))) ;) (expression_statement "lVar2 = lVar2 + 1;" (assignment_expression "lVar2 = lVar2 + 1" identifier = (binary_expression "lVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar2 < *(int *)(param_1 + 0x1188))" ( (binary_expression "(int)lVar2 < *(int *)(param_1 + 0x1188)" (cast_expression "(int)lVar2" ( (type_descriptor "int" primitive_type) ) identifier) < (pointer_expression "*(int *)(param_1 + 0x1188)" * (cast_expression "(int *)(param_1 + 0x1188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1188)" ( (binary_expression "param_1 + 0x1188" identifier + number_literal) ))))) )) ;) })) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1178))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1178)" * (cast_expression "(undefined8 *)(param_1 + 0x1178)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1178)" ( (binary_expression "param_1 + 0x1178" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1180))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1180)" * (cast_expression "(undefined8 *)(param_1 + 0x1180)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1180)" ( (binary_expression "param_1 + 0x1180" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8))" identifier (argument_list "(*(undefined8 *)(param_1 + 0xea8))" ( (pointer_expression "*(undefined8 *)(param_1 + 0xea8)" * (cast_expression "(undefined8 *)(param_1 + 0xea8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xea8)" ( (binary_expression "param_1 + 0xea8" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0013864c(param_1);" (call_expression "FUN_0013864c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00115459(*(undefined8 *)(param_1 + 0x1120));" (call_expression "FUN_00115459(*(undefined8 *)(param_1 + 0x1120))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1120))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1120)" * (cast_expression "(undefined8 *)(param_1 + 0x1120)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1120)" ( (binary_expression "param_1 + 0x1120" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(param_1);" (call_expression "FUN_00122b5a(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00131659(long param_1)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  long lVar3;\n  \n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {\n    FUN_00122b5a(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 8));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x10));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x18));\n  if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));\n  puVar1 = *(undefined8 **)(param_1 + 0x40);\n  while (puVar1 != (undefined8 *)0x0) {\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }\n  FUN_00122c57(param_1 + 0xa0);\n  if (*(long *)(param_1 + 0x160) != 0) {\n    FUN_00152cf5();\n  }\n  FUN_00122c57(param_1 + 0x148);\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));\n  if (0 < *(int *)(param_1 + 0x1188)) {\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));\n  FUN_0013864c(param_1);\n  FUN_00115459(*(undefined8 *)(param_1 + 0x1120));\n  FUN_00122b5a(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00131659(long param_1)" (identifier "FUN_00131659") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  long lVar3;\n  \n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {\n    FUN_00122b5a(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 8));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x10));\n  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }\n  FUN_00139644(*(undefined8 *)(param_1 + 0x18));\n  if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));\n  puVar1 = *(undefined8 **)(param_1 + 0x40);\n  while (puVar1 != (undefined8 *)0x0) {\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }\n  FUN_00122c57(param_1 + 0xa0);\n  if (*(long *)(param_1 + 0x160) != 0) {\n    FUN_00152cf5();\n  }\n  FUN_00122c57(param_1 + 0x148);\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));\n  if (0 < *(int *)(param_1 + 0x1188)) {\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));\n  FUN_0013864c(param_1);\n  FUN_00115459(*(undefined8 *)(param_1 + 0x1120));\n  FUN_00122b5a(param_1);\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (while_statement "while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {\n    FUN_00122b5a(lVar2);\n  }" (while "while") (parenthesized_expression "(lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0)" (( "(") (comma_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0" (assignment_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0)" (identifier "lVar2") (= "=") (call_expression "FUN_0013991c(*(undefined8 *)(param_1 + 8),0)" (identifier "FUN_0013991c") (argument_list "(*(undefined8 *)(param_1 + 8),0)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n    FUN_00122b5a(lVar2);\n  }" ({ "{") (expression_statement "FUN_00122b5a(lVar2);" (call_expression "FUN_00122b5a(lVar2)" (identifier "FUN_00122b5a") (argument_list "(lVar2)" (( "(") (identifier "lVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00139644(*(undefined8 *)(param_1 + 8));" (call_expression "FUN_00139644(*(undefined8 *)(param_1 + 8))" (identifier "FUN_00139644") (argument_list "(*(undefined8 *)(param_1 + 8))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (while_statement "while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }" (while "while") (parenthesized_expression "(lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0)" (( "(") (comma_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0" (assignment_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0)" (identifier "lVar2") (= "=") (call_expression "FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0)" (identifier "FUN_0013991c") (argument_list "(*(undefined8 *)(param_1 + 0x10),0)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n    FUN_0012dc02(lVar2);\n  }" ({ "{") (expression_statement "FUN_0012dc02(lVar2);" (call_expression "FUN_0012dc02(lVar2)" (identifier "FUN_0012dc02") (argument_list "(lVar2)" (( "(") (identifier "lVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00139644(*(undefined8 *)(param_1 + 0x10));" (call_expression "FUN_00139644(*(undefined8 *)(param_1 + 0x10))" (identifier "FUN_00139644") (argument_list "(*(undefined8 *)(param_1 + 0x10))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (while_statement "while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {\n    FUN_0012dc02(lVar2);\n  }" (while "while") (parenthesized_expression "(lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0)" (( "(") (comma_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0" (assignment_expression "lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0)" (identifier "lVar2") (= "=") (call_expression "FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0)" (identifier "FUN_0013991c") (argument_list "(*(undefined8 *)(param_1 + 0x18),0)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n    FUN_0012dc02(lVar2);\n  }" ({ "{") (expression_statement "FUN_0012dc02(lVar2);" (call_expression "FUN_0012dc02(lVar2)" (identifier "FUN_0012dc02") (argument_list "(lVar2)" (( "(") (identifier "lVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00139644(*(undefined8 *)(param_1 + 0x18));" (call_expression "FUN_00139644(*(undefined8 *)(param_1 + 0x18))" (identifier "FUN_00139644") (argument_list "(*(undefined8 *)(param_1 + 0x18))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) () ")"))) (; ";")) (if_statement "if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }" (if "if") (parenthesized_expression "((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188)))" (( "(") (binary_expression "(*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))" (parenthesized_expression "(*(long *)(param_1 + 0x28) != 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x28) != 0" (pointer_expression "*(long *)(param_1 + 0x28)" (* "*") (cast_expression "(long *)(param_1 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(0 < *(int *)(param_1 + 0x188))" (( "(") (binary_expression "0 < *(int *)(param_1 + 0x188)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_1 + 0x188)" (* "*") (cast_expression "(int *)(param_1 + 0x188)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x188)" (( "(") (binary_expression "param_1 + 0x188" (identifier "param_1") (+ "+") (number_literal "0x188")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    lVar2 = 0;\n    do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));\n  }" ({ "{") (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" (identifier "lVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x188));" (do "do") (compound_statement "{\n      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));\n      lVar2 = lVar2 + 1;\n    }" ({ "{") (expression_statement "FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));" (call_expression "FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8))" (identifier "FUN_0012dc02") (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8))" (( "(") (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8)" (* "*") (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x28) + lVar2 * 8)" (( "(") (binary_expression "*(long *)(param_1 + 0x28) + lVar2 * 8" (pointer_expression "*(long *)(param_1 + 0x28)" (* "*") (cast_expression "(long *)(param_1 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (+ "+") (binary_expression "lVar2 * 8" (identifier "lVar2") (* "*") (number_literal "8"))) () ")")))) () ")"))) (; ";")) (expression_statement "lVar2 = lVar2 + 1;" (assignment_expression "lVar2 = lVar2 + 1" (identifier "lVar2") (= "=") (binary_expression "lVar2 + 1" (identifier "lVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)lVar2 < *(int *)(param_1 + 0x188))" (( "(") (binary_expression "(int)lVar2 < *(int *)(param_1 + 0x188)" (cast_expression "(int)lVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar2")) (< "<") (pointer_expression "*(int *)(param_1 + 0x188)" (* "*") (cast_expression "(int *)(param_1 + 0x188)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x188)" (( "(") (binary_expression "param_1 + 0x188" (identifier "param_1") (+ "+") (number_literal "0x188")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x28))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(param_1 + 0x28))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) () ")"))) (; ";")) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x40);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x40)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined8 **)(param_1 + 0x40)" (* "*") (cast_expression "(undefined8 **)(param_1 + 0x40)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (while_statement "while (puVar1 != (undefined8 *)0x0) {\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }" (while "while") (parenthesized_expression "(puVar1 != (undefined8 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined8 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *(undefined8 *)(param_1 + 0x40) = *puVar1;\n    FUN_00122b5a();\n    puVar1 = *(undefined8 **)(param_1 + 0x40);\n  }" ({ "{") (expression_statement "*(undefined8 *)(param_1 + 0x40) = *puVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x40) = *puVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "FUN_00122b5a();" (call_expression "FUN_00122b5a()" (identifier "FUN_00122b5a") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x40);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x40)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined8 **)(param_1 + 0x40)" (* "*") (cast_expression "(undefined8 **)(param_1 + 0x40)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (} "}"))) (expression_statement "FUN_00122c57(param_1 + 0xa0);" (call_expression "FUN_00122c57(param_1 + 0xa0)" (identifier "FUN_00122c57") (argument_list "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")"))) (; ";")) (if_statement "if (*(long *)(param_1 + 0x160) != 0) {\n    FUN_00152cf5();\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x160) != 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x160) != 0" (pointer_expression "*(long *)(param_1 + 0x160)" (* "*") (cast_expression "(long *)(param_1 + 0x160)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x160)" (( "(") (binary_expression "param_1 + 0x160" (identifier "param_1") (+ "+") (number_literal "0x160")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00152cf5();\n  }" ({ "{") (expression_statement "FUN_00152cf5();" (call_expression "FUN_00152cf5()" (identifier "FUN_00152cf5") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00122c57(param_1 + 0x148);" (call_expression "FUN_00122c57(param_1 + 0x148)" (identifier "FUN_00122c57") (argument_list "(param_1 + 0x148)" (( "(") (binary_expression "param_1 + 0x148" (identifier "param_1") (+ "+") (number_literal "0x148")) () ")"))) (; ";")) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(param_1 + 0x10e0))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x10e0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10e0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10e0)" (( "(") (binary_expression "param_1 + 0x10e0" (identifier "param_1") (+ "+") (number_literal "0x10e0")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(param_1 + 0x1150))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x1150)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1150)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1150)" (( "(") (binary_expression "param_1 + 0x1150" (identifier "param_1") (+ "+") (number_literal "0x1150")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(param_1 + 0x1160))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x1160)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1160)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1160)" (( "(") (binary_expression "param_1 + 0x1160" (identifier "param_1") (+ "+") (number_literal "0x1160")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(param_1 + 0x1168))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x1168)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1168)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1168)" (( "(") (binary_expression "param_1 + 0x1168" (identifier "param_1") (+ "+") (number_literal "0x1168")) () ")")))) () ")"))) (; ";")) (if_statement "if (0 < *(int *)(param_1 + 0x1188)) {\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }" (if "if") (parenthesized_expression "(0 < *(int *)(param_1 + 0x1188))" (( "(") (binary_expression "0 < *(int *)(param_1 + 0x1188)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_1 + 0x1188)" (* "*") (cast_expression "(int *)(param_1 + 0x1188)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1188)" (( "(") (binary_expression "param_1 + 0x1188" (identifier "param_1") (+ "+") (number_literal "0x1188")) () ")"))))) () ")")) (compound_statement "{\n    lVar2 = 0;\n    do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));\n  }" ({ "{") (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" (identifier "lVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));" (do "do") (compound_statement "{\n      lVar3 = lVar2 * 0x20;\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));\n      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));\n      lVar2 = lVar2 + 1;\n    }" ({ "{") (expression_statement "lVar3 = lVar2 * 0x20;" (assignment_expression "lVar3 = lVar2 * 0x20" (identifier "lVar3") (= "=") (binary_expression "lVar2 * 0x20" (identifier "lVar2") (* "*") (number_literal "0x20"))) (; ";")) (expression_statement "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));" (call_expression "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3))" (( "(") (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3)" (* "*") (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x1178) + 8 + lVar3)" (( "(") (binary_expression "*(long *)(param_1 + 0x1178) + 8 + lVar3" (binary_expression "*(long *)(param_1 + 0x1178) + 8" (pointer_expression "*(long *)(param_1 + 0x1178)" (* "*") (cast_expression "(long *)(param_1 + 0x1178)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1178)" (( "(") (binary_expression "param_1 + 0x1178" (identifier "param_1") (+ "+") (number_literal "0x1178")) () ")")))) (+ "+") (number_literal "8")) (+ "+") (identifier "lVar3")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));" (call_expression "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3))" (( "(") (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3)" (* "*") (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x1180) + 8 + lVar3)" (( "(") (binary_expression "*(long *)(param_1 + 0x1180) + 8 + lVar3" (binary_expression "*(long *)(param_1 + 0x1180) + 8" (pointer_expression "*(long *)(param_1 + 0x1180)" (* "*") (cast_expression "(long *)(param_1 + 0x1180)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1180)" (( "(") (binary_expression "param_1 + 0x1180" (identifier "param_1") (+ "+") (number_literal "0x1180")) () ")")))) (+ "+") (number_literal "8")) (+ "+") (identifier "lVar3")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));" (call_expression "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3))" (( "(") (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3)" (* "*") (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x1180) + 0x10 + lVar3)" (( "(") (binary_expression "*(long *)(param_1 + 0x1180) + 0x10 + lVar3" (binary_expression "*(long *)(param_1 + 0x1180) + 0x10" (pointer_expression "*(long *)(param_1 + 0x1180)" (* "*") (cast_expression "(long *)(param_1 + 0x1180)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1180)" (( "(") (binary_expression "param_1 + 0x1180" (identifier "param_1") (+ "+") (number_literal "0x1180")) () ")")))) (+ "+") (number_literal "0x10")) (+ "+") (identifier "lVar3")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));" (call_expression "FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3))" (( "(") (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3)" (* "*") (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x1180) + 0x18 + lVar3)" (( "(") (binary_expression "*(long *)(param_1 + 0x1180) + 0x18 + lVar3" (binary_expression "*(long *)(param_1 + 0x1180) + 0x18" (pointer_expression "*(long *)(param_1 + 0x1180)" (* "*") (cast_expression "(long *)(param_1 + 0x1180)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1180)" (( "(") (binary_expression "param_1 + 0x1180" (identifier "param_1") (+ "+") (number_literal "0x1180")) () ")")))) (+ "+") (number_literal "0x18")) (+ "+") (identifier "lVar3")) () ")")))) () ")"))) (; ";")) (expression_statement "lVar2 = lVar2 + 1;" (assignment_expression "lVar2 = lVar2 + 1" (identifier "lVar2") (= "=") (binary_expression "lVar2 + 1" (identifier "lVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)lVar2 < *(int *)(param_1 + 0x1188))" (( "(") (binary_expression "(int)lVar2 < *(int *)(param_1 + 0x1188)" (cast_expression "(int)lVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar2")) (< "<") (pointer_expression "*(int *)(param_1 + 0x1188)" (* "*") (cast_expression "(int *)(param_1 + 0x1188)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1188)" (( "(") (binary_expression "param_1 + 0x1188" (identifier "param_1") (+ "+") (number_literal "0x1188")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(param_1 + 0x1178))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x1178)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1178)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1178)" (( "(") (binary_expression "param_1 + 0x1178" (identifier "param_1") (+ "+") (number_literal "0x1178")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(param_1 + 0x1180))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x1180)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1180)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1180)" (( "(") (binary_expression "param_1 + 0x1180" (identifier "param_1") (+ "+") (number_literal "0x1180")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(param_1 + 0xea8))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0xea8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xea8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xea8)" (( "(") (binary_expression "param_1 + 0xea8" (identifier "param_1") (+ "+") (number_literal "0xea8")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0013864c(param_1);" (call_expression "FUN_0013864c(param_1)" (identifier "FUN_0013864c") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_00115459(*(undefined8 *)(param_1 + 0x1120));" (call_expression "FUN_00115459(*(undefined8 *)(param_1 + 0x1120))" (identifier "FUN_00115459") (argument_list "(*(undefined8 *)(param_1 + 0x1120))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x1120)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1120)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1120)" (( "(") (binary_expression "param_1 + 0x1120" (identifier "param_1") (+ "+") (number_literal "0x1120")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00122b5a(param_1);" (call_expression "FUN_00122b5a(param_1)" (identifier "FUN_00122b5a") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *term)

{
  type_2 *var_8;
  void *var_2;
  type_3 *var_5;
  long var_7;
  
  while (var_2 = var_1(term->scrollback,0), var_2 != (void *)0x0) {
    var_3(var_2);
  }
  var_4(term->scrollback);
  while (var_5 = (type_3 *)var_1(term->screen,0), var_5 != (type_3 *)0x0) {
    var_6(var_5);
  }
  var_4(term->screen);
  while (var_5 = (type_3 *)var_1(term->alt_screen,0), var_5 != (type_3 *)0x0) {
    var_6(var_5);
  }
  var_4(term->alt_screen);
  if ((term->disptext != (type_3 **)0x0) && (L'\0' < term->rows)) {
    var_7 = 0;
    do {
      var_6(term->disptext[var_7]);
      var_7 = var_7 + 1;
    } while ((type_4)var_7 < term->rows);
  }
  var_3(term->disptext);
  var_8 = term->beephead;
  while (var_8 != (type_2 *)0x0) {
    term->beephead = var_8->next;
    var_3(var_8);
    var_8 = term->beephead;
  }
  var_9((type_5 *)&term->inbuf);
  if (term->print_job != (type_6 *)0x0) {
    var_10(term->print_job);
  }
  var_9((type_5 *)&term->printer_buf);
  var_3(term->paste_buffer);
  var_3(term->ltemp);
  var_3(term->wcFrom);
  var_3(term->wcTo);
  if (L'\0' < term->bidi_cache_size) {
    var_7 = 0;
    do {
      var_3(term->pre_bidi_cache[var_7].chars);
      var_3(term->post_bidi_cache[var_7].chars);
      var_3(term->post_bidi_cache[var_7].forward);
      var_3(term->post_bidi_cache[var_7].backward);
      var_7 = var_7 + 1;
    } while ((type_4)var_7 < term->bidi_cache_size);
  }
  var_3(term->pre_bidi_cache);
  var_3(term->post_bidi_cache);
  var_3(term->tabs);
  var_11(term);
  var_12(term->conf);
  var_3(term);
  return;
}


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

void MASKED(long param_1)

{
  undefined8 *puVar1;
  long lVar2;
  long lVar3;
  
  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 8),0), lVar2 != 0) {
    FUN_00122b5a(lVar2);
  }
  FUN_00139644(*(undefined8 *)(param_1 + 8));
  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x10),0), lVar2 != 0) {
    FUN_0012dc02(lVar2);
  }
  FUN_00139644(*(undefined8 *)(param_1 + 0x10));
  while (lVar2 = FUN_0013991c(*(undefined8 *)(param_1 + 0x18),0), lVar2 != 0) {
    FUN_0012dc02(lVar2);
  }
  FUN_00139644(*(undefined8 *)(param_1 + 0x18));
  if ((*(long *)(param_1 + 0x28) != 0) && (0 < *(int *)(param_1 + 0x188))) {
    lVar2 = 0;
    do {
      FUN_0012dc02(*(undefined8 *)(*(long *)(param_1 + 0x28) + lVar2 * 8));
      lVar2 = lVar2 + 1;
    } while ((int)lVar2 < *(int *)(param_1 + 0x188));
  }
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x28));
  puVar1 = *(undefined8 **)(param_1 + 0x40);
  while (puVar1 != (undefined8 *)0x0) {
    *(undefined8 *)(param_1 + 0x40) = *puVar1;
    FUN_00122b5a();
    puVar1 = *(undefined8 **)(param_1 + 0x40);
  }
  FUN_00122c57(param_1 + 0xa0);
  if (*(long *)(param_1 + 0x160) != 0) {
    FUN_00152cf5();
  }
  FUN_00122c57(param_1 + 0x148);
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x10e0));
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1150));
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1160));
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1168));
  if (0 < *(int *)(param_1 + 0x1188)) {
    lVar2 = 0;
    do {
      lVar3 = lVar2 * 0x20;
      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1178) + 8 + lVar3));
      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 8 + lVar3));
      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x10 + lVar3));
      FUN_00122b5a(*(undefined8 *)(*(long *)(param_1 + 0x1180) + 0x18 + lVar3));
      lVar2 = lVar2 + 1;
    } while ((int)lVar2 < *(int *)(param_1 + 0x1188));
  }
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1178));
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x1180));
  FUN_00122b5a(*(undefined8 *)(param_1 + 0xea8));
  FUN_0013864c(param_1);
  FUN_00115459(*(undefined8 *)(param_1 + 0x1120));
  FUN_00122b5a(param_1);
  return;
}

