
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void check_pending_save(void)

{
  char *format;
  unw_rec_list *puVar1;
  unw_rec_list *puVar2;
  unw_rec_list *puVar3;
  
  format = (char *)dcgettext(0,"Previous .save incomplete",5);
  as_warn(format);
  if (unwind.list != (unw_rec_list *)0x0) {
    puVar2 = (unwind.list)->next;
    puVar1 = unwind.list;
    if (unwind.pending_saves == (unw_p_record *)&((unwind.list)->r).record) {
      puVar3 = (unw_rec_list *)0x0;
      unwind.list = (unwind.list)->next;
    }
    else {
      do {
        puVar3 = puVar1;
        puVar1 = puVar2;
        if (puVar1 == (unw_rec_list *)0x0) {
          unwind.pending_saves = (unw_p_record *)0x0;
          return;
        }
        puVar2 = puVar1->next;
      } while ((unw_p_record *)&(puVar1->r).record != unwind.pending_saves);
      puVar3->next = puVar1->next;
    }
    if (puVar1 != unwind.tail) {
      puVar3 = unwind.tail;
    }
    unwind.tail = puVar3;
    if (puVar1 == unwind.current_entry) {
      unwind.current_entry = puVar1->next;
    }
    *(uchar *)((int)&(puVar1->r).record + 0x14) = '\0';
    *(uchar *)((int)&(puVar1->r).record + 0x15) = '\0';
    *(undefined2 *)((int)&(puVar1->r).record + 0x16) = 0;
    *(undefined2 *)((int)&(puVar1->r).record + 0x12) = 0;
    puVar2 = (puVar1->r).record.p.next;
    (puVar1->r).record.r.rlen = 0;
    if (puVar2 != (unw_rec_list *)0x0) {
      do {
        puVar1 = (puVar2->r).record.p.next;
        free(puVar2);
        puVar2 = puVar1;
      } while (puVar1 != (unw_rec_list *)0x0);
      unwind.pending_saves = (unw_p_record *)0x0;
      return;
    }
  }
  unwind.pending_saves = (unw_p_record *)0x0;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_00049e10(void)

{
  void *pvVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  void *__ptr;
  int iVar5;
  
  uVar3 = dcgettext(0,"Previous .save incomplete",5);
  FUN_00029470(uVar3);
  if (DAT_000876c0 != 0) {
    iVar2 = *(int *)(DAT_000876c0 + 0x28);
    iVar4 = DAT_000876c0;
    if (DAT_000876f0 == DAT_000876c0 + 4) {
      iVar5 = 0;
      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);
    }
    else {
      do {
        iVar5 = iVar4;
        iVar4 = iVar2;
        if (iVar4 == 0) {
          DAT_000876f0 = 0;
          return;
        }
        iVar2 = *(int *)(iVar4 + 0x28);
      } while (iVar4 + 4 != DAT_000876f0);
      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);
    }
    if (iVar4 != DAT_000876c4) {
      iVar5 = DAT_000876c4;
    }
    DAT_000876c4 = iVar5;
    if (iVar4 == DAT_000876c8) {
      DAT_000876c8 = *(int *)(iVar4 + 0x28);
    }
    *(undefined4 *)(iVar4 + 0x18) = 0;
    *(undefined2 *)(iVar4 + 0x16) = 0;
    __ptr = *(void **)(iVar4 + 4);
    *(undefined4 *)(iVar4 + 4) = 0;
    if (__ptr != (void *)0x0) {
      do {
        pvVar1 = *(void **)((int)__ptr + 4);
        free(__ptr);
        __ptr = pvVar1;
      } while (pvVar1 != (void *)0x0);
      DAT_000876f0 = 0;
      return;
    }
  }
  DAT_000876f0 = 0;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016030
ADD EBX,0x341e8
SUB ESP,0x4
PUSH 0x5
LEA EAX,[EBX + 0xfffe5882]
PUSH EAX
PUSH 0x0
CALL 0x000141b0
MOV dword ptr [ESP],EAX
CALL 0x00029470
MOV ESI,dword ptr [EBX + 0x96c0]
ADD ESP,0x10
TEST ESI,ESI
JZ 0x00049e72
MOV EDI,dword ptr [EBX + 0x96f0]
LEA EDX,[ESI + 0x4]
MOV EAX,dword ptr [ESI + 0x28]
CMP EDI,EDX
JNZ 0x00049e6e
JMP 0x00049ef1
LEA ECX,[EAX + 0x4]
MOV EDX,dword ptr [EAX + 0x28]
CMP ECX,EDI
JZ 0x00049e80
MOV ESI,EAX
MOV EAX,EDX
TEST EAX,EAX
JNZ 0x00049e60
MOV dword ptr [EBX + 0x96f0],0x0
POP EBX
POP ESI
POP EDI
RET
MOV dword ptr [ESI + 0x28],EDX
CMP EAX,dword ptr [EBX + 0x96c4]
JZ 0x00049ed8
CMP EAX,dword ptr [EBX + 0x96c8]
JZ 0x00049ee6
XOR EDX,EDX
MOV dword ptr [EAX + 0x18],0x0
MOV word ptr [EAX + 0x16],DX
MOV EDX,dword ptr [EAX + 0x4]
MOV dword ptr [EAX + 0x4],0x0
TEST EDX,EDX
JZ 0x00049e72
NOP
SUB ESP,0xc
MOV ESI,dword ptr [EDX + 0x4]
PUSH EDX
CALL 0x00014790
MOV EDX,ESI
ADD ESP,0x10
TEST ESI,ESI
JNZ 0x00049eb0
MOV dword ptr [EBX + 0x96f0],0x0
POP EBX
POP ESI
POP EDI
RET
MOV dword ptr [EBX + 0x96c4],ESI
CMP EAX,dword ptr [EBX + 0x96c8]
JNZ 0x00049e93
MOV EDX,dword ptr [EAX + 0x28]
MOV dword ptr [EBX + 0x96c8],EDX
JMP 0x00049e93
MOV dword ptr [EBX + 0x96c0],EAX
MOV EAX,ESI
XOR ESI,ESI
JMP 0x00049e83
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00049e10(void)\n\n{\n  void *pvVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  \n  uVar3 = dcgettext(0,"Previous .save incomplete",5);\n  FUN_00029470(uVar3);\n  if (DAT_000876c0 != 0) {\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }\n  DAT_000876f0 = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_00049e10(void)\n\n{\n  void *pvVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  \n  uVar3 = dcgettext(0,"Previous .save incomplete",5);\n  FUN_00029470(uVar3);\n  if (DAT_000876c0 != 0) {\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }\n  DAT_000876f0 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00049e10(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  \n  uVar3 = dcgettext(0,"Previous .save incomplete",5);\n  FUN_00029470(uVar3);\n  if (DAT_000876c0 != 0) {\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }\n  DAT_000876f0 = 0;\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "uVar3 = dcgettext(0,"Previous .save incomplete",5);" (assignment_expression "uVar3 = dcgettext(0,"Previous .save incomplete",5)" identifier = (call_expression "dcgettext(0,"Previous .save incomplete",5)" identifier (argument_list "(0,"Previous .save incomplete",5)" ( number_literal , (string_literal ""Previous .save incomplete"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00029470(uVar3);" (call_expression "FUN_00029470(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (if_statement "if (DAT_000876c0 != 0) {\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }" if (parenthesized_expression "(DAT_000876c0 != 0)" ( (binary_expression "DAT_000876c0 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(DAT_000876c0 + 0x28);" (assignment_expression "iVar2 = *(int *)(DAT_000876c0 + 0x28)" identifier = (pointer_expression "*(int *)(DAT_000876c0 + 0x28)" * (cast_expression "(int *)(DAT_000876c0 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000876c0 + 0x28)" ( (binary_expression "DAT_000876c0 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = DAT_000876c0;" (assignment_expression "iVar4 = DAT_000876c0" identifier = identifier) ;) (if_statement "if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }" if (parenthesized_expression "(DAT_000876f0 == DAT_000876c0 + 4)" ( (binary_expression "DAT_000876f0 == DAT_000876c0 + 4" identifier == (binary_expression "DAT_000876c0 + 4" identifier + number_literal)) )) (compound_statement "{\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);" (assignment_expression "DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28)" identifier = (pointer_expression "*(int *)(DAT_000876c0 + 0x28)" * (cast_expression "(int *)(DAT_000876c0 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000876c0 + 0x28)" ( (binary_expression "DAT_000876c0 + 0x28" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }" else (compound_statement "{\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }" { (do_statement "do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);" do (compound_statement "{\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      }" { (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_000876f0 = 0;\n          return;\n        }" { (expression_statement "DAT_000876f0 = 0;" (assignment_expression "DAT_000876f0 = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(iVar4 + 0x28);" (assignment_expression "iVar2 = *(int *)(iVar4 + 0x28)" identifier = (pointer_expression "*(int *)(iVar4 + 0x28)" * (cast_expression "(int *)(iVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x28)" ( (binary_expression "iVar4 + 0x28" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar4 + 4 != DAT_000876f0)" ( (binary_expression "iVar4 + 4 != DAT_000876f0" (binary_expression "iVar4 + 4" identifier + number_literal) != identifier) )) ;) (expression_statement "*(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);" (assignment_expression "*(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28)" (pointer_expression "*(int *)(iVar5 + 0x28)" * (cast_expression "(int *)(iVar5 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x28)" ( (binary_expression "iVar5 + 0x28" identifier + number_literal) )))) = (pointer_expression "*(int *)(iVar4 + 0x28)" * (cast_expression "(int *)(iVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x28)" ( (binary_expression "iVar4 + 0x28" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }" if (parenthesized_expression "(iVar4 != DAT_000876c4)" ( (binary_expression "iVar4 != DAT_000876c4" identifier != identifier) )) (compound_statement "{\n      iVar5 = DAT_000876c4;\n    }" { (expression_statement "iVar5 = DAT_000876c4;" (assignment_expression "iVar5 = DAT_000876c4" identifier = identifier) ;) })) (expression_statement "DAT_000876c4 = iVar5;" (assignment_expression "DAT_000876c4 = iVar5" identifier = identifier) ;) (if_statement "if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }" if (parenthesized_expression "(iVar4 == DAT_000876c8)" ( (binary_expression "iVar4 == DAT_000876c8" identifier == identifier) )) (compound_statement "{\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }" { (expression_statement "DAT_000876c8 = *(int *)(iVar4 + 0x28);" (assignment_expression "DAT_000876c8 = *(int *)(iVar4 + 0x28)" identifier = (pointer_expression "*(int *)(iVar4 + 0x28)" * (cast_expression "(int *)(iVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x28)" ( (binary_expression "iVar4 + 0x28" identifier + number_literal) ))))) ;) })) (expression_statement "*(undefined4 *)(iVar4 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0x18)" * (cast_expression "(undefined4 *)(iVar4 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar4 + 0x16) = 0;" (assignment_expression "*(undefined2 *)(iVar4 + 0x16) = 0" (pointer_expression "*(undefined2 *)(iVar4 + 0x16)" * (cast_expression "(undefined2 *)(iVar4 + 0x16)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x16)" ( (binary_expression "iVar4 + 0x16" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__ptr = *(void **)(iVar4 + 4);" (assignment_expression "__ptr = *(void **)(iVar4 + 4)" identifier = (pointer_expression "*(void **)(iVar4 + 4)" * (cast_expression "(void **)(iVar4 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 4) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 4) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }" { (do_statement "do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);" do (compound_statement "{\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      }" { (expression_statement "pvVar1 = *(void **)((int)__ptr + 4);" (assignment_expression "pvVar1 = *(void **)((int)__ptr + 4)" identifier = (pointer_expression "*(void **)((int)__ptr + 4)" * (cast_expression "(void **)((int)__ptr + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 4)" ( (binary_expression "(int)__ptr + 4" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = pvVar1;" (assignment_expression "__ptr = pvVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "DAT_000876f0 = 0;" (assignment_expression "DAT_000876f0 = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })) })) (expression_statement "DAT_000876f0 = 0;" (assignment_expression "DAT_000876f0 = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid check_pending_save(void)\n\n{\n  char *format;\n  unw_rec_list *puVar1;\n  unw_rec_list *puVar2;\n  unw_rec_list *puVar3;\n  \n  format = (char *)dcgettext(0,"Previous .save incomplete",5);\n  as_warn(format);\n  if (unwind.list != (unw_rec_list *)0x0) {\n    puVar2 = (unwind.list)->next;\n    puVar1 = unwind.list;\n    if (unwind.pending_saves == (unw_p_record *)&((unwind.list)->r).record) {\n      puVar3 = (unw_rec_list *)0x0;\n      unwind.list = (unwind.list)->next;\n    }\n    else {\n      do {\n        puVar3 = puVar1;\n        puVar1 = puVar2;\n        if (puVar1 == (unw_rec_list *)0x0) {\n          unwind.pending_saves = (unw_p_record *)0x0;\n          return;\n        }\n        puVar2 = puVar1->next;\n      } while ((unw_p_record *)&(puVar1->r).record != unwind.pending_saves);\n      puVar3->next = puVar1->next;\n    }\n    if (puVar1 != unwind.tail) {\n      puVar3 = unwind.tail;\n    }\n    unwind.tail = puVar3;\n    if (puVar1 == unwind.current_entry) {\n      unwind.current_entry = puVar1->next;\n    }\n    *(uchar *)((int)&(puVar1->r).record + 0x14) = '\0';\n    *(uchar *)((int)&(puVar1->r).record + 0x15) = '\0';\n    *(undefined2 *)((int)&(puVar1->r).record + 0x16) = 0;\n    *(undefined2 *)((int)&(puVar1->r).record + 0x12) = 0;\n    puVar2 = (puVar1->r).record.p.next;\n    (puVar1->r).record.r.rlen = 0;\n    if (puVar2 != (unw_rec_list *)0x0) {\n      do {\n        puVar1 = (puVar2->r).record.p.next;\n        free(puVar2);\n        puVar2 = puVar1;\n      } while (puVar1 != (unw_rec_list *)0x0);\n      unwind.pending_saves = (unw_p_record *)0x0;\n      return;\n    }\n  }\n  unwind.pending_saves = (unw_p_record *)0x0;\n  return;\n}\n\n" comment comment (function_definition "void check_pending_save(void)\n\n{\n  char *format;\n  unw_rec_list *puVar1;\n  unw_rec_list *puVar2;\n  unw_rec_list *puVar3;\n  \n  format = (char *)dcgettext(0,"Previous .save incomplete",5);\n  as_warn(format);\n  if (unwind.list != (unw_rec_list *)0x0) {\n    puVar2 = (unwind.list)->next;\n    puVar1 = unwind.list;\n    if (unwind.pending_saves == (unw_p_record *)&((unwind.list)->r).record) {\n      puVar3 = (unw_rec_list *)0x0;\n      unwind.list = (unwind.list)->next;\n    }\n    else {\n      do {\n        puVar3 = puVar1;\n        puVar1 = puVar2;\n        if (puVar1 == (unw_rec_list *)0x0) {\n          unwind.pending_saves = (unw_p_record *)0x0;\n          return;\n        }\n        puVar2 = puVar1->next;\n      } while ((unw_p_record *)&(puVar1->r).record != unwind.pending_saves);\n      puVar3->next = puVar1->next;\n    }\n    if (puVar1 != unwind.tail) {\n      puVar3 = unwind.tail;\n    }\n    unwind.tail = puVar3;\n    if (puVar1 == unwind.current_entry) {\n      unwind.current_entry = puVar1->next;\n    }\n    *(uchar *)((int)&(puVar1->r).record + 0x14) = '\0';\n    *(uchar *)((int)&(puVar1->r).record + 0x15) = '\0';\n    *(undefined2 *)((int)&(puVar1->r).record + 0x16) = 0;\n    *(undefined2 *)((int)&(puVar1->r).record + 0x12) = 0;\n    puVar2 = (puVar1->r).record.p.next;\n    (puVar1->r).record.r.rlen = 0;\n    if (puVar2 != (unw_rec_list *)0x0) {\n      do {\n        puVar1 = (puVar2->r).record.p.next;\n        free(puVar2);\n        puVar2 = puVar1;\n      } while (puVar1 != (unw_rec_list *)0x0);\n      unwind.pending_saves = (unw_p_record *)0x0;\n      return;\n    }\n  }\n  unwind.pending_saves = (unw_p_record *)0x0;\n  return;\n}" primitive_type (function_declarator "check_pending_save(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *format;\n  unw_rec_list *puVar1;\n  unw_rec_list *puVar2;\n  unw_rec_list *puVar3;\n  \n  format = (char *)dcgettext(0,"Previous .save incomplete",5);\n  as_warn(format);\n  if (unwind.list != (unw_rec_list *)0x0) {\n    puVar2 = (unwind.list)->next;\n    puVar1 = unwind.list;\n    if (unwind.pending_saves == (unw_p_record *)&((unwind.list)->r).record) {\n      puVar3 = (unw_rec_list *)0x0;\n      unwind.list = (unwind.list)->next;\n    }\n    else {\n      do {\n        puVar3 = puVar1;\n        puVar1 = puVar2;\n        if (puVar1 == (unw_rec_list *)0x0) {\n          unwind.pending_saves = (unw_p_record *)0x0;\n          return;\n        }\n        puVar2 = puVar1->next;\n      } while ((unw_p_record *)&(puVar1->r).record != unwind.pending_saves);\n      puVar3->next = puVar1->next;\n    }\n    if (puVar1 != unwind.tail) {\n      puVar3 = unwind.tail;\n    }\n    unwind.tail = puVar3;\n    if (puVar1 == unwind.current_entry) {\n      unwind.current_entry = puVar1->next;\n    }\n    *(uchar *)((int)&(puVar1->r).record + 0x14) = '\0';\n    *(uchar *)((int)&(puVar1->r).record + 0x15) = '\0';\n    *(undefined2 *)((int)&(puVar1->r).record + 0x16) = 0;\n    *(undefined2 *)((int)&(puVar1->r).record + 0x12) = 0;\n    puVar2 = (puVar1->r).record.p.next;\n    (puVar1->r).record.r.rlen = 0;\n    if (puVar2 != (unw_rec_list *)0x0) {\n      do {\n        puVar1 = (puVar2->r).record.p.next;\n        free(puVar2);\n        puVar2 = puVar1;\n      } while (puVar1 != (unw_rec_list *)0x0);\n      unwind.pending_saves = (unw_p_record *)0x0;\n      return;\n    }\n  }\n  unwind.pending_saves = (unw_p_record *)0x0;\n  return;\n}" { (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "unw_rec_list *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "unw_rec_list *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "unw_rec_list *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "format = (char *)dcgettext(0,"Previous .save incomplete",5);" (assignment_expression "format = (char *)dcgettext(0,"Previous .save incomplete",5)" identifier = (cast_expression "(char *)dcgettext(0,"Previous .save incomplete",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Previous .save incomplete",5)" identifier (argument_list "(0,"Previous .save incomplete",5)" ( number_literal , (string_literal ""Previous .save incomplete"" " string_content ") , number_literal ))))) ;) (expression_statement "as_warn(format);" (call_expression "as_warn(format)" identifier (argument_list "(format)" ( identifier ))) ;) (if_statement "if (unwind.list != (unw_rec_list *)0x0) {\n    puVar2 = (unwind.list)->next;\n    puVar1 = unwind.list;\n    if (unwind.pending_saves == (unw_p_record *)&((unwind.list)->r).record) {\n      puVar3 = (unw_rec_list *)0x0;\n      unwind.list = (unwind.list)->next;\n    }\n    else {\n      do {\n        puVar3 = puVar1;\n        puVar1 = puVar2;\n        if (puVar1 == (unw_rec_list *)0x0) {\n          unwind.pending_saves = (unw_p_record *)0x0;\n          return;\n        }\n        puVar2 = puVar1->next;\n      } while ((unw_p_record *)&(puVar1->r).record != unwind.pending_saves);\n      puVar3->next = puVar1->next;\n    }\n    if (puVar1 != unwind.tail) {\n      puVar3 = unwind.tail;\n    }\n    unwind.tail = puVar3;\n    if (puVar1 == unwind.current_entry) {\n      unwind.current_entry = puVar1->next;\n    }\n    *(uchar *)((int)&(puVar1->r).record + 0x14) = '\0';\n    *(uchar *)((int)&(puVar1->r).record + 0x15) = '\0';\n    *(undefined2 *)((int)&(puVar1->r).record + 0x16) = 0;\n    *(undefined2 *)((int)&(puVar1->r).record + 0x12) = 0;\n    puVar2 = (puVar1->r).record.p.next;\n    (puVar1->r).record.r.rlen = 0;\n    if (puVar2 != (unw_rec_list *)0x0) {\n      do {\n        puVar1 = (puVar2->r).record.p.next;\n        free(puVar2);\n        puVar2 = puVar1;\n      } while (puVar1 != (unw_rec_list *)0x0);\n      unwind.pending_saves = (unw_p_record *)0x0;\n      return;\n    }\n  }" if (parenthesized_expression "(unwind.list != (unw_rec_list *)0x0)" ( (binary_expression "unwind.list != (unw_rec_list *)0x0" (field_expression "unwind.list" identifier . field_identifier) != (cast_expression "(unw_rec_list *)0x0" ( (type_descriptor "unw_rec_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2 = (unwind.list)->next;\n    puVar1 = unwind.list;\n    if (unwind.pending_saves == (unw_p_record *)&((unwind.list)->r).record) {\n      puVar3 = (unw_rec_list *)0x0;\n      unwind.list = (unwind.list)->next;\n    }\n    else {\n      do {\n        puVar3 = puVar1;\n        puVar1 = puVar2;\n        if (puVar1 == (unw_rec_list *)0x0) {\n          unwind.pending_saves = (unw_p_record *)0x0;\n          return;\n        }\n        puVar2 = puVar1->next;\n      } while ((unw_p_record *)&(puVar1->r).record != unwind.pending_saves);\n      puVar3->next = puVar1->next;\n    }\n    if (puVar1 != unwind.tail) {\n      puVar3 = unwind.tail;\n    }\n    unwind.tail = puVar3;\n    if (puVar1 == unwind.current_entry) {\n      unwind.current_entry = puVar1->next;\n    }\n    *(uchar *)((int)&(puVar1->r).record + 0x14) = '\0';\n    *(uchar *)((int)&(puVar1->r).record + 0x15) = '\0';\n    *(undefined2 *)((int)&(puVar1->r).record + 0x16) = 0;\n    *(undefined2 *)((int)&(puVar1->r).record + 0x12) = 0;\n    puVar2 = (puVar1->r).record.p.next;\n    (puVar1->r).record.r.rlen = 0;\n    if (puVar2 != (unw_rec_list *)0x0) {\n      do {\n        puVar1 = (puVar2->r).record.p.next;\n        free(puVar2);\n        puVar2 = puVar1;\n      } while (puVar1 != (unw_rec_list *)0x0);\n      unwind.pending_saves = (unw_p_record *)0x0;\n      return;\n    }\n  }" { (expression_statement "puVar2 = (unwind.list)->next;" (assignment_expression "puVar2 = (unwind.list)->next" identifier = (field_expression "(unwind.list)->next" (parenthesized_expression "(unwind.list)" ( (field_expression "unwind.list" identifier . field_identifier) )) -> field_identifier)) ;) (expression_statement "puVar1 = unwind.list;" (assignment_expression "puVar1 = unwind.list" identifier = (field_expression "unwind.list" identifier . field_identifier)) ;) (if_statement "if (unwind.pending_saves == (unw_p_record *)&((unwind.list)->r).record) {\n      puVar3 = (unw_rec_list *)0x0;\n      unwind.list = (unwind.list)->next;\n    }\n    else {\n      do {\n        puVar3 = puVar1;\n        puVar1 = puVar2;\n        if (puVar1 == (unw_rec_list *)0x0) {\n          unwind.pending_saves = (unw_p_record *)0x0;\n          return;\n        }\n        puVar2 = puVar1->next;\n      } while ((unw_p_record *)&(puVar1->r).record != unwind.pending_saves);\n      puVar3->next = puVar1->next;\n    }" if (parenthesized_expression "(unwind.pending_saves == (unw_p_record *)&((unwind.list)->r).record)" ( (binary_expression "unwind.pending_saves == (unw_p_record *)&((unwind.list)->r).record" (field_expression "unwind.pending_saves" identifier . field_identifier) == (cast_expression "(unw_p_record *)&((unwind.list)->r).record" ( (type_descriptor "unw_p_record *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&((unwind.list)->r).record" & (field_expression "((unwind.list)->r).record" (parenthesized_expression "((unwind.list)->r)" ( (field_expression "(unwind.list)->r" (parenthesized_expression "(unwind.list)" ( (field_expression "unwind.list" identifier . field_identifier) )) -> field_identifier) )) . field_identifier)))) )) (compound_statement "{\n      puVar3 = (unw_rec_list *)0x0;\n      unwind.list = (unwind.list)->next;\n    }" { (expression_statement "puVar3 = (unw_rec_list *)0x0;" (assignment_expression "puVar3 = (unw_rec_list *)0x0" identifier = (cast_expression "(unw_rec_list *)0x0" ( (type_descriptor "unw_rec_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "unwind.list = (unwind.list)->next;" (assignment_expression "unwind.list = (unwind.list)->next" (field_expression "unwind.list" identifier . field_identifier) = (field_expression "(unwind.list)->next" (parenthesized_expression "(unwind.list)" ( (field_expression "unwind.list" identifier . field_identifier) )) -> field_identifier)) ;) }) (else_clause "else {\n      do {\n        puVar3 = puVar1;\n        puVar1 = puVar2;\n        if (puVar1 == (unw_rec_list *)0x0) {\n          unwind.pending_saves = (unw_p_record *)0x0;\n          return;\n        }\n        puVar2 = puVar1->next;\n      } while ((unw_p_record *)&(puVar1->r).record != unwind.pending_saves);\n      puVar3->next = puVar1->next;\n    }" else (compound_statement "{\n      do {\n        puVar3 = puVar1;\n        puVar1 = puVar2;\n        if (puVar1 == (unw_rec_list *)0x0) {\n          unwind.pending_saves = (unw_p_record *)0x0;\n          return;\n        }\n        puVar2 = puVar1->next;\n      } while ((unw_p_record *)&(puVar1->r).record != unwind.pending_saves);\n      puVar3->next = puVar1->next;\n    }" { (do_statement "do {\n        puVar3 = puVar1;\n        puVar1 = puVar2;\n        if (puVar1 == (unw_rec_list *)0x0) {\n          unwind.pending_saves = (unw_p_record *)0x0;\n          return;\n        }\n        puVar2 = puVar1->next;\n      } while ((unw_p_record *)&(puVar1->r).record != unwind.pending_saves);" do (compound_statement "{\n        puVar3 = puVar1;\n        puVar1 = puVar2;\n        if (puVar1 == (unw_rec_list *)0x0) {\n          unwind.pending_saves = (unw_p_record *)0x0;\n          return;\n        }\n        puVar2 = puVar1->next;\n      }" { (expression_statement "puVar3 = puVar1;" (assignment_expression "puVar3 = puVar1" identifier = identifier) ;) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (if_statement "if (puVar1 == (unw_rec_list *)0x0) {\n          unwind.pending_saves = (unw_p_record *)0x0;\n          return;\n        }" if (parenthesized_expression "(puVar1 == (unw_rec_list *)0x0)" ( (binary_expression "puVar1 == (unw_rec_list *)0x0" identifier == (cast_expression "(unw_rec_list *)0x0" ( (type_descriptor "unw_rec_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          unwind.pending_saves = (unw_p_record *)0x0;\n          return;\n        }" { (expression_statement "unwind.pending_saves = (unw_p_record *)0x0;" (assignment_expression "unwind.pending_saves = (unw_p_record *)0x0" (field_expression "unwind.pending_saves" identifier . field_identifier) = (cast_expression "(unw_p_record *)0x0" ( (type_descriptor "unw_p_record *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "puVar2 = puVar1->next;" (assignment_expression "puVar2 = puVar1->next" identifier = (field_expression "puVar1->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "((unw_p_record *)&(puVar1->r).record != unwind.pending_saves)" ( (binary_expression "(unw_p_record *)&(puVar1->r).record != unwind.pending_saves" (cast_expression "(unw_p_record *)&(puVar1->r).record" ( (type_descriptor "unw_p_record *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(puVar1->r).record" & (field_expression "(puVar1->r).record" (parenthesized_expression "(puVar1->r)" ( (field_expression "puVar1->r" identifier -> field_identifier) )) . field_identifier))) != (field_expression "unwind.pending_saves" identifier . field_identifier)) )) ;) (expression_statement "puVar3->next = puVar1->next;" (assignment_expression "puVar3->next = puVar1->next" (field_expression "puVar3->next" identifier -> field_identifier) = (field_expression "puVar1->next" identifier -> field_identifier)) ;) }))) (if_statement "if (puVar1 != unwind.tail) {\n      puVar3 = unwind.tail;\n    }" if (parenthesized_expression "(puVar1 != unwind.tail)" ( (binary_expression "puVar1 != unwind.tail" identifier != (field_expression "unwind.tail" identifier . field_identifier)) )) (compound_statement "{\n      puVar3 = unwind.tail;\n    }" { (expression_statement "puVar3 = unwind.tail;" (assignment_expression "puVar3 = unwind.tail" identifier = (field_expression "unwind.tail" identifier . field_identifier)) ;) })) (expression_statement "unwind.tail = puVar3;" (assignment_expression "unwind.tail = puVar3" (field_expression "unwind.tail" identifier . field_identifier) = identifier) ;) (if_statement "if (puVar1 == unwind.current_entry) {\n      unwind.current_entry = puVar1->next;\n    }" if (parenthesized_expression "(puVar1 == unwind.current_entry)" ( (binary_expression "puVar1 == unwind.current_entry" identifier == (field_expression "unwind.current_entry" identifier . field_identifier)) )) (compound_statement "{\n      unwind.current_entry = puVar1->next;\n    }" { (expression_statement "unwind.current_entry = puVar1->next;" (assignment_expression "unwind.current_entry = puVar1->next" (field_expression "unwind.current_entry" identifier . field_identifier) = (field_expression "puVar1->next" identifier -> field_identifier)) ;) })) (expression_statement "*(uchar *)((int)&(puVar1->r).record + 0x14) = '\0';" (assignment_expression "*(uchar *)((int)&(puVar1->r).record + 0x14) = '\0'" (pointer_expression "*(uchar *)((int)&(puVar1->r).record + 0x14)" * (cast_expression "(uchar *)((int)&(puVar1->r).record + 0x14)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(puVar1->r).record + 0x14)" ( (binary_expression "(int)&(puVar1->r).record + 0x14" (cast_expression "(int)&(puVar1->r).record" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(puVar1->r).record" & (field_expression "(puVar1->r).record" (parenthesized_expression "(puVar1->r)" ( (field_expression "puVar1->r" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*(uchar *)((int)&(puVar1->r).record + 0x15) = '\0';" (assignment_expression "*(uchar *)((int)&(puVar1->r).record + 0x15) = '\0'" (pointer_expression "*(uchar *)((int)&(puVar1->r).record + 0x15)" * (cast_expression "(uchar *)((int)&(puVar1->r).record + 0x15)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(puVar1->r).record + 0x15)" ( (binary_expression "(int)&(puVar1->r).record + 0x15" (cast_expression "(int)&(puVar1->r).record" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(puVar1->r).record" & (field_expression "(puVar1->r).record" (parenthesized_expression "(puVar1->r)" ( (field_expression "puVar1->r" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*(undefined2 *)((int)&(puVar1->r).record + 0x16) = 0;" (assignment_expression "*(undefined2 *)((int)&(puVar1->r).record + 0x16) = 0" (pointer_expression "*(undefined2 *)((int)&(puVar1->r).record + 0x16)" * (cast_expression "(undefined2 *)((int)&(puVar1->r).record + 0x16)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(puVar1->r).record + 0x16)" ( (binary_expression "(int)&(puVar1->r).record + 0x16" (cast_expression "(int)&(puVar1->r).record" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(puVar1->r).record" & (field_expression "(puVar1->r).record" (parenthesized_expression "(puVar1->r)" ( (field_expression "puVar1->r" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)((int)&(puVar1->r).record + 0x12) = 0;" (assignment_expression "*(undefined2 *)((int)&(puVar1->r).record + 0x12) = 0" (pointer_expression "*(undefined2 *)((int)&(puVar1->r).record + 0x12)" * (cast_expression "(undefined2 *)((int)&(puVar1->r).record + 0x12)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(puVar1->r).record + 0x12)" ( (binary_expression "(int)&(puVar1->r).record + 0x12" (cast_expression "(int)&(puVar1->r).record" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(puVar1->r).record" & (field_expression "(puVar1->r).record" (parenthesized_expression "(puVar1->r)" ( (field_expression "puVar1->r" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "puVar2 = (puVar1->r).record.p.next;" (assignment_expression "puVar2 = (puVar1->r).record.p.next" identifier = (field_expression "(puVar1->r).record.p.next" (field_expression "(puVar1->r).record.p" (field_expression "(puVar1->r).record" (parenthesized_expression "(puVar1->r)" ( (field_expression "puVar1->r" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)) ;) (expression_statement "(puVar1->r).record.r.rlen = 0;" (assignment_expression "(puVar1->r).record.r.rlen = 0" (field_expression "(puVar1->r).record.r.rlen" (field_expression "(puVar1->r).record.r" (field_expression "(puVar1->r).record" (parenthesized_expression "(puVar1->r)" ( (field_expression "puVar1->r" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = number_literal) ;) (if_statement "if (puVar2 != (unw_rec_list *)0x0) {\n      do {\n        puVar1 = (puVar2->r).record.p.next;\n        free(puVar2);\n        puVar2 = puVar1;\n      } while (puVar1 != (unw_rec_list *)0x0);\n      unwind.pending_saves = (unw_p_record *)0x0;\n      return;\n    }" if (parenthesized_expression "(puVar2 != (unw_rec_list *)0x0)" ( (binary_expression "puVar2 != (unw_rec_list *)0x0" identifier != (cast_expression "(unw_rec_list *)0x0" ( (type_descriptor "unw_rec_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        puVar1 = (puVar2->r).record.p.next;\n        free(puVar2);\n        puVar2 = puVar1;\n      } while (puVar1 != (unw_rec_list *)0x0);\n      unwind.pending_saves = (unw_p_record *)0x0;\n      return;\n    }" { (do_statement "do {\n        puVar1 = (puVar2->r).record.p.next;\n        free(puVar2);\n        puVar2 = puVar1;\n      } while (puVar1 != (unw_rec_list *)0x0);" do (compound_statement "{\n        puVar1 = (puVar2->r).record.p.next;\n        free(puVar2);\n        puVar2 = puVar1;\n      }" { (expression_statement "puVar1 = (puVar2->r).record.p.next;" (assignment_expression "puVar1 = (puVar2->r).record.p.next" identifier = (field_expression "(puVar2->r).record.p.next" (field_expression "(puVar2->r).record.p" (field_expression "(puVar2->r).record" (parenthesized_expression "(puVar2->r)" ( (field_expression "puVar2->r" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)) ;) (expression_statement "free(puVar2);" (call_expression "free(puVar2)" identifier (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "puVar2 = puVar1;" (assignment_expression "puVar2 = puVar1" identifier = identifier) ;) }) while (parenthesized_expression "(puVar1 != (unw_rec_list *)0x0)" ( (binary_expression "puVar1 != (unw_rec_list *)0x0" identifier != (cast_expression "(unw_rec_list *)0x0" ( (type_descriptor "unw_rec_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "unwind.pending_saves = (unw_p_record *)0x0;" (assignment_expression "unwind.pending_saves = (unw_p_record *)0x0" (field_expression "unwind.pending_saves" identifier . field_identifier) = (cast_expression "(unw_p_record *)0x0" ( (type_descriptor "unw_p_record *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })) })) (expression_statement "unwind.pending_saves = (unw_p_record *)0x0;" (assignment_expression "unwind.pending_saves = (unw_p_record *)0x0" (field_expression "unwind.pending_saves" identifier . field_identifier) = (cast_expression "(unw_p_record *)0x0" ( (type_descriptor "unw_p_record *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00049e10(void)\n\n{\n  void *pvVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  \n  uVar3 = dcgettext(0,"Previous .save incomplete",5);\n  FUN_00029470(uVar3);\n  if (DAT_000876c0 != 0) {\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }\n  DAT_000876f0 = 0;\n  return;\n}\n\n" (function_definition "void FUN_00049e10(void)\n\n{\n  void *pvVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  \n  uVar3 = dcgettext(0,"Previous .save incomplete",5);\n  FUN_00029470(uVar3);\n  if (DAT_000876c0 != 0) {\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }\n  DAT_000876f0 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00049e10(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  \n  uVar3 = dcgettext(0,"Previous .save incomplete",5);\n  FUN_00029470(uVar3);\n  if (DAT_000876c0 != 0) {\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }\n  DAT_000876f0 = 0;\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "uVar3 = dcgettext(0,"Previous .save incomplete",5);" (assignment_expression "uVar3 = dcgettext(0,"Previous .save incomplete",5)" identifier = (call_expression "dcgettext(0,"Previous .save incomplete",5)" identifier (argument_list "(0,"Previous .save incomplete",5)" ( number_literal , (string_literal ""Previous .save incomplete"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00029470(uVar3);" (call_expression "FUN_00029470(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (if_statement "if (DAT_000876c0 != 0) {\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }" if (parenthesized_expression "(DAT_000876c0 != 0)" ( (binary_expression "DAT_000876c0 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(DAT_000876c0 + 0x28);" (assignment_expression "iVar2 = *(int *)(DAT_000876c0 + 0x28)" identifier = (pointer_expression "*(int *)(DAT_000876c0 + 0x28)" * (cast_expression "(int *)(DAT_000876c0 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000876c0 + 0x28)" ( (binary_expression "DAT_000876c0 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = DAT_000876c0;" (assignment_expression "iVar4 = DAT_000876c0" identifier = identifier) ;) (if_statement "if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }" if (parenthesized_expression "(DAT_000876f0 == DAT_000876c0 + 4)" ( (binary_expression "DAT_000876f0 == DAT_000876c0 + 4" identifier == (binary_expression "DAT_000876c0 + 4" identifier + number_literal)) )) (compound_statement "{\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);" (assignment_expression "DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28)" identifier = (pointer_expression "*(int *)(DAT_000876c0 + 0x28)" * (cast_expression "(int *)(DAT_000876c0 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000876c0 + 0x28)" ( (binary_expression "DAT_000876c0 + 0x28" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }" else (compound_statement "{\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }" { (do_statement "do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);" do (compound_statement "{\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      }" { (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_000876f0 = 0;\n          return;\n        }" { (expression_statement "DAT_000876f0 = 0;" (assignment_expression "DAT_000876f0 = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(iVar4 + 0x28);" (assignment_expression "iVar2 = *(int *)(iVar4 + 0x28)" identifier = (pointer_expression "*(int *)(iVar4 + 0x28)" * (cast_expression "(int *)(iVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x28)" ( (binary_expression "iVar4 + 0x28" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar4 + 4 != DAT_000876f0)" ( (binary_expression "iVar4 + 4 != DAT_000876f0" (binary_expression "iVar4 + 4" identifier + number_literal) != identifier) )) ;) (expression_statement "*(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);" (assignment_expression "*(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28)" (pointer_expression "*(int *)(iVar5 + 0x28)" * (cast_expression "(int *)(iVar5 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x28)" ( (binary_expression "iVar5 + 0x28" identifier + number_literal) )))) = (pointer_expression "*(int *)(iVar4 + 0x28)" * (cast_expression "(int *)(iVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x28)" ( (binary_expression "iVar4 + 0x28" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }" if (parenthesized_expression "(iVar4 != DAT_000876c4)" ( (binary_expression "iVar4 != DAT_000876c4" identifier != identifier) )) (compound_statement "{\n      iVar5 = DAT_000876c4;\n    }" { (expression_statement "iVar5 = DAT_000876c4;" (assignment_expression "iVar5 = DAT_000876c4" identifier = identifier) ;) })) (expression_statement "DAT_000876c4 = iVar5;" (assignment_expression "DAT_000876c4 = iVar5" identifier = identifier) ;) (if_statement "if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }" if (parenthesized_expression "(iVar4 == DAT_000876c8)" ( (binary_expression "iVar4 == DAT_000876c8" identifier == identifier) )) (compound_statement "{\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }" { (expression_statement "DAT_000876c8 = *(int *)(iVar4 + 0x28);" (assignment_expression "DAT_000876c8 = *(int *)(iVar4 + 0x28)" identifier = (pointer_expression "*(int *)(iVar4 + 0x28)" * (cast_expression "(int *)(iVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x28)" ( (binary_expression "iVar4 + 0x28" identifier + number_literal) ))))) ;) })) (expression_statement "*(undefined4 *)(iVar4 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0x18)" * (cast_expression "(undefined4 *)(iVar4 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x18)" ( (binary_expression "iVar4 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar4 + 0x16) = 0;" (assignment_expression "*(undefined2 *)(iVar4 + 0x16) = 0" (pointer_expression "*(undefined2 *)(iVar4 + 0x16)" * (cast_expression "(undefined2 *)(iVar4 + 0x16)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x16)" ( (binary_expression "iVar4 + 0x16" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__ptr = *(void **)(iVar4 + 4);" (assignment_expression "__ptr = *(void **)(iVar4 + 4)" identifier = (pointer_expression "*(void **)(iVar4 + 4)" * (cast_expression "(void **)(iVar4 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar4 + 4) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 4) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }" { (do_statement "do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);" do (compound_statement "{\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      }" { (expression_statement "pvVar1 = *(void **)((int)__ptr + 4);" (assignment_expression "pvVar1 = *(void **)((int)__ptr + 4)" identifier = (pointer_expression "*(void **)((int)__ptr + 4)" * (cast_expression "(void **)((int)__ptr + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 4)" ( (binary_expression "(int)__ptr + 4" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = pvVar1;" (assignment_expression "__ptr = pvVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "DAT_000876f0 = 0;" (assignment_expression "DAT_000876f0 = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })) })) (expression_statement "DAT_000876f0 = 0;" (assignment_expression "DAT_000876f0 = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != IDENT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00049e10(void)\n\n{\n  void *pvVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  \n  uVar3 = dcgettext(0,"Previous .save incomplete",5);\n  FUN_00029470(uVar3);\n  if (DAT_000876c0 != 0) {\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }\n  DAT_000876f0 = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00049e10(void)" (identifier "FUN_00049e10") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  void *__ptr;\n  int iVar5;\n  \n  uVar3 = dcgettext(0,"Previous .save incomplete",5);\n  FUN_00029470(uVar3);\n  if (DAT_000876c0 != 0) {\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }\n  DAT_000876f0 = 0;\n  return;\n}" ({ "{") (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "uVar3 = dcgettext(0,"Previous .save incomplete",5);" (assignment_expression "uVar3 = dcgettext(0,"Previous .save incomplete",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"Previous .save incomplete",5)" (identifier "dcgettext") (argument_list "(0,"Previous .save incomplete",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Previous .save incomplete"" (" """) (string_content "Previous .save incomplete") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00029470(uVar3);" (call_expression "FUN_00029470(uVar3)" (identifier "FUN_00029470") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (if_statement "if (DAT_000876c0 != 0) {\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(DAT_000876c0 != 0)" (( "(") (binary_expression "DAT_000876c0 != 0" (identifier "DAT_000876c0") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(DAT_000876c0 + 0x28);\n    iVar4 = DAT_000876c0;\n    if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }\n    if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }\n    DAT_000876c4 = iVar5;\n    if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }\n    *(undefined4 *)(iVar4 + 0x18) = 0;\n    *(undefined2 *)(iVar4 + 0x16) = 0;\n    __ptr = *(void **)(iVar4 + 4);\n    *(undefined4 *)(iVar4 + 4) = 0;\n    if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(DAT_000876c0 + 0x28);" (assignment_expression "iVar2 = *(int *)(DAT_000876c0 + 0x28)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(DAT_000876c0 + 0x28)" (* "*") (cast_expression "(int *)(DAT_000876c0 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000876c0 + 0x28)" (( "(") (binary_expression "DAT_000876c0 + 0x28" (identifier "DAT_000876c0") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "iVar4 = DAT_000876c0;" (assignment_expression "iVar4 = DAT_000876c0" (identifier "iVar4") (= "=") (identifier "DAT_000876c0")) (; ";")) (if_statement "if (DAT_000876f0 == DAT_000876c0 + 4) {\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }\n    else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }" (if "if") (parenthesized_expression "(DAT_000876f0 == DAT_000876c0 + 4)" (( "(") (binary_expression "DAT_000876f0 == DAT_000876c0 + 4" (identifier "DAT_000876f0") (== "==") (binary_expression "DAT_000876c0 + 4" (identifier "DAT_000876c0") (+ "+") (number_literal "4"))) () ")")) (compound_statement "{\n      iVar5 = 0;\n      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);\n    }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);" (assignment_expression "DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28)" (identifier "DAT_000876c0") (= "=") (pointer_expression "*(int *)(DAT_000876c0 + 0x28)" (* "*") (cast_expression "(int *)(DAT_000876c0 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000876c0 + 0x28)" (( "(") (binary_expression "DAT_000876c0 + 0x28" (identifier "DAT_000876c0") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }" (else "else") (compound_statement "{\n      do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);\n      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);\n    }" ({ "{") (do_statement "do {\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      } while (iVar4 + 4 != DAT_000876f0);" (do "do") (compound_statement "{\n        iVar5 = iVar4;\n        iVar4 = iVar2;\n        if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }\n        iVar2 = *(int *)(iVar4 + 0x28);\n      }" ({ "{") (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" (identifier "iVar4") (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar4 == 0) {\n          DAT_000876f0 = 0;\n          return;\n        }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          DAT_000876f0 = 0;\n          return;\n        }" ({ "{") (expression_statement "DAT_000876f0 = 0;" (assignment_expression "DAT_000876f0 = 0" (identifier "DAT_000876f0") (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(iVar4 + 0x28);" (assignment_expression "iVar2 = *(int *)(iVar4 + 0x28)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar4 + 0x28)" (* "*") (cast_expression "(int *)(iVar4 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x28)" (( "(") (binary_expression "iVar4 + 0x28" (identifier "iVar4") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 + 4 != DAT_000876f0)" (( "(") (binary_expression "iVar4 + 4 != DAT_000876f0" (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) (!= "!=") (identifier "DAT_000876f0")) () ")")) (; ";")) (expression_statement "*(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);" (assignment_expression "*(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28)" (pointer_expression "*(int *)(iVar5 + 0x28)" (* "*") (cast_expression "(int *)(iVar5 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x28)" (( "(") (binary_expression "iVar5 + 0x28" (identifier "iVar5") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (pointer_expression "*(int *)(iVar4 + 0x28)" (* "*") (cast_expression "(int *)(iVar4 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x28)" (( "(") (binary_expression "iVar4 + 0x28" (identifier "iVar4") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar4 != DAT_000876c4) {\n      iVar5 = DAT_000876c4;\n    }" (if "if") (parenthesized_expression "(iVar4 != DAT_000876c4)" (( "(") (binary_expression "iVar4 != DAT_000876c4" (identifier "iVar4") (!= "!=") (identifier "DAT_000876c4")) () ")")) (compound_statement "{\n      iVar5 = DAT_000876c4;\n    }" ({ "{") (expression_statement "iVar5 = DAT_000876c4;" (assignment_expression "iVar5 = DAT_000876c4" (identifier "iVar5") (= "=") (identifier "DAT_000876c4")) (; ";")) (} "}"))) (expression_statement "DAT_000876c4 = iVar5;" (assignment_expression "DAT_000876c4 = iVar5" (identifier "DAT_000876c4") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (iVar4 == DAT_000876c8) {\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }" (if "if") (parenthesized_expression "(iVar4 == DAT_000876c8)" (( "(") (binary_expression "iVar4 == DAT_000876c8" (identifier "iVar4") (== "==") (identifier "DAT_000876c8")) () ")")) (compound_statement "{\n      DAT_000876c8 = *(int *)(iVar4 + 0x28);\n    }" ({ "{") (expression_statement "DAT_000876c8 = *(int *)(iVar4 + 0x28);" (assignment_expression "DAT_000876c8 = *(int *)(iVar4 + 0x28)" (identifier "DAT_000876c8") (= "=") (pointer_expression "*(int *)(iVar4 + 0x28)" (* "*") (cast_expression "(int *)(iVar4 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x28)" (( "(") (binary_expression "iVar4 + 0x28" (identifier "iVar4") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar4 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x18)" (( "(") (binary_expression "iVar4 + 0x18" (identifier "iVar4") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(iVar4 + 0x16) = 0;" (assignment_expression "*(undefined2 *)(iVar4 + 0x16) = 0" (pointer_expression "*(undefined2 *)(iVar4 + 0x16)" (* "*") (cast_expression "(undefined2 *)(iVar4 + 0x16)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x16)" (( "(") (binary_expression "iVar4 + 0x16" (identifier "iVar4") (+ "+") (number_literal "0x16")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "__ptr = *(void **)(iVar4 + 4);" (assignment_expression "__ptr = *(void **)(iVar4 + 4)" (identifier "__ptr") (= "=") (pointer_expression "*(void **)(iVar4 + 4)" (* "*") (cast_expression "(void **)(iVar4 + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + 4) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + 4) = 0" (pointer_expression "*(undefined4 *)(iVar4 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (__ptr != (void *)0x0) {\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }" (if "if") (parenthesized_expression "(__ptr != (void *)0x0)" (( "(") (binary_expression "__ptr != (void *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);\n      DAT_000876f0 = 0;\n      return;\n    }" ({ "{") (do_statement "do {\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      } while (pvVar1 != (void *)0x0);" (do "do") (compound_statement "{\n        pvVar1 = *(void **)((int)__ptr + 4);\n        free(__ptr);\n        __ptr = pvVar1;\n      }" ({ "{") (expression_statement "pvVar1 = *(void **)((int)__ptr + 4);" (assignment_expression "pvVar1 = *(void **)((int)__ptr + 4)" (identifier "pvVar1") (= "=") (pointer_expression "*(void **)((int)__ptr + 4)" (* "*") (cast_expression "(void **)((int)__ptr + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)__ptr + 4)" (( "(") (binary_expression "(int)__ptr + 4" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "__ptr = pvVar1;" (assignment_expression "__ptr = pvVar1" (identifier "__ptr") (= "=") (identifier "pvVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pvVar1 != (void *)0x0)" (( "(") (binary_expression "pvVar1 != (void *)0x0" (identifier "pvVar1") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "DAT_000876f0 = 0;" (assignment_expression "DAT_000876f0 = 0" (identifier "DAT_000876f0") (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "DAT_000876f0 = 0;" (assignment_expression "DAT_000876f0 = 0" (identifier "DAT_000876f0") (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  char *format;
  type_1 *var_3;
  type_1 *var_4;
  type_1 *puVar3;
  
  format = (char *)var_1(0,"Previous .save incomplete",5);
  var_2(format);
  if (unwind.list != (type_1 *)0x0) {
    var_4 = (unwind.list)->next;
    var_3 = unwind.list;
    if (unwind.pending_saves == (type_2 *)&((unwind.list)->r).record) {
      puVar3 = (type_1 *)0x0;
      unwind.list = (unwind.list)->next;
    }
    else {
      do {
        puVar3 = var_3;
        var_3 = var_4;
        if (var_3 == (type_1 *)0x0) {
          unwind.pending_saves = (type_2 *)0x0;
          return;
        }
        var_4 = var_3->next;
      } while ((type_2 *)&(var_3->r).record != unwind.pending_saves);
      puVar3->next = var_3->next;
    }
    if (var_3 != unwind.tail) {
      puVar3 = unwind.tail;
    }
    unwind.tail = puVar3;
    if (var_3 == unwind.current_entry) {
      unwind.current_entry = var_3->next;
    }
    *(type_3 *)((int)&(var_3->r).record + 0x14) = '\0';
    *(type_3 *)((int)&(var_3->r).record + 0x15) = '\0';
    *(type_4 *)((int)&(var_3->r).record + 0x16) = 0;
    *(type_4 *)((int)&(var_3->r).record + 0x12) = 0;
    var_4 = (var_3->r).record.p.next;
    (var_3->r).record.r.rlen = 0;
    if (var_4 != (type_1 *)0x0) {
      do {
        var_3 = (var_4->r).record.p.next;
        var_5(var_4);
        var_4 = var_3;
      } while (var_3 != (type_1 *)0x0);
      unwind.pending_saves = (type_2 *)0x0;
      return;
    }
  }
  unwind.pending_saves = (type_2 *)0x0;
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(void)

{
  void *pvVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  void *__ptr;
  int iVar5;
  
  uVar3 = dcgettext(0,"Previous .save incomplete",5);
  FUN_00029470(uVar3);
  if (DAT_000876c0 != 0) {
    iVar2 = *(int *)(DAT_000876c0 + 0x28);
    iVar4 = DAT_000876c0;
    if (DAT_000876f0 == DAT_000876c0 + 4) {
      iVar5 = 0;
      DAT_000876c0 = *(int *)(DAT_000876c0 + 0x28);
    }
    else {
      do {
        iVar5 = iVar4;
        iVar4 = iVar2;
        if (iVar4 == 0) {
          DAT_000876f0 = 0;
          return;
        }
        iVar2 = *(int *)(iVar4 + 0x28);
      } while (iVar4 + 4 != DAT_000876f0);
      *(int *)(iVar5 + 0x28) = *(int *)(iVar4 + 0x28);
    }
    if (iVar4 != DAT_000876c4) {
      iVar5 = DAT_000876c4;
    }
    DAT_000876c4 = iVar5;
    if (iVar4 == DAT_000876c8) {
      DAT_000876c8 = *(int *)(iVar4 + 0x28);
    }
    *(undefined4 *)(iVar4 + 0x18) = 0;
    *(undefined2 *)(iVar4 + 0x16) = 0;
    __ptr = *(void **)(iVar4 + 4);
    *(undefined4 *)(iVar4 + 4) = 0;
    if (__ptr != (void *)0x0) {
      do {
        pvVar1 = *(void **)((int)__ptr + 4);
        free(__ptr);
        __ptr = pvVar1;
      } while (pvVar1 != (void *)0x0);
      DAT_000876f0 = 0;
      return;
    }
  }
  DAT_000876f0 = 0;
  return;
}

