
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

_Bool __regparm3 all_digits_p(char *s)

{
  char cVar1;
  size_t sVar2;
  uint uVar3;
  size_t n;
  char *pcVar4;
  _Bool _Var5;
  
  if ((int)*s - 0x30U < 10) {
    uVar3 = 0xffffffff;
    pcVar4 = s;
    do {
      if (uVar3 == 0) break;
      uVar3 = uVar3 - 1;
      cVar1 = *pcVar4;
      pcVar4 = pcVar4 + 1;
    } while (cVar1 != '\0');
    sVar2 = strspn(s,"0123456789");
    _Var5 = sVar2 == ~uVar3 - 1;
  }
  else {
    _Var5 = false;
  }
  return _Var5;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

bool __regparm3 FUN_000121a0(char *param_1)

{
  char cVar1;
  size_t sVar2;
  uint uVar3;
  char *pcVar4;
  bool bVar5;
  
  if ((int)*param_1 - 0x30U < 10) {
    uVar3 = 0xffffffff;
    pcVar4 = param_1;
    do {
      if (uVar3 == 0) break;
      uVar3 = uVar3 - 1;
      cVar1 = *pcVar4;
      pcVar4 = pcVar4 + 1;
    } while (cVar1 != '\0');
    sVar2 = strspn(param_1,"0123456789");
    bVar5 = sVar2 == ~uVar3 - 1;
  }
  else {
    bVar5 = false;
  }
  return bVar5;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOVSX EDX,byte ptr [EAX]
CALL 0x00012060
ADD EBX,0xce55
SUB EDX,0x30
CMP EDX,0x9
JA 0x000121e6
MOV EDX,EAX
OR ECX,0xffffffff
XOR EAX,EAX
MOV EDI,EDX
SCASB.REPNE ES:EDI
PUSH EAX
PUSH EAX
LEA EAX,[EBX + 0xffffb008]
PUSH EAX
PUSH EDX
MOV ESI,ECX
CALL 0x00011390
NOT ESI
ADD ESP,0x10
LEA ESI,[ESI + -0x1]
CMP EAX,ESI
SETZ AL
POP EBX
POP ESI
POP EDI
RET
XOR EAX,EAX
JMP 0x000121e2
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3 FUN_000121a0(char *param_1)\n\n{\n  char cVar1;\n  size_t sVar2;\n  uint uVar3;\n  char *pcVar4;\n  bool bVar5;\n  \n  if ((int)*param_1 - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    bVar5 = false;\n  }\n  return bVar5;\n}\n\n" comment (function_definition "bool __regparm3 FUN_000121a0(char *param_1)\n\n{\n  char cVar1;\n  size_t sVar2;\n  uint uVar3;\n  char *pcVar4;\n  bool bVar5;\n  \n  if ((int)*param_1 - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    bVar5 = false;\n  }\n  return bVar5;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000121a0(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  size_t sVar2;\n  uint uVar3;\n  char *pcVar4;\n  bool bVar5;\n  \n  if ((int)*param_1 - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    bVar5 = false;\n  }\n  return bVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (if_statement "if ((int)*param_1 - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    bVar5 = false;\n  }" if (parenthesized_expression "((int)*param_1 - 0x30U < 10)" ( (binary_expression "(int)*param_1 - 0x30U < 10" (binary_expression "(int)*param_1 - 0x30U" (cast_expression "(int)*param_1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_1" * identifier)) - number_literal) < number_literal) )) (compound_statement "{\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" identifier = identifier) ;) (do_statement "do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    }" { (if_statement "if (uVar3 == 0) break;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "sVar2 = strspn(param_1,"0123456789");" (assignment_expression "sVar2 = strspn(param_1,"0123456789")" identifier = (call_expression "strspn(param_1,"0123456789")" identifier (argument_list "(param_1,"0123456789")" ( identifier , (string_literal ""0123456789"" " string_content ") )))) ;) (expression_statement "bVar5 = sVar2 == ~uVar3 - 1;" (assignment_expression "bVar5 = sVar2 == ~uVar3 - 1" identifier = (binary_expression "sVar2 == ~uVar3 - 1" identifier == (binary_expression "~uVar3 - 1" (unary_expression "~uVar3" ~ identifier) - number_literal))) ;) }) (else_clause "else {\n    bVar5 = false;\n  }" else (compound_statement "{\n    bVar5 = false;\n  }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) }))) (return_statement "return bVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\n_Bool __regparm3 all_digits_p(char *s)\n\n{\n  char cVar1;\n  size_t sVar2;\n  uint uVar3;\n  size_t n;\n  char *pcVar4;\n  _Bool _Var5;\n  \n  if ((int)*s - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = s;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(s,"0123456789");\n    _Var5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    _Var5 = false;\n  }\n  return _Var5;\n}\n\n" comment (function_definition "_Bool __regparm3 all_digits_p(char *s)\n\n{\n  char cVar1;\n  size_t sVar2;\n  uint uVar3;\n  size_t n;\n  char *pcVar4;\n  _Bool _Var5;\n  \n  if ((int)*s - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = s;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(s,"0123456789");\n    _Var5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    _Var5 = false;\n  }\n  return _Var5;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "all_digits_p(char *s)" identifier (parameter_list "(char *s)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  uint uVar3;\n  size_t n;\n  char *pcVar4;\n  _Bool _Var5;\n  \n  if ((int)*s - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = s;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(s,"0123456789");\n    _Var5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    _Var5 = false;\n  }\n  return _Var5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "size_t n;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "_Bool _Var5;" type_identifier identifier ;) (if_statement "if ((int)*s - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = s;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(s,"0123456789");\n    _Var5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    _Var5 = false;\n  }" if (parenthesized_expression "((int)*s - 0x30U < 10)" ( (binary_expression "(int)*s - 0x30U < 10" (binary_expression "(int)*s - 0x30U" (cast_expression "(int)*s" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*s" * identifier)) - number_literal) < number_literal) )) (compound_statement "{\n    uVar3 = 0xffffffff;\n    pcVar4 = s;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(s,"0123456789");\n    _Var5 = sVar2 == ~uVar3 - 1;\n  }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (expression_statement "pcVar4 = s;" (assignment_expression "pcVar4 = s" identifier = identifier) ;) (do_statement "do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    }" { (if_statement "if (uVar3 == 0) break;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "sVar2 = strspn(s,"0123456789");" (assignment_expression "sVar2 = strspn(s,"0123456789")" identifier = (call_expression "strspn(s,"0123456789")" identifier (argument_list "(s,"0123456789")" ( identifier , (string_literal ""0123456789"" " string_content ") )))) ;) (expression_statement "_Var5 = sVar2 == ~uVar3 - 1;" (assignment_expression "_Var5 = sVar2 == ~uVar3 - 1" identifier = (binary_expression "sVar2 == ~uVar3 - 1" identifier == (binary_expression "~uVar3 - 1" (unary_expression "~uVar3" ~ identifier) - number_literal))) ;) }) (else_clause "else {\n    _Var5 = false;\n  }" else (compound_statement "{\n    _Var5 = false;\n  }" { (expression_statement "_Var5 = false;" (assignment_expression "_Var5 = false" identifier = false) ;) }))) (return_statement "return _Var5;" return identifier ;) })))
(translation_unit "bool __regparm3 FUN_000121a0(char *param_1)\n\n{\n  char cVar1;\n  size_t sVar2;\n  uint uVar3;\n  char *pcVar4;\n  bool bVar5;\n  \n  if ((int)*param_1 - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    bVar5 = false;\n  }\n  return bVar5;\n}\n\n" (function_definition "bool __regparm3 FUN_000121a0(char *param_1)\n\n{\n  char cVar1;\n  size_t sVar2;\n  uint uVar3;\n  char *pcVar4;\n  bool bVar5;\n  \n  if ((int)*param_1 - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    bVar5 = false;\n  }\n  return bVar5;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000121a0(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  size_t sVar2;\n  uint uVar3;\n  char *pcVar4;\n  bool bVar5;\n  \n  if ((int)*param_1 - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    bVar5 = false;\n  }\n  return bVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (if_statement "if ((int)*param_1 - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    bVar5 = false;\n  }" if (parenthesized_expression "((int)*param_1 - 0x30U < 10)" ( (binary_expression "(int)*param_1 - 0x30U < 10" (binary_expression "(int)*param_1 - 0x30U" (cast_expression "(int)*param_1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_1" * identifier)) - number_literal) < number_literal) )) (compound_statement "{\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" identifier = identifier) ;) (do_statement "do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    }" { (if_statement "if (uVar3 == 0) break;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "sVar2 = strspn(param_1,"0123456789");" (assignment_expression "sVar2 = strspn(param_1,"0123456789")" identifier = (call_expression "strspn(param_1,"0123456789")" identifier (argument_list "(param_1,"0123456789")" ( identifier , (string_literal ""0123456789"" " string_content ") )))) ;) (expression_statement "bVar5 = sVar2 == ~uVar3 - 1;" (assignment_expression "bVar5 = sVar2 == ~uVar3 - 1" identifier = (binary_expression "sVar2 == ~uVar3 - 1" identifier == (binary_expression "~uVar3 - 1" (unary_expression "~uVar3" ~ identifier) - number_literal))) ;) }) (else_clause "else {\n    bVar5 = false;\n  }" else (compound_statement "{\n    bVar5 = false;\n  }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) }))) (return_statement "return bVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (binary_expression (unary_expression ~ IDENT) - LIT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) }))) (return_statement return IDENT ;) })))
(function_definition "bool __regparm3 FUN_000121a0(char *param_1)\n\n{\n  char cVar1;\n  size_t sVar2;\n  uint uVar3;\n  char *pcVar4;\n  bool bVar5;\n  \n  if ((int)*param_1 - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    bVar5 = false;\n  }\n  return bVar5;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000121a0(char *param_1)" (identifier "FUN_000121a0") (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  size_t sVar2;\n  uint uVar3;\n  char *pcVar4;\n  bool bVar5;\n  \n  if ((int)*param_1 - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    bVar5 = false;\n  }\n  return bVar5;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (if_statement "if ((int)*param_1 - 0x30U < 10) {\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }\n  else {\n    bVar5 = false;\n  }" (if "if") (parenthesized_expression "((int)*param_1 - 0x30U < 10)" (( "(") (binary_expression "(int)*param_1 - 0x30U < 10" (binary_expression "(int)*param_1 - 0x30U" (cast_expression "(int)*param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (- "-") (number_literal "0x30U")) (< "<") (number_literal "10")) () ")")) (compound_statement "{\n    uVar3 = 0xffffffff;\n    pcVar4 = param_1;\n    do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');\n    sVar2 = strspn(param_1,"0123456789");\n    bVar5 = sVar2 == ~uVar3 - 1;\n  }" ({ "{") (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" (identifier "uVar3") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" (identifier "pcVar4") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    } while (cVar1 != '\0');" (do "do") (compound_statement "{\n      if (uVar3 == 0) break;\n      uVar3 = uVar3 - 1;\n      cVar1 = *pcVar4;\n      pcVar4 = pcVar4 + 1;\n    }" ({ "{") (if_statement "if (uVar3 == 0) break;" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" (identifier "cVar1") (= "=") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4"))) (; ";")) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + 1" (identifier "pcVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "sVar2 = strspn(param_1,"0123456789");" (assignment_expression "sVar2 = strspn(param_1,"0123456789")" (identifier "sVar2") (= "=") (call_expression "strspn(param_1,"0123456789")" (identifier "strspn") (argument_list "(param_1,"0123456789")" (( "(") (identifier "param_1") (, ",") (string_literal ""0123456789"" (" """) (string_content "0123456789") (" """)) () ")")))) (; ";")) (expression_statement "bVar5 = sVar2 == ~uVar3 - 1;" (assignment_expression "bVar5 = sVar2 == ~uVar3 - 1" (identifier "bVar5") (= "=") (binary_expression "sVar2 == ~uVar3 - 1" (identifier "sVar2") (== "==") (binary_expression "~uVar3 - 1" (unary_expression "~uVar3" (~ "~") (identifier "uVar3")) (- "-") (number_literal "1")))) (; ";")) (} "}")) (else_clause "else {\n    bVar5 = false;\n  }" (else "else") (compound_statement "{\n    bVar5 = false;\n  }" ({ "{") (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (} "}")))) (return_statement "return bVar5;" (return "return") (identifier "bVar5") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 __regparm3 function_1(char *s)

{
  char var_3;
  size_t var_5;
  type_2 var_1;
  size_t n;
  char *var_2;
  type_1 _Var5;
  
  if ((int)*s - 0x30U < 10) {
    var_1 = 0xffffffff;
    var_2 = s;
    do {
      if (var_1 == 0) break;
      var_1 = var_1 - 1;
      var_3 = *var_2;
      var_2 = var_2 + 1;
    } while (var_3 != '\0');
    var_5 = var_4(s,"0123456789");
    _Var5 = var_5 == ~var_1 - 1;
  }
  else {
    _Var5 = false;
  }
  return _Var5;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) 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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (unary_expression argument: (identifier)) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false)))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

bool __regparm3 MASKED(char *param_1)

{
  char cVar1;
  size_t sVar2;
  uint uVar3;
  char *pcVar4;
  bool bVar5;
  
  if ((int)*param_1 - 0x30U < 10) {
    uVar3 = 0xffffffff;
    pcVar4 = param_1;
    do {
      if (uVar3 == 0) break;
      uVar3 = uVar3 - 1;
      cVar1 = *pcVar4;
      pcVar4 = pcVar4 + 1;
    } while (cVar1 != '\0');
    sVar2 = strspn(param_1,"0123456789");
    bVar5 = sVar2 == ~uVar3 - 1;
  }
  else {
    bVar5 = false;
  }
  return bVar5;
}

