
size_t unicode_strlen(char *string)

{
  size_t sVar1;
  
  sVar1 = bb_mbstowcs((wchar_t *)0x0,string,0x7fffffff);
  if (sVar1 == 0xffffffffffffffff) {
    sVar1 = strlen(string);
  }
  return sVar1;
}



void FUN_001a581e(char *param_1)

{
  long lVar1;
  
  lVar1 = FUN_001a5526(0,param_1,0x7fffffff);
  if (lVar1 == -1) {
    strlen(param_1);
  }
  return;
}


PUSH RBX
MOV RBX,RDI
MOV EDX,0x7fffffff
MOV RSI,RDI
MOV EDI,0x0
CALL 0x001a5526
CMP RAX,-0x1
JNZ 0x001a5842
MOV RDI,RBX
CALL 0x0010b4c0
POP RBX
RET
(translation_unit "void FUN_001a581e(char *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001a5526(0,param_1,0x7fffffff);\n  if (lVar1 == -1) {\n    strlen(param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_001a581e(char *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001a5526(0,param_1,0x7fffffff);\n  if (lVar1 == -1) {\n    strlen(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001a581e(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_001a5526(0,param_1,0x7fffffff);\n  if (lVar1 == -1) {\n    strlen(param_1);\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_001a5526(0,param_1,0x7fffffff);" (assignment_expression "lVar1 = FUN_001a5526(0,param_1,0x7fffffff)" identifier = (call_expression "FUN_001a5526(0,param_1,0x7fffffff)" identifier (argument_list "(0,param_1,0x7fffffff)" ( number_literal , identifier , number_literal )))) ;) (if_statement "if (lVar1 == -1) {\n    strlen(param_1);\n  }" if (parenthesized_expression "(lVar1 == -1)" ( (binary_expression "lVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    strlen(param_1);\n  }" { (expression_statement "strlen(param_1);" (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "size_t unicode_strlen(char *string)\n\n{\n  size_t sVar1;\n  \n  sVar1 = bb_mbstowcs((wchar_t *)0x0,string,0x7fffffff);\n  if (sVar1 == 0xffffffffffffffff) {\n    sVar1 = strlen(string);\n  }\n  return sVar1;\n}\n\n" (function_definition "size_t unicode_strlen(char *string)\n\n{\n  size_t sVar1;\n  \n  sVar1 = bb_mbstowcs((wchar_t *)0x0,string,0x7fffffff);\n  if (sVar1 == 0xffffffffffffffff) {\n    sVar1 = strlen(string);\n  }\n  return sVar1;\n}" primitive_type (function_declarator "unicode_strlen(char *string)" identifier (parameter_list "(char *string)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = bb_mbstowcs((wchar_t *)0x0,string,0x7fffffff);\n  if (sVar1 == 0xffffffffffffffff) {\n    sVar1 = strlen(string);\n  }\n  return sVar1;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = bb_mbstowcs((wchar_t *)0x0,string,0x7fffffff);" (assignment_expression "sVar1 = bb_mbstowcs((wchar_t *)0x0,string,0x7fffffff)" identifier = (call_expression "bb_mbstowcs((wchar_t *)0x0,string,0x7fffffff)" identifier (argument_list "((wchar_t *)0x0,string,0x7fffffff)" ( (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , number_literal )))) ;) (if_statement "if (sVar1 == 0xffffffffffffffff) {\n    sVar1 = strlen(string);\n  }" if (parenthesized_expression "(sVar1 == 0xffffffffffffffff)" ( (binary_expression "sVar1 == 0xffffffffffffffff" identifier == number_literal) )) (compound_statement "{\n    sVar1 = strlen(string);\n  }" { (expression_statement "sVar1 = strlen(string);" (assignment_expression "sVar1 = strlen(string)" identifier = (call_expression "strlen(string)" identifier (argument_list "(string)" ( identifier )))) ;) })) (return_statement "return sVar1;" return identifier ;) })))
(translation_unit "void FUN_001a581e(char *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001a5526(0,param_1,0x7fffffff);\n  if (lVar1 == -1) {\n    strlen(param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_001a581e(char *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001a5526(0,param_1,0x7fffffff);\n  if (lVar1 == -1) {\n    strlen(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001a581e(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_001a5526(0,param_1,0x7fffffff);\n  if (lVar1 == -1) {\n    strlen(param_1);\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_001a5526(0,param_1,0x7fffffff);" (assignment_expression "lVar1 = FUN_001a5526(0,param_1,0x7fffffff)" identifier = (call_expression "FUN_001a5526(0,param_1,0x7fffffff)" identifier (argument_list "(0,param_1,0x7fffffff)" ( number_literal , identifier , number_literal )))) ;) (if_statement "if (lVar1 == -1) {\n    strlen(param_1);\n  }" if (parenthesized_expression "(lVar1 == -1)" ( (binary_expression "lVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    strlen(param_1);\n  }" { (expression_statement "strlen(param_1);" (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_001a581e(char *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001a5526(0,param_1,0x7fffffff);\n  if (lVar1 == -1) {\n    strlen(param_1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001a581e(char *param_1)" (identifier "FUN_001a581e") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_001a5526(0,param_1,0x7fffffff);\n  if (lVar1 == -1) {\n    strlen(param_1);\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = FUN_001a5526(0,param_1,0x7fffffff);" (assignment_expression "lVar1 = FUN_001a5526(0,param_1,0x7fffffff)" (identifier "lVar1") (= "=") (call_expression "FUN_001a5526(0,param_1,0x7fffffff)" (identifier "FUN_001a5526") (argument_list "(0,param_1,0x7fffffff)" (( "(") (number_literal "0") (, ",") (identifier "param_1") (, ",") (number_literal "0x7fffffff") () ")")))) (; ";")) (if_statement "if (lVar1 == -1) {\n    strlen(param_1);\n  }" (if "if") (parenthesized_expression "(lVar1 == -1)" (( "(") (binary_expression "lVar1 == -1" (identifier "lVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    strlen(param_1);\n  }" ({ "{") (expression_statement "strlen(param_1);" (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

size_t function_1(char *string)

{
  size_t var_2;
  
  var_2 = var_1((type_1 *)0x0,string,0x7fffffff);
  if (var_2 == 0xffffffffffffffff) {
    var_2 = var_3(string);
  }
  return var_2;
}


(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: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement))))

void MASKED(char *param_1)

{
  long lVar1;
  
  lVar1 = FUN_001a5526(0,param_1,0x7fffffff);
  if (lVar1 == -1) {
    strlen(param_1);
  }
  return;
}

