
undefined8 d_template_args(long param_1)

{
  undefined8 uVar1;
  
  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {
    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;
    uVar1 = d_template_args_1();
    return uVar1;
  }
  return 0;
}



undefined8 FUN_003ba4f0(long param_1)

{
  undefined8 uVar1;
  
  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {
    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;
    uVar1 = FUN_003ba3c0();
    return uVar1;
  }
  return 0;
}


MOV RDX,qword ptr [RDI + 0x18]
MOVZX EAX,byte ptr [RDX]
SUB EAX,0x49
CMP AL,0x1
JA 0x003ba510
ADD RDX,0x1
MOV qword ptr [RDI + 0x18],RDX
JMP 0x003ba3c0
XOR EAX,EAX
RET
(translation_unit "undefined8 FUN_003ba4f0(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_003ba4f0(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_003ba4f0(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }" if (parenthesized_expression "((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2)" ( (binary_expression "(byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2" (call_expression "(byte)(**(char **)(param_1 + 0x18) + 0xb7U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(**(char **)(param_1 + 0x18) + 0xb7U)" ( (binary_expression "**(char **)(param_1 + 0x18) + 0xb7U" (pointer_expression "**(char **)(param_1 + 0x18)" * (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))) < number_literal) )) (compound_statement "{\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }" { (expression_statement "*(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;" (assignment_expression "*(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar1 = FUN_003ba3c0();" (assignment_expression "uVar1 = FUN_003ba3c0()" identifier = (call_expression "FUN_003ba3c0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 d_template_args(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = d_template_args_1();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 d_template_args(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = d_template_args_1();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "d_template_args(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = d_template_args_1();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = d_template_args_1();\n    return uVar1;\n  }" if (parenthesized_expression "((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2)" ( (binary_expression "(byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2" (call_expression "(byte)(**(char **)(param_1 + 0x18) + 0xb7U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(**(char **)(param_1 + 0x18) + 0xb7U)" ( (binary_expression "**(char **)(param_1 + 0x18) + 0xb7U" (pointer_expression "**(char **)(param_1 + 0x18)" * (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))) < number_literal) )) (compound_statement "{\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = d_template_args_1();\n    return uVar1;\n  }" { (expression_statement "*(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;" (assignment_expression "*(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar1 = d_template_args_1();" (assignment_expression "uVar1 = d_template_args_1()" identifier = (call_expression "d_template_args_1()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_003ba4f0(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_003ba4f0(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_003ba4f0(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }" if (parenthesized_expression "((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2)" ( (binary_expression "(byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2" (call_expression "(byte)(**(char **)(param_1 + 0x18) + 0xb7U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(**(char **)(param_1 + 0x18) + 0xb7U)" ( (binary_expression "**(char **)(param_1 + 0x18) + 0xb7U" (pointer_expression "**(char **)(param_1 + 0x18)" * (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))) < number_literal) )) (compound_statement "{\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }" { (expression_statement "*(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;" (assignment_expression "*(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar1 = FUN_003ba3c0();" (assignment_expression "uVar1 = FUN_003ba3c0()" identifier = (call_expression "FUN_003ba3c0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))) < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_003ba4f0(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_003ba4f0(long param_1)" (identifier "FUN_003ba4f0") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (if_statement "if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }" (if "if") (parenthesized_expression "((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2)" (( "(") (binary_expression "(byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2" (call_expression "(byte)(**(char **)(param_1 + 0x18) + 0xb7U)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(**(char **)(param_1 + 0x18) + 0xb7U)" (( "(") (binary_expression "**(char **)(param_1 + 0x18) + 0xb7U" (pointer_expression "**(char **)(param_1 + 0x18)" (* "*") (pointer_expression "*(char **)(param_1 + 0x18)" (* "*") (cast_expression "(char **)(param_1 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (+ "+") (number_literal "0xb7U")) () ")"))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n    uVar1 = FUN_003ba3c0();\n    return uVar1;\n  }" ({ "{") (expression_statement "*(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;" (assignment_expression "*(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" (* "*") (cast_expression "(char **)(param_1 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" (* "*") (cast_expression "(char **)(param_1 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = FUN_003ba3c0();" (assignment_expression "uVar1 = FUN_003ba3c0()" (identifier "uVar1") (= "=") (call_expression "FUN_003ba3c0()" (identifier "FUN_003ba3c0") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(long var_1)

{
  type_1 uVar1;
  
  if ((byte)(**(char **)(var_1 + 0x18) + 0xb7U) < 2) {
    *(char **)(var_1 + 0x18) = *(char **)(var_1 + 0x18) + 1;
    uVar1 = var_2();
    return uVar1;
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (return_statement (number_literal)))))

undefined8 MASKED(long param_1)

{
  undefined8 uVar1;
  
  if ((byte)(**(char **)(param_1 + 0x18) + 0xb7U) < 2) {
    *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;
    uVar1 = FUN_003ba3c0();
    return uVar1;
  }
  return 0;
}

