
int _rl_adjust_point(char *string,int point,mbstate_t *ps)

{
  undefined *puVar1;
  uint uVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  
  uVar2 = (*(code *)PTR_strlen_00146390)();
  puVar1 = PTR__rl_utf8locale_00145ff8;
  if (uVar2 < (uint)point) {
    iVar5 = -1;
  }
  else {
    if (point < 1) {
      iVar5 = 0;
    }
    else {
      iVar5 = 0;
      do {
        pcVar3 = string + iVar5;
        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {
          if (ps == (mbstate_t *)0x0) {
            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);
            if (1 < iVar4 + 2U) goto LAB_0010ff1c;
            iVar5 = iVar5 + 1;
          }
          else {
            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);
            if (iVar4 + 2U < 2) {
              iVar5 = iVar5 + 1;
              *(undefined1 *)&ps->__count = 0;
              *(undefined1 *)((int)&ps->__count + 1) = 0;
              *(undefined1 *)((int)&ps->__count + 2) = 0;
              *(undefined1 *)((int)&ps->__count + 3) = 0;
              (ps->__value).__wchb[0] = '\0';
              (ps->__value).__wchb[1] = '\0';
              (ps->__value).__wchb[2] = '\0';
              (ps->__value).__wchb[3] = '\0';
            }
            else {
LAB_0010ff1c:
              if (iVar4 != 0) goto LAB_0010feb4;
              iVar5 = iVar5 + 1;
            }
          }
        }
        else {
          iVar4 = 1;
LAB_0010feb4:
          iVar5 = iVar5 + iVar4;
        }
      } while (iVar5 < point);
    }
    iVar5 = iVar5 - point;
  }
  return iVar5;
}



int _rl_adjust_point(int param_1,uint param_2,undefined1 *param_3)

{
  undefined *puVar1;
  uint uVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  
  uVar2 = (*(code *)PTR_strlen_00146390)();
  puVar1 = PTR__rl_utf8locale_00145ff8;
  if (uVar2 < param_2) {
    iVar5 = -1;
  }
  else {
    if ((int)param_2 < 1) {
      iVar5 = 0;
    }
    else {
      iVar5 = 0;
      do {
        pcVar3 = (char *)(param_1 + iVar5);
        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {
          if (param_3 == (undefined1 *)0x0) {
            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);
            if (1 < iVar4 + 2U) goto LAB_0010ff1c;
            iVar5 = iVar5 + 1;
          }
          else {
            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);
            if (iVar4 + 2U < 2) {
              iVar5 = iVar5 + 1;
              *param_3 = 0;
              param_3[1] = 0;
              param_3[2] = 0;
              param_3[3] = 0;
              param_3[4] = 0;
              param_3[5] = 0;
              param_3[6] = 0;
              param_3[7] = 0;
            }
            else {
LAB_0010ff1c:
              if (iVar4 != 0) goto LAB_0010feb4;
              iVar5 = iVar5 + 1;
            }
          }
        }
        else {
          iVar4 = 1;
LAB_0010feb4:
          iVar5 = iVar5 + iVar4;
        }
      } while (iVar5 < (int)param_2);
    }
    iVar5 = iVar5 - param_2;
  }
  return iVar5;
}


lui gp,0x4
addiu gp,gp,-0x38f8
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x61b0(gp)
sw gp,0x10(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
or s3,a0,zero
sw s2,0x24(sp)
or s2,a1,zero
sw s1,0x20(sp)
or s1,a2,zero
sw ra,0x34(sp)
sw s5,0x30(sp)
jalr t9
_sw s0,0x1c(sp)
or s4,v0,zero
sltu v0,v0,s2
bne v0,zero,0x0010ff84
_lw gp,0x10(sp)
blez s2,0x0010ff7c
_lw s5,-0x6548(gp)
or s0,zero,zero
lw v1,0x0(s5)
beq v1,zero,0x0010feec
_addu v0,s3,s0
lb v1,0x0(v0)
bltz v1,0x0010feec
_nop
li v0,0x1
addu s0,s0,v0
slt v0,s0,s2
bne v0,zero,0x0010fe98
_nop
subu v0,s0,s2
lw ra,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,0x38
beq s1,zero,0x0010ff54
_subu a1,s4,s0
lw t9,-0x6138(gp)
or a0,zero,zero
or a2,a1,zero
or a3,s1,zero
jalr t9
_or a1,v0,zero
addiu v1,v0,0x2
sltiu v1,v1,0x2
bne v1,zero,0x0010ff2c
_lw gp,0x10(sp)
bne v0,zero,0x0010feb4
_nop
b 0x0010feb8
_addiu s0,s0,0x1
addiu s0,s0,0x1
sb zero,0x0(s1)
sb zero,0x1(s1)
sb zero,0x2(s1)
sb zero,0x3(s1)
sb zero,0x4(s1)
sb zero,0x5(s1)
sb zero,0x6(s1)
b 0x0010feb8
_sb zero,0x7(s1)
lw t9,-0x6230(gp)
or a2,zero,zero
jalr t9
_or a0,v0,zero
addiu v1,v0,0x2
sltiu v1,v1,0x2
beq v1,zero,0x0010ff1c
_lw gp,0x10(sp)
b 0x0010feb8
_addiu s0,s0,0x1
b 0x0010fec4
_or s0,zero,zero
b 0x0010fec8
_li v0,-0x1
(translation_unit "int _rl_adjust_point(int param_1,uint param_2,undefined1 *param_3)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  \n  uVar2 = (*(code *)PTR_strlen_00146390)();\n  puVar1 = PTR__rl_utf8locale_00145ff8;\n  if (uVar2 < param_2) {\n    iVar5 = -1;\n  }\n  else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }\n  return iVar5;\n}\n\n" (function_definition "int _rl_adjust_point(int param_1,uint param_2,undefined1 *param_3)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  \n  uVar2 = (*(code *)PTR_strlen_00146390)();\n  puVar1 = PTR__rl_utf8locale_00145ff8;\n  if (uVar2 < param_2) {\n    iVar5 = -1;\n  }\n  else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }\n  return iVar5;\n}" primitive_type (function_declarator "_rl_adjust_point(int param_1,uint param_2,undefined1 *param_3)" identifier (parameter_list "(int param_1,uint param_2,undefined1 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  \n  uVar2 = (*(code *)PTR_strlen_00146390)();\n  puVar1 = PTR__rl_utf8locale_00145ff8;\n  if (uVar2 < param_2) {\n    iVar5 = -1;\n  }\n  else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }\n  return iVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "uVar2 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "uVar2 = (*(code *)PTR_strlen_00146390)()" identifier = (call_expression "(*(code *)PTR_strlen_00146390)()" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar1 = PTR__rl_utf8locale_00145ff8;" (assignment_expression "puVar1 = PTR__rl_utf8locale_00145ff8" identifier = identifier) ;) (if_statement "if (uVar2 < param_2) {\n    iVar5 = -1;\n  }\n  else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }" if (parenthesized_expression "(uVar2 < param_2)" ( (binary_expression "uVar2 < param_2" identifier < identifier) )) (compound_statement "{\n    iVar5 = -1;\n  }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }" else (compound_statement "{\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }" { (if_statement "if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }" if (parenthesized_expression "((int)param_2 < 1)" ( (binary_expression "(int)param_2 < 1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      iVar5 = 0;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }" else (compound_statement "{\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);" do (compound_statement "{\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      }" { (expression_statement "pcVar3 = (char *)(param_1 + iVar5);" (assignment_expression "pcVar3 = (char *)(param_1 + iVar5)" identifier = (cast_expression "(char *)(param_1 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5)" ( (binary_expression "param_1 + iVar5" identifier + identifier) )))) ;) (if_statement "if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }" if (parenthesized_expression "((*(int *)puVar1 == 0) || (*pcVar3 < '\0'))" ( (binary_expression "(*(int *)puVar1 == 0) || (*pcVar3 < '\0')" (parenthesized_expression "(*(int *)puVar1 == 0)" ( (binary_expression "*(int *)puVar1 == 0" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) || (parenthesized_expression "(*pcVar3 < '\0')" ( (binary_expression "*pcVar3 < '\0'" (pointer_expression "*pcVar3" * identifier) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }" { (if_statement "if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }" if (parenthesized_expression "(param_3 == (undefined1 *)0x0)" ( (binary_expression "param_3 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }" { (expression_statement "iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);" (assignment_expression "iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0)" identifier = (call_expression "(*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0)" (parenthesized_expression "(*(code *)PTR___mbrlen_00146310)" ( (pointer_expression "*(code *)PTR___mbrlen_00146310" * (cast_expression "(code *)PTR___mbrlen_00146310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3,uVar2 - iVar5,0)" ( identifier , (binary_expression "uVar2 - iVar5" identifier - identifier) , number_literal )))) ;) (if_statement "if (1 < iVar4 + 2U) goto LAB_0010ff1c;" if (parenthesized_expression "(1 < iVar4 + 2U)" ( (binary_expression "1 < iVar4 + 2U" number_literal < (binary_expression "iVar4 + 2U" identifier + number_literal)) )) (goto_statement "goto LAB_0010ff1c;" goto statement_identifier ;)) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }" else (compound_statement "{\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }" { (expression_statement "iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);" (assignment_expression "iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3)" identifier = (call_expression "(*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3)" (parenthesized_expression "(*(code *)PTR_mbrtowc_00146408)" ( (pointer_expression "*(code *)PTR_mbrtowc_00146408" * (cast_expression "(code *)PTR_mbrtowc_00146408" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,pcVar3,uVar2 - iVar5,param_3)" ( number_literal , identifier , (binary_expression "uVar2 - iVar5" identifier - identifier) , identifier )))) ;) (if_statement "if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }" if (parenthesized_expression "(iVar4 + 2U < 2)" ( (binary_expression "iVar4 + 2U < 2" (binary_expression "iVar4 + 2U" identifier + number_literal) < number_literal) )) (compound_statement "{\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }" { (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[3] = 0;" (assignment_expression "param_3[3] = 0" (subscript_expression "param_3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[4] = 0;" (assignment_expression "param_3[4] = 0" (subscript_expression "param_3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[6] = 0;" (assignment_expression "param_3[6] = 0" (subscript_expression "param_3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[7] = 0;" (assignment_expression "param_3[7] = 0" (subscript_expression "param_3[7]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }" else (compound_statement "{\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }" { (labeled_statement "LAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;" statement_identifier : (if_statement "if (iVar4 != 0) goto LAB_0010feb4;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0010feb4;" goto statement_identifier ;))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }))) }))) }) (else_clause "else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }" else (compound_statement "{\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0010feb4:\n          iVar5 = iVar5 + iVar4;" statement_identifier : (expression_statement "iVar5 = iVar5 + iVar4;" (assignment_expression "iVar5 = iVar5 + iVar4" identifier = (binary_expression "iVar5 + iVar4" identifier + identifier)) ;)) }))) }) while (parenthesized_expression "(iVar5 < (int)param_2)" ( (binary_expression "iVar5 < (int)param_2" identifier < (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) }))) (expression_statement "iVar5 = iVar5 - param_2;" (assignment_expression "iVar5 = iVar5 - param_2" identifier = (binary_expression "iVar5 - param_2" identifier - identifier)) ;) }))) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "int _rl_adjust_point(char *string,int point,mbstate_t *ps)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  \n  uVar2 = (*(code *)PTR_strlen_00146390)();\n  puVar1 = PTR__rl_utf8locale_00145ff8;\n  if (uVar2 < (uint)point) {\n    iVar5 = -1;\n  }\n  else {\n    if (point < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = string + iVar5;\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < point);\n    }\n    iVar5 = iVar5 - point;\n  }\n  return iVar5;\n}\n\n" (function_definition "int _rl_adjust_point(char *string,int point,mbstate_t *ps)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  \n  uVar2 = (*(code *)PTR_strlen_00146390)();\n  puVar1 = PTR__rl_utf8locale_00145ff8;\n  if (uVar2 < (uint)point) {\n    iVar5 = -1;\n  }\n  else {\n    if (point < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = string + iVar5;\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < point);\n    }\n    iVar5 = iVar5 - point;\n  }\n  return iVar5;\n}" primitive_type (function_declarator "_rl_adjust_point(char *string,int point,mbstate_t *ps)" identifier (parameter_list "(char *string,int point,mbstate_t *ps)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "int point" primitive_type identifier) , (parameter_declaration "mbstate_t *ps" type_identifier (pointer_declarator "*ps" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  \n  uVar2 = (*(code *)PTR_strlen_00146390)();\n  puVar1 = PTR__rl_utf8locale_00145ff8;\n  if (uVar2 < (uint)point) {\n    iVar5 = -1;\n  }\n  else {\n    if (point < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = string + iVar5;\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < point);\n    }\n    iVar5 = iVar5 - point;\n  }\n  return iVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "uVar2 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "uVar2 = (*(code *)PTR_strlen_00146390)()" identifier = (call_expression "(*(code *)PTR_strlen_00146390)()" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar1 = PTR__rl_utf8locale_00145ff8;" (assignment_expression "puVar1 = PTR__rl_utf8locale_00145ff8" identifier = identifier) ;) (if_statement "if (uVar2 < (uint)point) {\n    iVar5 = -1;\n  }\n  else {\n    if (point < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = string + iVar5;\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < point);\n    }\n    iVar5 = iVar5 - point;\n  }" if (parenthesized_expression "(uVar2 < (uint)point)" ( (binary_expression "uVar2 < (uint)point" identifier < (cast_expression "(uint)point" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n    iVar5 = -1;\n  }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    if (point < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = string + iVar5;\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < point);\n    }\n    iVar5 = iVar5 - point;\n  }" else (compound_statement "{\n    if (point < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = string + iVar5;\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < point);\n    }\n    iVar5 = iVar5 - point;\n  }" { (if_statement "if (point < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = string + iVar5;\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < point);\n    }" if (parenthesized_expression "(point < 1)" ( (binary_expression "point < 1" identifier < number_literal) )) (compound_statement "{\n      iVar5 = 0;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar5 = 0;\n      do {\n        pcVar3 = string + iVar5;\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < point);\n    }" else (compound_statement "{\n      iVar5 = 0;\n      do {\n        pcVar3 = string + iVar5;\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < point);\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        pcVar3 = string + iVar5;\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < point);" do (compound_statement "{\n        pcVar3 = string + iVar5;\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      }" { (expression_statement "pcVar3 = string + iVar5;" (assignment_expression "pcVar3 = string + iVar5" identifier = (binary_expression "string + iVar5" identifier + identifier)) ;) (if_statement "if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }" if (parenthesized_expression "((*(int *)puVar1 == 0) || (*pcVar3 < '\0'))" ( (binary_expression "(*(int *)puVar1 == 0) || (*pcVar3 < '\0')" (parenthesized_expression "(*(int *)puVar1 == 0)" ( (binary_expression "*(int *)puVar1 == 0" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) || (parenthesized_expression "(*pcVar3 < '\0')" ( (binary_expression "*pcVar3 < '\0'" (pointer_expression "*pcVar3" * identifier) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n          if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }" { (if_statement "if (ps == (mbstate_t *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }" if (parenthesized_expression "(ps == (mbstate_t *)0x0)" ( (binary_expression "ps == (mbstate_t *)0x0" identifier == (cast_expression "(mbstate_t *)0x0" ( (type_descriptor "mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }" { (expression_statement "iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);" (assignment_expression "iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0)" identifier = (call_expression "(*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0)" (parenthesized_expression "(*(code *)PTR___mbrlen_00146310)" ( (pointer_expression "*(code *)PTR___mbrlen_00146310" * (cast_expression "(code *)PTR___mbrlen_00146310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3,uVar2 - iVar5,0)" ( identifier , (binary_expression "uVar2 - iVar5" identifier - identifier) , number_literal )))) ;) (if_statement "if (1 < iVar4 + 2U) goto LAB_0010ff1c;" if (parenthesized_expression "(1 < iVar4 + 2U)" ( (binary_expression "1 < iVar4 + 2U" number_literal < (binary_expression "iVar4 + 2U" identifier + number_literal)) )) (goto_statement "goto LAB_0010ff1c;" goto statement_identifier ;)) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }" else (compound_statement "{\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }" { (expression_statement "iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps);" (assignment_expression "iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps)" identifier = (call_expression "(*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,ps)" (parenthesized_expression "(*(code *)PTR_mbrtowc_00146408)" ( (pointer_expression "*(code *)PTR_mbrtowc_00146408" * (cast_expression "(code *)PTR_mbrtowc_00146408" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,pcVar3,uVar2 - iVar5,ps)" ( number_literal , identifier , (binary_expression "uVar2 - iVar5" identifier - identifier) , identifier )))) ;) (if_statement "if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }" if (parenthesized_expression "(iVar4 + 2U < 2)" ( (binary_expression "iVar4 + 2U < 2" (binary_expression "iVar4 + 2U" identifier + number_literal) < number_literal) )) (compound_statement "{\n              iVar5 = iVar5 + 1;\n              *(undefined1 *)&ps->__count = 0;\n              *(undefined1 *)((int)&ps->__count + 1) = 0;\n              *(undefined1 *)((int)&ps->__count + 2) = 0;\n              *(undefined1 *)((int)&ps->__count + 3) = 0;\n              (ps->__value).__wchb[0] = '\0';\n              (ps->__value).__wchb[1] = '\0';\n              (ps->__value).__wchb[2] = '\0';\n              (ps->__value).__wchb[3] = '\0';\n            }" { (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)&ps->__count = 0;" (assignment_expression "*(undefined1 *)&ps->__count = 0" (pointer_expression "*(undefined1 *)&ps->__count" * (cast_expression "(undefined1 *)&ps->__count" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ps->__count" & (field_expression "ps->__count" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)&ps->__count + 1) = 0;" (assignment_expression "*(undefined1 *)((int)&ps->__count + 1) = 0" (pointer_expression "*(undefined1 *)((int)&ps->__count + 1)" * (cast_expression "(undefined1 *)((int)&ps->__count + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ps->__count + 1)" ( (binary_expression "(int)&ps->__count + 1" (cast_expression "(int)&ps->__count" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ps->__count" & (field_expression "ps->__count" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)&ps->__count + 2) = 0;" (assignment_expression "*(undefined1 *)((int)&ps->__count + 2) = 0" (pointer_expression "*(undefined1 *)((int)&ps->__count + 2)" * (cast_expression "(undefined1 *)((int)&ps->__count + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ps->__count + 2)" ( (binary_expression "(int)&ps->__count + 2" (cast_expression "(int)&ps->__count" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ps->__count" & (field_expression "ps->__count" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)&ps->__count + 3) = 0;" (assignment_expression "*(undefined1 *)((int)&ps->__count + 3) = 0" (pointer_expression "*(undefined1 *)((int)&ps->__count + 3)" * (cast_expression "(undefined1 *)((int)&ps->__count + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ps->__count + 3)" ( (binary_expression "(int)&ps->__count + 3" (cast_expression "(int)&ps->__count" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ps->__count" & (field_expression "ps->__count" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "(ps->__value).__wchb[0] = '\0';" (assignment_expression "(ps->__value).__wchb[0] = '\0'" (subscript_expression "(ps->__value).__wchb[0]" (field_expression "(ps->__value).__wchb" (parenthesized_expression "(ps->__value)" ( (field_expression "ps->__value" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(ps->__value).__wchb[1] = '\0';" (assignment_expression "(ps->__value).__wchb[1] = '\0'" (subscript_expression "(ps->__value).__wchb[1]" (field_expression "(ps->__value).__wchb" (parenthesized_expression "(ps->__value)" ( (field_expression "ps->__value" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(ps->__value).__wchb[2] = '\0';" (assignment_expression "(ps->__value).__wchb[2] = '\0'" (subscript_expression "(ps->__value).__wchb[2]" (field_expression "(ps->__value).__wchb" (parenthesized_expression "(ps->__value)" ( (field_expression "ps->__value" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(ps->__value).__wchb[3] = '\0';" (assignment_expression "(ps->__value).__wchb[3] = '\0'" (subscript_expression "(ps->__value).__wchb[3]" (field_expression "(ps->__value).__wchb" (parenthesized_expression "(ps->__value)" ( (field_expression "ps->__value" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }" else (compound_statement "{\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }" { (labeled_statement "LAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;" statement_identifier : (if_statement "if (iVar4 != 0) goto LAB_0010feb4;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0010feb4;" goto statement_identifier ;))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }))) }))) }) (else_clause "else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }" else (compound_statement "{\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0010feb4:\n          iVar5 = iVar5 + iVar4;" statement_identifier : (expression_statement "iVar5 = iVar5 + iVar4;" (assignment_expression "iVar5 = iVar5 + iVar4" identifier = (binary_expression "iVar5 + iVar4" identifier + identifier)) ;)) }))) }) while (parenthesized_expression "(iVar5 < point)" ( (binary_expression "iVar5 < point" identifier < identifier) )) ;) }))) (expression_statement "iVar5 = iVar5 - point;" (assignment_expression "iVar5 = iVar5 - point" identifier = (binary_expression "iVar5 - point" identifier - identifier)) ;) }))) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "int _rl_adjust_point(int param_1,uint param_2,undefined1 *param_3)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  \n  uVar2 = (*(code *)PTR_strlen_00146390)();\n  puVar1 = PTR__rl_utf8locale_00145ff8;\n  if (uVar2 < param_2) {\n    iVar5 = -1;\n  }\n  else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }\n  return iVar5;\n}\n\n" (function_definition "int _rl_adjust_point(int param_1,uint param_2,undefined1 *param_3)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  \n  uVar2 = (*(code *)PTR_strlen_00146390)();\n  puVar1 = PTR__rl_utf8locale_00145ff8;\n  if (uVar2 < param_2) {\n    iVar5 = -1;\n  }\n  else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }\n  return iVar5;\n}" primitive_type (function_declarator "_rl_adjust_point(int param_1,uint param_2,undefined1 *param_3)" identifier (parameter_list "(int param_1,uint param_2,undefined1 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  \n  uVar2 = (*(code *)PTR_strlen_00146390)();\n  puVar1 = PTR__rl_utf8locale_00145ff8;\n  if (uVar2 < param_2) {\n    iVar5 = -1;\n  }\n  else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }\n  return iVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "uVar2 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "uVar2 = (*(code *)PTR_strlen_00146390)()" identifier = (call_expression "(*(code *)PTR_strlen_00146390)()" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar1 = PTR__rl_utf8locale_00145ff8;" (assignment_expression "puVar1 = PTR__rl_utf8locale_00145ff8" identifier = identifier) ;) (if_statement "if (uVar2 < param_2) {\n    iVar5 = -1;\n  }\n  else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }" if (parenthesized_expression "(uVar2 < param_2)" ( (binary_expression "uVar2 < param_2" identifier < identifier) )) (compound_statement "{\n    iVar5 = -1;\n  }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }" else (compound_statement "{\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }" { (if_statement "if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }" if (parenthesized_expression "((int)param_2 < 1)" ( (binary_expression "(int)param_2 < 1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      iVar5 = 0;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }" else (compound_statement "{\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);" do (compound_statement "{\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      }" { (expression_statement "pcVar3 = (char *)(param_1 + iVar5);" (assignment_expression "pcVar3 = (char *)(param_1 + iVar5)" identifier = (cast_expression "(char *)(param_1 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5)" ( (binary_expression "param_1 + iVar5" identifier + identifier) )))) ;) (if_statement "if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }" if (parenthesized_expression "((*(int *)puVar1 == 0) || (*pcVar3 < '\0'))" ( (binary_expression "(*(int *)puVar1 == 0) || (*pcVar3 < '\0')" (parenthesized_expression "(*(int *)puVar1 == 0)" ( (binary_expression "*(int *)puVar1 == 0" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) || (parenthesized_expression "(*pcVar3 < '\0')" ( (binary_expression "*pcVar3 < '\0'" (pointer_expression "*pcVar3" * identifier) < (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }" { (if_statement "if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }" if (parenthesized_expression "(param_3 == (undefined1 *)0x0)" ( (binary_expression "param_3 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }" { (expression_statement "iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);" (assignment_expression "iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0)" identifier = (call_expression "(*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0)" (parenthesized_expression "(*(code *)PTR___mbrlen_00146310)" ( (pointer_expression "*(code *)PTR___mbrlen_00146310" * (cast_expression "(code *)PTR___mbrlen_00146310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3,uVar2 - iVar5,0)" ( identifier , (binary_expression "uVar2 - iVar5" identifier - identifier) , number_literal )))) ;) (if_statement "if (1 < iVar4 + 2U) goto LAB_0010ff1c;" if (parenthesized_expression "(1 < iVar4 + 2U)" ( (binary_expression "1 < iVar4 + 2U" number_literal < (binary_expression "iVar4 + 2U" identifier + number_literal)) )) (goto_statement "goto LAB_0010ff1c;" goto statement_identifier ;)) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }" else (compound_statement "{\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }" { (expression_statement "iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);" (assignment_expression "iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3)" identifier = (call_expression "(*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3)" (parenthesized_expression "(*(code *)PTR_mbrtowc_00146408)" ( (pointer_expression "*(code *)PTR_mbrtowc_00146408" * (cast_expression "(code *)PTR_mbrtowc_00146408" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,pcVar3,uVar2 - iVar5,param_3)" ( number_literal , identifier , (binary_expression "uVar2 - iVar5" identifier - identifier) , identifier )))) ;) (if_statement "if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }" if (parenthesized_expression "(iVar4 + 2U < 2)" ( (binary_expression "iVar4 + 2U < 2" (binary_expression "iVar4 + 2U" identifier + number_literal) < number_literal) )) (compound_statement "{\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }" { (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[3] = 0;" (assignment_expression "param_3[3] = 0" (subscript_expression "param_3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[4] = 0;" (assignment_expression "param_3[4] = 0" (subscript_expression "param_3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[6] = 0;" (assignment_expression "param_3[6] = 0" (subscript_expression "param_3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3[7] = 0;" (assignment_expression "param_3[7] = 0" (subscript_expression "param_3[7]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }" else (compound_statement "{\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }" { (labeled_statement "LAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;" statement_identifier : (if_statement "if (iVar4 != 0) goto LAB_0010feb4;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0010feb4;" goto statement_identifier ;))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }))) }))) }) (else_clause "else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }" else (compound_statement "{\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0010feb4:\n          iVar5 = iVar5 + iVar4;" statement_identifier : (expression_statement "iVar5 = iVar5 + iVar4;" (assignment_expression "iVar5 = iVar5 + iVar4" identifier = (binary_expression "iVar5 + iVar4" identifier + identifier)) ;)) }))) }) while (parenthesized_expression "(iVar5 < (int)param_2)" ( (binary_expression "iVar5 < (int)param_2" identifier < (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) }))) (expression_statement "iVar5 = iVar5 - param_2;" (assignment_expression "iVar5 = iVar5 - param_2" identifier = (binary_expression "iVar5 - param_2" identifier - identifier)) ;) }))) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (char_literal ' escape_sequence ')) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT - IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , (binary_expression IDENT - IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;)) }))) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int _rl_adjust_point(int param_1,uint param_2,undefined1 *param_3)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  \n  uVar2 = (*(code *)PTR_strlen_00146390)();\n  puVar1 = PTR__rl_utf8locale_00145ff8;\n  if (uVar2 < param_2) {\n    iVar5 = -1;\n  }\n  else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }\n  return iVar5;\n}" (primitive_type "int") (function_declarator "_rl_adjust_point(int param_1,uint param_2,undefined1 *param_3)" (identifier "_rl_adjust_point") (parameter_list "(int param_1,uint param_2,undefined1 *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined1 *param_3" (type_identifier "undefined1") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  \n  uVar2 = (*(code *)PTR_strlen_00146390)();\n  puVar1 = PTR__rl_utf8locale_00145ff8;\n  if (uVar2 < param_2) {\n    iVar5 = -1;\n  }\n  else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }\n  return iVar5;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "uVar2 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "uVar2 = (*(code *)PTR_strlen_00146390)()" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)()" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar1 = PTR__rl_utf8locale_00145ff8;" (assignment_expression "puVar1 = PTR__rl_utf8locale_00145ff8" (identifier "puVar1") (= "=") (identifier "PTR__rl_utf8locale_00145ff8")) (; ";")) (if_statement "if (uVar2 < param_2) {\n    iVar5 = -1;\n  }\n  else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }" (if "if") (parenthesized_expression "(uVar2 < param_2)" (( "(") (binary_expression "uVar2 < param_2" (identifier "uVar2") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar5 = -1;\n  }" ({ "{") (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" (identifier "iVar5") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }" (else "else") (compound_statement "{\n    if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }\n    iVar5 = iVar5 - param_2;\n  }" ({ "{") (if_statement "if ((int)param_2 < 1) {\n      iVar5 = 0;\n    }\n    else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }" (if "if") (parenthesized_expression "((int)param_2 < 1)" (( "(") (binary_expression "(int)param_2 < 1" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      iVar5 = 0;\n    }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }" (else "else") (compound_statement "{\n      iVar5 = 0;\n      do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);\n    }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      } while (iVar5 < (int)param_2);" (do "do") (compound_statement "{\n        pcVar3 = (char *)(param_1 + iVar5);\n        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }\n      }" ({ "{") (expression_statement "pcVar3 = (char *)(param_1 + iVar5);" (assignment_expression "pcVar3 = (char *)(param_1 + iVar5)" (identifier "pcVar3") (= "=") (cast_expression "(char *)(param_1 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar5)" (( "(") (binary_expression "param_1 + iVar5" (identifier "param_1") (+ "+") (identifier "iVar5")) () ")")))) (; ";")) (if_statement "if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }\n        else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }" (if "if") (parenthesized_expression "((*(int *)puVar1 == 0) || (*pcVar3 < '\0'))" (( "(") (binary_expression "(*(int *)puVar1 == 0) || (*pcVar3 < '\0')" (parenthesized_expression "(*(int *)puVar1 == 0)" (( "(") (binary_expression "*(int *)puVar1 == 0" (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*pcVar3 < '\0')" (( "(") (binary_expression "*pcVar3 < '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n          if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }\n        }" ({ "{") (if_statement "if (param_3 == (undefined1 *)0x0) {\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }\n          else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }" (if "if") (parenthesized_expression "(param_3 == (undefined1 *)0x0)" (( "(") (binary_expression "param_3 == (undefined1 *)0x0" (identifier "param_3") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);\n            if (1 < iVar4 + 2U) goto LAB_0010ff1c;\n            iVar5 = iVar5 + 1;\n          }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);" (assignment_expression "iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0)" (parenthesized_expression "(*(code *)PTR___mbrlen_00146310)" (( "(") (pointer_expression "*(code *)PTR___mbrlen_00146310" (* "*") (cast_expression "(code *)PTR___mbrlen_00146310" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___mbrlen_00146310"))) () ")")) (argument_list "(pcVar3,uVar2 - iVar5,0)" (( "(") (identifier "pcVar3") (, ",") (binary_expression "uVar2 - iVar5" (identifier "uVar2") (- "-") (identifier "iVar5")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (1 < iVar4 + 2U) goto LAB_0010ff1c;" (if "if") (parenthesized_expression "(1 < iVar4 + 2U)" (( "(") (binary_expression "1 < iVar4 + 2U" (number_literal "1") (< "<") (binary_expression "iVar4 + 2U" (identifier "iVar4") (+ "+") (number_literal "2U"))) () ")")) (goto_statement "goto LAB_0010ff1c;" (goto "goto") (statement_identifier "LAB_0010ff1c") (; ";"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }" (else "else") (compound_statement "{\n            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);\n            if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }\n          }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);" (assignment_expression "iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3)" (parenthesized_expression "(*(code *)PTR_mbrtowc_00146408)" (( "(") (pointer_expression "*(code *)PTR_mbrtowc_00146408" (* "*") (cast_expression "(code *)PTR_mbrtowc_00146408" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_mbrtowc_00146408"))) () ")")) (argument_list "(0,pcVar3,uVar2 - iVar5,param_3)" (( "(") (number_literal "0") (, ",") (identifier "pcVar3") (, ",") (binary_expression "uVar2 - iVar5" (identifier "uVar2") (- "-") (identifier "iVar5")) (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar4 + 2U < 2) {\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }\n            else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }" (if "if") (parenthesized_expression "(iVar4 + 2U < 2)" (( "(") (binary_expression "iVar4 + 2U < 2" (binary_expression "iVar4 + 2U" (identifier "iVar4") (+ "+") (number_literal "2U")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n              iVar5 = iVar5 + 1;\n              *param_3 = 0;\n              param_3[1] = 0;\n              param_3[2] = 0;\n              param_3[3] = 0;\n              param_3[4] = 0;\n              param_3[5] = 0;\n              param_3[6] = 0;\n              param_3[7] = 0;\n            }" ({ "{") (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[2] = 0;" (assignment_expression "param_3[2] = 0" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[3] = 0;" (assignment_expression "param_3[3] = 0" (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[4] = 0;" (assignment_expression "param_3[4] = 0" (subscript_expression "param_3[4]" (identifier "param_3") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[5] = 0;" (assignment_expression "param_3[5] = 0" (subscript_expression "param_3[5]" (identifier "param_3") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[6] = 0;" (assignment_expression "param_3[6] = 0" (subscript_expression "param_3[6]" (identifier "param_3") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3[7] = 0;" (assignment_expression "param_3[7] = 0" (subscript_expression "param_3[7]" (identifier "param_3") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }" (else "else") (compound_statement "{\nLAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;\n              iVar5 = iVar5 + 1;\n            }" ({ "{") (labeled_statement "LAB_0010ff1c:\n              if (iVar4 != 0) goto LAB_0010feb4;" (statement_identifier "LAB_0010ff1c") (: ":") (if_statement "if (iVar4 != 0) goto LAB_0010feb4;" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0010feb4;" (goto "goto") (statement_identifier "LAB_0010feb4") (; ";")))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (} "}")))) (} "}")) (else_clause "else {\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }" (else "else") (compound_statement "{\n          iVar4 = 1;\nLAB_0010feb4:\n          iVar5 = iVar5 + iVar4;\n        }" ({ "{") (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_0010feb4:\n          iVar5 = iVar5 + iVar4;" (statement_identifier "LAB_0010feb4") (: ":") (expression_statement "iVar5 = iVar5 + iVar4;" (assignment_expression "iVar5 = iVar5 + iVar4" (identifier "iVar5") (= "=") (binary_expression "iVar5 + iVar4" (identifier "iVar5") (+ "+") (identifier "iVar4"))) (; ";"))) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(iVar5 < (int)param_2)" (( "(") (binary_expression "iVar5 < (int)param_2" (identifier "iVar5") (< "<") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")")) (; ";")) (} "}")))) (expression_statement "iVar5 = iVar5 - param_2;" (assignment_expression "iVar5 = iVar5 - param_2" (identifier "iVar5") (= "=") (binary_expression "iVar5 - param_2" (identifier "iVar5") (- "-") (identifier "param_2"))) (; ";")) (} "}")))) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (identifier) (binary_expression left: (identifier) right: (identifier)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))) (return_statement (identifier)))))

int MASKED(int param_1,uint param_2,undefined1 *param_3)

{
  undefined *puVar1;
  uint uVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  
  uVar2 = (*(code *)PTR_strlen_00146390)();
  puVar1 = PTR__rl_utf8locale_00145ff8;
  if (uVar2 < param_2) {
    iVar5 = -1;
  }
  else {
    if ((int)param_2 < 1) {
      iVar5 = 0;
    }
    else {
      iVar5 = 0;
      do {
        pcVar3 = (char *)(param_1 + iVar5);
        if ((*(int *)puVar1 == 0) || (*pcVar3 < '\0')) {
          if (param_3 == (undefined1 *)0x0) {
            iVar4 = (*(code *)PTR___mbrlen_00146310)(pcVar3,uVar2 - iVar5,0);
            if (1 < iVar4 + 2U) goto LAB_0010ff1c;
            iVar5 = iVar5 + 1;
          }
          else {
            iVar4 = (*(code *)PTR_mbrtowc_00146408)(0,pcVar3,uVar2 - iVar5,param_3);
            if (iVar4 + 2U < 2) {
              iVar5 = iVar5 + 1;
              *param_3 = 0;
              param_3[1] = 0;
              param_3[2] = 0;
              param_3[3] = 0;
              param_3[4] = 0;
              param_3[5] = 0;
              param_3[6] = 0;
              param_3[7] = 0;
            }
            else {
LAB_0010ff1c:
              if (iVar4 != 0) goto LAB_0010feb4;
              iVar5 = iVar5 + 1;
            }
          }
        }
        else {
          iVar4 = 1;
LAB_0010feb4:
          iVar5 = iVar5 + iVar4;
        }
      } while (iVar5 < (int)param_2);
    }
    iVar5 = iVar5 - param_2;
  }
  return iVar5;
}

