
int x11_get_screen_number(char *display)

{
  int iVar1;
  size_t sVar2;
  size_t sVar3;
  long lVar4;
  
  sVar2 = host_strcspn(display,":");
  iVar1 = 0;
  if (display[(int)sVar2] != '\0') {
    sVar3 = strcspn(display,".");
    iVar1 = 0;
    if (display[(int)sVar3] != '\0') {
      lVar4 = strtol(display + (long)(int)sVar3 + 1,(char **)0x0,10);
      iVar1 = (int)lVar4;
    }
  }
  return iVar1;
}



long FUN_0015ce4b(char *param_1)

{
  int iVar1;
  long lVar2;
  size_t sVar3;
  
  iVar1 = FUN_0010de50(param_1,":");
  lVar2 = 0;
  if (param_1[iVar1] != '\0') {
    sVar3 = strcspn(param_1,".");
    lVar2 = 0;
    if (param_1[(int)sVar3] != '\0') {
      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);
    }
  }
  return lVar2;
}


PUSH RBX
MOV RBX,RDI
LEA RSI,[0x15f2e0]
CALL 0x0010de50
MOVSXD RDX,EAX
MOV EAX,0x0
CMP byte ptr [RBX + RDX*0x1],0x0
JZ 0x0015ce86
LEA RSI,[0x161d32]
MOV RDI,RBX
CALL 0x00108430
MOVSXD RDX,EAX
MOV EAX,0x0
CMP byte ptr [RBX + RDX*0x1],0x0
JNZ 0x0015ce88
POP RBX
RET
LEA RDI,[RBX + RDX*0x1 + 0x1]
MOV EDX,0xa
MOV ESI,0x0
CALL 0x001084f0
JMP 0x0015ce86
(translation_unit "long FUN_0015ce4b(char *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  size_t sVar3;\n  \n  iVar1 = FUN_0010de50(param_1,":");\n  lVar2 = 0;\n  if (param_1[iVar1] != '\0') {\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }\n  return lVar2;\n}\n\n" (function_definition "long FUN_0015ce4b(char *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  size_t sVar3;\n  \n  iVar1 = FUN_0010de50(param_1,":");\n  lVar2 = 0;\n  if (param_1[iVar1] != '\0') {\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }\n  return lVar2;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0015ce4b(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  size_t sVar3;\n  \n  iVar1 = FUN_0010de50(param_1,":");\n  lVar2 = 0;\n  if (param_1[iVar1] != '\0') {\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }\n  return lVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0010de50(param_1,":");" (assignment_expression "iVar1 = FUN_0010de50(param_1,":")" identifier = (call_expression "FUN_0010de50(param_1,":")" identifier (argument_list "(param_1,":")" ( identifier , (string_literal "":"" " string_content ") )))) ;) (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (if_statement "if (param_1[iVar1] != '\0') {\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }" if (parenthesized_expression "(param_1[iVar1] != '\0')" ( (binary_expression "param_1[iVar1] != '\0'" (subscript_expression "param_1[iVar1]" identifier [ identifier ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }" { (expression_statement "sVar3 = strcspn(param_1,".");" (assignment_expression "sVar3 = strcspn(param_1,".")" identifier = (call_expression "strcspn(param_1,".")" identifier (argument_list "(param_1,".")" ( identifier , (string_literal ""."" " string_content ") )))) ;) (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (if_statement "if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }" if (parenthesized_expression "(param_1[(int)sVar3] != '\0')" ( (binary_expression "param_1[(int)sVar3] != '\0'" (subscript_expression "param_1[(int)sVar3]" identifier [ (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier) ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }" { (expression_statement "lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);" (assignment_expression "lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10)" identifier = (call_expression "strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10)" identifier (argument_list "(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10)" ( (binary_expression "param_1 + (long)(int)sVar3 + 1" (binary_expression "param_1 + (long)(int)sVar3" identifier + (cast_expression "(long)(int)sVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier))) + number_literal) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , number_literal )))) ;) })) })) (return_statement "return lVar2;" return identifier ;) })))
(translation_unit "int x11_get_screen_number(char *display)\n\n{\n  int iVar1;\n  size_t sVar2;\n  size_t sVar3;\n  long lVar4;\n  \n  sVar2 = host_strcspn(display,":");\n  iVar1 = 0;\n  if (display[(int)sVar2] != '\0') {\n    sVar3 = strcspn(display,".");\n    iVar1 = 0;\n    if (display[(int)sVar3] != '\0') {\n      lVar4 = strtol(display + (long)(int)sVar3 + 1,(char **)0x0,10);\n      iVar1 = (int)lVar4;\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int x11_get_screen_number(char *display)\n\n{\n  int iVar1;\n  size_t sVar2;\n  size_t sVar3;\n  long lVar4;\n  \n  sVar2 = host_strcspn(display,":");\n  iVar1 = 0;\n  if (display[(int)sVar2] != '\0') {\n    sVar3 = strcspn(display,".");\n    iVar1 = 0;\n    if (display[(int)sVar3] != '\0') {\n      lVar4 = strtol(display + (long)(int)sVar3 + 1,(char **)0x0,10);\n      iVar1 = (int)lVar4;\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "x11_get_screen_number(char *display)" identifier (parameter_list "(char *display)" ( (parameter_declaration "char *display" primitive_type (pointer_declarator "*display" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  size_t sVar3;\n  long lVar4;\n  \n  sVar2 = host_strcspn(display,":");\n  iVar1 = 0;\n  if (display[(int)sVar2] != '\0') {\n    sVar3 = strcspn(display,".");\n    iVar1 = 0;\n    if (display[(int)sVar3] != '\0') {\n      lVar4 = strtol(display + (long)(int)sVar3 + 1,(char **)0x0,10);\n      iVar1 = (int)lVar4;\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (expression_statement "sVar2 = host_strcspn(display,":");" (assignment_expression "sVar2 = host_strcspn(display,":")" identifier = (call_expression "host_strcspn(display,":")" identifier (argument_list "(display,":")" ( identifier , (string_literal "":"" " string_content ") )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (display[(int)sVar2] != '\0') {\n    sVar3 = strcspn(display,".");\n    iVar1 = 0;\n    if (display[(int)sVar3] != '\0') {\n      lVar4 = strtol(display + (long)(int)sVar3 + 1,(char **)0x0,10);\n      iVar1 = (int)lVar4;\n    }\n  }" if (parenthesized_expression "(display[(int)sVar2] != '\0')" ( (binary_expression "display[(int)sVar2] != '\0'" (subscript_expression "display[(int)sVar2]" identifier [ (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier) ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sVar3 = strcspn(display,".");\n    iVar1 = 0;\n    if (display[(int)sVar3] != '\0') {\n      lVar4 = strtol(display + (long)(int)sVar3 + 1,(char **)0x0,10);\n      iVar1 = (int)lVar4;\n    }\n  }" { (expression_statement "sVar3 = strcspn(display,".");" (assignment_expression "sVar3 = strcspn(display,".")" identifier = (call_expression "strcspn(display,".")" identifier (argument_list "(display,".")" ( identifier , (string_literal ""."" " string_content ") )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (display[(int)sVar3] != '\0') {\n      lVar4 = strtol(display + (long)(int)sVar3 + 1,(char **)0x0,10);\n      iVar1 = (int)lVar4;\n    }" if (parenthesized_expression "(display[(int)sVar3] != '\0')" ( (binary_expression "display[(int)sVar3] != '\0'" (subscript_expression "display[(int)sVar3]" identifier [ (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier) ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      lVar4 = strtol(display + (long)(int)sVar3 + 1,(char **)0x0,10);\n      iVar1 = (int)lVar4;\n    }" { (expression_statement "lVar4 = strtol(display + (long)(int)sVar3 + 1,(char **)0x0,10);" (assignment_expression "lVar4 = strtol(display + (long)(int)sVar3 + 1,(char **)0x0,10)" identifier = (call_expression "strtol(display + (long)(int)sVar3 + 1,(char **)0x0,10)" identifier (argument_list "(display + (long)(int)sVar3 + 1,(char **)0x0,10)" ( (binary_expression "display + (long)(int)sVar3 + 1" (binary_expression "display + (long)(int)sVar3" identifier + (cast_expression "(long)(int)sVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier))) + number_literal) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , number_literal )))) ;) (expression_statement "iVar1 = (int)lVar4;" (assignment_expression "iVar1 = (int)lVar4" identifier = (cast_expression "(int)lVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "long FUN_0015ce4b(char *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  size_t sVar3;\n  \n  iVar1 = FUN_0010de50(param_1,":");\n  lVar2 = 0;\n  if (param_1[iVar1] != '\0') {\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }\n  return lVar2;\n}\n\n" (function_definition "long FUN_0015ce4b(char *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  size_t sVar3;\n  \n  iVar1 = FUN_0010de50(param_1,":");\n  lVar2 = 0;\n  if (param_1[iVar1] != '\0') {\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }\n  return lVar2;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0015ce4b(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  size_t sVar3;\n  \n  iVar1 = FUN_0010de50(param_1,":");\n  lVar2 = 0;\n  if (param_1[iVar1] != '\0') {\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }\n  return lVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0010de50(param_1,":");" (assignment_expression "iVar1 = FUN_0010de50(param_1,":")" identifier = (call_expression "FUN_0010de50(param_1,":")" identifier (argument_list "(param_1,":")" ( identifier , (string_literal "":"" " string_content ") )))) ;) (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (if_statement "if (param_1[iVar1] != '\0') {\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }" if (parenthesized_expression "(param_1[iVar1] != '\0')" ( (binary_expression "param_1[iVar1] != '\0'" (subscript_expression "param_1[iVar1]" identifier [ identifier ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }" { (expression_statement "sVar3 = strcspn(param_1,".");" (assignment_expression "sVar3 = strcspn(param_1,".")" identifier = (call_expression "strcspn(param_1,".")" identifier (argument_list "(param_1,".")" ( identifier , (string_literal ""."" " string_content ") )))) ;) (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) (if_statement "if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }" if (parenthesized_expression "(param_1[(int)sVar3] != '\0')" ( (binary_expression "param_1[(int)sVar3] != '\0'" (subscript_expression "param_1[(int)sVar3]" identifier [ (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier) ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }" { (expression_statement "lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);" (assignment_expression "lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10)" identifier = (call_expression "strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10)" identifier (argument_list "(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10)" ( (binary_expression "param_1 + (long)(int)sVar3 + 1" (binary_expression "param_1 + (long)(int)sVar3" identifier + (cast_expression "(long)(int)sVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier))) + number_literal) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , number_literal )))) ;) })) })) (return_statement "return lVar2;" return identifier ;) })))
(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 (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (cast_expression ( (type_descriptor TYPE) ) IDENT) ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) + LIT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT) , LIT )))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "long FUN_0015ce4b(char *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  size_t sVar3;\n  \n  iVar1 = FUN_0010de50(param_1,":");\n  lVar2 = 0;\n  if (param_1[iVar1] != '\0') {\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }\n  return lVar2;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_0015ce4b(char *param_1)" (identifier "FUN_0015ce4b") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  size_t sVar3;\n  \n  iVar1 = FUN_0010de50(param_1,":");\n  lVar2 = 0;\n  if (param_1[iVar1] != '\0') {\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }\n  return lVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (expression_statement "iVar1 = FUN_0010de50(param_1,":");" (assignment_expression "iVar1 = FUN_0010de50(param_1,":")" (identifier "iVar1") (= "=") (call_expression "FUN_0010de50(param_1,":")" (identifier "FUN_0010de50") (argument_list "(param_1,":")" (( "(") (identifier "param_1") (, ",") (string_literal "":"" (" """) (string_content ":") (" """)) () ")")))) (; ";")) (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" (identifier "lVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1[iVar1] != '\0') {\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }" (if "if") (parenthesized_expression "(param_1[iVar1] != '\0')" (( "(") (binary_expression "param_1[iVar1] != '\0'" (subscript_expression "param_1[iVar1]" (identifier "param_1") ([ "[") (identifier "iVar1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    sVar3 = strcspn(param_1,".");\n    lVar2 = 0;\n    if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }\n  }" ({ "{") (expression_statement "sVar3 = strcspn(param_1,".");" (assignment_expression "sVar3 = strcspn(param_1,".")" (identifier "sVar3") (= "=") (call_expression "strcspn(param_1,".")" (identifier "strcspn") (argument_list "(param_1,".")" (( "(") (identifier "param_1") (, ",") (string_literal ""."" (" """) (string_content ".") (" """)) () ")")))) (; ";")) (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" (identifier "lVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1[(int)sVar3] != '\0') {\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }" (if "if") (parenthesized_expression "(param_1[(int)sVar3] != '\0')" (( "(") (binary_expression "param_1[(int)sVar3] != '\0'" (subscript_expression "param_1[(int)sVar3]" (identifier "param_1") ([ "[") (cast_expression "(int)sVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar3")) (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);\n    }" ({ "{") (expression_statement "lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);" (assignment_expression "lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10)" (identifier "lVar2") (= "=") (call_expression "strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10)" (identifier "strtol") (argument_list "(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10)" (( "(") (binary_expression "param_1 + (long)(int)sVar3 + 1" (binary_expression "param_1 + (long)(int)sVar3" (identifier "param_1") (+ "+") (cast_expression "(long)(int)sVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)sVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar3")))) (+ "+") (number_literal "1")) (, ",") (cast_expression "(char **)0x0" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0")) (, ",") (number_literal "10") () ")")))) (; ";")) (} "}"))) (} "}"))) (return_statement "return lVar2;" (return "return") (identifier "lVar2") (; ";")) (} "}")))

int function_1(char *var_4)

{
  int iVar1;
  size_t sVar2;
  size_t sVar3;
  long lVar4;
  
  sVar2 = var_1(var_4,":");
  iVar1 = 0;
  if (var_4[(int)sVar2] != '\0') {
    sVar3 = var_2(var_4,".");
    iVar1 = 0;
    if (var_4[(int)sVar3] != '\0') {
      lVar4 = var_3(var_4 + (long)(int)sVar3 + 1,(char **)0x0,10);
      iVar1 = (int)lVar4;
    }
  }
  return iVar1;
}


(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: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (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: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) right: (number_literal)) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (number_literal)) (number_literal))))))))) (return_statement (identifier)))))

long MASKED(char *param_1)

{
  int iVar1;
  long lVar2;
  size_t sVar3;
  
  iVar1 = FUN_0010de50(param_1,":");
  lVar2 = 0;
  if (param_1[iVar1] != '\0') {
    sVar3 = strcspn(param_1,".");
    lVar2 = 0;
    if (param_1[(int)sVar3] != '\0') {
      lVar2 = strtol(param_1 + (long)(int)sVar3 + 1,(char **)0x0,10);
    }
  }
  return lVar2;
}

