
size_t indent_length(char *line)

{
  long lVar1;
  _Bool _Var2;
  wchar_t wVar3;
  size_t sVar4;
  long in_FS_OFFSET;
  char onechar [6];
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  if (*line == '\0') {
    sVar4 = 0;
  }
  else {
    sVar4 = 0;
    do {
      wVar3 = parse_mbchar(line,onechar,(size_t *)0x0);
      _Var2 = is_blank_mbchar(onechar);
      if (!_Var2) break;
      line = line + wVar3;
      sVar4 = sVar4 + (long)wVar3;
    } while (*line != '\0');
  }
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return sVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



long FUN_00121437(char *param_1)

{
  char cVar1;
  int iVar2;
  long lVar3;
  long in_FS_OFFSET;
  undefined1 local_36 [6];
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  if (*param_1 == '\0') {
    lVar3 = 0;
  }
  else {
    lVar3 = 0;
    do {
      iVar2 = FUN_00107814(param_1,local_36,0);
      cVar1 = FUN_001075e9(local_36);
      if (cVar1 == '\0') break;
      param_1 = param_1 + iVar2;
      lVar3 = lVar3 + iVar2;
    } while (*param_1 != '\0');
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return lVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x8],RAX
XOR EAX,EAX
CMP byte ptr [RDI],0x0
JZ 0x001214af
MOV RBP,RDI
MOV R12D,0x0
LEA R13,[RSP + 0x2]
MOV EDX,0x0
MOV RSI,R13
MOV RDI,RBP
CALL 0x00107814
MOV EBX,EAX
MOV RDI,R13
CALL 0x001075e9
TEST AL,AL
JZ 0x00121491
MOVSXD RAX,EBX
ADD RBP,RAX
ADD R12,RAX
CMP byte ptr [RBP],0x0
JNZ 0x00121464
MOV RAX,R12
MOV RCX,qword ptr [RSP + 0x8]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x001214b7
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
MOV R12D,0x0
JMP 0x00121491
CALL 0x00105340
(translation_unit "long FUN_00121437(char *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 local_36 [6];\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == '\0') {\n    lVar3 = 0;\n  }\n  else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "long FUN_00121437(char *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 local_36 [6];\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == '\0') {\n    lVar3 = 0;\n  }\n  else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00121437(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  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 local_36 [6];\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == '\0') {\n    lVar3 = 0;\n  }\n  else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_36 [6];" type_identifier (array_declarator "local_36 [6]" identifier [ number_literal ]) ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*param_1 == '\0') {\n    lVar3 = 0;\n  }\n  else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }" if (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    lVar3 = 0;\n  }" { (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }" else (compound_statement "{\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }" { (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');" do (compound_statement "{\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    }" { (expression_statement "iVar2 = FUN_00107814(param_1,local_36,0);" (assignment_expression "iVar2 = FUN_00107814(param_1,local_36,0)" identifier = (call_expression "FUN_00107814(param_1,local_36,0)" identifier (argument_list "(param_1,local_36,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "cVar1 = FUN_001075e9(local_36);" (assignment_expression "cVar1 = FUN_001075e9(local_36)" identifier = (call_expression "FUN_001075e9(local_36)" identifier (argument_list "(local_36)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "param_1 = param_1 + iVar2;" (assignment_expression "param_1 = param_1 + iVar2" identifier = (binary_expression "param_1 + iVar2" identifier + identifier)) ;) (expression_statement "lVar3 = lVar3 + iVar2;" (assignment_expression "lVar3 = lVar3 + iVar2" identifier = (binary_expression "lVar3 + iVar2" identifier + identifier)) ;) }) while (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) }))) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar3;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return lVar3;\n  }" { (return_statement "return lVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "size_t indent_length(char *line)\n\n{\n  long lVar1;\n  _Bool _Var2;\n  wchar_t wVar3;\n  size_t sVar4;\n  long in_FS_OFFSET;\n  char onechar [6];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*line == '\0') {\n    sVar4 = 0;\n  }\n  else {\n    sVar4 = 0;\n    do {\n      wVar3 = parse_mbchar(line,onechar,(size_t *)0x0);\n      _Var2 = is_blank_mbchar(onechar);\n      if (!_Var2) break;\n      line = line + wVar3;\n      sVar4 = sVar4 + (long)wVar3;\n    } while (*line != '\0');\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return sVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "size_t indent_length(char *line)\n\n{\n  long lVar1;\n  _Bool _Var2;\n  wchar_t wVar3;\n  size_t sVar4;\n  long in_FS_OFFSET;\n  char onechar [6];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*line == '\0') {\n    sVar4 = 0;\n  }\n  else {\n    sVar4 = 0;\n    do {\n      wVar3 = parse_mbchar(line,onechar,(size_t *)0x0);\n      _Var2 = is_blank_mbchar(onechar);\n      if (!_Var2) break;\n      line = line + wVar3;\n      sVar4 = sVar4 + (long)wVar3;\n    } while (*line != '\0');\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return sVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "indent_length(char *line)" identifier (parameter_list "(char *line)" ( (parameter_declaration "char *line" primitive_type (pointer_declarator "*line" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  _Bool _Var2;\n  wchar_t wVar3;\n  size_t sVar4;\n  long in_FS_OFFSET;\n  char onechar [6];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*line == '\0') {\n    sVar4 = 0;\n  }\n  else {\n    sVar4 = 0;\n    do {\n      wVar3 = parse_mbchar(line,onechar,(size_t *)0x0);\n      _Var2 = is_blank_mbchar(onechar);\n      if (!_Var2) break;\n      line = line + wVar3;\n      sVar4 = sVar4 + (long)wVar3;\n    } while (*line != '\0');\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return sVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (declaration "wchar_t wVar3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "char onechar [6];" primitive_type (array_declarator "onechar [6]" identifier [ number_literal ]) ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*line == '\0') {\n    sVar4 = 0;\n  }\n  else {\n    sVar4 = 0;\n    do {\n      wVar3 = parse_mbchar(line,onechar,(size_t *)0x0);\n      _Var2 = is_blank_mbchar(onechar);\n      if (!_Var2) break;\n      line = line + wVar3;\n      sVar4 = sVar4 + (long)wVar3;\n    } while (*line != '\0');\n  }" if (parenthesized_expression "(*line == '\0')" ( (binary_expression "*line == '\0'" (pointer_expression "*line" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sVar4 = 0;\n  }" { (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    sVar4 = 0;\n    do {\n      wVar3 = parse_mbchar(line,onechar,(size_t *)0x0);\n      _Var2 = is_blank_mbchar(onechar);\n      if (!_Var2) break;\n      line = line + wVar3;\n      sVar4 = sVar4 + (long)wVar3;\n    } while (*line != '\0');\n  }" else (compound_statement "{\n    sVar4 = 0;\n    do {\n      wVar3 = parse_mbchar(line,onechar,(size_t *)0x0);\n      _Var2 = is_blank_mbchar(onechar);\n      if (!_Var2) break;\n      line = line + wVar3;\n      sVar4 = sVar4 + (long)wVar3;\n    } while (*line != '\0');\n  }" { (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      wVar3 = parse_mbchar(line,onechar,(size_t *)0x0);\n      _Var2 = is_blank_mbchar(onechar);\n      if (!_Var2) break;\n      line = line + wVar3;\n      sVar4 = sVar4 + (long)wVar3;\n    } while (*line != '\0');" do (compound_statement "{\n      wVar3 = parse_mbchar(line,onechar,(size_t *)0x0);\n      _Var2 = is_blank_mbchar(onechar);\n      if (!_Var2) break;\n      line = line + wVar3;\n      sVar4 = sVar4 + (long)wVar3;\n    }" { (expression_statement "wVar3 = parse_mbchar(line,onechar,(size_t *)0x0);" (assignment_expression "wVar3 = parse_mbchar(line,onechar,(size_t *)0x0)" identifier = (call_expression "parse_mbchar(line,onechar,(size_t *)0x0)" identifier (argument_list "(line,onechar,(size_t *)0x0)" ( identifier , identifier , (cast_expression "(size_t *)0x0" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "_Var2 = is_blank_mbchar(onechar);" (assignment_expression "_Var2 = is_blank_mbchar(onechar)" identifier = (call_expression "is_blank_mbchar(onechar)" identifier (argument_list "(onechar)" ( identifier )))) ;) (if_statement "if (!_Var2) break;" if (parenthesized_expression "(!_Var2)" ( (unary_expression "!_Var2" ! identifier) )) (break_statement "break;" break ;)) (expression_statement "line = line + wVar3;" (assignment_expression "line = line + wVar3" identifier = (binary_expression "line + wVar3" identifier + identifier)) ;) (expression_statement "sVar4 = sVar4 + (long)wVar3;" (assignment_expression "sVar4 = sVar4 + (long)wVar3" identifier = (binary_expression "sVar4 + (long)wVar3" identifier + (cast_expression "(long)wVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) }) while (parenthesized_expression "(*line != '\0')" ( (binary_expression "*line != '\0'" (pointer_expression "*line" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) }))) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return sVar4;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return sVar4;\n  }" { (return_statement "return sVar4;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "long FUN_00121437(char *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 local_36 [6];\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == '\0') {\n    lVar3 = 0;\n  }\n  else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar3;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "long FUN_00121437(char *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 local_36 [6];\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == '\0') {\n    lVar3 = 0;\n  }\n  else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar3;\n  }\n                    \n  __stack_chk_fail();\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00121437(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  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 local_36 [6];\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == '\0') {\n    lVar3 = 0;\n  }\n  else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar3;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_36 [6];" type_identifier (array_declarator "local_36 [6]" identifier [ number_literal ]) ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*param_1 == '\0') {\n    lVar3 = 0;\n  }\n  else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }" if (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    lVar3 = 0;\n  }" { (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }" else (compound_statement "{\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }" { (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');" do (compound_statement "{\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    }" { (expression_statement "iVar2 = FUN_00107814(param_1,local_36,0);" (assignment_expression "iVar2 = FUN_00107814(param_1,local_36,0)" identifier = (call_expression "FUN_00107814(param_1,local_36,0)" identifier (argument_list "(param_1,local_36,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "cVar1 = FUN_001075e9(local_36);" (assignment_expression "cVar1 = FUN_001075e9(local_36)" identifier = (call_expression "FUN_001075e9(local_36)" identifier (argument_list "(local_36)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') break;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "param_1 = param_1 + iVar2;" (assignment_expression "param_1 = param_1 + iVar2" identifier = (binary_expression "param_1 + iVar2" identifier + identifier)) ;) (expression_statement "lVar3 = lVar3 + iVar2;" (assignment_expression "lVar3 = lVar3 + iVar2" identifier = (binary_expression "lVar3 + iVar2" identifier + identifier)) ;) }) while (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) }))) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar3;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return lVar3;\n  }" { (return_statement "return lVar3;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_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 { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "long FUN_00121437(char *param_1)\n\n{\n  char cVar1;\n  int iVar2;\n  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 local_36 [6];\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == '\0') {\n    lVar3 = 0;\n  }\n  else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar3;\n  }\n                    \n  __stack_chk_fail();\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00121437(char *param_1)" (identifier "FUN_00121437") (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  long lVar3;\n  long in_FS_OFFSET;\n  undefined1 local_36 [6];\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == '\0') {\n    lVar3 = 0;\n  }\n  else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar3;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 local_36 [6];" (type_identifier "undefined1") (array_declarator "local_36 [6]" (identifier "local_36") ([ "[") (number_literal "6") (] "]")) (; ";")) (declaration "long local_30;" (sized_type_specifier "long" (long "long")) (identifier "local_30") (; ";")) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (*param_1 == '\0') {\n    lVar3 = 0;\n  }\n  else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }" (if "if") (parenthesized_expression "(*param_1 == '\0')" (( "(") (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    lVar3 = 0;\n  }" ({ "{") (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" (identifier "lVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }" (else "else") (compound_statement "{\n    lVar3 = 0;\n    do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');\n  }" ({ "{") (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" (identifier "lVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    } while (*param_1 != '\0');" (do "do") (compound_statement "{\n      iVar2 = FUN_00107814(param_1,local_36,0);\n      cVar1 = FUN_001075e9(local_36);\n      if (cVar1 == '\0') break;\n      param_1 = param_1 + iVar2;\n      lVar3 = lVar3 + iVar2;\n    }" ({ "{") (expression_statement "iVar2 = FUN_00107814(param_1,local_36,0);" (assignment_expression "iVar2 = FUN_00107814(param_1,local_36,0)" (identifier "iVar2") (= "=") (call_expression "FUN_00107814(param_1,local_36,0)" (identifier "FUN_00107814") (argument_list "(param_1,local_36,0)" (( "(") (identifier "param_1") (, ",") (identifier "local_36") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "cVar1 = FUN_001075e9(local_36);" (assignment_expression "cVar1 = FUN_001075e9(local_36)" (identifier "cVar1") (= "=") (call_expression "FUN_001075e9(local_36)" (identifier "FUN_001075e9") (argument_list "(local_36)" (( "(") (identifier "local_36") () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') break;" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (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"))) (; ";")) (expression_statement "lVar3 = lVar3 + iVar2;" (assignment_expression "lVar3 = lVar3 + iVar2" (identifier "lVar3") (= "=") (binary_expression "lVar3 + iVar2" (identifier "lVar3") (+ "+") (identifier "iVar2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*param_1 != '\0')" (( "(") (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (} "}")))) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar3;\n  }" (if "if") (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return lVar3;\n  }" ({ "{") (return_statement "return lVar3;" (return "return") (identifier "lVar3") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

size_t function_1(char *var_4)

{
  long var_7;
  type_1 _Var2;
  type_2 var_5;
  size_t var_6;
  long var_1;
  char onechar [6];
  
  var_7 = *(long *)(var_1 + 0x28);
  if (*var_4 == '\0') {
    var_6 = 0;
  }
  else {
    var_6 = 0;
    do {
      var_5 = var_2(var_4,onechar,(size_t *)0x0);
      _Var2 = var_3(onechar);
      if (!_Var2) break;
      var_4 = var_4 + var_5;
      var_6 = var_6 + (long)var_5;
    } while (*var_4 != '\0');
  }
  if (var_7 == *(long *)(var_1 + 0x28)) {
    return var_6;
  }
                    /* WARNING: Subroutine does not return */
  var_8();
}


(translation_unit (function_definition type: (sized_type_specifier) 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: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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 (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

long MASKED(char *param_1)

{
  char cVar1;
  int iVar2;
  long lVar3;
  long in_FS_OFFSET;
  undefined1 local_36 [6];
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  if (*param_1 == '\0') {
    lVar3 = 0;
  }
  else {
    lVar3 = 0;
    do {
      iVar2 = FUN_00107814(param_1,local_36,0);
      cVar1 = FUN_001075e9(local_36);
      if (cVar1 == '\0') break;
      param_1 = param_1 + iVar2;
      lVar3 = lVar3 + iVar2;
    } while (*param_1 != '\0');
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return lVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

