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

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



undefined8 __regparm3 FUN_001d4a00(int param_1,undefined4 param_2)

{
  char cVar1;
  undefined4 uVar2;
  char *pcVar3;
  undefined4 uVar4;
  
  uVar2 = *(undefined4 *)(param_1 + 0x28);
  pcVar3 = *(char **)(param_1 + 0xc);
  cVar1 = *pcVar3;
  uVar4 = param_2;
  while (cVar1 == 'B') {
    *(char **)(param_1 + 0xc) = pcVar3 + 1;
    param_2 = FUN_001d4880();
    uVar4 = FUN_001d44f0();
    pcVar3 = *(char **)(param_1 + 0xc);
    cVar1 = *pcVar3;
  }
  *(undefined4 *)(param_1 + 0x28) = uVar2;
  return CONCAT44(param_2,uVar4);
}


PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
MOV EBX,EAX
MOV ESI,dword ptr [EAX + 0x28]
MOV EAX,dword ptr [EAX + 0xc]
CMP byte ptr [EAX],0x42
JNZ 0x001d4a3f
LEA ESI,[ESI]
ADD EAX,0x1
MOV dword ptr [EBX + 0xc],EAX
MOV EAX,EBX
CALL 0x001d4880
MOV ECX,EDI
MOV EDX,0x4b
PUSH EAX
MOV EAX,EBX
CALL 0x001d44f0
POP EDX
MOV EDI,EAX
MOV EAX,dword ptr [EBX + 0xc]
CMP byte ptr [EAX],0x42
JZ 0x001d4a18
MOV dword ptr [EBX + 0x28],ESI
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "undefined8 __regparm3 FUN_001d4a00(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0x28);\n  pcVar3 = *(char **)(param_1 + 0xc);\n  cVar1 = *pcVar3;\n  uVar4 = param_2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }\n  *(undefined4 *)(param_1 + 0x28) = uVar2;\n  return CONCAT44(param_2,uVar4);\n}\n\n" (function_definition "undefined8 __regparm3 FUN_001d4a00(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0x28);\n  pcVar3 = *(char **)(param_1 + 0xc);\n  cVar1 = *pcVar3;\n  uVar4 = param_2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }\n  *(undefined4 *)(param_1 + 0x28) = uVar2;\n  return CONCAT44(param_2,uVar4);\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_001d4a00(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0x28);\n  pcVar3 = *(char **)(param_1 + 0xc);\n  cVar1 = *pcVar3;\n  uVar4 = param_2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }\n  *(undefined4 *)(param_1 + 0x28) = uVar2;\n  return CONCAT44(param_2,uVar4);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x28)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar3 = *(char **)(param_1 + 0xc)" identifier = (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "uVar4 = param_2;" (assignment_expression "uVar4 = param_2" identifier = identifier) ;) (while_statement "while (cVar1 == 'B') {\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }" while (parenthesized_expression "(cVar1 == 'B')" ( (binary_expression "cVar1 == 'B'" identifier == (char_literal "'B'" ' character ')) )) (compound_statement "{\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }" { (expression_statement "*(char **)(param_1 + 0xc) = pcVar3 + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = pcVar3 + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = FUN_001d4880();" (assignment_expression "param_2 = FUN_001d4880()" identifier = (call_expression "FUN_001d4880()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = FUN_001d44f0();" (assignment_expression "uVar4 = FUN_001d44f0()" identifier = (call_expression "FUN_001d44f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar3 = *(char **)(param_1 + 0xc)" identifier = (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x28) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x28) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = identifier) ;) (return_statement "return CONCAT44(param_2,uVar4);" return (call_expression "CONCAT44(param_2,uVar4)" identifier (argument_list "(param_2,uVar4)" ( identifier , identifier ))) ;) })))
(translation_unit "demangle_component * __regparm3 d_abi_tags(d_info *di,demangle_component *dc)\n\n{\n  char cVar1;\n  demangle_component *pdVar2;\n  char *pcVar3;\n  demangle_component *right;\n  d_info *unaff_EBX;\n  \n  pdVar2 = di->last_name;\n  pcVar3 = di->n;\n  cVar1 = *pcVar3;\n  while (cVar1 == 'B') {\n    di->n = pcVar3 + 1;\n    right = d_source_name(unaff_EBX);\n    dc = d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right);\n    pcVar3 = di->n;\n    cVar1 = *pcVar3;\n  }\n  di->last_name = pdVar2;\n  return dc;\n}\n\n" (ERROR "demangle_component * __regparm3 d_abi_tags(d_info *di,demangle_component *dc)" (binary_expression "demangle_component * __regparm3 d_abi_tags(d_info *di,demangle_component *dc)" identifier * (ERROR "__regparm3" identifier) (call_expression "d_abi_tags(d_info *di,demangle_component *dc)" identifier (argument_list "(d_info *di,demangle_component *dc)" ( (binary_expression "d_info *di" identifier * identifier) , (binary_expression "demangle_component *dc" identifier * identifier) ))))) (compound_statement "{\n  char cVar1;\n  demangle_component *pdVar2;\n  char *pcVar3;\n  demangle_component *right;\n  d_info *unaff_EBX;\n  \n  pdVar2 = di->last_name;\n  pcVar3 = di->n;\n  cVar1 = *pcVar3;\n  while (cVar1 == 'B') {\n    di->n = pcVar3 + 1;\n    right = d_source_name(unaff_EBX);\n    dc = d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right);\n    pcVar3 = di->n;\n    cVar1 = *pcVar3;\n  }\n  di->last_name = pdVar2;\n  return dc;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "demangle_component *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "demangle_component *right;" type_identifier (pointer_declarator "*right" * identifier) ;) (declaration "d_info *unaff_EBX;" type_identifier (pointer_declarator "*unaff_EBX" * identifier) ;) (expression_statement "pdVar2 = di->last_name;" (assignment_expression "pdVar2 = di->last_name" identifier = (field_expression "di->last_name" identifier -> field_identifier)) ;) (expression_statement "pcVar3 = di->n;" (assignment_expression "pcVar3 = di->n" identifier = (field_expression "di->n" identifier -> field_identifier)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (while_statement "while (cVar1 == 'B') {\n    di->n = pcVar3 + 1;\n    right = d_source_name(unaff_EBX);\n    dc = d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right);\n    pcVar3 = di->n;\n    cVar1 = *pcVar3;\n  }" while (parenthesized_expression "(cVar1 == 'B')" ( (binary_expression "cVar1 == 'B'" identifier == (char_literal "'B'" ' character ')) )) (compound_statement "{\n    di->n = pcVar3 + 1;\n    right = d_source_name(unaff_EBX);\n    dc = d_make_comp(di,DEMANGLE_COMPONENT_TAGGED_NAME,dc,right);\n    pcVar3 = di->n;\n    cVar1 = *pcVar3;\n  }" { (expression_statement "di->n = pcVar3 + 1;" (assignment_expression "di->n = pcVar3 + 1" (field_expression "di->n" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "right = d_source_name(unaff_EBX);" (assignment_expression "right = d_source_name(unaff_EBX)" identifier = (call_expression "d_source_name(unaff_EBX)" identifier (argument_list "(unaff_EBX)" ( 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 "pcVar3 = di->n;" (assignment_expression "pcVar3 = di->n" identifier = (field_expression "di->n" identifier -> field_identifier)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) })) (expression_statement "di->last_name = pdVar2;" (assignment_expression "di->last_name = pdVar2" (field_expression "di->last_name" identifier -> field_identifier) = identifier) ;) (return_statement "return dc;" return identifier ;) }))
(translation_unit "undefined8 __regparm3 FUN_001d4a00(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0x28);\n  pcVar3 = *(char **)(param_1 + 0xc);\n  cVar1 = *pcVar3;\n  uVar4 = param_2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }\n  *(undefined4 *)(param_1 + 0x28) = uVar2;\n  return CONCAT44(param_2,uVar4);\n}\n\n" (function_definition "undefined8 __regparm3 FUN_001d4a00(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0x28);\n  pcVar3 = *(char **)(param_1 + 0xc);\n  cVar1 = *pcVar3;\n  uVar4 = param_2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }\n  *(undefined4 *)(param_1 + 0x28) = uVar2;\n  return CONCAT44(param_2,uVar4);\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_001d4a00(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0x28);\n  pcVar3 = *(char **)(param_1 + 0xc);\n  cVar1 = *pcVar3;\n  uVar4 = param_2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }\n  *(undefined4 *)(param_1 + 0x28) = uVar2;\n  return CONCAT44(param_2,uVar4);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x28)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar3 = *(char **)(param_1 + 0xc)" identifier = (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "uVar4 = param_2;" (assignment_expression "uVar4 = param_2" identifier = identifier) ;) (while_statement "while (cVar1 == 'B') {\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }" while (parenthesized_expression "(cVar1 == 'B')" ( (binary_expression "cVar1 == 'B'" identifier == (char_literal "'B'" ' character ')) )) (compound_statement "{\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }" { (expression_statement "*(char **)(param_1 + 0xc) = pcVar3 + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = pcVar3 + 1" (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = FUN_001d4880();" (assignment_expression "param_2 = FUN_001d4880()" identifier = (call_expression "FUN_001d4880()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = FUN_001d44f0();" (assignment_expression "uVar4 = FUN_001d44f0()" identifier = (call_expression "FUN_001d44f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar3 = *(char **)(param_1 + 0xc)" identifier = (pointer_expression "*(char **)(param_1 + 0xc)" * (cast_expression "(char **)(param_1 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x28) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x28) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = identifier) ;) (return_statement "return CONCAT44(param_2,uVar4);" return (call_expression "CONCAT44(param_2,uVar4)" identifier (argument_list "(param_2,uVar4)" ( identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 * (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 IDENT = 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 ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })))
(function_definition "undefined8 __regparm3 FUN_001d4a00(int param_1,undefined4 param_2)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0x28);\n  pcVar3 = *(char **)(param_1 + 0xc);\n  cVar1 = *pcVar3;\n  uVar4 = param_2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }\n  *(undefined4 *)(param_1 + 0x28) = uVar2;\n  return CONCAT44(param_2,uVar4);\n}" (type_identifier "undefined8") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_001d4a00(int param_1,undefined4 param_2)" (identifier "FUN_001d4a00") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0x28);\n  pcVar3 = *(char **)(param_1 + 0xc);\n  cVar1 = *pcVar3;\n  uVar4 = param_2;\n  while (cVar1 == 'B') {\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }\n  *(undefined4 *)(param_1 + 0x28) = uVar2;\n  return CONCAT44(param_2,uVar4);\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x28)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "pcVar3 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar3 = *(char **)(param_1 + 0xc)" (identifier "pcVar3") (= "=") (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" (identifier "cVar1") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (expression_statement "uVar4 = param_2;" (assignment_expression "uVar4 = param_2" (identifier "uVar4") (= "=") (identifier "param_2")) (; ";")) (while_statement "while (cVar1 == 'B') {\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }" (while "while") (parenthesized_expression "(cVar1 == 'B')" (( "(") (binary_expression "cVar1 == 'B'" (identifier "cVar1") (== "==") (char_literal "'B'" (' "'") (character "B") (' "'"))) () ")")) (compound_statement "{\n    *(char **)(param_1 + 0xc) = pcVar3 + 1;\n    param_2 = FUN_001d4880();\n    uVar4 = FUN_001d44f0();\n    pcVar3 = *(char **)(param_1 + 0xc);\n    cVar1 = *pcVar3;\n  }" ({ "{") (expression_statement "*(char **)(param_1 + 0xc) = pcVar3 + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = pcVar3 + 1" (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2 = FUN_001d4880();" (assignment_expression "param_2 = FUN_001d4880()" (identifier "param_2") (= "=") (call_expression "FUN_001d4880()" (identifier "FUN_001d4880") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = FUN_001d44f0();" (assignment_expression "uVar4 = FUN_001d44f0()" (identifier "uVar4") (= "=") (call_expression "FUN_001d44f0()" (identifier "FUN_001d44f0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar3 = *(char **)(param_1 + 0xc);" (assignment_expression "pcVar3 = *(char **)(param_1 + 0xc)" (identifier "pcVar3") (= "=") (pointer_expression "*(char **)(param_1 + 0xc)" (* "*") (cast_expression "(char **)(param_1 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" (identifier "cVar1") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x28) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x28) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return CONCAT44(param_2,uVar4);" (return "return") (call_expression "CONCAT44(param_2,uVar4)" (identifier "CONCAT44") (argument_list "(param_2,uVar4)" (( "(") (identifier "param_2") (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}")))

type_1 * __regparm3 d_abi_tags(type_2 *di,type_1 *dc)

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


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (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: (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: (identifier) right: (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)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))

undefined8 __regparm3 MASKED(int param_1,undefined4 param_2)

{
  char cVar1;
  undefined4 uVar2;
  char *pcVar3;
  undefined4 uVar4;
  
  uVar2 = *(undefined4 *)(param_1 + 0x28);
  pcVar3 = *(char **)(param_1 + 0xc);
  cVar1 = *pcVar3;
  uVar4 = param_2;
  while (cVar1 == 'B') {
    *(char **)(param_1 + 0xc) = pcVar3 + 1;
    param_2 = FUN_001d4880();
    uVar4 = FUN_001d44f0();
    pcVar3 = *(char **)(param_1 + 0xc);
    cVar1 = *pcVar3;
  }
  *(undefined4 *)(param_1 + 0x28) = uVar2;
  return CONCAT44(param_2,uVar4);
}

