
demangle_component * d_ref_qualifier(d_info *di,demangle_component *sub)

{
  char cVar1;
  demangle_component *pdVar2;
  int iVar3;
  demangle_component_type type;
  
  cVar1 = *di->n;
  if ((cVar1 != 'R') && (cVar1 != 'O')) {
    return sub;
  }
  type = DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS;
  iVar3 = di->expansion + 3;
  if (cVar1 == 'R') {
    iVar3 = di->expansion + 2;
    type = DEMANGLE_COMPONENT_REFERENCE_THIS;
  }
  di->expansion = iVar3;
  di->n = di->n + 1;
  pdVar2 = d_make_comp(di,type,sub,(demangle_component *)0x0);
  return pdVar2;
}



void FUN_002652e0(long param_1,undefined8 param_2)

{
  char cVar1;
  int iVar2;
  undefined8 uVar3;
  
  cVar1 = **(char **)(param_1 + 0x18);
  if ((cVar1 != 'R') && (cVar1 != 'O')) {
    return;
  }
  uVar3 = 0x20;
  iVar2 = *(int *)(param_1 + 0x48) + 3;
  if (cVar1 == 'R') {
    iVar2 = *(int *)(param_1 + 0x48) + 2;
    uVar3 = 0x1f;
  }
  *(int *)(param_1 + 0x48) = iVar2;
  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;
  FUN_00265270(param_1,uVar3,param_2,0);
  return;
}


MOV RCX,qword ptr [RDI + 0x18]
MOV RAX,RSI
MOVZX R8D,byte ptr [RCX]
CMP R8B,0x52
JZ 0x00265300
CMP R8B,0x4f
JZ 0x00265300
RET
MOV R9D,dword ptr [RDI + 0x48]
MOV ESI,0x20
LEA EDX,[R9 + 0x3]
CMP R8B,0x52
JNZ 0x0026531c
LEA EDX,[R9 + 0x2]
MOV ESI,0x1f
ADD RCX,0x1
MOV dword ptr [RDI + 0x48],EDX
MOV RDX,RAX
MOV qword ptr [RDI + 0x18],RCX
XOR ECX,ECX
JMP 0x00265270
(translation_unit "void FUN_002652e0(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  cVar1 = **(char **)(param_1 + 0x18);\n  if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return;\n  }\n  uVar3 = 0x20;\n  iVar2 = *(int *)(param_1 + 0x48) + 3;\n  if (cVar1 == 'R') {\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }\n  *(int *)(param_1 + 0x48) = iVar2;\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  FUN_00265270(param_1,uVar3,param_2,0);\n  return;\n}\n\n" (function_definition "void FUN_002652e0(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  cVar1 = **(char **)(param_1 + 0x18);\n  if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return;\n  }\n  uVar3 = 0x20;\n  iVar2 = *(int *)(param_1 + 0x48) + 3;\n  if (cVar1 == 'R') {\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }\n  *(int *)(param_1 + 0x48) = iVar2;\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  FUN_00265270(param_1,uVar3,param_2,0);\n  return;\n}" primitive_type (function_declarator "FUN_002652e0(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  cVar1 = **(char **)(param_1 + 0x18);\n  if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return;\n  }\n  uVar3 = 0x20;\n  iVar2 = *(int *)(param_1 + 0x48) + 3;\n  if (cVar1 == 'R') {\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }\n  *(int *)(param_1 + 0x48) = iVar2;\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  FUN_00265270(param_1,uVar3,param_2,0);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "cVar1 = **(char **)(param_1 + 0x18);" (assignment_expression "cVar1 = **(char **)(param_1 + 0x18)" identifier = (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) )))))) ;) (if_statement "if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return;\n  }" if (parenthesized_expression "((cVar1 != 'R') && (cVar1 != 'O'))" ( (binary_expression "(cVar1 != 'R') && (cVar1 != 'O')" (parenthesized_expression "(cVar1 != 'R')" ( (binary_expression "cVar1 != 'R'" identifier != (char_literal "'R'" ' character ')) )) && (parenthesized_expression "(cVar1 != 'O')" ( (binary_expression "cVar1 != 'O'" identifier != (char_literal "'O'" ' character ')) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar3 = 0x20;" (assignment_expression "uVar3 = 0x20" identifier = number_literal) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x48) + 3;" (assignment_expression "iVar2 = *(int *)(param_1 + 0x48) + 3" identifier = (binary_expression "*(int *)(param_1 + 0x48) + 3" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (cVar1 == 'R') {\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }" if (parenthesized_expression "(cVar1 == 'R')" ( (binary_expression "cVar1 == 'R'" identifier == (char_literal "'R'" ' character ')) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x48) + 2;" (assignment_expression "iVar2 = *(int *)(param_1 + 0x48) + 2" identifier = (binary_expression "*(int *)(param_1 + 0x48) + 2" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar3 = 0x1f;" (assignment_expression "uVar3 = 0x1f" identifier = number_literal) ;) })) (expression_statement "*(int *)(param_1 + 0x48) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x48) = iVar2" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = identifier) ;) (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 "FUN_00265270(param_1,uVar3,param_2,0);" (call_expression "FUN_00265270(param_1,uVar3,param_2,0)" identifier (argument_list "(param_1,uVar3,param_2,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "demangle_component * d_ref_qualifier(d_info *di,demangle_component *sub)\n\n{\n  char cVar1;\n  demangle_component *pdVar2;\n  int iVar3;\n  demangle_component_type type;\n  \n  cVar1 = *di->n;\n  if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return sub;\n  }\n  type = DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS;\n  iVar3 = di->expansion + 3;\n  if (cVar1 == 'R') {\n    iVar3 = di->expansion + 2;\n    type = DEMANGLE_COMPONENT_REFERENCE_THIS;\n  }\n  di->expansion = iVar3;\n  di->n = di->n + 1;\n  pdVar2 = d_make_comp(di,type,sub,(demangle_component *)0x0);\n  return pdVar2;\n}\n\n" (function_definition "demangle_component * d_ref_qualifier(d_info *di,demangle_component *sub)\n\n{\n  char cVar1;\n  demangle_component *pdVar2;\n  int iVar3;\n  demangle_component_type type;\n  \n  cVar1 = *di->n;\n  if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return sub;\n  }\n  type = DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS;\n  iVar3 = di->expansion + 3;\n  if (cVar1 == 'R') {\n    iVar3 = di->expansion + 2;\n    type = DEMANGLE_COMPONENT_REFERENCE_THIS;\n  }\n  di->expansion = iVar3;\n  di->n = di->n + 1;\n  pdVar2 = d_make_comp(di,type,sub,(demangle_component *)0x0);\n  return pdVar2;\n}" type_identifier (pointer_declarator "* d_ref_qualifier(d_info *di,demangle_component *sub)" * (function_declarator "d_ref_qualifier(d_info *di,demangle_component *sub)" identifier (parameter_list "(d_info *di,demangle_component *sub)" ( (parameter_declaration "d_info *di" type_identifier (pointer_declarator "*di" * identifier)) , (parameter_declaration "demangle_component *sub" type_identifier (pointer_declarator "*sub" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  demangle_component *pdVar2;\n  int iVar3;\n  demangle_component_type type;\n  \n  cVar1 = *di->n;\n  if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return sub;\n  }\n  type = DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS;\n  iVar3 = di->expansion + 3;\n  if (cVar1 == 'R') {\n    iVar3 = di->expansion + 2;\n    type = DEMANGLE_COMPONENT_REFERENCE_THIS;\n  }\n  di->expansion = iVar3;\n  di->n = di->n + 1;\n  pdVar2 = d_make_comp(di,type,sub,(demangle_component *)0x0);\n  return pdVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "demangle_component *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "demangle_component_type type;" type_identifier identifier ;) (expression_statement "cVar1 = *di->n;" (assignment_expression "cVar1 = *di->n" identifier = (pointer_expression "*di->n" * (field_expression "di->n" identifier -> field_identifier))) ;) (if_statement "if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return sub;\n  }" if (parenthesized_expression "((cVar1 != 'R') && (cVar1 != 'O'))" ( (binary_expression "(cVar1 != 'R') && (cVar1 != 'O')" (parenthesized_expression "(cVar1 != 'R')" ( (binary_expression "cVar1 != 'R'" identifier != (char_literal "'R'" ' character ')) )) && (parenthesized_expression "(cVar1 != 'O')" ( (binary_expression "cVar1 != 'O'" identifier != (char_literal "'O'" ' character ')) ))) )) (compound_statement "{\n    return sub;\n  }" { (return_statement "return sub;" return identifier ;) })) (expression_statement "type = DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS;" (assignment_expression "type = DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS" identifier = identifier) ;) (expression_statement "iVar3 = di->expansion + 3;" (assignment_expression "iVar3 = di->expansion + 3" identifier = (binary_expression "di->expansion + 3" (field_expression "di->expansion" identifier -> field_identifier) + number_literal)) ;) (if_statement "if (cVar1 == 'R') {\n    iVar3 = di->expansion + 2;\n    type = DEMANGLE_COMPONENT_REFERENCE_THIS;\n  }" if (parenthesized_expression "(cVar1 == 'R')" ( (binary_expression "cVar1 == 'R'" identifier == (char_literal "'R'" ' character ')) )) (compound_statement "{\n    iVar3 = di->expansion + 2;\n    type = DEMANGLE_COMPONENT_REFERENCE_THIS;\n  }" { (expression_statement "iVar3 = di->expansion + 2;" (assignment_expression "iVar3 = di->expansion + 2" identifier = (binary_expression "di->expansion + 2" (field_expression "di->expansion" identifier -> field_identifier) + number_literal)) ;) (expression_statement "type = DEMANGLE_COMPONENT_REFERENCE_THIS;" (assignment_expression "type = DEMANGLE_COMPONENT_REFERENCE_THIS" identifier = identifier) ;) })) (expression_statement "di->expansion = iVar3;" (assignment_expression "di->expansion = iVar3" (field_expression "di->expansion" identifier -> field_identifier) = identifier) ;) (expression_statement "di->n = di->n + 1;" (assignment_expression "di->n = di->n + 1" (field_expression "di->n" identifier -> field_identifier) = (binary_expression "di->n + 1" (field_expression "di->n" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pdVar2 = d_make_comp(di,type,sub,(demangle_component *)0x0);" (assignment_expression "pdVar2 = d_make_comp(di,type,sub,(demangle_component *)0x0)" identifier = (call_expression "d_make_comp(di,type,sub,(demangle_component *)0x0)" identifier (argument_list "(di,type,sub,(demangle_component *)0x0)" ( identifier , identifier , identifier , (cast_expression "(demangle_component *)0x0" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (return_statement "return pdVar2;" return identifier ;) })))
(translation_unit "void FUN_002652e0(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  cVar1 = **(char **)(param_1 + 0x18);\n  if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return;\n  }\n  uVar3 = 0x20;\n  iVar2 = *(int *)(param_1 + 0x48) + 3;\n  if (cVar1 == 'R') {\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }\n  *(int *)(param_1 + 0x48) = iVar2;\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  FUN_00265270(param_1,uVar3,param_2,0);\n  return;\n}\n\n" (function_definition "void FUN_002652e0(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  cVar1 = **(char **)(param_1 + 0x18);\n  if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return;\n  }\n  uVar3 = 0x20;\n  iVar2 = *(int *)(param_1 + 0x48) + 3;\n  if (cVar1 == 'R') {\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }\n  *(int *)(param_1 + 0x48) = iVar2;\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  FUN_00265270(param_1,uVar3,param_2,0);\n  return;\n}" primitive_type (function_declarator "FUN_002652e0(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  cVar1 = **(char **)(param_1 + 0x18);\n  if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return;\n  }\n  uVar3 = 0x20;\n  iVar2 = *(int *)(param_1 + 0x48) + 3;\n  if (cVar1 == 'R') {\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }\n  *(int *)(param_1 + 0x48) = iVar2;\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  FUN_00265270(param_1,uVar3,param_2,0);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "cVar1 = **(char **)(param_1 + 0x18);" (assignment_expression "cVar1 = **(char **)(param_1 + 0x18)" identifier = (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) )))))) ;) (if_statement "if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return;\n  }" if (parenthesized_expression "((cVar1 != 'R') && (cVar1 != 'O'))" ( (binary_expression "(cVar1 != 'R') && (cVar1 != 'O')" (parenthesized_expression "(cVar1 != 'R')" ( (binary_expression "cVar1 != 'R'" identifier != (char_literal "'R'" ' character ')) )) && (parenthesized_expression "(cVar1 != 'O')" ( (binary_expression "cVar1 != 'O'" identifier != (char_literal "'O'" ' character ')) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar3 = 0x20;" (assignment_expression "uVar3 = 0x20" identifier = number_literal) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x48) + 3;" (assignment_expression "iVar2 = *(int *)(param_1 + 0x48) + 3" identifier = (binary_expression "*(int *)(param_1 + 0x48) + 3" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (cVar1 == 'R') {\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }" if (parenthesized_expression "(cVar1 == 'R')" ( (binary_expression "cVar1 == 'R'" identifier == (char_literal "'R'" ' character ')) )) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x48) + 2;" (assignment_expression "iVar2 = *(int *)(param_1 + 0x48) + 2" identifier = (binary_expression "*(int *)(param_1 + 0x48) + 2" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar3 = 0x1f;" (assignment_expression "uVar3 = 0x1f" identifier = number_literal) ;) })) (expression_statement "*(int *)(param_1 + 0x48) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x48) = iVar2" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = identifier) ;) (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 "FUN_00265270(param_1,uVar3,param_2,0);" (call_expression "FUN_00265270(param_1,uVar3,param_2,0)" identifier (argument_list "(param_1,uVar3,param_2,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) ))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002652e0(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  cVar1 = **(char **)(param_1 + 0x18);\n  if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return;\n  }\n  uVar3 = 0x20;\n  iVar2 = *(int *)(param_1 + 0x48) + 3;\n  if (cVar1 == 'R') {\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }\n  *(int *)(param_1 + 0x48) = iVar2;\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  FUN_00265270(param_1,uVar3,param_2,0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002652e0(long param_1,undefined8 param_2)" (identifier "FUN_002652e0") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  cVar1 = **(char **)(param_1 + 0x18);\n  if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return;\n  }\n  uVar3 = 0x20;\n  iVar2 = *(int *)(param_1 + 0x48) + 3;\n  if (cVar1 == 'R') {\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }\n  *(int *)(param_1 + 0x48) = iVar2;\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  FUN_00265270(param_1,uVar3,param_2,0);\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (expression_statement "cVar1 = **(char **)(param_1 + 0x18);" (assignment_expression "cVar1 = **(char **)(param_1 + 0x18)" (identifier "cVar1") (= "=") (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")) () ")")))))) (; ";")) (if_statement "if ((cVar1 != 'R') && (cVar1 != 'O')) {\n    return;\n  }" (if "if") (parenthesized_expression "((cVar1 != 'R') && (cVar1 != 'O'))" (( "(") (binary_expression "(cVar1 != 'R') && (cVar1 != 'O')" (parenthesized_expression "(cVar1 != 'R')" (( "(") (binary_expression "cVar1 != 'R'" (identifier "cVar1") (!= "!=") (char_literal "'R'" (' "'") (character "R") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(cVar1 != 'O')" (( "(") (binary_expression "cVar1 != 'O'" (identifier "cVar1") (!= "!=") (char_literal "'O'" (' "'") (character "O") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar3 = 0x20;" (assignment_expression "uVar3 = 0x20" (identifier "uVar3") (= "=") (number_literal "0x20")) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x48) + 3;" (assignment_expression "iVar2 = *(int *)(param_1 + 0x48) + 3" (identifier "iVar2") (= "=") (binary_expression "*(int *)(param_1 + 0x48) + 3" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (+ "+") (number_literal "3"))) (; ";")) (if_statement "if (cVar1 == 'R') {\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }" (if "if") (parenthesized_expression "(cVar1 == 'R')" (( "(") (binary_expression "cVar1 == 'R'" (identifier "cVar1") (== "==") (char_literal "'R'" (' "'") (character "R") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = *(int *)(param_1 + 0x48) + 2;\n    uVar3 = 0x1f;\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x48) + 2;" (assignment_expression "iVar2 = *(int *)(param_1 + 0x48) + 2" (identifier "iVar2") (= "=") (binary_expression "*(int *)(param_1 + 0x48) + 2" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar3 = 0x1f;" (assignment_expression "uVar3 = 0x1f" (identifier "uVar3") (= "=") (number_literal "0x1f")) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0x48) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x48) = iVar2" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (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 "FUN_00265270(param_1,uVar3,param_2,0);" (call_expression "FUN_00265270(param_1,uVar3,param_2,0)" (identifier "FUN_00265270") (argument_list "(param_1,uVar3,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar3") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

type_1 * function_1(type_2 *di,type_1 *sub)

{
  char var_1;
  type_1 *pdVar2;
  int iVar3;
  type_3 type;
  
  var_1 = *di->n;
  if ((var_1 != 'R') && (var_1 != 'O')) {
    return sub;
  }
  type = DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS;
  iVar3 = di->expansion + 3;
  if (var_1 == 'R') {
    iVar3 = di->expansion + 2;
    type = DEMANGLE_COMPONENT_REFERENCE_THIS;
  }
  di->expansion = iVar3;
  di->n = di->n + 1;
  pdVar2 = var_2(di,type,sub,(type_1 *)0x0);
  return pdVar2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (return_statement))))

void MASKED(long param_1,undefined8 param_2)

{
  char cVar1;
  int iVar2;
  undefined8 uVar3;
  
  cVar1 = **(char **)(param_1 + 0x18);
  if ((cVar1 != 'R') && (cVar1 != 'O')) {
    return;
  }
  uVar3 = 0x20;
  iVar2 = *(int *)(param_1 + 0x48) + 3;
  if (cVar1 == 'R') {
    iVar2 = *(int *)(param_1 + 0x48) + 2;
    uVar3 = 0x1f;
  }
  *(int *)(param_1 + 0x48) = iVar2;
  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;
  FUN_00265270(param_1,uVar3,param_2,0);
  return;
}

