
demangle_component * d_abi_tags(d_info *di,demangle_component *dc)

{
  char cVar1;
  char *pcVar2;
  demangle_component *pdVar3;
  demangle_component *right;
  
  pcVar2 = di->n;
  pdVar3 = di->last_name;
  cVar1 = *pcVar2;
  while (cVar1 == 'B') {
    di->n = pcVar2 + 1;
    right = d_source_name(di);
    dc = d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right);
    pcVar2 = di->n;
    cVar1 = *pcVar2;
  }
  di->last_name = pdVar3;
  return dc;
}



undefined8 FUN_002c9700(long param_1,undefined8 param_2)

{
  char cVar1;
  char *pcVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  
  pcVar2 = *(char **)(param_1 + 0x18);
  uVar3 = *(undefined8 *)(param_1 + 0x40);
  cVar1 = *pcVar2;
  while (cVar1 == 'B') {
    *(char **)(param_1 + 0x18) = pcVar2 + 1;
    uVar4 = FUN_002c95a0(param_1);
    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);
    pcVar2 = *(char **)(param_1 + 0x18);
    cVar1 = *pcVar2;
  }
  *(undefined8 *)(param_1 + 0x40) = uVar3;
  return param_2;
}


PUSH R12
PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV RAX,qword ptr [RDI + 0x18]
MOV RBX,RDI
MOV R12,qword ptr [RDI + 0x40]
CMP byte ptr [RAX],0x42
JNZ 0x002c974f
NOP word ptr [RAX + RAX*0x1]
ADD RAX,0x1
MOV RDI,RBX
MOV qword ptr [RBX + 0x18],RAX
CALL 0x002c95a0
MOV RDX,RBP
MOV ESI,0x4b
MOV RDI,RBX
MOV RCX,RAX
CALL 0x002c91c0
MOV RBP,RAX
MOV RAX,qword ptr [RBX + 0x18]
CMP byte ptr [RAX],0x42
JZ 0x002c9720
MOV qword ptr [RBX + 0x40],R12
MOV RAX,RBP
POP RBX
POP RBP
POP R12
RET
(translation_unit "undefined8 FUN_002c9700(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  pcVar2 = *(char **)(param_1 + 0x18);\n  uVar3 = *(undefined8 *)(param_1 + 0x40);\n  cVar1 = *pcVar2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }\n  *(undefined8 *)(param_1 + 0x40) = uVar3;\n  return param_2;\n}\n\n" (function_definition "undefined8 FUN_002c9700(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  pcVar2 = *(char **)(param_1 + 0x18);\n  uVar3 = *(undefined8 *)(param_1 + 0x40);\n  cVar1 = *pcVar2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }\n  *(undefined8 *)(param_1 + 0x40) = uVar3;\n  return param_2;\n}" type_identifier (function_declarator "FUN_002c9700(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  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  pcVar2 = *(char **)(param_1 + 0x18);\n  uVar3 = *(undefined8 *)(param_1 + 0x40);\n  cVar1 = *pcVar2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }\n  *(undefined8 *)(param_1 + 0x40) = uVar3;\n  return param_2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "pcVar2 = *(char **)(param_1 + 0x18);" (assignment_expression "pcVar2 = *(char **)(param_1 + 0x18)" identifier = (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) ))))) ;) (expression_statement "uVar3 = *(undefined8 *)(param_1 + 0x40);" (assignment_expression "uVar3 = *(undefined8 *)(param_1 + 0x40)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x40)" * (cast_expression "(undefined8 *)(param_1 + 0x40)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (while_statement "while (cVar1 == 'B') {\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }" while (parenthesized_expression "(cVar1 == 'B')" ( (binary_expression "cVar1 == 'B'" identifier == (char_literal "'B'" ' character ')) )) (compound_statement "{\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }" { (expression_statement "*(char **)(param_1 + 0x18) = pcVar2 + 1;" (assignment_expression "*(char **)(param_1 + 0x18) = pcVar2 + 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 "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = FUN_002c95a0(param_1);" (assignment_expression "uVar4 = FUN_002c95a0(param_1)" identifier = (call_expression "FUN_002c95a0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);" (assignment_expression "param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4)" identifier = (call_expression "FUN_002c91c0(param_1,0x4b,param_2,uVar4)" identifier (argument_list "(param_1,0x4b,param_2,uVar4)" ( identifier , number_literal , identifier , identifier )))) ;) (expression_statement "pcVar2 = *(char **)(param_1 + 0x18);" (assignment_expression "pcVar2 = *(char **)(param_1 + 0x18)" identifier = (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) ))))) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) })) (expression_statement "*(undefined8 *)(param_1 + 0x40) = uVar3;" (assignment_expression "*(undefined8 *)(param_1 + 0x40) = uVar3" (pointer_expression "*(undefined8 *)(param_1 + 0x40)" * (cast_expression "(undefined8 *)(param_1 + 0x40)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "demangle_component * d_abi_tags(d_info *di,demangle_component *dc)\n\n{\n  char cVar1;\n  char *pcVar2;\n  demangle_component *pdVar3;\n  demangle_component *right;\n  \n  pcVar2 = di->n;\n  pdVar3 = di->last_name;\n  cVar1 = *pcVar2;\n  while (cVar1 == 'B') {\n    di->n = pcVar2 + 1;\n    right = d_source_name(di);\n    dc = d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right);\n    pcVar2 = di->n;\n    cVar1 = *pcVar2;\n  }\n  di->last_name = pdVar3;\n  return dc;\n}\n\n" (function_definition "demangle_component * d_abi_tags(d_info *di,demangle_component *dc)\n\n{\n  char cVar1;\n  char *pcVar2;\n  demangle_component *pdVar3;\n  demangle_component *right;\n  \n  pcVar2 = di->n;\n  pdVar3 = di->last_name;\n  cVar1 = *pcVar2;\n  while (cVar1 == 'B') {\n    di->n = pcVar2 + 1;\n    right = d_source_name(di);\n    dc = d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right);\n    pcVar2 = di->n;\n    cVar1 = *pcVar2;\n  }\n  di->last_name = pdVar3;\n  return dc;\n}" type_identifier (pointer_declarator "* d_abi_tags(d_info *di,demangle_component *dc)" * (function_declarator "d_abi_tags(d_info *di,demangle_component *dc)" identifier (parameter_list "(d_info *di,demangle_component *dc)" ( (parameter_declaration "d_info *di" type_identifier (pointer_declarator "*di" * identifier)) , (parameter_declaration "demangle_component *dc" type_identifier (pointer_declarator "*dc" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  demangle_component *pdVar3;\n  demangle_component *right;\n  \n  pcVar2 = di->n;\n  pdVar3 = di->last_name;\n  cVar1 = *pcVar2;\n  while (cVar1 == 'B') {\n    di->n = pcVar2 + 1;\n    right = d_source_name(di);\n    dc = d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right);\n    pcVar2 = di->n;\n    cVar1 = *pcVar2;\n  }\n  di->last_name = pdVar3;\n  return dc;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "demangle_component *pdVar3;" type_identifier (pointer_declarator "*pdVar3" * identifier) ;) (declaration "demangle_component *right;" type_identifier (pointer_declarator "*right" * identifier) ;) (expression_statement "pcVar2 = di->n;" (assignment_expression "pcVar2 = di->n" identifier = (field_expression "di->n" identifier -> field_identifier)) ;) (expression_statement "pdVar3 = di->last_name;" (assignment_expression "pdVar3 = di->last_name" identifier = (field_expression "di->last_name" identifier -> field_identifier)) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (while_statement "while (cVar1 == 'B') {\n    di->n = pcVar2 + 1;\n    right = d_source_name(di);\n    dc = d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right);\n    pcVar2 = di->n;\n    cVar1 = *pcVar2;\n  }" while (parenthesized_expression "(cVar1 == 'B')" ( (binary_expression "cVar1 == 'B'" identifier == (char_literal "'B'" ' character ')) )) (compound_statement "{\n    di->n = pcVar2 + 1;\n    right = d_source_name(di);\n    dc = d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right);\n    pcVar2 = di->n;\n    cVar1 = *pcVar2;\n  }" { (expression_statement "di->n = pcVar2 + 1;" (assignment_expression "di->n = pcVar2 + 1" (field_expression "di->n" identifier -> field_identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "right = d_source_name(di);" (assignment_expression "right = d_source_name(di)" identifier = (call_expression "d_source_name(di)" identifier (argument_list "(di)" ( identifier )))) ;) (expression_statement "dc = d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right);" (assignment_expression "dc = d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right)" identifier = (call_expression "d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right)" identifier (argument_list "(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "pcVar2 = di->n;" (assignment_expression "pcVar2 = di->n" identifier = (field_expression "di->n" identifier -> field_identifier)) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) })) (expression_statement "di->last_name = pdVar3;" (assignment_expression "di->last_name = pdVar3" (field_expression "di->last_name" identifier -> field_identifier) = identifier) ;) (return_statement "return dc;" return identifier ;) })))
(translation_unit "undefined8 FUN_002c9700(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  pcVar2 = *(char **)(param_1 + 0x18);\n  uVar3 = *(undefined8 *)(param_1 + 0x40);\n  cVar1 = *pcVar2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }\n  *(undefined8 *)(param_1 + 0x40) = uVar3;\n  return param_2;\n}\n\n" (function_definition "undefined8 FUN_002c9700(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  pcVar2 = *(char **)(param_1 + 0x18);\n  uVar3 = *(undefined8 *)(param_1 + 0x40);\n  cVar1 = *pcVar2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }\n  *(undefined8 *)(param_1 + 0x40) = uVar3;\n  return param_2;\n}" type_identifier (function_declarator "FUN_002c9700(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  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  pcVar2 = *(char **)(param_1 + 0x18);\n  uVar3 = *(undefined8 *)(param_1 + 0x40);\n  cVar1 = *pcVar2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }\n  *(undefined8 *)(param_1 + 0x40) = uVar3;\n  return param_2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "pcVar2 = *(char **)(param_1 + 0x18);" (assignment_expression "pcVar2 = *(char **)(param_1 + 0x18)" identifier = (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) ))))) ;) (expression_statement "uVar3 = *(undefined8 *)(param_1 + 0x40);" (assignment_expression "uVar3 = *(undefined8 *)(param_1 + 0x40)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x40)" * (cast_expression "(undefined8 *)(param_1 + 0x40)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (while_statement "while (cVar1 == 'B') {\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }" while (parenthesized_expression "(cVar1 == 'B')" ( (binary_expression "cVar1 == 'B'" identifier == (char_literal "'B'" ' character ')) )) (compound_statement "{\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }" { (expression_statement "*(char **)(param_1 + 0x18) = pcVar2 + 1;" (assignment_expression "*(char **)(param_1 + 0x18) = pcVar2 + 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 "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = FUN_002c95a0(param_1);" (assignment_expression "uVar4 = FUN_002c95a0(param_1)" identifier = (call_expression "FUN_002c95a0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);" (assignment_expression "param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4)" identifier = (call_expression "FUN_002c91c0(param_1,0x4b,param_2,uVar4)" identifier (argument_list "(param_1,0x4b,param_2,uVar4)" ( identifier , number_literal , identifier , identifier )))) ;) (expression_statement "pcVar2 = *(char **)(param_1 + 0x18);" (assignment_expression "pcVar2 = *(char **)(param_1 + 0x18)" identifier = (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) ))))) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) })) (expression_statement "*(undefined8 *)(param_1 + 0x40) = uVar3;" (assignment_expression "*(undefined8 *)(param_1 + 0x40) = uVar3" (pointer_expression "*(undefined8 *)(param_1 + 0x40)" * (cast_expression "(undefined8 *)(param_1 + 0x40)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (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 IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined8 FUN_002c9700(long param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  pcVar2 = *(char **)(param_1 + 0x18);\n  uVar3 = *(undefined8 *)(param_1 + 0x40);\n  cVar1 = *pcVar2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }\n  *(undefined8 *)(param_1 + 0x40) = uVar3;\n  return param_2;\n}" (type_identifier "undefined8") (function_declarator "FUN_002c9700(long param_1,undefined8 param_2)" (identifier "FUN_002c9700") (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  char *pcVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  \n  pcVar2 = *(char **)(param_1 + 0x18);\n  uVar3 = *(undefined8 *)(param_1 + 0x40);\n  cVar1 = *pcVar2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }\n  *(undefined8 *)(param_1 + 0x40) = uVar3;\n  return param_2;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (expression_statement "pcVar2 = *(char **)(param_1 + 0x18);" (assignment_expression "pcVar2 = *(char **)(param_1 + 0x18)" (identifier "pcVar2") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(undefined8 *)(param_1 + 0x40);" (assignment_expression "uVar3 = *(undefined8 *)(param_1 + 0x40)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" (identifier "cVar1") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (while_statement "while (cVar1 == 'B') {\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }" (while "while") (parenthesized_expression "(cVar1 == 'B')" (( "(") (binary_expression "cVar1 == 'B'" (identifier "cVar1") (== "==") (char_literal "'B'" (' "'") (character "B") (' "'"))) () ")")) (compound_statement "{\n    *(char **)(param_1 + 0x18) = pcVar2 + 1;\n    uVar4 = FUN_002c95a0(param_1);\n    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);\n    pcVar2 = *(char **)(param_1 + 0x18);\n    cVar1 = *pcVar2;\n  }" ({ "{") (expression_statement "*(char **)(param_1 + 0x18) = pcVar2 + 1;" (assignment_expression "*(char **)(param_1 + 0x18) = pcVar2 + 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 "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = FUN_002c95a0(param_1);" (assignment_expression "uVar4 = FUN_002c95a0(param_1)" (identifier "uVar4") (= "=") (call_expression "FUN_002c95a0(param_1)" (identifier "FUN_002c95a0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);" (assignment_expression "param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4)" (identifier "param_2") (= "=") (call_expression "FUN_002c91c0(param_1,0x4b,param_2,uVar4)" (identifier "FUN_002c91c0") (argument_list "(param_1,0x4b,param_2,uVar4)" (( "(") (identifier "param_1") (, ",") (number_literal "0x4b") (, ",") (identifier "param_2") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "pcVar2 = *(char **)(param_1 + 0x18);" (assignment_expression "pcVar2 = *(char **)(param_1 + 0x18)" (identifier "pcVar2") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" (identifier "cVar1") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (} "}"))) (expression_statement "*(undefined8 *)(param_1 + 0x40) = uVar3;" (assignment_expression "*(undefined8 *)(param_1 + 0x40) = uVar3" (pointer_expression "*(undefined8 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

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

{
  char var_1;
  char *var_2;
  type_1 *pdVar3;
  type_1 *right;
  
  var_2 = di->n;
  pdVar3 = di->last_name;
  var_1 = *var_2;
  while (var_1 == 'B') {
    di->n = var_2 + 1;
    right = var_3(di);
    dc = var_4(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right);
    var_2 = di->n;
    var_1 = *var_2;
  }
  di->last_name = pdVar3;
  return dc;
}


(translation_unit (function_definition type: (type_identifier) 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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) body: (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: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (identifier)))))

undefined8 MASKED(long param_1,undefined8 param_2)

{
  char cVar1;
  char *pcVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  
  pcVar2 = *(char **)(param_1 + 0x18);
  uVar3 = *(undefined8 *)(param_1 + 0x40);
  cVar1 = *pcVar2;
  while (cVar1 == 'B') {
    *(char **)(param_1 + 0x18) = pcVar2 + 1;
    uVar4 = FUN_002c95a0(param_1);
    param_2 = FUN_002c91c0(param_1,0x4b,param_2,uVar4);
    pcVar2 = *(char **)(param_1 + 0x18);
    cVar1 = *pcVar2;
  }
  *(undefined8 *)(param_1 + 0x40) = uVar3;
  return param_2;
}

