
size_t mbstrlen(char *s)

{
  char cVar1;
  int iVar2;
  size_t sVar3;
  
  if (use_utf8) {
    cVar1 = *s;
    if (cVar1 == '\0') {
      sVar3 = 0;
    }
    else {
      sVar3 = 0;
      do {
        if (cVar1 < '\0') {
          iVar2 = mblen(s,6);
          if (iVar2 < 0) {
            iVar2 = 1;
          }
          s = s + iVar2;
        }
        else {
          s = s + 1;
        }
        sVar3 = sVar3 + 1;
        cVar1 = *s;
      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));
    }
  }
  else {
    sVar3 = strnlen(s,0xffffffffffffffff);
  }
  return sVar3;
}



size_t FUN_00107cc2(char *param_1)

{
  char cVar1;
  int iVar2;
  size_t sVar3;
  
  if (DAT_0013b9f8 == '\0') {
    sVar3 = strnlen(param_1,0xffffffffffffffff);
  }
  else {
    cVar1 = *param_1;
    if (cVar1 == '\0') {
      sVar3 = 0;
    }
    else {
      sVar3 = 0;
      do {
        if (cVar1 < '\0') {
          iVar2 = mblen(param_1,6);
          if (iVar2 < 0) {
            iVar2 = 1;
          }
          param_1 = param_1 + iVar2;
        }
        else {
          param_1 = param_1 + 1;
        }
        sVar3 = sVar3 + 1;
        cVar1 = *param_1;
      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));
    }
  }
  return sVar3;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
CMP byte ptr [0x0013b9f8],0x0
JZ 0x00107d19
MOVZX EAX,byte ptr [RDI]
TEST AL,AL
JZ 0x00107d30
MOV EBP,0x0
MOV R12D,0x1
JMP 0x00107cfb
ADD RBX,0x1
ADD RBP,0x1
MOVZX EAX,byte ptr [RBX]
CMP RBP,-0x1
JZ 0x00107d28
TEST AL,AL
JZ 0x00107d28
TEST AL,AL
JNS 0x00107ce6
MOV ESI,0x6
MOV RDI,RBX
CALL 0x00105140
TEST EAX,EAX
CMOVS EAX,R12D
CDQE
ADD RBX,RAX
JMP 0x00107cea
MOV RSI,-0x1
CALL 0x00105420
MOV RBP,RAX
MOV RAX,RBP
POP RBX
POP RBP
POP R12
RET
MOV EBP,0x0
JMP 0x00107d28
(translation_unit "size_t FUN_00107cc2(char *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  size_t sVar3;\n  \n  if (DAT_0013b9f8 == '\0') {\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }\n  else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }\n  return sVar3;\n}\n\n" (function_definition "size_t FUN_00107cc2(char *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  size_t sVar3;\n  \n  if (DAT_0013b9f8 == '\0') {\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }\n  else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }\n  return sVar3;\n}" primitive_type (function_declarator "FUN_00107cc2(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  size_t sVar3;\n  \n  if (DAT_0013b9f8 == '\0') {\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }\n  else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }\n  return sVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (if_statement "if (DAT_0013b9f8 == '\0') {\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }\n  else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }" if (parenthesized_expression "(DAT_0013b9f8 == '\0')" ( (binary_expression "DAT_0013b9f8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }" { (expression_statement "sVar3 = strnlen(param_1,0xffffffffffffffff);" (assignment_expression "sVar3 = strnlen(param_1,0xffffffffffffffff)" identifier = (call_expression "strnlen(param_1,0xffffffffffffffff)" identifier (argument_list "(param_1,0xffffffffffffffff)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }" else (compound_statement "{\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      sVar3 = 0;\n    }" { (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }" else (compound_statement "{\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }" { (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));" do (compound_statement "{\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      }" { (if_statement "if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }" if (parenthesized_expression "(cVar1 < '\0')" ( (binary_expression "cVar1 < '\0'" identifier < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }" { (expression_statement "iVar2 = mblen(param_1,6);" (assignment_expression "iVar2 = mblen(param_1,6)" identifier = (call_expression "mblen(param_1,6)" identifier (argument_list "(param_1,6)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n            iVar2 = 1;\n          }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n            iVar2 = 1;\n          }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) })) (expression_statement "param_1 = param_1 + iVar2;" (assignment_expression "param_1 = param_1 + iVar2" identifier = (binary_expression "param_1 + iVar2" identifier + identifier)) ;) }) (else_clause "else {\n          param_1 = param_1 + 1;\n        }" else (compound_statement "{\n          param_1 = param_1 + 1;\n        }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }))) (expression_statement "sVar3 = sVar3 + 1;" (assignment_expression "sVar3 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'))" ( (binary_expression "(sVar3 != 0xffffffffffffffff) && (cVar1 != '\0')" (parenthesized_expression "(sVar3 != 0xffffffffffffffff)" ( (binary_expression "sVar3 != 0xffffffffffffffff" identifier != number_literal) )) && (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) ;) }))) }))) (return_statement "return sVar3;" return identifier ;) })))
(translation_unit "size_t mbstrlen(char *s)\n\n{\n  char cVar1;\n  int iVar2;\n  size_t sVar3;\n  \n  if (use_utf8) {\n    cVar1 = *s;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(s,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          s = s + iVar2;\n        }\n        else {\n          s = s + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *s;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }\n  else {\n    sVar3 = strnlen(s,0xffffffffffffffff);\n  }\n  return sVar3;\n}\n\n" (function_definition "size_t mbstrlen(char *s)\n\n{\n  char cVar1;\n  int iVar2;\n  size_t sVar3;\n  \n  if (use_utf8) {\n    cVar1 = *s;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(s,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          s = s + iVar2;\n        }\n        else {\n          s = s + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *s;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }\n  else {\n    sVar3 = strnlen(s,0xffffffffffffffff);\n  }\n  return sVar3;\n}" primitive_type (function_declarator "mbstrlen(char *s)" identifier (parameter_list "(char *s)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  size_t sVar3;\n  \n  if (use_utf8) {\n    cVar1 = *s;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(s,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          s = s + iVar2;\n        }\n        else {\n          s = s + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *s;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }\n  else {\n    sVar3 = strnlen(s,0xffffffffffffffff);\n  }\n  return sVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (if_statement "if (use_utf8) {\n    cVar1 = *s;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(s,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          s = s + iVar2;\n        }\n        else {\n          s = s + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *s;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }\n  else {\n    sVar3 = strnlen(s,0xffffffffffffffff);\n  }" if (parenthesized_expression "(use_utf8)" ( identifier )) (compound_statement "{\n    cVar1 = *s;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(s,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          s = s + iVar2;\n        }\n        else {\n          s = s + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *s;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }" { (expression_statement "cVar1 = *s;" (assignment_expression "cVar1 = *s" identifier = (pointer_expression "*s" * identifier)) ;) (if_statement "if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(s,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          s = s + iVar2;\n        }\n        else {\n          s = s + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *s;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      sVar3 = 0;\n    }" { (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(s,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          s = s + iVar2;\n        }\n        else {\n          s = s + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *s;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }" else (compound_statement "{\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(s,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          s = s + iVar2;\n        }\n        else {\n          s = s + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *s;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }" { (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(s,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          s = s + iVar2;\n        }\n        else {\n          s = s + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *s;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));" do (compound_statement "{\n        if (cVar1 < '\0') {\n          iVar2 = mblen(s,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          s = s + iVar2;\n        }\n        else {\n          s = s + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *s;\n      }" { (if_statement "if (cVar1 < '\0') {\n          iVar2 = mblen(s,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          s = s + iVar2;\n        }\n        else {\n          s = s + 1;\n        }" if (parenthesized_expression "(cVar1 < '\0')" ( (binary_expression "cVar1 < '\0'" identifier < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar2 = mblen(s,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          s = s + iVar2;\n        }" { (expression_statement "iVar2 = mblen(s,6);" (assignment_expression "iVar2 = mblen(s,6)" identifier = (call_expression "mblen(s,6)" identifier (argument_list "(s,6)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n            iVar2 = 1;\n          }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n            iVar2 = 1;\n          }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) })) (expression_statement "s = s + iVar2;" (assignment_expression "s = s + iVar2" identifier = (binary_expression "s + iVar2" identifier + identifier)) ;) }) (else_clause "else {\n          s = s + 1;\n        }" else (compound_statement "{\n          s = s + 1;\n        }" { (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) }))) (expression_statement "sVar3 = sVar3 + 1;" (assignment_expression "sVar3 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *s;" (assignment_expression "cVar1 = *s" identifier = (pointer_expression "*s" * identifier)) ;) }) while (parenthesized_expression "((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'))" ( (binary_expression "(sVar3 != 0xffffffffffffffff) && (cVar1 != '\0')" (parenthesized_expression "(sVar3 != 0xffffffffffffffff)" ( (binary_expression "sVar3 != 0xffffffffffffffff" identifier != number_literal) )) && (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) ;) }))) }) (else_clause "else {\n    sVar3 = strnlen(s,0xffffffffffffffff);\n  }" else (compound_statement "{\n    sVar3 = strnlen(s,0xffffffffffffffff);\n  }" { (expression_statement "sVar3 = strnlen(s,0xffffffffffffffff);" (assignment_expression "sVar3 = strnlen(s,0xffffffffffffffff)" identifier = (call_expression "strnlen(s,0xffffffffffffffff)" identifier (argument_list "(s,0xffffffffffffffff)" ( identifier , number_literal )))) ;) }))) (return_statement "return sVar3;" return identifier ;) })))
(translation_unit "size_t FUN_00107cc2(char *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  size_t sVar3;\n  \n  if (DAT_0013b9f8 == '\0') {\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }\n  else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }\n  return sVar3;\n}\n\n" (function_definition "size_t FUN_00107cc2(char *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  size_t sVar3;\n  \n  if (DAT_0013b9f8 == '\0') {\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }\n  else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }\n  return sVar3;\n}" primitive_type (function_declarator "FUN_00107cc2(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  size_t sVar3;\n  \n  if (DAT_0013b9f8 == '\0') {\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }\n  else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }\n  return sVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (if_statement "if (DAT_0013b9f8 == '\0') {\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }\n  else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }" if (parenthesized_expression "(DAT_0013b9f8 == '\0')" ( (binary_expression "DAT_0013b9f8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }" { (expression_statement "sVar3 = strnlen(param_1,0xffffffffffffffff);" (assignment_expression "sVar3 = strnlen(param_1,0xffffffffffffffff)" identifier = (call_expression "strnlen(param_1,0xffffffffffffffff)" identifier (argument_list "(param_1,0xffffffffffffffff)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }" else (compound_statement "{\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      sVar3 = 0;\n    }" { (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }" else (compound_statement "{\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }" { (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));" do (compound_statement "{\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      }" { (if_statement "if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }" if (parenthesized_expression "(cVar1 < '\0')" ( (binary_expression "cVar1 < '\0'" identifier < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }" { (expression_statement "iVar2 = mblen(param_1,6);" (assignment_expression "iVar2 = mblen(param_1,6)" identifier = (call_expression "mblen(param_1,6)" identifier (argument_list "(param_1,6)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n            iVar2 = 1;\n          }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n            iVar2 = 1;\n          }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) })) (expression_statement "param_1 = param_1 + iVar2;" (assignment_expression "param_1 = param_1 + iVar2" identifier = (binary_expression "param_1 + iVar2" identifier + identifier)) ;) }) (else_clause "else {\n          param_1 = param_1 + 1;\n        }" else (compound_statement "{\n          param_1 = param_1 + 1;\n        }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }))) (expression_statement "sVar3 = sVar3 + 1;" (assignment_expression "sVar3 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'))" ( (binary_expression "(sVar3 != 0xffffffffffffffff) && (cVar1 != '\0')" (parenthesized_expression "(sVar3 != 0xffffffffffffffff)" ( (binary_expression "sVar3 != 0xffffffffffffffff" identifier != number_literal) )) && (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) ;) }))) }))) (return_statement "return sVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) ;) }))) }))) (return_statement return IDENT ;) })))
(function_definition "size_t FUN_00107cc2(char *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  size_t sVar3;\n  \n  if (DAT_0013b9f8 == '\0') {\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }\n  else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }\n  return sVar3;\n}" (primitive_type "size_t") (function_declarator "FUN_00107cc2(char *param_1)" (identifier "FUN_00107cc2") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  size_t sVar3;\n  \n  if (DAT_0013b9f8 == '\0') {\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }\n  else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }\n  return sVar3;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (if_statement "if (DAT_0013b9f8 == '\0') {\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }\n  else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }" (if "if") (parenthesized_expression "(DAT_0013b9f8 == '\0')" (( "(") (binary_expression "DAT_0013b9f8 == '\0'" (identifier "DAT_0013b9f8") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    sVar3 = strnlen(param_1,0xffffffffffffffff);\n  }" ({ "{") (expression_statement "sVar3 = strnlen(param_1,0xffffffffffffffff);" (assignment_expression "sVar3 = strnlen(param_1,0xffffffffffffffff)" (identifier "sVar3") (= "=") (call_expression "strnlen(param_1,0xffffffffffffffff)" (identifier "strnlen") (argument_list "(param_1,0xffffffffffffffff)" (( "(") (identifier "param_1") (, ",") (number_literal "0xffffffffffffffff") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }" (else "else") (compound_statement "{\n    cVar1 = *param_1;\n    if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }\n  }" ({ "{") (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (cVar1 == '\0') {\n      sVar3 = 0;\n    }\n    else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      sVar3 = 0;\n    }" ({ "{") (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" (identifier "sVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }" (else "else") (compound_statement "{\n      sVar3 = 0;\n      do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));\n    }" ({ "{") (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" (identifier "sVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));" (do "do") (compound_statement "{\n        if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }\n        sVar3 = sVar3 + 1;\n        cVar1 = *param_1;\n      }" ({ "{") (if_statement "if (cVar1 < '\0') {\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }\n        else {\n          param_1 = param_1 + 1;\n        }" (if "if") (parenthesized_expression "(cVar1 < '\0')" (( "(") (binary_expression "cVar1 < '\0'" (identifier "cVar1") (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          iVar2 = mblen(param_1,6);\n          if (iVar2 < 0) {\n            iVar2 = 1;\n          }\n          param_1 = param_1 + iVar2;\n        }" ({ "{") (expression_statement "iVar2 = mblen(param_1,6);" (assignment_expression "iVar2 = mblen(param_1,6)" (identifier "iVar2") (= "=") (call_expression "mblen(param_1,6)" (identifier "mblen") (argument_list "(param_1,6)" (( "(") (identifier "param_1") (, ",") (number_literal "6") () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n            iVar2 = 1;\n          }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n            iVar2 = 1;\n          }" ({ "{") (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" (identifier "iVar2") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "param_1 = param_1 + iVar2;" (assignment_expression "param_1 = param_1 + iVar2" (identifier "param_1") (= "=") (binary_expression "param_1 + iVar2" (identifier "param_1") (+ "+") (identifier "iVar2"))) (; ";")) (} "}")) (else_clause "else {\n          param_1 = param_1 + 1;\n        }" (else "else") (compound_statement "{\n          param_1 = param_1 + 1;\n        }" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "sVar3 = sVar3 + 1;" (assignment_expression "sVar3 = sVar3 + 1" (identifier "sVar3") (= "=") (binary_expression "sVar3 + 1" (identifier "sVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'))" (( "(") (binary_expression "(sVar3 != 0xffffffffffffffff) && (cVar1 != '\0')" (parenthesized_expression "(sVar3 != 0xffffffffffffffff)" (( "(") (binary_expression "sVar3 != 0xffffffffffffffff" (identifier "sVar3") (!= "!=") (number_literal "0xffffffffffffffff")) () ")")) (&& "&&") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (; ";")) (} "}")))) (} "}")))) (return_statement "return sVar3;" (return "return") (identifier "sVar3") (; ";")) (} "}")))

size_t function_1(char *var_4)

{
  char var_1;
  int var_3;
  size_t var_5;
  
  if (use_utf8) {
    var_1 = *var_4;
    if (var_1 == '\0') {
      var_5 = 0;
    }
    else {
      var_5 = 0;
      do {
        if (var_1 < '\0') {
          var_3 = var_2(var_4,6);
          if (var_3 < 0) {
            var_3 = 1;
          }
          var_4 = var_4 + var_3;
        }
        else {
          var_4 = var_4 + 1;
        }
        var_5 = var_5 + 1;
        var_1 = *var_4;
      } while ((var_5 != 0xffffffffffffffff) && (var_1 != '\0'));
    }
  }
  else {
    var_5 = var_6(var_4,0xffffffffffffffff);
  }
  return var_5;
}


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

size_t MASKED(char *param_1)

{
  char cVar1;
  int iVar2;
  size_t sVar3;
  
  if (DAT_0013b9f8 == '\0') {
    sVar3 = strnlen(param_1,0xffffffffffffffff);
  }
  else {
    cVar1 = *param_1;
    if (cVar1 == '\0') {
      sVar3 = 0;
    }
    else {
      sVar3 = 0;
      do {
        if (cVar1 < '\0') {
          iVar2 = mblen(param_1,6);
          if (iVar2 < 0) {
            iVar2 = 1;
          }
          param_1 = param_1 + iVar2;
        }
        else {
          param_1 = param_1 + 1;
        }
        sVar3 = sVar3 + 1;
        cVar1 = *param_1;
      } while ((sVar3 != 0xffffffffffffffff) && (cVar1 != '\0'));
    }
  }
  return sVar3;
}

