
size_t host_strcspn(char *s,char *set)

{
  char *pcVar1;
  size_t sVar2;
  
  pcVar1 = host_strchr_internal(s,set,1);
  if (pcVar1 == (char *)0x0) {
    sVar2 = (*(code *)PTR_strlen_000be01c)(s);
  }
  else {
    sVar2 = (int)pcVar1 - (int)s;
  }
  return sVar2;
}



int host_strcspn(int param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = FUN_00036940(param_1,param_2,1);
  if (iVar1 == 0) {
    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);
  }
  else {
    iVar1 = iVar1 - param_1;
  }
  return iVar1;
}


lui gp,0x9
addiu gp,gp,-0x1ac0
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
li a2,0x1
lw t9,-0x7d7c(gp)
addiu t9,t9,0x6940
bal 0x00036940
_nop
lw gp,0x10(sp)
beq v0,zero,0x00036ce4
_or a0,s0,zero
subu v0,v0,s0
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x71b4(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00036cd8
_lw ra,0x1c(sp)
(translation_unit "int host_strcspn(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00036940(param_1,param_2,1);\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }\n  else {\n    iVar1 = iVar1 - param_1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int host_strcspn(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00036940(param_1,param_2,1);\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }\n  else {\n    iVar1 = iVar1 - param_1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "host_strcspn(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00036940(param_1,param_2,1);\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }\n  else {\n    iVar1 = iVar1 - param_1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00036940(param_1,param_2,1);" (assignment_expression "iVar1 = FUN_00036940(param_1,param_2,1)" identifier = (call_expression "FUN_00036940(param_1,param_2,1)" identifier (argument_list "(param_1,param_2,1)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }\n  else {\n    iVar1 = iVar1 - param_1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000be01c)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_000be01c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_000be01c)" ( (pointer_expression "*(code *)PTR_strlen_000be01c" * (cast_expression "(code *)PTR_strlen_000be01c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) }) (else_clause "else {\n    iVar1 = iVar1 - param_1;\n  }" else (compound_statement "{\n    iVar1 = iVar1 - param_1;\n  }" { (expression_statement "iVar1 = iVar1 - param_1;" (assignment_expression "iVar1 = iVar1 - param_1" identifier = (binary_expression "iVar1 - param_1" identifier - identifier)) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "size_t host_strcspn(char *s,char *set)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  \n  pcVar1 = host_strchr_internal(s,set,1);\n  if (pcVar1 == (char *)0x0) {\n    sVar2 = (*(code *)PTR_strlen_000be01c)(s);\n  }\n  else {\n    sVar2 = (int)pcVar1 - (int)s;\n  }\n  return sVar2;\n}\n\n" (function_definition "size_t host_strcspn(char *s,char *set)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  \n  pcVar1 = host_strchr_internal(s,set,1);\n  if (pcVar1 == (char *)0x0) {\n    sVar2 = (*(code *)PTR_strlen_000be01c)(s);\n  }\n  else {\n    sVar2 = (int)pcVar1 - (int)s;\n  }\n  return sVar2;\n}" primitive_type (function_declarator "host_strcspn(char *s,char *set)" identifier (parameter_list "(char *s,char *set)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "char *set" primitive_type (pointer_declarator "*set" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  \n  pcVar1 = host_strchr_internal(s,set,1);\n  if (pcVar1 == (char *)0x0) {\n    sVar2 = (*(code *)PTR_strlen_000be01c)(s);\n  }\n  else {\n    sVar2 = (int)pcVar1 - (int)s;\n  }\n  return sVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (expression_statement "pcVar1 = host_strchr_internal(s,set,1);" (assignment_expression "pcVar1 = host_strchr_internal(s,set,1)" identifier = (call_expression "host_strchr_internal(s,set,1)" identifier (argument_list "(s,set,1)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    sVar2 = (*(code *)PTR_strlen_000be01c)(s);\n  }\n  else {\n    sVar2 = (int)pcVar1 - (int)s;\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = (*(code *)PTR_strlen_000be01c)(s);\n  }" { (expression_statement "sVar2 = (*(code *)PTR_strlen_000be01c)(s);" (assignment_expression "sVar2 = (*(code *)PTR_strlen_000be01c)(s)" identifier = (call_expression "(*(code *)PTR_strlen_000be01c)(s)" (parenthesized_expression "(*(code *)PTR_strlen_000be01c)" ( (pointer_expression "*(code *)PTR_strlen_000be01c" * (cast_expression "(code *)PTR_strlen_000be01c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s)" ( identifier )))) ;) }) (else_clause "else {\n    sVar2 = (int)pcVar1 - (int)s;\n  }" else (compound_statement "{\n    sVar2 = (int)pcVar1 - (int)s;\n  }" { (expression_statement "sVar2 = (int)pcVar1 - (int)s;" (assignment_expression "sVar2 = (int)pcVar1 - (int)s" identifier = (binary_expression "(int)pcVar1 - (int)s" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)s" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (return_statement "return sVar2;" return identifier ;) })))
(translation_unit "int host_strcspn(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00036940(param_1,param_2,1);\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }\n  else {\n    iVar1 = iVar1 - param_1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int host_strcspn(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00036940(param_1,param_2,1);\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }\n  else {\n    iVar1 = iVar1 - param_1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "host_strcspn(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00036940(param_1,param_2,1);\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }\n  else {\n    iVar1 = iVar1 - param_1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00036940(param_1,param_2,1);" (assignment_expression "iVar1 = FUN_00036940(param_1,param_2,1)" identifier = (call_expression "FUN_00036940(param_1,param_2,1)" identifier (argument_list "(param_1,param_2,1)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }\n  else {\n    iVar1 = iVar1 - param_1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000be01c)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_000be01c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_000be01c)" ( (pointer_expression "*(code *)PTR_strlen_000be01c" * (cast_expression "(code *)PTR_strlen_000be01c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) }) (else_clause "else {\n    iVar1 = iVar1 - param_1;\n  }" else (compound_statement "{\n    iVar1 = iVar1 - param_1;\n  }" { (expression_statement "iVar1 = iVar1 - param_1;" (assignment_expression "iVar1 = iVar1 - param_1" identifier = (binary_expression "iVar1 - param_1" identifier - identifier)) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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 )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int host_strcspn(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00036940(param_1,param_2,1);\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }\n  else {\n    iVar1 = iVar1 - param_1;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "host_strcspn(int param_1,undefined4 param_2)" (identifier "host_strcspn") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00036940(param_1,param_2,1);\n  if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }\n  else {\n    iVar1 = iVar1 - param_1;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00036940(param_1,param_2,1);" (assignment_expression "iVar1 = FUN_00036940(param_1,param_2,1)" (identifier "iVar1") (= "=") (call_expression "FUN_00036940(param_1,param_2,1)" (identifier "FUN_00036940") (argument_list "(param_1,param_2,1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }\n  else {\n    iVar1 = iVar1 - param_1;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_000be01c)(param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_000be01c)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_000be01c)" (( "(") (pointer_expression "*(code *)PTR_strlen_000be01c" (* "*") (cast_expression "(code *)PTR_strlen_000be01c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000be01c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = iVar1 - param_1;\n  }" (else "else") (compound_statement "{\n    iVar1 = iVar1 - param_1;\n  }" ({ "{") (expression_statement "iVar1 = iVar1 - param_1;" (assignment_expression "iVar1 = iVar1 - param_1" (identifier "iVar1") (= "=") (binary_expression "iVar1 - param_1" (identifier "iVar1") (- "-") (identifier "param_1"))) (; ";")) (} "}")))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))
(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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (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)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))) (return_statement (identifier)))))

int MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = FUN_00036940(param_1,param_2,1);
  if (iVar1 == 0) {
    iVar1 = (*(code *)PTR_strlen_000be01c)(param_1);
  }
  else {
    iVar1 = iVar1 - param_1;
  }
  return iVar1;
}

