
_Bool do_next_word(_Bool after_ends,_Bool allow_punct)

{
  undefined *puVar1;
  uint uVar2;
  undefined3 extraout_var;
  undefined3 extraout_var_00;
  undefined3 extraout_var_01;
  _Bool _Var5;
  size_t sVar3;
  _Bool _Var6;
  int iVar4;
  undefined3 in_register_00000010;
  char *buf;
  int iVar7;
  uint uVar8;
  uint uVar9;
  
  _Var5 = is_word_mbchar((char *)(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +
                                 *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)),allow_punct);
  puVar1 = PTR_openfile_0007c6e8;
  uVar8 = (CONCAT31(extraout_var,_Var5) ^ 1) & 0xff;
  uVar2 = CONCAT31(extraout_var,_Var5);
  do {
    while( true ) {
      uVar9 = uVar2;
      iVar7 = *(int *)puVar1;
      buf = (char *)**(undefined4 **)(iVar7 + 0x10);
      if (buf[*(size_t *)(iVar7 + 0x1c)] == '\0') {
        iVar4 = (*(undefined4 **)(iVar7 + 0x10))[2];
        uVar8 = 1;
        if (iVar4 == 0) {
          return _Var5;
        }
        *(int *)(iVar7 + 0x10) = iVar4;
        *(undefined4 *)(iVar7 + 0x1c) = 0;
      }
      else {
        sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c));
        *(size_t *)(iVar7 + 0x1c) = sVar3;
      }
      uVar2 = uVar9;
      if (CONCAT31(in_register_00000010,after_ends) != 0) break;
      _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +
                                     *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);
      if (CONCAT31(extraout_var_01,_Var6) == 0) {
        uVar8 = 1;
      }
      else if (uVar8 != 0) {
        return _Var5;
      }
    }
    _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +
                                   *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);
    uVar2 = CONCAT31(extraout_var_00,_Var6);
  } while ((CONCAT31(extraout_var_00,_Var6) != 0) || (uVar2 = uVar9, uVar9 == 0));
  return _Var5;
}



uint do_next_word(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  uint uVar2;
  undefined4 uVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  uint uVar7;
  uint uVar8;
  
  uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +
                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));
  puVar1 = PTR_openfile_0007c6e8;
  uVar7 = (uVar2 ^ 1) & 0xff;
  uVar4 = uVar2;
  do {
    while( true ) {
      uVar8 = uVar4;
      iVar6 = *(int *)puVar1;
      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {
        iVar5 = (*(int **)(iVar6 + 0x10))[2];
        uVar7 = 1;
        if (iVar5 == 0) {
          return uVar2;
        }
        *(int *)(iVar6 + 0x10) = iVar5;
        *(undefined4 *)(iVar6 + 0x1c) = 0;
      }
      else {
        uVar3 = move_mbright();
        *(undefined4 *)(iVar6 + 0x1c) = uVar3;
      }
      uVar4 = uVar8;
      if (param_1 != 0) break;
      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),
                             param_2);
      if (iVar6 == 0) {
        uVar7 = 1;
      }
      else if (uVar7 != 0) {
        return uVar2;
      }
    }
    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),
                           param_2);
  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));
  return uVar2;
}


lui gp,0x5
addiu gp,gp,0x6a90
addu gp,gp,t9
addiu sp,sp,-0x40
sw ra,0x3c(sp)
sw s7,0x38(sp)
sw s6,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s3,a0,zero
or s2,a1,zero
lw v0,-0x7e38(gp)
lw v0,0x0(v0)
lw v1,0x10(v0)
lw a0,0x0(v1)
lw v0,0x1c(v0)
addu a0,a0,v0
lw t9,-0x7abc(gp)
bal 0x0001aa9c
_nop
lw gp,0x10(sp)
or s7,v0,zero
xori s4,v0,0x1
andi s4,s4,0xff
or s6,v0,zero
lw s1,-0x7e38(gp)
b 0x0002db18
_li s5,0x1
or s6,v0,zero
lw s0,0x0(s1)
lw v0,0x10(s0)
lw a0,0x0(v0)
lw a1,0x1c(s0)
addu v1,a0,a1
lb v1,0x0(v1)
beq v1,zero,0x0002dbbc
_lw t9,-0x7e74(gp)
bal 0x0001acd0
_nop
lw gp,0x10(sp)
sw v0,0x1c(s0)
beq s3,zero,0x0002dbd4
_or a1,s2,zero
lw v0,0x0(s1)
lw v1,0x10(v0)
lw a0,0x0(v1)
lw v0,0x1c(v0)
addu a0,a0,v0
lw t9,-0x7abc(gp)
bal 0x0001aa9c
_nop
lw gp,0x10(sp)
bne v0,zero,0x0002db14
_nop
beq s6,zero,0x0002db18
_nop
or v0,s7,zero
lw ra,0x3c(sp)
lw s7,0x38(sp)
lw s6,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
b 0x0002db18
_or s4,s5,zero
lw v0,0x8(v0)
beq v0,zero,0x0002db84
_or s4,s5,zero
sw v0,0x10(s0)
b 0x0002db48
_sw zero,0x1c(s0)
lw v0,0x0(s1)
lw v1,0x10(v0)
lw a0,0x0(v1)
lw v0,0x1c(v0)
addu a0,a0,v0
lw t9,-0x7abc(gp)
bal 0x0001aa9c
_nop
lw gp,0x10(sp)
beq v0,zero,0x0002dbb4
_nop
beq s4,zero,0x0002db18
_or v0,s7,zero
b 0x0002db8c
_lw ra,0x3c(sp)
(translation_unit "uint do_next_word(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));\n  puVar1 = PTR_openfile_0007c6e8;\n  uVar7 = (uVar2 ^ 1) & 0xff;\n  uVar4 = uVar2;\n  do {\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));\n  return uVar2;\n}\n\n" (function_definition "uint do_next_word(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));\n  puVar1 = PTR_openfile_0007c6e8;\n  uVar7 = (uVar2 ^ 1) & 0xff;\n  uVar4 = uVar2;\n  do {\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));\n  return uVar2;\n}" type_identifier (function_declarator "do_next_word(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));\n  puVar1 = PTR_openfile_0007c6e8;\n  uVar7 = (uVar2 ^ 1) & 0xff;\n  uVar4 = uVar2;\n  do {\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));\n  return uVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));" (assignment_expression "uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c))" identifier = (call_expression "is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c))" identifier (argument_list "(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c))" ( (binary_expression "**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)" (pointer_expression "**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10)" * (pointer_expression "*(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10)" * (cast_expression "(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)PTR_openfile_0007c6e8 + 0x10)" ( (binary_expression "*(int *)PTR_openfile_0007c6e8 + 0x10" (pointer_expression "*(int *)PTR_openfile_0007c6e8" * (cast_expression "(int *)PTR_openfile_0007c6e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + (pointer_expression "*(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)" * (cast_expression "(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_openfile_0007c6e8 + 0x1c)" ( (binary_expression "*(int *)PTR_openfile_0007c6e8 + 0x1c" (pointer_expression "*(int *)PTR_openfile_0007c6e8" * (cast_expression "(int *)PTR_openfile_0007c6e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (expression_statement "puVar1 = PTR_openfile_0007c6e8;" (assignment_expression "puVar1 = PTR_openfile_0007c6e8" identifier = identifier) ;) (expression_statement "uVar7 = (uVar2 ^ 1) & 0xff;" (assignment_expression "uVar7 = (uVar2 ^ 1) & 0xff" identifier = (binary_expression "(uVar2 ^ 1) & 0xff" (parenthesized_expression "(uVar2 ^ 1)" ( (binary_expression "uVar2 ^ 1" identifier ^ number_literal) )) & number_literal)) ;) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) (do_statement "do {\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));" do (compound_statement "{\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  }" { (while_statement "while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }" { (expression_statement "uVar8 = uVar4;" (assignment_expression "uVar8 = uVar4" identifier = identifier) ;) (expression_statement "iVar6 = *(int *)puVar1;" (assignment_expression "iVar6 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }" if (parenthesized_expression "(*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0')" ( (binary_expression "*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0'" (pointer_expression "*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c))" * (cast_expression "(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c))" ( (binary_expression "**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)" (pointer_expression "**(int **)(iVar6 + 0x10)" * (pointer_expression "*(int **)(iVar6 + 0x10)" * (cast_expression "(int **)(iVar6 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) + (pointer_expression "*(int *)(iVar6 + 0x1c)" * (cast_expression "(int *)(iVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) ))))) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }" { (expression_statement "iVar5 = (*(int **)(iVar6 + 0x10))[2];" (assignment_expression "iVar5 = (*(int **)(iVar6 + 0x10))[2]" identifier = (subscript_expression "(*(int **)(iVar6 + 0x10))[2]" (parenthesized_expression "(*(int **)(iVar6 + 0x10))" ( (pointer_expression "*(int **)(iVar6 + 0x10)" * (cast_expression "(int **)(iVar6 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) )) [ number_literal ])) ;) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (if_statement "if (iVar5 == 0) {\n          return uVar2;\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          return uVar2;\n        }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "*(int *)(iVar6 + 0x10) = iVar5;" (assignment_expression "*(int *)(iVar6 + 0x10) = iVar5" (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x1c)" * (cast_expression "(undefined4 *)(iVar6 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }" else (compound_statement "{\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }" { (expression_statement "uVar3 = move_mbright();" (assignment_expression "uVar3 = move_mbright()" identifier = (call_expression "move_mbright()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x1c) = uVar3;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1c) = uVar3" (pointer_expression "*(undefined4 *)(iVar6 + 0x1c)" * (cast_expression "(undefined4 *)(iVar6 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "uVar4 = uVar8;" (assignment_expression "uVar4 = uVar8" identifier = identifier) ;) (if_statement "if (param_1 != 0) break;" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);" (assignment_expression "iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2)" identifier = (call_expression "is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2)" identifier (argument_list "(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2)" ( (binary_expression "**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c)" (pointer_expression "**(int **)(*(int *)puVar1 + 0x10)" * (pointer_expression "*(int **)(*(int *)puVar1 + 0x10)" * (cast_expression "(int **)(*(int *)puVar1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)puVar1 + 0x10)" ( (binary_expression "*(int *)puVar1 + 0x10" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + (pointer_expression "*(int *)(*(int *)puVar1 + 0x1c)" * (cast_expression "(int *)(*(int *)puVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)puVar1 + 0x1c)" ( (binary_expression "*(int *)puVar1 + 0x1c" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , identifier )))) ;) (if_statement "if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar7 = 1;\n      }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) }) (else_clause "else if (uVar7 != 0) {\n        return uVar2;\n      }" else (if_statement "if (uVar7 != 0) {\n        return uVar2;\n      }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        return uVar2;\n      }" { (return_statement "return uVar2;" return identifier ;) })))) })) (expression_statement "uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);" (assignment_expression "uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2)" identifier = (call_expression "is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2)" identifier (argument_list "(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2)" ( (binary_expression "**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c)" (pointer_expression "**(int **)(*(int *)puVar1 + 0x10)" * (pointer_expression "*(int **)(*(int *)puVar1 + 0x10)" * (cast_expression "(int **)(*(int *)puVar1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)puVar1 + 0x10)" ( (binary_expression "*(int *)puVar1 + 0x10" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + (pointer_expression "*(int *)(*(int *)puVar1 + 0x1c)" * (cast_expression "(int *)(*(int *)puVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)puVar1 + 0x1c)" ( (binary_expression "*(int *)puVar1 + 0x1c" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , identifier )))) ;) }) while (parenthesized_expression "((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0))" ( (binary_expression "(uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0)" (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) || (parenthesized_expression "(uVar4 = uVar8, uVar8 == 0)" ( (comma_expression "uVar4 = uVar8, uVar8 == 0" (assignment_expression "uVar4 = uVar8" identifier = identifier) , (binary_expression "uVar8 == 0" identifier == number_literal)) ))) )) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "_Bool do_next_word(_Bool after_ends,_Bool allow_punct)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined3 extraout_var;\n  undefined3 extraout_var_00;\n  undefined3 extraout_var_01;\n  _Bool _Var5;\n  size_t sVar3;\n  _Bool _Var6;\n  int iVar4;\n  undefined3 in_register_00000010;\n  char *buf;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  _Var5 = is_word_mbchar((char *)(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                                 *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)),allow_punct);\n  puVar1 = PTR_openfile_0007c6e8;\n  uVar8 = (CONCAT31(extraout_var,_Var5) ^ 1) & 0xff;\n  uVar2 = CONCAT31(extraout_var,_Var5);\n  do {\n    while( true ) {\n      uVar9 = uVar2;\n      iVar7 = *(int *)puVar1;\n      buf = (char *)**(undefined4 **)(iVar7 + 0x10);\n      if (buf[*(size_t *)(iVar7 + 0x1c)] == '\0') {\n        iVar4 = (*(undefined4 **)(iVar7 + 0x10))[2];\n        uVar8 = 1;\n        if (iVar4 == 0) {\n          return _Var5;\n        }\n        *(int *)(iVar7 + 0x10) = iVar4;\n        *(undefined4 *)(iVar7 + 0x1c) = 0;\n      }\n      else {\n        sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c));\n        *(size_t *)(iVar7 + 0x1c) = sVar3;\n      }\n      uVar2 = uVar9;\n      if (CONCAT31(in_register_00000010,after_ends) != 0) break;\n      _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);\n      if (CONCAT31(extraout_var_01,_Var6) == 0) {\n        uVar8 = 1;\n      }\n      else if (uVar8 != 0) {\n        return _Var5;\n      }\n    }\n    _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                   *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);\n    uVar2 = CONCAT31(extraout_var_00,_Var6);\n  } while ((CONCAT31(extraout_var_00,_Var6) != 0) || (uVar2 = uVar9, uVar9 == 0));\n  return _Var5;\n}\n\n" (function_definition "_Bool do_next_word(_Bool after_ends,_Bool allow_punct)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined3 extraout_var;\n  undefined3 extraout_var_00;\n  undefined3 extraout_var_01;\n  _Bool _Var5;\n  size_t sVar3;\n  _Bool _Var6;\n  int iVar4;\n  undefined3 in_register_00000010;\n  char *buf;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  _Var5 = is_word_mbchar((char *)(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                                 *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)),allow_punct);\n  puVar1 = PTR_openfile_0007c6e8;\n  uVar8 = (CONCAT31(extraout_var,_Var5) ^ 1) & 0xff;\n  uVar2 = CONCAT31(extraout_var,_Var5);\n  do {\n    while( true ) {\n      uVar9 = uVar2;\n      iVar7 = *(int *)puVar1;\n      buf = (char *)**(undefined4 **)(iVar7 + 0x10);\n      if (buf[*(size_t *)(iVar7 + 0x1c)] == '\0') {\n        iVar4 = (*(undefined4 **)(iVar7 + 0x10))[2];\n        uVar8 = 1;\n        if (iVar4 == 0) {\n          return _Var5;\n        }\n        *(int *)(iVar7 + 0x10) = iVar4;\n        *(undefined4 *)(iVar7 + 0x1c) = 0;\n      }\n      else {\n        sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c));\n        *(size_t *)(iVar7 + 0x1c) = sVar3;\n      }\n      uVar2 = uVar9;\n      if (CONCAT31(in_register_00000010,after_ends) != 0) break;\n      _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);\n      if (CONCAT31(extraout_var_01,_Var6) == 0) {\n        uVar8 = 1;\n      }\n      else if (uVar8 != 0) {\n        return _Var5;\n      }\n    }\n    _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                   *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);\n    uVar2 = CONCAT31(extraout_var_00,_Var6);\n  } while ((CONCAT31(extraout_var_00,_Var6) != 0) || (uVar2 = uVar9, uVar9 == 0));\n  return _Var5;\n}" type_identifier (function_declarator "do_next_word(_Bool after_ends,_Bool allow_punct)" identifier (parameter_list "(_Bool after_ends,_Bool allow_punct)" ( (parameter_declaration "_Bool after_ends" type_identifier identifier) , (parameter_declaration "_Bool allow_punct" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  undefined3 extraout_var;\n  undefined3 extraout_var_00;\n  undefined3 extraout_var_01;\n  _Bool _Var5;\n  size_t sVar3;\n  _Bool _Var6;\n  int iVar4;\n  undefined3 in_register_00000010;\n  char *buf;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  _Var5 = is_word_mbchar((char *)(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                                 *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)),allow_punct);\n  puVar1 = PTR_openfile_0007c6e8;\n  uVar8 = (CONCAT31(extraout_var,_Var5) ^ 1) & 0xff;\n  uVar2 = CONCAT31(extraout_var,_Var5);\n  do {\n    while( true ) {\n      uVar9 = uVar2;\n      iVar7 = *(int *)puVar1;\n      buf = (char *)**(undefined4 **)(iVar7 + 0x10);\n      if (buf[*(size_t *)(iVar7 + 0x1c)] == '\0') {\n        iVar4 = (*(undefined4 **)(iVar7 + 0x10))[2];\n        uVar8 = 1;\n        if (iVar4 == 0) {\n          return _Var5;\n        }\n        *(int *)(iVar7 + 0x10) = iVar4;\n        *(undefined4 *)(iVar7 + 0x1c) = 0;\n      }\n      else {\n        sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c));\n        *(size_t *)(iVar7 + 0x1c) = sVar3;\n      }\n      uVar2 = uVar9;\n      if (CONCAT31(in_register_00000010,after_ends) != 0) break;\n      _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);\n      if (CONCAT31(extraout_var_01,_Var6) == 0) {\n        uVar8 = 1;\n      }\n      else if (uVar8 != 0) {\n        return _Var5;\n      }\n    }\n    _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                   *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);\n    uVar2 = CONCAT31(extraout_var_00,_Var6);\n  } while ((CONCAT31(extraout_var_00,_Var6) != 0) || (uVar2 = uVar9, uVar9 == 0));\n  return _Var5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "undefined3 extraout_var_00;" type_identifier identifier ;) (declaration "undefined3 extraout_var_01;" type_identifier identifier ;) (declaration "_Bool _Var5;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "_Bool _Var6;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined3 in_register_00000010;" type_identifier identifier ;) (declaration "char *buf;" primitive_type (pointer_declarator "*buf" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (expression_statement "_Var5 = is_word_mbchar((char *)(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                                 *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)),allow_punct);" (assignment_expression "_Var5 = is_word_mbchar((char *)(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                                 *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)),allow_punct)" identifier = (call_expression "is_word_mbchar((char *)(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                                 *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)),allow_punct)" identifier (argument_list "((char *)(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                                 *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)),allow_punct)" ( (cast_expression "(char *)(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                                 *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                                 *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c))" ( (binary_expression "**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                                 *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)" (pointer_expression "**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10)" * (pointer_expression "*(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10)" * (cast_expression "(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)PTR_openfile_0007c6e8 + 0x10)" ( (binary_expression "*(int *)PTR_openfile_0007c6e8 + 0x10" (pointer_expression "*(int *)PTR_openfile_0007c6e8" * (cast_expression "(int *)PTR_openfile_0007c6e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + (pointer_expression "*(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)" * (cast_expression "(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_openfile_0007c6e8 + 0x1c)" ( (binary_expression "*(int *)PTR_openfile_0007c6e8 + 0x1c" (pointer_expression "*(int *)PTR_openfile_0007c6e8" * (cast_expression "(int *)PTR_openfile_0007c6e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , identifier )))) ;) (expression_statement "puVar1 = PTR_openfile_0007c6e8;" (assignment_expression "puVar1 = PTR_openfile_0007c6e8" identifier = identifier) ;) (expression_statement "uVar8 = (CONCAT31(extraout_var,_Var5) ^ 1) & 0xff;" (assignment_expression "uVar8 = (CONCAT31(extraout_var,_Var5) ^ 1) & 0xff" identifier = (binary_expression "(CONCAT31(extraout_var,_Var5) ^ 1) & 0xff" (parenthesized_expression "(CONCAT31(extraout_var,_Var5) ^ 1)" ( (binary_expression "CONCAT31(extraout_var,_Var5) ^ 1" (call_expression "CONCAT31(extraout_var,_Var5)" identifier (argument_list "(extraout_var,_Var5)" ( identifier , identifier ))) ^ number_literal) )) & number_literal)) ;) (expression_statement "uVar2 = CONCAT31(extraout_var,_Var5);" (assignment_expression "uVar2 = CONCAT31(extraout_var,_Var5)" identifier = (call_expression "CONCAT31(extraout_var,_Var5)" identifier (argument_list "(extraout_var,_Var5)" ( identifier , identifier )))) ;) (do_statement "do {\n    while( true ) {\n      uVar9 = uVar2;\n      iVar7 = *(int *)puVar1;\n      buf = (char *)**(undefined4 **)(iVar7 + 0x10);\n      if (buf[*(size_t *)(iVar7 + 0x1c)] == '\0') {\n        iVar4 = (*(undefined4 **)(iVar7 + 0x10))[2];\n        uVar8 = 1;\n        if (iVar4 == 0) {\n          return _Var5;\n        }\n        *(int *)(iVar7 + 0x10) = iVar4;\n        *(undefined4 *)(iVar7 + 0x1c) = 0;\n      }\n      else {\n        sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c));\n        *(size_t *)(iVar7 + 0x1c) = sVar3;\n      }\n      uVar2 = uVar9;\n      if (CONCAT31(in_register_00000010,after_ends) != 0) break;\n      _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);\n      if (CONCAT31(extraout_var_01,_Var6) == 0) {\n        uVar8 = 1;\n      }\n      else if (uVar8 != 0) {\n        return _Var5;\n      }\n    }\n    _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                   *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);\n    uVar2 = CONCAT31(extraout_var_00,_Var6);\n  } while ((CONCAT31(extraout_var_00,_Var6) != 0) || (uVar2 = uVar9, uVar9 == 0));" do (compound_statement "{\n    while( true ) {\n      uVar9 = uVar2;\n      iVar7 = *(int *)puVar1;\n      buf = (char *)**(undefined4 **)(iVar7 + 0x10);\n      if (buf[*(size_t *)(iVar7 + 0x1c)] == '\0') {\n        iVar4 = (*(undefined4 **)(iVar7 + 0x10))[2];\n        uVar8 = 1;\n        if (iVar4 == 0) {\n          return _Var5;\n        }\n        *(int *)(iVar7 + 0x10) = iVar4;\n        *(undefined4 *)(iVar7 + 0x1c) = 0;\n      }\n      else {\n        sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c));\n        *(size_t *)(iVar7 + 0x1c) = sVar3;\n      }\n      uVar2 = uVar9;\n      if (CONCAT31(in_register_00000010,after_ends) != 0) break;\n      _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);\n      if (CONCAT31(extraout_var_01,_Var6) == 0) {\n        uVar8 = 1;\n      }\n      else if (uVar8 != 0) {\n        return _Var5;\n      }\n    }\n    _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                   *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);\n    uVar2 = CONCAT31(extraout_var_00,_Var6);\n  }" { (while_statement "while( true ) {\n      uVar9 = uVar2;\n      iVar7 = *(int *)puVar1;\n      buf = (char *)**(undefined4 **)(iVar7 + 0x10);\n      if (buf[*(size_t *)(iVar7 + 0x1c)] == '\0') {\n        iVar4 = (*(undefined4 **)(iVar7 + 0x10))[2];\n        uVar8 = 1;\n        if (iVar4 == 0) {\n          return _Var5;\n        }\n        *(int *)(iVar7 + 0x10) = iVar4;\n        *(undefined4 *)(iVar7 + 0x1c) = 0;\n      }\n      else {\n        sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c));\n        *(size_t *)(iVar7 + 0x1c) = sVar3;\n      }\n      uVar2 = uVar9;\n      if (CONCAT31(in_register_00000010,after_ends) != 0) break;\n      _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);\n      if (CONCAT31(extraout_var_01,_Var6) == 0) {\n        uVar8 = 1;\n      }\n      else if (uVar8 != 0) {\n        return _Var5;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar9 = uVar2;\n      iVar7 = *(int *)puVar1;\n      buf = (char *)**(undefined4 **)(iVar7 + 0x10);\n      if (buf[*(size_t *)(iVar7 + 0x1c)] == '\0') {\n        iVar4 = (*(undefined4 **)(iVar7 + 0x10))[2];\n        uVar8 = 1;\n        if (iVar4 == 0) {\n          return _Var5;\n        }\n        *(int *)(iVar7 + 0x10) = iVar4;\n        *(undefined4 *)(iVar7 + 0x1c) = 0;\n      }\n      else {\n        sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c));\n        *(size_t *)(iVar7 + 0x1c) = sVar3;\n      }\n      uVar2 = uVar9;\n      if (CONCAT31(in_register_00000010,after_ends) != 0) break;\n      _Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);\n      if (CONCAT31(extraout_var_01,_Var6) == 0) {\n        uVar8 = 1;\n      }\n      else if (uVar8 != 0) {\n        return _Var5;\n      }\n    }" { (expression_statement "uVar9 = uVar2;" (assignment_expression "uVar9 = uVar2" identifier = identifier) ;) (expression_statement "iVar7 = *(int *)puVar1;" (assignment_expression "iVar7 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "buf = (char *)**(undefined4 **)(iVar7 + 0x10);" (assignment_expression "buf = (char *)**(undefined4 **)(iVar7 + 0x10)" identifier = (cast_expression "(char *)**(undefined4 **)(iVar7 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(iVar7 + 0x10)" * (pointer_expression "*(undefined4 **)(iVar7 + 0x10)" * (cast_expression "(undefined4 **)(iVar7 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) ))))))) ;) (if_statement "if (buf[*(size_t *)(iVar7 + 0x1c)] == '\0') {\n        iVar4 = (*(undefined4 **)(iVar7 + 0x10))[2];\n        uVar8 = 1;\n        if (iVar4 == 0) {\n          return _Var5;\n        }\n        *(int *)(iVar7 + 0x10) = iVar4;\n        *(undefined4 *)(iVar7 + 0x1c) = 0;\n      }\n      else {\n        sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c));\n        *(size_t *)(iVar7 + 0x1c) = sVar3;\n      }" if (parenthesized_expression "(buf[*(size_t *)(iVar7 + 0x1c)] == '\0')" ( (binary_expression "buf[*(size_t *)(iVar7 + 0x1c)] == '\0'" (subscript_expression "buf[*(size_t *)(iVar7 + 0x1c)]" identifier [ (pointer_expression "*(size_t *)(iVar7 + 0x1c)" * (cast_expression "(size_t *)(iVar7 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) )))) ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar4 = (*(undefined4 **)(iVar7 + 0x10))[2];\n        uVar8 = 1;\n        if (iVar4 == 0) {\n          return _Var5;\n        }\n        *(int *)(iVar7 + 0x10) = iVar4;\n        *(undefined4 *)(iVar7 + 0x1c) = 0;\n      }" { (expression_statement "iVar4 = (*(undefined4 **)(iVar7 + 0x10))[2];" (assignment_expression "iVar4 = (*(undefined4 **)(iVar7 + 0x10))[2]" identifier = (subscript_expression "(*(undefined4 **)(iVar7 + 0x10))[2]" (parenthesized_expression "(*(undefined4 **)(iVar7 + 0x10))" ( (pointer_expression "*(undefined4 **)(iVar7 + 0x10)" * (cast_expression "(undefined4 **)(iVar7 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))) )) [ number_literal ])) ;) (expression_statement "uVar8 = 1;" (assignment_expression "uVar8 = 1" identifier = number_literal) ;) (if_statement "if (iVar4 == 0) {\n          return _Var5;\n        }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n          return _Var5;\n        }" { (return_statement "return _Var5;" return identifier ;) })) (expression_statement "*(int *)(iVar7 + 0x10) = iVar4;" (assignment_expression "*(int *)(iVar7 + 0x10) = iVar4" (pointer_expression "*(int *)(iVar7 + 0x10)" * (cast_expression "(int *)(iVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar7 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar7 + 0x1c)" * (cast_expression "(undefined4 *)(iVar7 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c));\n        *(size_t *)(iVar7 + 0x1c) = sVar3;\n      }" else (compound_statement "{\n        sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c));\n        *(size_t *)(iVar7 + 0x1c) = sVar3;\n      }" { (expression_statement "sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c));" (assignment_expression "sVar3 = move_mbright(buf,*(size_t *)(iVar7 + 0x1c))" identifier = (call_expression "move_mbright(buf,*(size_t *)(iVar7 + 0x1c))" identifier (argument_list "(buf,*(size_t *)(iVar7 + 0x1c))" ( identifier , (pointer_expression "*(size_t *)(iVar7 + 0x1c)" * (cast_expression "(size_t *)(iVar7 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) )))) )))) ;) (expression_statement "*(size_t *)(iVar7 + 0x1c) = sVar3;" (assignment_expression "*(size_t *)(iVar7 + 0x1c) = sVar3" (pointer_expression "*(size_t *)(iVar7 + 0x1c)" * (cast_expression "(size_t *)(iVar7 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "uVar2 = uVar9;" (assignment_expression "uVar2 = uVar9" identifier = identifier) ;) (if_statement "if (CONCAT31(in_register_00000010,after_ends) != 0) break;" if (parenthesized_expression "(CONCAT31(in_register_00000010,after_ends) != 0)" ( (binary_expression "CONCAT31(in_register_00000010,after_ends) != 0" (call_expression "CONCAT31(in_register_00000010,after_ends)" identifier (argument_list "(in_register_00000010,after_ends)" ( identifier , identifier ))) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "_Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);" (assignment_expression "_Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c)),allow_punct)" identifier = (call_expression "is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c)),allow_punct)" identifier (argument_list "((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c)),allow_punct)" ( (cast_expression "(char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c))" ( (binary_expression "**(int **)(*(int *)puVar1 + 0x10) +\n                                     *(int *)(*(int *)puVar1 + 0x1c)" (pointer_expression "**(int **)(*(int *)puVar1 + 0x10)" * (pointer_expression "*(int **)(*(int *)puVar1 + 0x10)" * (cast_expression "(int **)(*(int *)puVar1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)puVar1 + 0x10)" ( (binary_expression "*(int *)puVar1 + 0x10" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + (pointer_expression "*(int *)(*(int *)puVar1 + 0x1c)" * (cast_expression "(int *)(*(int *)puVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)puVar1 + 0x1c)" ( (binary_expression "*(int *)puVar1 + 0x1c" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , identifier )))) ;) (if_statement "if (CONCAT31(extraout_var_01,_Var6) == 0) {\n        uVar8 = 1;\n      }\n      else if (uVar8 != 0) {\n        return _Var5;\n      }" if (parenthesized_expression "(CONCAT31(extraout_var_01,_Var6) == 0)" ( (binary_expression "CONCAT31(extraout_var_01,_Var6) == 0" (call_expression "CONCAT31(extraout_var_01,_Var6)" identifier (argument_list "(extraout_var_01,_Var6)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n        uVar8 = 1;\n      }" { (expression_statement "uVar8 = 1;" (assignment_expression "uVar8 = 1" identifier = number_literal) ;) }) (else_clause "else if (uVar8 != 0) {\n        return _Var5;\n      }" else (if_statement "if (uVar8 != 0) {\n        return _Var5;\n      }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        return _Var5;\n      }" { (return_statement "return _Var5;" return identifier ;) })))) })) (expression_statement "_Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                   *(int *)(*(int *)puVar1 + 0x1c)),allow_punct);" (assignment_expression "_Var6 = is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                   *(int *)(*(int *)puVar1 + 0x1c)),allow_punct)" identifier = (call_expression "is_word_mbchar((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                   *(int *)(*(int *)puVar1 + 0x1c)),allow_punct)" identifier (argument_list "((char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                   *(int *)(*(int *)puVar1 + 0x1c)),allow_punct)" ( (cast_expression "(char *)(**(int **)(*(int *)puVar1 + 0x10) +\n                                   *(int *)(*(int *)puVar1 + 0x1c))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(**(int **)(*(int *)puVar1 + 0x10) +\n                                   *(int *)(*(int *)puVar1 + 0x1c))" ( (binary_expression "**(int **)(*(int *)puVar1 + 0x10) +\n                                   *(int *)(*(int *)puVar1 + 0x1c)" (pointer_expression "**(int **)(*(int *)puVar1 + 0x10)" * (pointer_expression "*(int **)(*(int *)puVar1 + 0x10)" * (cast_expression "(int **)(*(int *)puVar1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)puVar1 + 0x10)" ( (binary_expression "*(int *)puVar1 + 0x10" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + (pointer_expression "*(int *)(*(int *)puVar1 + 0x1c)" * (cast_expression "(int *)(*(int *)puVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)puVar1 + 0x1c)" ( (binary_expression "*(int *)puVar1 + 0x1c" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , identifier )))) ;) (expression_statement "uVar2 = CONCAT31(extraout_var_00,_Var6);" (assignment_expression "uVar2 = CONCAT31(extraout_var_00,_Var6)" identifier = (call_expression "CONCAT31(extraout_var_00,_Var6)" identifier (argument_list "(extraout_var_00,_Var6)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "((CONCAT31(extraout_var_00,_Var6) != 0) || (uVar2 = uVar9, uVar9 == 0))" ( (binary_expression "(CONCAT31(extraout_var_00,_Var6) != 0) || (uVar2 = uVar9, uVar9 == 0)" (parenthesized_expression "(CONCAT31(extraout_var_00,_Var6) != 0)" ( (binary_expression "CONCAT31(extraout_var_00,_Var6) != 0" (call_expression "CONCAT31(extraout_var_00,_Var6)" identifier (argument_list "(extraout_var_00,_Var6)" ( identifier , identifier ))) != number_literal) )) || (parenthesized_expression "(uVar2 = uVar9, uVar9 == 0)" ( (comma_expression "uVar2 = uVar9, uVar9 == 0" (assignment_expression "uVar2 = uVar9" identifier = identifier) , (binary_expression "uVar9 == 0" identifier == number_literal)) ))) )) ;) (return_statement "return _Var5;" return identifier ;) })))
(translation_unit "uint do_next_word(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));\n  puVar1 = PTR_openfile_0007c6e8;\n  uVar7 = (uVar2 ^ 1) & 0xff;\n  uVar4 = uVar2;\n  do {\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));\n  return uVar2;\n}\n\n" (function_definition "uint do_next_word(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));\n  puVar1 = PTR_openfile_0007c6e8;\n  uVar7 = (uVar2 ^ 1) & 0xff;\n  uVar4 = uVar2;\n  do {\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));\n  return uVar2;\n}" type_identifier (function_declarator "do_next_word(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));\n  puVar1 = PTR_openfile_0007c6e8;\n  uVar7 = (uVar2 ^ 1) & 0xff;\n  uVar4 = uVar2;\n  do {\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));\n  return uVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));" (assignment_expression "uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c))" identifier = (call_expression "is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c))" identifier (argument_list "(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c))" ( (binary_expression "**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)" (pointer_expression "**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10)" * (pointer_expression "*(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10)" * (cast_expression "(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)PTR_openfile_0007c6e8 + 0x10)" ( (binary_expression "*(int *)PTR_openfile_0007c6e8 + 0x10" (pointer_expression "*(int *)PTR_openfile_0007c6e8" * (cast_expression "(int *)PTR_openfile_0007c6e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + (pointer_expression "*(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)" * (cast_expression "(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_openfile_0007c6e8 + 0x1c)" ( (binary_expression "*(int *)PTR_openfile_0007c6e8 + 0x1c" (pointer_expression "*(int *)PTR_openfile_0007c6e8" * (cast_expression "(int *)PTR_openfile_0007c6e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (expression_statement "puVar1 = PTR_openfile_0007c6e8;" (assignment_expression "puVar1 = PTR_openfile_0007c6e8" identifier = identifier) ;) (expression_statement "uVar7 = (uVar2 ^ 1) & 0xff;" (assignment_expression "uVar7 = (uVar2 ^ 1) & 0xff" identifier = (binary_expression "(uVar2 ^ 1) & 0xff" (parenthesized_expression "(uVar2 ^ 1)" ( (binary_expression "uVar2 ^ 1" identifier ^ number_literal) )) & number_literal)) ;) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) (do_statement "do {\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));" do (compound_statement "{\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  }" { (while_statement "while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }" { (expression_statement "uVar8 = uVar4;" (assignment_expression "uVar8 = uVar4" identifier = identifier) ;) (expression_statement "iVar6 = *(int *)puVar1;" (assignment_expression "iVar6 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }" if (parenthesized_expression "(*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0')" ( (binary_expression "*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0'" (pointer_expression "*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c))" * (cast_expression "(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c))" ( (binary_expression "**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)" (pointer_expression "**(int **)(iVar6 + 0x10)" * (pointer_expression "*(int **)(iVar6 + 0x10)" * (cast_expression "(int **)(iVar6 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) + (pointer_expression "*(int *)(iVar6 + 0x1c)" * (cast_expression "(int *)(iVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) ))))) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }" { (expression_statement "iVar5 = (*(int **)(iVar6 + 0x10))[2];" (assignment_expression "iVar5 = (*(int **)(iVar6 + 0x10))[2]" identifier = (subscript_expression "(*(int **)(iVar6 + 0x10))[2]" (parenthesized_expression "(*(int **)(iVar6 + 0x10))" ( (pointer_expression "*(int **)(iVar6 + 0x10)" * (cast_expression "(int **)(iVar6 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) )) [ number_literal ])) ;) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (if_statement "if (iVar5 == 0) {\n          return uVar2;\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          return uVar2;\n        }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "*(int *)(iVar6 + 0x10) = iVar5;" (assignment_expression "*(int *)(iVar6 + 0x10) = iVar5" (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x1c)" * (cast_expression "(undefined4 *)(iVar6 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }" else (compound_statement "{\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }" { (expression_statement "uVar3 = move_mbright();" (assignment_expression "uVar3 = move_mbright()" identifier = (call_expression "move_mbright()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar6 + 0x1c) = uVar3;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1c) = uVar3" (pointer_expression "*(undefined4 *)(iVar6 + 0x1c)" * (cast_expression "(undefined4 *)(iVar6 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x1c)" ( (binary_expression "iVar6 + 0x1c" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "uVar4 = uVar8;" (assignment_expression "uVar4 = uVar8" identifier = identifier) ;) (if_statement "if (param_1 != 0) break;" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);" (assignment_expression "iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2)" identifier = (call_expression "is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2)" identifier (argument_list "(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2)" ( (binary_expression "**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c)" (pointer_expression "**(int **)(*(int *)puVar1 + 0x10)" * (pointer_expression "*(int **)(*(int *)puVar1 + 0x10)" * (cast_expression "(int **)(*(int *)puVar1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)puVar1 + 0x10)" ( (binary_expression "*(int *)puVar1 + 0x10" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + (pointer_expression "*(int *)(*(int *)puVar1 + 0x1c)" * (cast_expression "(int *)(*(int *)puVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)puVar1 + 0x1c)" ( (binary_expression "*(int *)puVar1 + 0x1c" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , identifier )))) ;) (if_statement "if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar7 = 1;\n      }" { (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) }) (else_clause "else if (uVar7 != 0) {\n        return uVar2;\n      }" else (if_statement "if (uVar7 != 0) {\n        return uVar2;\n      }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        return uVar2;\n      }" { (return_statement "return uVar2;" return identifier ;) })))) })) (expression_statement "uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);" (assignment_expression "uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2)" identifier = (call_expression "is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2)" identifier (argument_list "(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2)" ( (binary_expression "**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c)" (pointer_expression "**(int **)(*(int *)puVar1 + 0x10)" * (pointer_expression "*(int **)(*(int *)puVar1 + 0x10)" * (cast_expression "(int **)(*(int *)puVar1 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)puVar1 + 0x10)" ( (binary_expression "*(int *)puVar1 + 0x10" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + (pointer_expression "*(int *)(*(int *)puVar1 + 0x1c)" * (cast_expression "(int *)(*(int *)puVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)puVar1 + 0x1c)" ( (binary_expression "*(int *)puVar1 + 0x1c" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , identifier )))) ;) }) while (parenthesized_expression "((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0))" ( (binary_expression "(uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0)" (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) || (parenthesized_expression "(uVar4 = uVar8, uVar8 == 0)" ( (comma_expression "uVar4 = uVar8, uVar8 == 0" (assignment_expression "uVar4 = uVar8" identifier = identifier) , (binary_expression "uVar8 == 0" identifier == number_literal)) ))) )) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT ^ LIT) )) & LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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) ))))) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })))) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) , IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT)) ))) )) ;) (return_statement return IDENT ;) })))
(function_definition "uint do_next_word(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));\n  puVar1 = PTR_openfile_0007c6e8;\n  uVar7 = (uVar2 ^ 1) & 0xff;\n  uVar4 = uVar2;\n  do {\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));\n  return uVar2;\n}" (type_identifier "uint") (function_declarator "do_next_word(int param_1,undefined4 param_2)" (identifier "do_next_word") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));\n  puVar1 = PTR_openfile_0007c6e8;\n  uVar7 = (uVar2 ^ 1) & 0xff;\n  uVar4 = uVar2;\n  do {\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));\n  return uVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (expression_statement "uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));" (assignment_expression "uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c))" (identifier "uVar2") (= "=") (call_expression "is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c))" (identifier "is_word_mbchar") (argument_list "(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c))" (( "(") (binary_expression "**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +\n                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)" (pointer_expression "**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10)" (* "*") (pointer_expression "*(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10)" (* "*") (cast_expression "(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)PTR_openfile_0007c6e8 + 0x10)" (( "(") (binary_expression "*(int *)PTR_openfile_0007c6e8 + 0x10" (pointer_expression "*(int *)PTR_openfile_0007c6e8" (* "*") (cast_expression "(int *)PTR_openfile_0007c6e8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_openfile_0007c6e8"))) (+ "+") (number_literal "0x10")) () ")"))))) (+ "+") (pointer_expression "*(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)" (* "*") (cast_expression "(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_openfile_0007c6e8 + 0x1c)" (( "(") (binary_expression "*(int *)PTR_openfile_0007c6e8 + 0x1c" (pointer_expression "*(int *)PTR_openfile_0007c6e8" (* "*") (cast_expression "(int *)PTR_openfile_0007c6e8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_openfile_0007c6e8"))) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")))) (; ";")) (expression_statement "puVar1 = PTR_openfile_0007c6e8;" (assignment_expression "puVar1 = PTR_openfile_0007c6e8" (identifier "puVar1") (= "=") (identifier "PTR_openfile_0007c6e8")) (; ";")) (expression_statement "uVar7 = (uVar2 ^ 1) & 0xff;" (assignment_expression "uVar7 = (uVar2 ^ 1) & 0xff" (identifier "uVar7") (= "=") (binary_expression "(uVar2 ^ 1) & 0xff" (parenthesized_expression "(uVar2 ^ 1)" (( "(") (binary_expression "uVar2 ^ 1" (identifier "uVar2") (^ "^") (number_literal "1")) () ")")) (& "&") (number_literal "0xff"))) (; ";")) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" (identifier "uVar4") (= "=") (identifier "uVar2")) (; ";")) (do_statement "do {\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));" (do "do") (compound_statement "{\n    while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }\n    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);\n  }" ({ "{") (while_statement "while( true ) {\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      uVar8 = uVar4;\n      iVar6 = *(int *)puVar1;\n      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }\n      uVar4 = uVar8;\n      if (param_1 != 0) break;\n      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);\n      if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }\n    }" ({ "{") (expression_statement "uVar8 = uVar4;" (assignment_expression "uVar8 = uVar4" (identifier "uVar8") (= "=") (identifier "uVar4")) (; ";")) (expression_statement "iVar6 = *(int *)puVar1;" (assignment_expression "iVar6 = *(int *)puVar1" (identifier "iVar6") (= "=") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (if_statement "if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }\n      else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }" (if "if") (parenthesized_expression "(*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0')" (( "(") (binary_expression "*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0'" (pointer_expression "*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c))" (* "*") (cast_expression "(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c))" (( "(") (binary_expression "**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)" (pointer_expression "**(int **)(iVar6 + 0x10)" (* "*") (pointer_expression "*(int **)(iVar6 + 0x10)" (* "*") (cast_expression "(int **)(iVar6 + 0x10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")"))))) (+ "+") (pointer_expression "*(int *)(iVar6 + 0x1c)" (* "*") (cast_expression "(int *)(iVar6 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1c)" (( "(") (binary_expression "iVar6 + 0x1c" (identifier "iVar6") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar5 = (*(int **)(iVar6 + 0x10))[2];\n        uVar7 = 1;\n        if (iVar5 == 0) {\n          return uVar2;\n        }\n        *(int *)(iVar6 + 0x10) = iVar5;\n        *(undefined4 *)(iVar6 + 0x1c) = 0;\n      }" ({ "{") (expression_statement "iVar5 = (*(int **)(iVar6 + 0x10))[2];" (assignment_expression "iVar5 = (*(int **)(iVar6 + 0x10))[2]" (identifier "iVar5") (= "=") (subscript_expression "(*(int **)(iVar6 + 0x10))[2]" (parenthesized_expression "(*(int **)(iVar6 + 0x10))" (( "(") (pointer_expression "*(int **)(iVar6 + 0x10)" (* "*") (cast_expression "(int **)(iVar6 + 0x10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")")))) () ")")) ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (if_statement "if (iVar5 == 0) {\n          return uVar2;\n        }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return uVar2;\n        }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "*(int *)(iVar6 + 0x10) = iVar5;" (assignment_expression "*(int *)(iVar6 + 0x10) = iVar5" (pointer_expression "*(int *)(iVar6 + 0x10)" (* "*") (cast_expression "(int *)(iVar6 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar6 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1c)" (( "(") (binary_expression "iVar6 + 0x1c" (identifier "iVar6") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }" (else "else") (compound_statement "{\n        uVar3 = move_mbright();\n        *(undefined4 *)(iVar6 + 0x1c) = uVar3;\n      }" ({ "{") (expression_statement "uVar3 = move_mbright();" (assignment_expression "uVar3 = move_mbright()" (identifier "uVar3") (= "=") (call_expression "move_mbright()" (identifier "move_mbright") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar6 + 0x1c) = uVar3;" (assignment_expression "*(undefined4 *)(iVar6 + 0x1c) = uVar3" (pointer_expression "*(undefined4 *)(iVar6 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x1c)" (( "(") (binary_expression "iVar6 + 0x1c" (identifier "iVar6") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}")))) (expression_statement "uVar4 = uVar8;" (assignment_expression "uVar4 = uVar8" (identifier "uVar4") (= "=") (identifier "uVar8")) (; ";")) (if_statement "if (param_1 != 0) break;" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2);" (assignment_expression "iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2)" (identifier "iVar6") (= "=") (call_expression "is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2)" (identifier "is_word_mbchar") (argument_list "(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                             param_2)" (( "(") (binary_expression "**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c)" (pointer_expression "**(int **)(*(int *)puVar1 + 0x10)" (* "*") (pointer_expression "*(int **)(*(int *)puVar1 + 0x10)" (* "*") (cast_expression "(int **)(*(int *)puVar1 + 0x10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)puVar1 + 0x10)" (( "(") (binary_expression "*(int *)puVar1 + 0x10" (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (+ "+") (number_literal "0x10")) () ")"))))) (+ "+") (pointer_expression "*(int *)(*(int *)puVar1 + 0x1c)" (* "*") (cast_expression "(int *)(*(int *)puVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)puVar1 + 0x1c)" (( "(") (binary_expression "*(int *)puVar1 + 0x1c" (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (+ "+") (number_literal "0x1c")) () ")"))))) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n        uVar7 = 1;\n      }\n      else if (uVar7 != 0) {\n        return uVar2;\n      }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar7 = 1;\n      }" ({ "{") (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else if (uVar7 != 0) {\n        return uVar2;\n      }" (else "else") (if_statement "if (uVar7 != 0) {\n        return uVar2;\n      }" (if "if") (parenthesized_expression "(uVar7 != 0)" (( "(") (binary_expression "uVar7 != 0" (identifier "uVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return uVar2;\n      }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))))) (} "}"))) (expression_statement "uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2);" (assignment_expression "uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2)" (identifier "uVar4") (= "=") (call_expression "is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2)" (identifier "is_word_mbchar") (argument_list "(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),\n                           param_2)" (( "(") (binary_expression "**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c)" (pointer_expression "**(int **)(*(int *)puVar1 + 0x10)" (* "*") (pointer_expression "*(int **)(*(int *)puVar1 + 0x10)" (* "*") (cast_expression "(int **)(*(int *)puVar1 + 0x10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)puVar1 + 0x10)" (( "(") (binary_expression "*(int *)puVar1 + 0x10" (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (+ "+") (number_literal "0x10")) () ")"))))) (+ "+") (pointer_expression "*(int *)(*(int *)puVar1 + 0x1c)" (* "*") (cast_expression "(int *)(*(int *)puVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)puVar1 + 0x1c)" (( "(") (binary_expression "*(int *)puVar1 + 0x1c" (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (+ "+") (number_literal "0x1c")) () ")"))))) (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0))" (( "(") (binary_expression "(uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0)" (parenthesized_expression "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar4 = uVar8, uVar8 == 0)" (( "(") (comma_expression "uVar4 = uVar8, uVar8 == 0" (assignment_expression "uVar4 = uVar8" (identifier "uVar4") (= "=") (identifier "uVar8")) (, ",") (binary_expression "uVar8 == 0" (identifier "uVar8") (== "==") (number_literal "0"))) () ")"))) () ")")) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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)))))) 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))))))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (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)))))) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))) (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)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (pointer_expression argument: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))) (identifier)))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))))

uint MASKED(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  uint uVar2;
  undefined4 uVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  uint uVar7;
  uint uVar8;
  
  uVar2 = is_word_mbchar(**(int **)(*(int *)PTR_openfile_0007c6e8 + 0x10) +
                         *(int *)(*(int *)PTR_openfile_0007c6e8 + 0x1c));
  puVar1 = PTR_openfile_0007c6e8;
  uVar7 = (uVar2 ^ 1) & 0xff;
  uVar4 = uVar2;
  do {
    while( true ) {
      uVar8 = uVar4;
      iVar6 = *(int *)puVar1;
      if (*(char *)(**(int **)(iVar6 + 0x10) + *(int *)(iVar6 + 0x1c)) == '\0') {
        iVar5 = (*(int **)(iVar6 + 0x10))[2];
        uVar7 = 1;
        if (iVar5 == 0) {
          return uVar2;
        }
        *(int *)(iVar6 + 0x10) = iVar5;
        *(undefined4 *)(iVar6 + 0x1c) = 0;
      }
      else {
        uVar3 = move_mbright();
        *(undefined4 *)(iVar6 + 0x1c) = uVar3;
      }
      uVar4 = uVar8;
      if (param_1 != 0) break;
      iVar6 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),
                             param_2);
      if (iVar6 == 0) {
        uVar7 = 1;
      }
      else if (uVar7 != 0) {
        return uVar2;
      }
    }
    uVar4 = is_word_mbchar(**(int **)(*(int *)puVar1 + 0x10) + *(int *)(*(int *)puVar1 + 0x1c),
                           param_2);
  } while ((uVar4 != 0) || (uVar4 = uVar8, uVar8 == 0));
  return uVar2;
}

