
demangle_component * __regparm3 d_template_param(d_info *di)

{
  int iVar1;
  int iVar2;
  demangle_component *pdVar3;
  
  if (*di->n != 'T') {
    return (demangle_component *)0x0;
  }
  di->n = di->n + 1;
  iVar2 = d_compact_number(di);
  if ((-1 < iVar2) && (iVar1 = di->next_comp, iVar1 < di->num_comps)) {
    pdVar3 = di->comps + iVar1;
    pdVar3->d_printing = 0;
    di->next_comp = iVar1 + 1;
    pdVar3->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;
    (pdVar3->u).s_extended_operator.args = iVar2;
    return pdVar3;
  }
  return (demangle_component *)0x0;
}



undefined4 * __regparm3 FUN_001d4820(int param_1)

{
  int iVar1;
  int iVar2;
  undefined4 *puVar3;
  
  if (**(char **)(param_1 + 0xc) != 'T') {
    return (undefined4 *)0x0;
  }
  *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
  iVar2 = FUN_001d47e0();
  if ((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))) {
    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);
    puVar3[1] = 0;
    *(int *)(param_1 + 0x14) = iVar1 + 1;
    *puVar3 = 5;
    puVar3[2] = iVar2;
    return puVar3;
  }
  return (undefined4 *)0x0;
}


MOV EDX,dword ptr [EAX + 0xc]
CMP byte ptr [EDX],0x54
JNZ 0x001d4878
ADD EDX,0x1
PUSH ESI
PUSH EBX
MOV EBX,EAX
MOV dword ptr [EAX + 0xc],EDX
CALL 0x001d47e0
MOV ESI,EAX
TEST EAX,EAX
JS 0x001d4870
MOV ECX,dword ptr [EBX + 0x14]
CMP ECX,dword ptr [EBX + 0x18]
JGE 0x001d4870
MOV EAX,dword ptr [EBX + 0x10]
MOV EDX,ECX
ADD ECX,0x1
SHL EDX,0x4
ADD EAX,EDX
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EBX + 0x14],ECX
MOV dword ptr [EAX],0x5
MOV dword ptr [EAX + 0x8],ESI
POP EBX
POP ESI
RET
XOR EAX,EAX
POP EBX
POP ESI
RET
XOR EAX,EAX
RET
(translation_unit "undefined4 * __regparm3 FUN_001d4820(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  if (**(char **)(param_1 + 0xc) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  iVar2 = FUN_001d47e0();\n  if ((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 5;\n    puVar3[2] = iVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}\n\n" (ERROR "undefined4 * __regparm3 FUN_001d4820(int param_1)" (binary_expression "undefined4 * __regparm3 FUN_001d4820(int param_1)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_001d4820(int param_1)" identifier (argument_list "(int param_1)" ( (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  if (**(char **)(param_1 + 0xc) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  iVar2 = FUN_001d47e0();\n  if ((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 5;\n    puVar3[2] = iVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (**(char **)(param_1 + 0xc) != 'T') {\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) != 'T')" ( (binary_expression "**(char **)(param_1 + 0xc) != 'T'" (pointer_expression "**(char **)(param_1 + 0xc)" * (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) ))))) != (char_literal "'T'" ' character ')) )) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 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 "*(char **)(param_1 + 0xc) + 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) )))) + number_literal)) ;) (expression_statement "iVar2 = FUN_001d47e0();" (assignment_expression "iVar2 = FUN_001d47e0()" identifier = (call_expression "FUN_001d47e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 5;\n    puVar3[2] = iVar2;\n    return puVar3;\n  }" if (parenthesized_expression "((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18)))" ( (binary_expression "(-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) && (parenthesized_expression "(iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))" ( (comma_expression "iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18)" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) , (binary_expression "iVar1 < *(int *)(param_1 + 0x18)" identifier < (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))))) ))) )) (compound_statement "{\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 5;\n    puVar3[2] = iVar2;\n    return puVar3;\n  }" { (expression_statement "puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar1 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar1 * 0x10" identifier * number_literal)) )))) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x14) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = 5;" (assignment_expression "*puVar3 = 5" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[2] = iVar2;" (assignment_expression "puVar3[2] = iVar2" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar3;" return identifier ;) })) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "demangle_component * __regparm3 d_template_param(d_info *di)\n\n{\n  int iVar1;\n  int iVar2;\n  demangle_component *pdVar3;\n  \n  if (*di->n != 'T') {\n    return (demangle_component *)0x0;\n  }\n  di->n = di->n + 1;\n  iVar2 = d_compact_number(di);\n  if ((-1 < iVar2) && (iVar1 = di->next_comp, iVar1 < di->num_comps)) {\n    pdVar3 = di->comps + iVar1;\n    pdVar3->d_printing = 0;\n    di->next_comp = iVar1 + 1;\n    pdVar3->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;\n    (pdVar3->u).s_extended_operator.args = iVar2;\n    return pdVar3;\n  }\n  return (demangle_component *)0x0;\n}\n\n" (ERROR "demangle_component * __regparm3 d_template_param(d_info *di)" (binary_expression "demangle_component * __regparm3 d_template_param(d_info *di)" identifier * (ERROR "__regparm3" identifier) (call_expression "d_template_param(d_info *di)" identifier (argument_list "(d_info *di)" ( (binary_expression "d_info *di" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  demangle_component *pdVar3;\n  \n  if (*di->n != 'T') {\n    return (demangle_component *)0x0;\n  }\n  di->n = di->n + 1;\n  iVar2 = d_compact_number(di);\n  if ((-1 < iVar2) && (iVar1 = di->next_comp, iVar1 < di->num_comps)) {\n    pdVar3 = di->comps + iVar1;\n    pdVar3->d_printing = 0;\n    di->next_comp = iVar1 + 1;\n    pdVar3->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;\n    (pdVar3->u).s_extended_operator.args = iVar2;\n    return pdVar3;\n  }\n  return (demangle_component *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "demangle_component *pdVar3;" type_identifier (pointer_declarator "*pdVar3" * identifier) ;) (if_statement "if (*di->n != 'T') {\n    return (demangle_component *)0x0;\n  }" if (parenthesized_expression "(*di->n != 'T')" ( (binary_expression "*di->n != 'T'" (pointer_expression "*di->n" * (field_expression "di->n" identifier -> field_identifier)) != (char_literal "'T'" ' character ')) )) (compound_statement "{\n    return (demangle_component *)0x0;\n  }" { (return_statement "return (demangle_component *)0x0;" return (cast_expression "(demangle_component *)0x0" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (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 "iVar2 = d_compact_number(di);" (assignment_expression "iVar2 = d_compact_number(di)" identifier = (call_expression "d_compact_number(di)" identifier (argument_list "(di)" ( identifier )))) ;) (if_statement "if ((-1 < iVar2) && (iVar1 = di->next_comp, iVar1 < di->num_comps)) {\n    pdVar3 = di->comps + iVar1;\n    pdVar3->d_printing = 0;\n    di->next_comp = iVar1 + 1;\n    pdVar3->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;\n    (pdVar3->u).s_extended_operator.args = iVar2;\n    return pdVar3;\n  }" if (parenthesized_expression "((-1 < iVar2) && (iVar1 = di->next_comp, iVar1 < di->num_comps))" ( (binary_expression "(-1 < iVar2) && (iVar1 = di->next_comp, iVar1 < di->num_comps)" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) && (parenthesized_expression "(iVar1 = di->next_comp, iVar1 < di->num_comps)" ( (comma_expression "iVar1 = di->next_comp, iVar1 < di->num_comps" (assignment_expression "iVar1 = di->next_comp" identifier = (field_expression "di->next_comp" identifier -> field_identifier)) , (binary_expression "iVar1 < di->num_comps" identifier < (field_expression "di->num_comps" identifier -> field_identifier))) ))) )) (compound_statement "{\n    pdVar3 = di->comps + iVar1;\n    pdVar3->d_printing = 0;\n    di->next_comp = iVar1 + 1;\n    pdVar3->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;\n    (pdVar3->u).s_extended_operator.args = iVar2;\n    return pdVar3;\n  }" { (expression_statement "pdVar3 = di->comps + iVar1;" (assignment_expression "pdVar3 = di->comps + iVar1" identifier = (binary_expression "di->comps + iVar1" (field_expression "di->comps" identifier -> field_identifier) + identifier)) ;) (expression_statement "pdVar3->d_printing = 0;" (assignment_expression "pdVar3->d_printing = 0" (field_expression "pdVar3->d_printing" identifier -> field_identifier) = number_literal) ;) (expression_statement "di->next_comp = iVar1 + 1;" (assignment_expression "di->next_comp = iVar1 + 1" (field_expression "di->next_comp" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "pdVar3->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;" (assignment_expression "pdVar3->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM" (field_expression "pdVar3->type" identifier -> field_identifier) = identifier) ;) (expression_statement "(pdVar3->u).s_extended_operator.args = iVar2;" (assignment_expression "(pdVar3->u).s_extended_operator.args = iVar2" (field_expression "(pdVar3->u).s_extended_operator.args" (field_expression "(pdVar3->u).s_extended_operator" (parenthesized_expression "(pdVar3->u)" ( (field_expression "pdVar3->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (return_statement "return pdVar3;" return identifier ;) })) (return_statement "return (demangle_component *)0x0;" return (cast_expression "(demangle_component *)0x0" ( (type_descriptor "demangle_component *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "undefined4 * __regparm3 FUN_001d4820(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  if (**(char **)(param_1 + 0xc) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  iVar2 = FUN_001d47e0();\n  if ((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 5;\n    puVar3[2] = iVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}\n\n" (ERROR "undefined4 * __regparm3 FUN_001d4820(int param_1)" (binary_expression "undefined4 * __regparm3 FUN_001d4820(int param_1)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_001d4820(int param_1)" identifier (argument_list "(int param_1)" ( (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  if (**(char **)(param_1 + 0xc) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  iVar2 = FUN_001d47e0();\n  if ((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 5;\n    puVar3[2] = iVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (**(char **)(param_1 + 0xc) != 'T') {\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "(**(char **)(param_1 + 0xc) != 'T')" ( (binary_expression "**(char **)(param_1 + 0xc) != 'T'" (pointer_expression "**(char **)(param_1 + 0xc)" * (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) ))))) != (char_literal "'T'" ' character ')) )) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" { (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 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 "*(char **)(param_1 + 0xc) + 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) )))) + number_literal)) ;) (expression_statement "iVar2 = FUN_001d47e0();" (assignment_expression "iVar2 = FUN_001d47e0()" identifier = (call_expression "FUN_001d47e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 5;\n    puVar3[2] = iVar2;\n    return puVar3;\n  }" if (parenthesized_expression "((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18)))" ( (binary_expression "(-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) && (parenthesized_expression "(iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))" ( (comma_expression "iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18)" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) , (binary_expression "iVar1 < *(int *)(param_1 + 0x18)" identifier < (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))))) ))) )) (compound_statement "{\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 5;\n    puVar3[2] = iVar2;\n    return puVar3;\n  }" { (expression_statement "puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar1 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar1 * 0x10" identifier * number_literal)) )))) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x14) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = 5;" (assignment_expression "*puVar3 = 5" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[2] = iVar2;" (assignment_expression "puVar3[2] = iVar2" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar3;" return identifier ;) })) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (ERROR IDENT) IDENT ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) != (char_literal ' character ')) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) }))
(ERROR "undefined4 * __regparm3 FUN_001d4820(int param_1)" (binary_expression "undefined4 * __regparm3 FUN_001d4820(int param_1)" (identifier "undefined4") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_001d4820(int param_1)" (identifier "FUN_001d4820") (argument_list "(int param_1)" (( "(") (ERROR "int" (identifier "int")) (identifier "param_1") () ")"))))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  if (**(char **)(param_1 + 0xc) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;\n  iVar2 = FUN_001d47e0();\n  if ((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 5;\n    puVar3[2] = iVar2;\n    return puVar3;\n  }\n  return (undefined4 *)0x0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (if_statement "if (**(char **)(param_1 + 0xc) != 'T') {\n    return (undefined4 *)0x0;\n  }" (if "if") (parenthesized_expression "(**(char **)(param_1 + 0xc) != 'T')" (( "(") (binary_expression "**(char **)(param_1 + 0xc) != 'T'" (pointer_expression "**(char **)(param_1 + 0xc)" (* "*") (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")) () ")"))))) (!= "!=") (char_literal "'T'" (' "'") (character "T") (' "'"))) () ")")) (compound_statement "{\n    return (undefined4 *)0x0;\n  }" ({ "{") (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;" (assignment_expression "*(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 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 "*(char **)(param_1 + 0xc) + 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")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = FUN_001d47e0();" (assignment_expression "iVar2 = FUN_001d47e0()" (identifier "iVar2") (= "=") (call_expression "FUN_001d47e0()" (identifier "FUN_001d47e0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))) {\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 5;\n    puVar3[2] = iVar2;\n    return puVar3;\n  }" (if "if") (parenthesized_expression "((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18)))" (( "(") (binary_expression "(-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))" (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))" (( "(") (comma_expression "iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18)" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (, ",") (binary_expression "iVar1 < *(int *)(param_1 + 0x18)" (identifier "iVar1") (< "<") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))))) () ")"))) () ")")) (compound_statement "{\n    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);\n    puVar3[1] = 0;\n    *(int *)(param_1 + 0x14) = iVar1 + 1;\n    *puVar3 = 5;\n    puVar3[2] = iVar2;\n    return puVar3;\n  }" ({ "{") (expression_statement "puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar1 * 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + iVar1 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "iVar1 * 0x10" (identifier "iVar1") (* "*") (number_literal "0x10"))) () ")")))) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_1 + 0x14) = iVar1 + 1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1 + 1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar3 = 5;" (assignment_expression "*puVar3 = 5" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "5")) (; ";")) (expression_statement "puVar3[2] = iVar2;" (assignment_expression "puVar3[2] = iVar2" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))

type_1 * __regparm3 d_template_param(d_info *di)

{
  int var_3;
  int var_2;
  type_1 *pdVar3;
  
  if (*di->n != 'T') {
    return (type_1 *)0x0;
  }
  di->n = di->n + 1;
  var_2 = var_1(di);
  if ((-1 < var_2) && (var_3 = di->next_comp, var_3 < di->num_comps)) {
    pdVar3 = di->comps + var_3;
    pdVar3->d_printing = 0;
    di->next_comp = var_3 + 1;
    pdVar3->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;
    (pdVar3->u).s_extended_operator.args = var_2;
    return pdVar3;
  }
  return (type_1 *)0x0;
}


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

undefined4 * __regparm3 MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  undefined4 *puVar3;
  
  if (**(char **)(param_1 + 0xc) != 'T') {
    return (undefined4 *)0x0;
  }
  *(char **)(param_1 + 0xc) = *(char **)(param_1 + 0xc) + 1;
  iVar2 = FUN_001d47e0();
  if ((-1 < iVar2) && (iVar1 = *(int *)(param_1 + 0x14), iVar1 < *(int *)(param_1 + 0x18))) {
    puVar3 = (undefined4 *)(*(int *)(param_1 + 0x10) + iVar1 * 0x10);
    puVar3[1] = 0;
    *(int *)(param_1 + 0x14) = iVar1 + 1;
    *puVar3 = 5;
    puVar3[2] = iVar2;
    return puVar3;
  }
  return (undefined4 *)0x0;
}

