
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void dotrap(void)

{
  undefined1 uVar1;
  undefined *puVar2;
  undefined1 *puVar3;
  int iVar4;
  int iVar5;
  undefined1 *puVar6;
  code *pcVar7;
  int iVar8;
  int *piVar9;
  
  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;
  if (puVar3[0x2a] == '\0') {
    return;
  }
  uVar1 = *puVar3;
  puVar3[0x2a] = 0;
  puVar2 = PTR_OptArray_14__flags_00131178;
  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;
  puVar6 = puVar3 + 0xbc;
  piVar9 = (int *)(puVar3 + 0x140);
  iVar5 = 1;
  iVar8 = 2;
  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);
  do {
    if (puVar6[-1] == '\0') {
LAB_00082afc:
      if (0x7f < iVar8) goto LAB_00082a94;
    }
    else {
      if (puVar2[0x23e7] != '\0') {
        puVar3[0x2a] = (char)iVar5;
LAB_00082a94:
        *puVar3 = uVar1;
        return;
      }
      iVar4 = *piVar9;
      if (iVar5 != 2) {
        puVar6[-1] = 0;
        if (iVar4 == 0) goto LAB_00082afc;
LAB_00082ae8:
        (*pcVar7)(iVar4,0);
        goto LAB_00082afc;
      }
      if (iVar4 != 0) {
        puVar6[-1] = 0;
        goto LAB_00082ae8;
      }
    }
    puVar6 = puVar6 + 1;
    iVar8 = iVar8 + 1;
    piVar9 = piVar9 + 1;
    iVar5 = iVar5 + 1;
  } while( true );
}



void FUN_000829f4(void)

{
  undefined1 uVar1;
  undefined *puVar2;
  undefined1 *puVar3;
  int iVar4;
  int iVar5;
  undefined1 *puVar6;
  code *pcVar7;
  int iVar8;
  int *piVar9;
  
  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;
  if (puVar3[0x2a] == '\0') {
    return;
  }
  uVar1 = *puVar3;
  puVar3[0x2a] = 0;
  puVar2 = PTR_DAT_00131178;
  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;
  puVar6 = puVar3 + 0xbc;
  piVar9 = (int *)(puVar3 + 0x140);
  iVar5 = 1;
  iVar8 = 2;
  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);
  do {
    if (puVar6[-1] == '\0') {
LAB_00082afc:
      if (0x7f < iVar8) goto LAB_00082a94;
    }
    else {
      if (puVar2[0x23e7] != '\0') {
        puVar3[0x2a] = (char)iVar5;
LAB_00082a94:
        *puVar3 = uVar1;
        return;
      }
      iVar4 = *piVar9;
      if (iVar5 != 2) {
        puVar6[-1] = 0;
        if (iVar4 == 0) goto LAB_00082afc;
LAB_00082ae8:
        (*pcVar7)(iVar4,0);
        goto LAB_00082afc;
      }
      if (iVar4 != 0) {
        puVar6[-1] = 0;
        goto LAB_00082ae8;
      }
    }
    puVar6 = puVar6 + 1;
    iVar8 = iVar8 + 1;
    piVar9 = piVar9 + 1;
    iVar5 = iVar5 + 1;
  } while( true );
}


lui gp,0xb
addiu gp,gp,0x675c
addu gp,gp,t9
addiu sp,sp,-0x40
sw ra,0x3c(sp)
sw s8,0x38(sp)
sw s7,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
lw v0,-0x78c4(gp)
lw v0,0x0(v0)
lbu v1,0x2a(v0)
seb v1,v1
beq v1,zero,0x00082a9c
_lw ra,0x3c(sp)
lbu s6,0x0(v0)
sb zero,0x2a(v0)
lw v0,-0x78c4(gp)
lw s1,0x0(v0)
addiu s2,s1,0xbc
addiu s5,s1,0x140
li s0,0x1
li s4,0x2
lw s8,-0x7fd8(gp)
li s7,0x2
lw s3,-0x78a8(gp)
addiu s3,s3,0x2564
lbu a0,-0x1(s2)
beq a0,zero,0x00082afc
_lb a0,0x23e7(s8)
beq a0,zero,0x00082ac8
_nop
seb s0,s0
sb s0,0x2a(s1)
sb s6,0x0(s1)
lw ra,0x3c(sp)
lw s8,0x38(sp)
lw s7,0x34(sp)
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x40
bne s0,s7,0x00082ae0
_lw a0,0x0(s5)
beq a0,zero,0x00082b08
_nop
b 0x00082ae8
_sb zero,-0x1(s2)
beq a0,zero,0x00082afc
_sb zero,-0x1(s2)
or a1,zero,zero
or t9,s3,zero
jalr t9
_nop
lw gp,0x10(sp)
slti v0,s4,0x80
beq v0,zero,0x00082a94
_nop
addiu s2,s2,0x1
addiu s4,s4,0x1
addiu s5,s5,0x4
b 0x00082a78
_addiu s0,s0,0x1
(translation_unit "void FUN_000829f4(void)\n\n{\n  undefined1 uVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  int iVar8;\n  int *piVar9;\n  \n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  if (puVar3[0x2a] == '\0') {\n    return;\n  }\n  uVar1 = *puVar3;\n  puVar3[0x2a] = 0;\n  puVar2 = PTR_DAT_00131178;\n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  puVar6 = puVar3 + 0xbc;\n  piVar9 = (int *)(puVar3 + 0x140);\n  iVar5 = 1;\n  iVar8 = 2;\n  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);\n  do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );\n}\n\n" (function_definition "void FUN_000829f4(void)\n\n{\n  undefined1 uVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  int iVar8;\n  int *piVar9;\n  \n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  if (puVar3[0x2a] == '\0') {\n    return;\n  }\n  uVar1 = *puVar3;\n  puVar3[0x2a] = 0;\n  puVar2 = PTR_DAT_00131178;\n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  puVar6 = puVar3 + 0xbc;\n  piVar9 = (int *)(puVar3 + 0x140);\n  iVar5 = 1;\n  iVar8 = 2;\n  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);\n  do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_000829f4(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined1 uVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  int iVar8;\n  int *piVar9;\n  \n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  if (puVar3[0x2a] == '\0') {\n    return;\n  }\n  uVar1 = *puVar3;\n  puVar3[0x2a] = 0;\n  puVar2 = PTR_DAT_00131178;\n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  puVar6 = puVar3 + 0xbc;\n  piVar9 = (int *)(puVar3 + 0x140);\n  iVar5 = 1;\n  iVar8 = 2;\n  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);\n  do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (expression_statement "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;" (assignment_expression "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" identifier = (pointer_expression "*(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" * (cast_expression "(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (puVar3[0x2a] == '\0') {\n    return;\n  }" if (parenthesized_expression "(puVar3[0x2a] == '\0')" ( (binary_expression "puVar3[0x2a] == '\0'" (subscript_expression "puVar3[0x2a]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3[0x2a] = 0;" (assignment_expression "puVar3[0x2a] = 0" (subscript_expression "puVar3[0x2a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2 = PTR_DAT_00131178;" (assignment_expression "puVar2 = PTR_DAT_00131178" identifier = identifier) ;) (expression_statement "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;" (assignment_expression "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" identifier = (pointer_expression "*(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" * (cast_expression "(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar6 = puVar3 + 0xbc;" (assignment_expression "puVar6 = puVar3 + 0xbc" identifier = (binary_expression "puVar3 + 0xbc" identifier + number_literal)) ;) (expression_statement "piVar9 = (int *)(puVar3 + 0x140);" (assignment_expression "piVar9 = (int *)(puVar3 + 0x140)" identifier = (cast_expression "(int *)(puVar3 + 0x140)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x140)" ( (binary_expression "puVar3 + 0x140" identifier + number_literal) )))) ;) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) (expression_statement "pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);" (assignment_expression "pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564)" identifier = (cast_expression "(code *)(PTR_LAB_001318a8 + 0x2564)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_001318a8 + 0x2564)" ( (binary_expression "PTR_LAB_001318a8 + 0x2564" identifier + number_literal) )))) ;) (do_statement "do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );" do (compound_statement "{\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  }" { (if_statement "if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }" if (parenthesized_expression "(puVar6[-1] == '\0')" ( (binary_expression "puVar6[-1] == '\0'" (subscript_expression "puVar6[-1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }" { (labeled_statement "LAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;" statement_identifier : (if_statement "if (0x7f < iVar8) goto LAB_00082a94;" if (parenthesized_expression "(0x7f < iVar8)" ( (binary_expression "0x7f < iVar8" number_literal < identifier) )) (goto_statement "goto LAB_00082a94;" goto statement_identifier ;))) }) (else_clause "else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }" else (compound_statement "{\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }" { (if_statement "if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }" if (parenthesized_expression "(puVar2[0x23e7] != '\0')" ( (binary_expression "puVar2[0x23e7] != '\0'" (subscript_expression "puVar2[0x23e7]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }" { (expression_statement "puVar3[0x2a] = (char)iVar5;" (assignment_expression "puVar3[0x2a] = (char)iVar5" (subscript_expression "puVar3[0x2a]" identifier [ number_literal ]) = (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (labeled_statement "LAB_00082a94:\n        *puVar3 = uVar1;" statement_identifier : (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;)) (return_statement "return;" return ;) })) (expression_statement "iVar4 = *piVar9;" (assignment_expression "iVar4 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (if_statement "if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }" if (parenthesized_expression "(iVar5 != 2)" ( (binary_expression "iVar5 != 2" identifier != number_literal) )) (compound_statement "{\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }" { (expression_statement "puVar6[-1] = 0;" (assignment_expression "puVar6[-1] = 0" (subscript_expression "puVar6[-1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar4 == 0) goto LAB_00082afc;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00082afc;" goto statement_identifier ;)) (labeled_statement "LAB_00082ae8:\n        (*pcVar7)(iVar4,0);" statement_identifier : (expression_statement "(*pcVar7)(iVar4,0);" (call_expression "(*pcVar7)(iVar4,0)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(iVar4,0)" ( identifier , number_literal ))) ;)) (goto_statement "goto LAB_00082afc;" goto statement_identifier ;) })) (if_statement "if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }" { (expression_statement "puVar6[-1] = 0;" (assignment_expression "puVar6[-1] = 0" (subscript_expression "puVar6[-1]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_00082ae8;" goto statement_identifier ;) })) }))) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" identifier = (binary_expression "piVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid dotrap(void)\n\n{\n  undefined1 uVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  int iVar8;\n  int *piVar9;\n  \n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  if (puVar3[0x2a] == '\0') {\n    return;\n  }\n  uVar1 = *puVar3;\n  puVar3[0x2a] = 0;\n  puVar2 = PTR_OptArray_14__flags_00131178;\n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  puVar6 = puVar3 + 0xbc;\n  piVar9 = (int *)(puVar3 + 0x140);\n  iVar5 = 1;\n  iVar8 = 2;\n  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);\n  do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );\n}\n\n" comment (function_definition "void dotrap(void)\n\n{\n  undefined1 uVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  int iVar8;\n  int *piVar9;\n  \n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  if (puVar3[0x2a] == '\0') {\n    return;\n  }\n  uVar1 = *puVar3;\n  puVar3[0x2a] = 0;\n  puVar2 = PTR_OptArray_14__flags_00131178;\n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  puVar6 = puVar3 + 0xbc;\n  piVar9 = (int *)(puVar3 + 0x140);\n  iVar5 = 1;\n  iVar8 = 2;\n  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);\n  do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );\n}" primitive_type (function_declarator "dotrap(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined1 uVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  int iVar8;\n  int *piVar9;\n  \n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  if (puVar3[0x2a] == '\0') {\n    return;\n  }\n  uVar1 = *puVar3;\n  puVar3[0x2a] = 0;\n  puVar2 = PTR_OptArray_14__flags_00131178;\n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  puVar6 = puVar3 + 0xbc;\n  piVar9 = (int *)(puVar3 + 0x140);\n  iVar5 = 1;\n  iVar8 = 2;\n  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);\n  do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (expression_statement "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;" (assignment_expression "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" identifier = (pointer_expression "*(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" * (cast_expression "(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (puVar3[0x2a] == '\0') {\n    return;\n  }" if (parenthesized_expression "(puVar3[0x2a] == '\0')" ( (binary_expression "puVar3[0x2a] == '\0'" (subscript_expression "puVar3[0x2a]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3[0x2a] = 0;" (assignment_expression "puVar3[0x2a] = 0" (subscript_expression "puVar3[0x2a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2 = PTR_OptArray_14__flags_00131178;" (assignment_expression "puVar2 = PTR_OptArray_14__flags_00131178" identifier = identifier) ;) (expression_statement "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;" (assignment_expression "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" identifier = (pointer_expression "*(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" * (cast_expression "(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar6 = puVar3 + 0xbc;" (assignment_expression "puVar6 = puVar3 + 0xbc" identifier = (binary_expression "puVar3 + 0xbc" identifier + number_literal)) ;) (expression_statement "piVar9 = (int *)(puVar3 + 0x140);" (assignment_expression "piVar9 = (int *)(puVar3 + 0x140)" identifier = (cast_expression "(int *)(puVar3 + 0x140)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x140)" ( (binary_expression "puVar3 + 0x140" identifier + number_literal) )))) ;) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) (expression_statement "pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);" (assignment_expression "pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564)" identifier = (cast_expression "(code *)(PTR_LAB_001318a8 + 0x2564)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_001318a8 + 0x2564)" ( (binary_expression "PTR_LAB_001318a8 + 0x2564" identifier + number_literal) )))) ;) (do_statement "do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );" do (compound_statement "{\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  }" { (if_statement "if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }" if (parenthesized_expression "(puVar6[-1] == '\0')" ( (binary_expression "puVar6[-1] == '\0'" (subscript_expression "puVar6[-1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }" { (labeled_statement "LAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;" statement_identifier : (if_statement "if (0x7f < iVar8) goto LAB_00082a94;" if (parenthesized_expression "(0x7f < iVar8)" ( (binary_expression "0x7f < iVar8" number_literal < identifier) )) (goto_statement "goto LAB_00082a94;" goto statement_identifier ;))) }) (else_clause "else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }" else (compound_statement "{\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }" { (if_statement "if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }" if (parenthesized_expression "(puVar2[0x23e7] != '\0')" ( (binary_expression "puVar2[0x23e7] != '\0'" (subscript_expression "puVar2[0x23e7]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }" { (expression_statement "puVar3[0x2a] = (char)iVar5;" (assignment_expression "puVar3[0x2a] = (char)iVar5" (subscript_expression "puVar3[0x2a]" identifier [ number_literal ]) = (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (labeled_statement "LAB_00082a94:\n        *puVar3 = uVar1;" statement_identifier : (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;)) (return_statement "return;" return ;) })) (expression_statement "iVar4 = *piVar9;" (assignment_expression "iVar4 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (if_statement "if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }" if (parenthesized_expression "(iVar5 != 2)" ( (binary_expression "iVar5 != 2" identifier != number_literal) )) (compound_statement "{\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }" { (expression_statement "puVar6[-1] = 0;" (assignment_expression "puVar6[-1] = 0" (subscript_expression "puVar6[-1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar4 == 0) goto LAB_00082afc;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00082afc;" goto statement_identifier ;)) (labeled_statement "LAB_00082ae8:\n        (*pcVar7)(iVar4,0);" statement_identifier : (expression_statement "(*pcVar7)(iVar4,0);" (call_expression "(*pcVar7)(iVar4,0)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(iVar4,0)" ( identifier , number_literal ))) ;)) (goto_statement "goto LAB_00082afc;" goto statement_identifier ;) })) (if_statement "if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }" { (expression_statement "puVar6[-1] = 0;" (assignment_expression "puVar6[-1] = 0" (subscript_expression "puVar6[-1]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_00082ae8;" goto statement_identifier ;) })) }))) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" identifier = (binary_expression "piVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_000829f4(void)\n\n{\n  undefined1 uVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  int iVar8;\n  int *piVar9;\n  \n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  if (puVar3[0x2a] == '\0') {\n    return;\n  }\n  uVar1 = *puVar3;\n  puVar3[0x2a] = 0;\n  puVar2 = PTR_DAT_00131178;\n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  puVar6 = puVar3 + 0xbc;\n  piVar9 = (int *)(puVar3 + 0x140);\n  iVar5 = 1;\n  iVar8 = 2;\n  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);\n  do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );\n}\n\n" (function_definition "void FUN_000829f4(void)\n\n{\n  undefined1 uVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  int iVar8;\n  int *piVar9;\n  \n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  if (puVar3[0x2a] == '\0') {\n    return;\n  }\n  uVar1 = *puVar3;\n  puVar3[0x2a] = 0;\n  puVar2 = PTR_DAT_00131178;\n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  puVar6 = puVar3 + 0xbc;\n  piVar9 = (int *)(puVar3 + 0x140);\n  iVar5 = 1;\n  iVar8 = 2;\n  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);\n  do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_000829f4(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined1 uVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  int iVar8;\n  int *piVar9;\n  \n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  if (puVar3[0x2a] == '\0') {\n    return;\n  }\n  uVar1 = *puVar3;\n  puVar3[0x2a] = 0;\n  puVar2 = PTR_DAT_00131178;\n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  puVar6 = puVar3 + 0xbc;\n  piVar9 = (int *)(puVar3 + 0x140);\n  iVar5 = 1;\n  iVar8 = 2;\n  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);\n  do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (expression_statement "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;" (assignment_expression "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" identifier = (pointer_expression "*(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" * (cast_expression "(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (puVar3[0x2a] == '\0') {\n    return;\n  }" if (parenthesized_expression "(puVar3[0x2a] == '\0')" ( (binary_expression "puVar3[0x2a] == '\0'" (subscript_expression "puVar3[0x2a]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3[0x2a] = 0;" (assignment_expression "puVar3[0x2a] = 0" (subscript_expression "puVar3[0x2a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2 = PTR_DAT_00131178;" (assignment_expression "puVar2 = PTR_DAT_00131178" identifier = identifier) ;) (expression_statement "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;" (assignment_expression "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" identifier = (pointer_expression "*(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" * (cast_expression "(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "puVar6 = puVar3 + 0xbc;" (assignment_expression "puVar6 = puVar3 + 0xbc" identifier = (binary_expression "puVar3 + 0xbc" identifier + number_literal)) ;) (expression_statement "piVar9 = (int *)(puVar3 + 0x140);" (assignment_expression "piVar9 = (int *)(puVar3 + 0x140)" identifier = (cast_expression "(int *)(puVar3 + 0x140)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x140)" ( (binary_expression "puVar3 + 0x140" identifier + number_literal) )))) ;) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) (expression_statement "pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);" (assignment_expression "pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564)" identifier = (cast_expression "(code *)(PTR_LAB_001318a8 + 0x2564)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_001318a8 + 0x2564)" ( (binary_expression "PTR_LAB_001318a8 + 0x2564" identifier + number_literal) )))) ;) (do_statement "do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );" do (compound_statement "{\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  }" { (if_statement "if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }" if (parenthesized_expression "(puVar6[-1] == '\0')" ( (binary_expression "puVar6[-1] == '\0'" (subscript_expression "puVar6[-1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }" { (labeled_statement "LAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;" statement_identifier : (if_statement "if (0x7f < iVar8) goto LAB_00082a94;" if (parenthesized_expression "(0x7f < iVar8)" ( (binary_expression "0x7f < iVar8" number_literal < identifier) )) (goto_statement "goto LAB_00082a94;" goto statement_identifier ;))) }) (else_clause "else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }" else (compound_statement "{\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }" { (if_statement "if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }" if (parenthesized_expression "(puVar2[0x23e7] != '\0')" ( (binary_expression "puVar2[0x23e7] != '\0'" (subscript_expression "puVar2[0x23e7]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }" { (expression_statement "puVar3[0x2a] = (char)iVar5;" (assignment_expression "puVar3[0x2a] = (char)iVar5" (subscript_expression "puVar3[0x2a]" identifier [ number_literal ]) = (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (labeled_statement "LAB_00082a94:\n        *puVar3 = uVar1;" statement_identifier : (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;)) (return_statement "return;" return ;) })) (expression_statement "iVar4 = *piVar9;" (assignment_expression "iVar4 = *piVar9" identifier = (pointer_expression "*piVar9" * identifier)) ;) (if_statement "if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }" if (parenthesized_expression "(iVar5 != 2)" ( (binary_expression "iVar5 != 2" identifier != number_literal) )) (compound_statement "{\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }" { (expression_statement "puVar6[-1] = 0;" (assignment_expression "puVar6[-1] = 0" (subscript_expression "puVar6[-1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar4 == 0) goto LAB_00082afc;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00082afc;" goto statement_identifier ;)) (labeled_statement "LAB_00082ae8:\n        (*pcVar7)(iVar4,0);" statement_identifier : (expression_statement "(*pcVar7)(iVar4,0);" (call_expression "(*pcVar7)(iVar4,0)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(iVar4,0)" ( identifier , number_literal ))) ;)) (goto_statement "goto LAB_00082afc;" goto statement_identifier ;) })) (if_statement "if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }" { (expression_statement "puVar6[-1] = 0;" (assignment_expression "puVar6[-1] = 0" (subscript_expression "puVar6[-1]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_00082ae8;" goto statement_identifier ;) })) }))) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" identifier = (binary_expression "piVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT ))) ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_000829f4(void)\n\n{\n  undefined1 uVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  int iVar8;\n  int *piVar9;\n  \n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  if (puVar3[0x2a] == '\0') {\n    return;\n  }\n  uVar1 = *puVar3;\n  puVar3[0x2a] = 0;\n  puVar2 = PTR_DAT_00131178;\n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  puVar6 = puVar3 + 0xbc;\n  piVar9 = (int *)(puVar3 + 0x140);\n  iVar5 = 1;\n  iVar8 = 2;\n  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);\n  do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_000829f4(void)" (identifier "FUN_000829f4") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined1 uVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  code *pcVar7;\n  int iVar8;\n  int *piVar9;\n  \n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  if (puVar3[0x2a] == '\0') {\n    return;\n  }\n  uVar1 = *puVar3;\n  puVar3[0x2a] = 0;\n  puVar2 = PTR_DAT_00131178;\n  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;\n  puVar6 = puVar3 + 0xbc;\n  piVar9 = (int *)(puVar3 + 0x140);\n  iVar5 = 1;\n  iVar8 = 2;\n  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);\n  do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "code *pcVar7;" (type_identifier "code") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (expression_statement "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;" (assignment_expression "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" (identifier "puVar3") (= "=") (pointer_expression "*(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" (* "*") (cast_expression "(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_ash_ptr_to_globals_misc_0013188c")))) (; ";")) (if_statement "if (puVar3[0x2a] == '\0') {\n    return;\n  }" (if "if") (parenthesized_expression "(puVar3[0x2a] == '\0')" (( "(") (binary_expression "puVar3[0x2a] == '\0'" (subscript_expression "puVar3[0x2a]" (identifier "puVar3") ([ "[") (number_literal "0x2a") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" (identifier "uVar1") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "puVar3[0x2a] = 0;" (assignment_expression "puVar3[0x2a] = 0" (subscript_expression "puVar3[0x2a]" (identifier "puVar3") ([ "[") (number_literal "0x2a") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = PTR_DAT_00131178;" (assignment_expression "puVar2 = PTR_DAT_00131178" (identifier "puVar2") (= "=") (identifier "PTR_DAT_00131178")) (; ";")) (expression_statement "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;" (assignment_expression "puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" (identifier "puVar3") (= "=") (pointer_expression "*(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" (* "*") (cast_expression "(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_ash_ptr_to_globals_misc_0013188c")))) (; ";")) (expression_statement "puVar6 = puVar3 + 0xbc;" (assignment_expression "puVar6 = puVar3 + 0xbc" (identifier "puVar6") (= "=") (binary_expression "puVar3 + 0xbc" (identifier "puVar3") (+ "+") (number_literal "0xbc"))) (; ";")) (expression_statement "piVar9 = (int *)(puVar3 + 0x140);" (assignment_expression "piVar9 = (int *)(puVar3 + 0x140)" (identifier "piVar9") (= "=") (cast_expression "(int *)(puVar3 + 0x140)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x140)" (( "(") (binary_expression "puVar3 + 0x140" (identifier "puVar3") (+ "+") (number_literal "0x140")) () ")")))) (; ";")) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" (identifier "iVar8") (= "=") (number_literal "2")) (; ";")) (expression_statement "pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);" (assignment_expression "pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564)" (identifier "pcVar7") (= "=") (cast_expression "(code *)(PTR_LAB_001318a8 + 0x2564)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_001318a8 + 0x2564)" (( "(") (binary_expression "PTR_LAB_001318a8 + 0x2564" (identifier "PTR_LAB_001318a8") (+ "+") (number_literal "0x2564")) () ")")))) (; ";")) (do_statement "do {\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  } while( true );" (do "do") (compound_statement "{\n    if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }\n    puVar6 = puVar6 + 1;\n    iVar8 = iVar8 + 1;\n    piVar9 = piVar9 + 1;\n    iVar5 = iVar5 + 1;\n  }" ({ "{") (if_statement "if (puVar6[-1] == '\0') {\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }\n    else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }" (if "if") (parenthesized_expression "(puVar6[-1] == '\0')" (( "(") (binary_expression "puVar6[-1] == '\0'" (subscript_expression "puVar6[-1]" (identifier "puVar6") ([ "[") (number_literal "-1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;\n    }" ({ "{") (labeled_statement "LAB_00082afc:\n      if (0x7f < iVar8) goto LAB_00082a94;" (statement_identifier "LAB_00082afc") (: ":") (if_statement "if (0x7f < iVar8) goto LAB_00082a94;" (if "if") (parenthesized_expression "(0x7f < iVar8)" (( "(") (binary_expression "0x7f < iVar8" (number_literal "0x7f") (< "<") (identifier "iVar8")) () ")")) (goto_statement "goto LAB_00082a94;" (goto "goto") (statement_identifier "LAB_00082a94") (; ";")))) (} "}")) (else_clause "else {\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }" (else "else") (compound_statement "{\n      if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }\n      iVar4 = *piVar9;\n      if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }\n      if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }\n    }" ({ "{") (if_statement "if (puVar2[0x23e7] != '\0') {\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }" (if "if") (parenthesized_expression "(puVar2[0x23e7] != '\0')" (( "(") (binary_expression "puVar2[0x23e7] != '\0'" (subscript_expression "puVar2[0x23e7]" (identifier "puVar2") ([ "[") (number_literal "0x23e7") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        puVar3[0x2a] = (char)iVar5;\nLAB_00082a94:\n        *puVar3 = uVar1;\n        return;\n      }" ({ "{") (expression_statement "puVar3[0x2a] = (char)iVar5;" (assignment_expression "puVar3[0x2a] = (char)iVar5" (subscript_expression "puVar3[0x2a]" (identifier "puVar3") ([ "[") (number_literal "0x2a") (] "]")) (= "=") (cast_expression "(char)iVar5" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar5"))) (; ";")) (labeled_statement "LAB_00082a94:\n        *puVar3 = uVar1;" (statement_identifier "LAB_00082a94") (: ":") (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar1")) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar4 = *piVar9;" (assignment_expression "iVar4 = *piVar9" (identifier "iVar4") (= "=") (pointer_expression "*piVar9" (* "*") (identifier "piVar9"))) (; ";")) (if_statement "if (iVar5 != 2) {\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }" (if "if") (parenthesized_expression "(iVar5 != 2)" (( "(") (binary_expression "iVar5 != 2" (identifier "iVar5") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n        puVar6[-1] = 0;\n        if (iVar4 == 0) goto LAB_00082afc;\nLAB_00082ae8:\n        (*pcVar7)(iVar4,0);\n        goto LAB_00082afc;\n      }" ({ "{") (expression_statement "puVar6[-1] = 0;" (assignment_expression "puVar6[-1] = 0" (subscript_expression "puVar6[-1]" (identifier "puVar6") ([ "[") (number_literal "-1") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar4 == 0) goto LAB_00082afc;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00082afc;" (goto "goto") (statement_identifier "LAB_00082afc") (; ";"))) (labeled_statement "LAB_00082ae8:\n        (*pcVar7)(iVar4,0);" (statement_identifier "LAB_00082ae8") (: ":") (expression_statement "(*pcVar7)(iVar4,0);" (call_expression "(*pcVar7)(iVar4,0)" (parenthesized_expression "(*pcVar7)" (( "(") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) () ")")) (argument_list "(iVar4,0)" (( "(") (identifier "iVar4") (, ",") (number_literal "0") () ")"))) (; ";"))) (goto_statement "goto LAB_00082afc;" (goto "goto") (statement_identifier "LAB_00082afc") (; ";")) (} "}"))) (if_statement "if (iVar4 != 0) {\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        puVar6[-1] = 0;\n        goto LAB_00082ae8;\n      }" ({ "{") (expression_statement "puVar6[-1] = 0;" (assignment_expression "puVar6[-1] = 0" (subscript_expression "puVar6[-1]" (identifier "puVar6") ([ "[") (number_literal "-1") (] "]")) (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00082ae8;" (goto "goto") (statement_identifier "LAB_00082ae8") (; ";")) (} "}"))) (} "}")))) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar9 = piVar9 + 1;" (assignment_expression "piVar9 = piVar9 + 1" (identifier "piVar9") (= "=") (binary_expression "piVar9 + 1" (identifier "piVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal))))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (true))))))

void MASKED(void)

{
  undefined1 uVar1;
  undefined *puVar2;
  undefined1 *puVar3;
  int iVar4;
  int iVar5;
  undefined1 *puVar6;
  code *pcVar7;
  int iVar8;
  int *piVar9;
  
  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;
  if (puVar3[0x2a] == '\0') {
    return;
  }
  uVar1 = *puVar3;
  puVar3[0x2a] = 0;
  puVar2 = PTR_DAT_00131178;
  puVar3 = *(undefined1 **)PTR_ash_ptr_to_globals_misc_0013188c;
  puVar6 = puVar3 + 0xbc;
  piVar9 = (int *)(puVar3 + 0x140);
  iVar5 = 1;
  iVar8 = 2;
  pcVar7 = (code *)(PTR_LAB_001318a8 + 0x2564);
  do {
    if (puVar6[-1] == '\0') {
LAB_00082afc:
      if (0x7f < iVar8) goto LAB_00082a94;
    }
    else {
      if (puVar2[0x23e7] != '\0') {
        puVar3[0x2a] = (char)iVar5;
LAB_00082a94:
        *puVar3 = uVar1;
        return;
      }
      iVar4 = *piVar9;
      if (iVar5 != 2) {
        puVar6[-1] = 0;
        if (iVar4 == 0) goto LAB_00082afc;
LAB_00082ae8:
        (*pcVar7)(iVar4,0);
        goto LAB_00082afc;
      }
      if (iVar4 != 0) {
        puVar6[-1] = 0;
        goto LAB_00082ae8;
      }
    }
    puVar6 = puVar6 + 1;
    iVar8 = iVar8 + 1;
    piVar9 = piVar9 + 1;
    iVar5 = iVar5 + 1;
  } while( true );
}

