
demangle_component * d_template_param(d_info *di)

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



undefined4 * FUN_0048cc00(long param_1)

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  
  if (**(char **)(param_1 + 0x18) != 'T') {
    return (undefined4 *)0x0;
  }
  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;
  iVar3 = FUN_0048cbb0();
  if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {
    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);
    puVar1[1] = 0;
    *(int *)(param_1 + 0x28) = iVar2 + 1;
    *puVar1 = 5;
    *(long *)(puVar1 + 2) = (long)iVar3;
    return puVar1;
  }
  return (undefined4 *)0x0;
}


MOV RAX,qword ptr [RDI + 0x18]
CMP byte ptr [RAX],0x54
JNZ 0x0048cc60
ADD RAX,0x1
PUSH RBX
MOV RBX,RDI
MOV qword ptr [RDI + 0x18],RAX
CALL 0x0048cbb0
MOVSXD RCX,EAX
TEST ECX,ECX
JS 0x0048cc58
MOV EDX,dword ptr [RBX + 0x28]
CMP EDX,dword ptr [RBX + 0x2c]
JGE 0x0048cc58
MOVSXD RAX,EDX
ADD EDX,0x1
LEA RSI,[RAX + RAX*0x2]
MOV RAX,qword ptr [RBX + 0x20]
LEA RAX,[RAX + RSI*0x8]
MOV dword ptr [RAX + 0x4],0x0
MOV dword ptr [RBX + 0x28],EDX
MOV dword ptr [RAX],0x5
MOV qword ptr [RAX + 0x8],RCX
POP RBX
RET
XOR EAX,EAX
POP RBX
RET
XOR EAX,EAX
RET
(translation_unit "undefined4 * FUN_0048cc00(long param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (**(char **)(param_1 + 0x18) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  iVar3 = FUN_0048cbb0();\n  if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}\n\n" (function_definition "undefined4 * FUN_0048cc00(long param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (**(char **)(param_1 + 0x18) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  iVar3 = FUN_0048cbb0();\n  if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0048cc00(long param_1)" * (function_declarator "FUN_0048cc00(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (**(char **)(param_1 + 0x18) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  iVar3 = FUN_0048cbb0();\n  if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (**(char **)(param_1 + 0x18) != 'T') {\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "(**(char **)(param_1 + 0x18) != 'T')" ( (binary_expression "**(char **)(param_1 + 0x18) != 'T'" (pointer_expression "**(char **)(param_1 + 0x18)" * (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) != (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 + 0x18) = *(char **)(param_1 + 0x18) + 1;" (assignment_expression "*(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar3 = FUN_0048cbb0();" (assignment_expression "iVar3 = FUN_0048cbb0()" identifier = (call_expression "FUN_0048cbb0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }" if (parenthesized_expression "((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c)))" ( (binary_expression "(-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))" (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) && (parenthesized_expression "(iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))" ( (comma_expression "iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c)" (assignment_expression "iVar2 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) , (binary_expression "iVar2 < *(int *)(param_1 + 0x2c)" identifier < (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))))) ))) )) (compound_statement "{\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }" { (expression_statement "puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);" (assignment_expression "puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" identifier = (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" ( (binary_expression "*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) + (binary_expression "(long)iVar2 * 0x18" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x28) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x28) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = 5;" (assignment_expression "*puVar1 = 5" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(long *)(puVar1 + 2) = (long)iVar3;" (assignment_expression "*(long *)(puVar1 + 2) = (long)iVar3" (pointer_expression "*(long *)(puVar1 + 2)" * (cast_expression "(long *)(puVar1 + 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (return_statement "return puVar1;" 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 * d_template_param(d_info *di)\n\n{\n  demangle_component *pdVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (*di->n != 'T') {\n    return (demangle_component *)0x0;\n  }\n  di->n = di->n + 1;\n  iVar3 = d_compact_number(di);\n  if ((-1 < iVar3) && (iVar2 = di->next_comp, iVar2 < di->num_comps)) {\n    pdVar1 = di->comps + iVar2;\n    pdVar1->d_printing = 0;\n    di->next_comp = iVar2 + 1;\n    pdVar1->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;\n    *(long *)&pdVar1->u = (long)iVar3;\n    return pdVar1;\n  }\n  return (demangle_component *)0x0;\n}\n\n" (function_definition "demangle_component * d_template_param(d_info *di)\n\n{\n  demangle_component *pdVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (*di->n != 'T') {\n    return (demangle_component *)0x0;\n  }\n  di->n = di->n + 1;\n  iVar3 = d_compact_number(di);\n  if ((-1 < iVar3) && (iVar2 = di->next_comp, iVar2 < di->num_comps)) {\n    pdVar1 = di->comps + iVar2;\n    pdVar1->d_printing = 0;\n    di->next_comp = iVar2 + 1;\n    pdVar1->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;\n    *(long *)&pdVar1->u = (long)iVar3;\n    return pdVar1;\n  }\n  return (demangle_component *)0x0;\n}" type_identifier (pointer_declarator "* d_template_param(d_info *di)" * (function_declarator "d_template_param(d_info *di)" identifier (parameter_list "(d_info *di)" ( (parameter_declaration "d_info *di" type_identifier (pointer_declarator "*di" * identifier)) )))) (compound_statement "{\n  demangle_component *pdVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (*di->n != 'T') {\n    return (demangle_component *)0x0;\n  }\n  di->n = di->n + 1;\n  iVar3 = d_compact_number(di);\n  if ((-1 < iVar3) && (iVar2 = di->next_comp, iVar2 < di->num_comps)) {\n    pdVar1 = di->comps + iVar2;\n    pdVar1->d_printing = 0;\n    di->next_comp = iVar2 + 1;\n    pdVar1->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;\n    *(long *)&pdVar1->u = (long)iVar3;\n    return pdVar1;\n  }\n  return (demangle_component *)0x0;\n}" { (declaration "demangle_component *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type 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 "iVar3 = d_compact_number(di);" (assignment_expression "iVar3 = d_compact_number(di)" identifier = (call_expression "d_compact_number(di)" identifier (argument_list "(di)" ( identifier )))) ;) (if_statement "if ((-1 < iVar3) && (iVar2 = di->next_comp, iVar2 < di->num_comps)) {\n    pdVar1 = di->comps + iVar2;\n    pdVar1->d_printing = 0;\n    di->next_comp = iVar2 + 1;\n    pdVar1->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;\n    *(long *)&pdVar1->u = (long)iVar3;\n    return pdVar1;\n  }" if (parenthesized_expression "((-1 < iVar3) && (iVar2 = di->next_comp, iVar2 < di->num_comps))" ( (binary_expression "(-1 < iVar3) && (iVar2 = di->next_comp, iVar2 < di->num_comps)" (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) && (parenthesized_expression "(iVar2 = di->next_comp, iVar2 < di->num_comps)" ( (comma_expression "iVar2 = di->next_comp, iVar2 < di->num_comps" (assignment_expression "iVar2 = di->next_comp" identifier = (field_expression "di->next_comp" identifier -> field_identifier)) , (binary_expression "iVar2 < di->num_comps" identifier < (field_expression "di->num_comps" identifier -> field_identifier))) ))) )) (compound_statement "{\n    pdVar1 = di->comps + iVar2;\n    pdVar1->d_printing = 0;\n    di->next_comp = iVar2 + 1;\n    pdVar1->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;\n    *(long *)&pdVar1->u = (long)iVar3;\n    return pdVar1;\n  }" { (expression_statement "pdVar1 = di->comps + iVar2;" (assignment_expression "pdVar1 = di->comps + iVar2" identifier = (binary_expression "di->comps + iVar2" (field_expression "di->comps" identifier -> field_identifier) + identifier)) ;) (expression_statement "pdVar1->d_printing = 0;" (assignment_expression "pdVar1->d_printing = 0" (field_expression "pdVar1->d_printing" identifier -> field_identifier) = number_literal) ;) (expression_statement "di->next_comp = iVar2 + 1;" (assignment_expression "di->next_comp = iVar2 + 1" (field_expression "di->next_comp" identifier -> field_identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "pdVar1->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;" (assignment_expression "pdVar1->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM" (field_expression "pdVar1->type" identifier -> field_identifier) = identifier) ;) (expression_statement "*(long *)&pdVar1->u = (long)iVar3;" (assignment_expression "*(long *)&pdVar1->u = (long)iVar3" (pointer_expression "*(long *)&pdVar1->u" * (cast_expression "(long *)&pdVar1->u" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pdVar1->u" & (field_expression "pdVar1->u" identifier -> field_identifier)))) = (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (return_statement "return pdVar1;" 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 * FUN_0048cc00(long param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (**(char **)(param_1 + 0x18) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  iVar3 = FUN_0048cbb0();\n  if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}\n\n" (function_definition "undefined4 * FUN_0048cc00(long param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (**(char **)(param_1 + 0x18) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  iVar3 = FUN_0048cbb0();\n  if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0048cc00(long param_1)" * (function_declarator "FUN_0048cc00(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (**(char **)(param_1 + 0x18) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  iVar3 = FUN_0048cbb0();\n  if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (**(char **)(param_1 + 0x18) != 'T') {\n    return (undefined4 *)0x0;\n  }" if (parenthesized_expression "(**(char **)(param_1 + 0x18) != 'T')" ( (binary_expression "**(char **)(param_1 + 0x18) != 'T'" (pointer_expression "**(char **)(param_1 + 0x18)" * (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) != (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 + 0x18) = *(char **)(param_1 + 0x18) + 1;" (assignment_expression "*(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" * (cast_expression "(char **)(param_1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar3 = FUN_0048cbb0();" (assignment_expression "iVar3 = FUN_0048cbb0()" identifier = (call_expression "FUN_0048cbb0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }" if (parenthesized_expression "((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c)))" ( (binary_expression "(-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))" (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) && (parenthesized_expression "(iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))" ( (comma_expression "iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c)" (assignment_expression "iVar2 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) , (binary_expression "iVar2 < *(int *)(param_1 + 0x2c)" identifier < (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))))) ))) )) (compound_statement "{\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }" { (expression_statement "puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);" (assignment_expression "puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" identifier = (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" ( (binary_expression "*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) + (binary_expression "(long)iVar2 * 0x18" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int *)(param_1 + 0x28) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x28) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*puVar1 = 5;" (assignment_expression "*puVar1 = 5" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(long *)(puVar1 + 2) = (long)iVar3;" (assignment_expression "*(long *)(puVar1 + 2) = (long)iVar3" (pointer_expression "*(long *)(puVar1 + 2)" * (cast_expression "(long *)(puVar1 + 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = (cast_expression "(long)iVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (return_statement "return puVar1;" return identifier ;) })) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE 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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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 (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (return_statement return IDENT ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "undefined4 * FUN_0048cc00(long param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (**(char **)(param_1 + 0x18) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  iVar3 = FUN_0048cbb0();\n  if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0048cc00(long param_1)" (* "*") (function_declarator "FUN_0048cc00(long param_1)" (identifier "FUN_0048cc00") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (**(char **)(param_1 + 0x18) != 'T') {\n    return (undefined4 *)0x0;\n  }\n  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;\n  iVar3 = FUN_0048cbb0();\n  if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }\n  return (undefined4 *)0x0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (**(char **)(param_1 + 0x18) != 'T') {\n    return (undefined4 *)0x0;\n  }" (if "if") (parenthesized_expression "(**(char **)(param_1 + 0x18) != 'T')" (( "(") (binary_expression "**(char **)(param_1 + 0x18) != 'T'" (pointer_expression "**(char **)(param_1 + 0x18)" (* "*") (pointer_expression "*(char **)(param_1 + 0x18)" (* "*") (cast_expression "(char **)(param_1 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (!= "!=") (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 + 0x18) = *(char **)(param_1 + 0x18) + 1;" (assignment_expression "*(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" (* "*") (cast_expression "(char **)(param_1 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(char **)(param_1 + 0x18) + 1" (pointer_expression "*(char **)(param_1 + 0x18)" (* "*") (cast_expression "(char **)(param_1 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = FUN_0048cbb0();" (assignment_expression "iVar3 = FUN_0048cbb0()" (identifier "iVar3") (= "=") (call_expression "FUN_0048cbb0()" (identifier "FUN_0048cbb0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }" (if "if") (parenthesized_expression "((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c)))" (( "(") (binary_expression "(-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))" (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))" (( "(") (comma_expression "iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c)" (assignment_expression "iVar2 = *(int *)(param_1 + 0x28)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (, ",") (binary_expression "iVar2 < *(int *)(param_1 + 0x2c)" (identifier "iVar2") (< "<") (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))))) () ")"))) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);\n    puVar1[1] = 0;\n    *(int *)(param_1 + 0x28) = iVar2 + 1;\n    *puVar1 = 5;\n    *(long *)(puVar1 + 2) = (long)iVar3;\n    return puVar1;\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);" (assignment_expression "puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18)" (( "(") (binary_expression "*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18" (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (binary_expression "(long)iVar2 * 0x18" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (* "*") (number_literal "0x18"))) () ")")))) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_1 + 0x28) = iVar2 + 1;" (assignment_expression "*(int *)(param_1 + 0x28) = iVar2 + 1" (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar1 = 5;" (assignment_expression "*puVar1 = 5" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "5")) (; ";")) (expression_statement "*(long *)(puVar1 + 2) = (long)iVar3;" (assignment_expression "*(long *)(puVar1 + 2) = (long)iVar3" (pointer_expression "*(long *)(puVar1 + 2)" (* "*") (cast_expression "(long *)(puVar1 + 2)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (cast_expression "(long)iVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar3"))) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}"))) (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 * function_1(type_2 *di)

{
  type_1 *pdVar1;
  int var_3;
  int var_2;
  
  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)) {
    pdVar1 = di->comps + var_3;
    pdVar1->d_printing = 0;
    di->next_comp = var_3 + 1;
    pdVar1->type = DEMANGLE_COMPONENT_TEMPLATE_PARAM;
    *(long *)&pdVar1->u = (long)var_2;
    return pdVar1;
  }
  return (type_1 *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) 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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (return_statement (identifier)))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

undefined4 * MASKED(long param_1)

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  
  if (**(char **)(param_1 + 0x18) != 'T') {
    return (undefined4 *)0x0;
  }
  *(char **)(param_1 + 0x18) = *(char **)(param_1 + 0x18) + 1;
  iVar3 = FUN_0048cbb0();
  if ((-1 < iVar3) && (iVar2 = *(int *)(param_1 + 0x28), iVar2 < *(int *)(param_1 + 0x2c))) {
    puVar1 = (undefined4 *)(*(long *)(param_1 + 0x20) + (long)iVar2 * 0x18);
    puVar1[1] = 0;
    *(int *)(param_1 + 0x28) = iVar2 + 1;
    *puVar1 = 5;
    *(long *)(puVar1 + 2) = (long)iVar3;
    return puVar1;
  }
  return (undefined4 *)0x0;
}

