
/* std::messages<char>::do_get(int, int, int, std::string const&) const */

int std::messages<char>::do_get(int param_1,int param_2,int param_3,string *param_4)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  int *in_stack_00000014;
  
  if ((-1 < param_3) && (in_stack_00000014[1] != 0)) {
    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();
    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);
    if (iVar3 != 0) {
      iVar4 = *in_stack_00000014;
      uVar5 = *(undefined4 *)(iVar3 + 4);
      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));
      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);
      (*(code *)PTR___uselocale_004c5b2c)(uVar2);
      *(int *)param_1 = param_1 + 8;
      if (iVar3 == 0) {
        iVar4 = -1;
      }
      else {
        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);
        iVar4 = iVar3 + iVar4;
      }
      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);
      return param_1;
    }
  }
  puVar1 = PTR__M_construct<char*>_004c2098;
  *(int *)param_1 = param_1 + 8;
  (*(code *)puVar1)(param_1,*in_stack_00000014,*in_stack_00000014 + in_stack_00000014[1],0);
  return param_1;
}



int * FUN_003e6b0c(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,
                  int *param_6)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  
  if ((-1 < param_3) && (param_6[1] != 0)) {
    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();
    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);
    if (iVar3 != 0) {
      iVar4 = *param_6;
      uVar5 = *(undefined4 *)(iVar3 + 4);
      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));
      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);
      (*(code *)PTR___uselocale_004c5b2c)(uVar2);
      *param_1 = (int)(param_1 + 2);
      if (iVar3 == 0) {
        iVar4 = -1;
      }
      else {
        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);
        iVar4 = iVar3 + iVar4;
      }
      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);
      return param_1;
    }
  }
  puVar1 = PTR__M_construct<char*>_004c2098;
  *param_1 = (int)(param_1 + 2);
  (*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);
  return param_1;
}


lui gp,0xe
addiu gp,gp,0x2734
addu gp,gp,t9
addiu sp,sp,-0x30
sw gp,0x10(sp)
sw s2,0x24(sp)
addiu s2,a0,0x8
sw s1,0x20(sp)
sw s0,0x1c(sp)
or s0,a0,zero
sw ra,0x2c(sp)
sw s3,0x28(sp)
bltz a2,0x003e6b50
_lw s1,0x44(sp)
lw v0,0x4(s1)
bne v0,zero,0x003e6b98
_lw t9,-0x3ad8(gp)
lw t9,-0x71a8(gp)
or a3,zero,zero
sw s2,0x0(s0)
or a0,s0,zero
lw v0,0x0(s1)
sll a3,a3,0x18
lw a2,0x4(s1)
or a1,v0,zero
jalr t9
_addu a2,v0,a2
or v0,s0,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
or s3,a1,zero
jalr t9
_sw a2,0x38(sp)
lw gp,0x10(sp)
or a0,v0,zero
lw a2,0x38(sp)
lw t9,-0x3acc(gp)
jalr t9
_or a1,a2,zero
beq v0,zero,0x003e6b50
_lw gp,0x10(sp)
lw t9,-0x3714(gp)
lw a0,0x8(s3)
lw s1,0x0(s1)
jalr t9
_lw s3,0x4(v0)
lw gp,0x10(sp)
or a1,s1,zero
or a0,s3,zero
lw t9,-0x35d0(gp)
jalr t9
_or s1,v0,zero
or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x3714(gp)
jalr t9
_or s1,v0,zero
lw gp,0x10(sp)
beq s1,zero,0x003e6c5c
_sw s2,0x0(s0)
lw t9,-0x36a4(gp)
jalr t9
_or a0,s1,zero
lw gp,0x10(sp)
addu a2,s1,v0
or a3,zero,zero
lw t9,-0x76d8(gp)
or a1,s1,zero
sll a3,a3,0x18
jalr t9
_or a0,s0,zero
or v0,s0,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
b 0x003e6c24
_li a2,-0x1
(translation_unit "int * FUN_003e6b0c(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }\n  puVar1 = PTR__M_construct<char*>_004c2098;\n  *param_1 = (int)(param_1 + 2);\n  (*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);\n  return param_1;\n}\n\n" (function_definition "int * FUN_003e6b0c(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }\n  puVar1 = PTR__M_construct<char*>_004c2098;\n  *param_1 = (int)(param_1 + 2);\n  (*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_003e6b0c(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" * (function_declarator "FUN_003e6b0c(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" identifier (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }\n  puVar1 = PTR__M_construct<char*>_004c2098;\n  *param_1 = (int)(param_1 + 2);\n  (*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);\n  return param_1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (if_statement "if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((-1 < param_3) && (param_6[1] != 0))" ( (binary_expression "(-1 < param_3) && (param_6[1] != 0)" (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) && (parenthesized_expression "(param_6[1] != 0)" ( (binary_expression "param_6[1] != 0" (subscript_expression "param_6[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }" { (expression_statement "uVar2 = (*(code *)PTR_get_catalogs_004c5768)();" (assignment_expression "uVar2 = (*(code *)PTR_get_catalogs_004c5768)()" identifier = (call_expression "(*(code *)PTR_get_catalogs_004c5768)()" (parenthesized_expression "(*(code *)PTR_get_catalogs_004c5768)" ( (pointer_expression "*(code *)PTR_get_catalogs_004c5768" * (cast_expression "(code *)PTR_get_catalogs_004c5768" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);" (assignment_expression "iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3)" identifier = (call_expression "(*(code *)PTR__M_get_004c5774)(uVar2,param_3)" (parenthesized_expression "(*(code *)PTR__M_get_004c5774)" ( (pointer_expression "*(code *)PTR__M_get_004c5774" * (cast_expression "(code *)PTR__M_get_004c5774" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }" { (expression_statement "iVar4 = *param_6;" (assignment_expression "iVar4 = *param_6" identifier = (pointer_expression "*param_6" * identifier)) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar3 + 4);" (assignment_expression "uVar5 = *(undefined4 *)(iVar3 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));" (assignment_expression "uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8))" identifier = (call_expression "(*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8))" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" ( (pointer_expression "*(code *)PTR___uselocale_004c5b2c" * (cast_expression "(code *)PTR___uselocale_004c5b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 8))" ( (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);" (assignment_expression "iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4)" identifier = (call_expression "(*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4)" (parenthesized_expression "(*(code *)PTR_dgettext_004c5c70)" ( (pointer_expression "*(code *)PTR_dgettext_004c5c70" * (cast_expression "(code *)PTR_dgettext_004c5c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,iVar4)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR___uselocale_004c5b2c)(uVar2);" (call_expression "(*(code *)PTR___uselocale_004c5b2c)(uVar2)" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" ( (pointer_expression "*(code *)PTR___uselocale_004c5b2c" * (cast_expression "(code *)PTR___uselocale_004c5b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = -1;\n      }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }) (else_clause "else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }" else (compound_statement "{\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3)" identifier = (call_expression "(*(code *)PTR_strlen_004c5b9c)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_004c5b9c)" ( (pointer_expression "*(code *)PTR_strlen_004c5b9c" * (cast_expression "(code *)PTR_strlen_004c5b9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "iVar4 = iVar3 + iVar4;" (assignment_expression "iVar4 = iVar3 + iVar4" identifier = (binary_expression "iVar3 + iVar4" identifier + identifier)) ;) }))) (expression_statement "(*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);" (call_expression "(*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0)" (parenthesized_expression "(*(code *)PTR__M_construct<char_const*>_004c1b68)" ( (binary_expression "*(code *)PTR__M_construct<char_const*>_004c1b68" (binary_expression "*(code *)PTR__M_construct<char_const" (pointer_expression "*(code *)PTR__M_construct" * (cast_expression "(code *)PTR__M_construct" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) < identifier) (ERROR "*" *) > identifier) )) (argument_list "(param_1,iVar3,iVar4,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "puVar1 = PTR__M_construct<char*>_004c2098;" (assignment_expression "puVar1 = PTR__M_construct<char*>_004c2098" identifier = (binary_expression "PTR__M_construct<char*>_004c2098" (binary_expression "PTR__M_construct<char" identifier < identifier) (ERROR "*" *) > identifier)) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "(*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);" (call_expression "(*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,*param_6,*param_6 + param_6[1],0)" ( identifier , (pointer_expression "*param_6" * identifier) , (binary_expression "*param_6 + param_6[1]" (pointer_expression "*param_6" * identifier) + (subscript_expression "param_6[1]" identifier [ number_literal ])) , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::messages<char>::do_get(int, int, int, std::string const&) const */\n\nint std::messages<char>::do_get(int param_1,int param_2,int param_3,string *param_4)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *in_stack_00000014;\n  \n  if ((-1 < param_3) && (in_stack_00000014[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *in_stack_00000014;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *(int *)param_1 = param_1 + 8;\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }\n  puVar1 = PTR__M_construct<char*>_004c2098;\n  *(int *)param_1 = param_1 + 8;\n  (*(code *)puVar1)(param_1,*in_stack_00000014,*in_stack_00000014 + in_stack_00000014[1],0);\n  return param_1;\n}\n\n" comment (function_definition "int std::messages<char>::do_get(int param_1,int param_2,int param_3,string *param_4)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *in_stack_00000014;\n  \n  if ((-1 < param_3) && (in_stack_00000014[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *in_stack_00000014;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *(int *)param_1 = param_1 + 8;\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }\n  puVar1 = PTR__M_construct<char*>_004c2098;\n  *(int *)param_1 = param_1 + 8;\n  (*(code *)puVar1)(param_1,*in_stack_00000014,*in_stack_00000014 + in_stack_00000014[1],0);\n  return param_1;\n}" primitive_type (ERROR "std::messages<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "do_get(int param_1,int param_2,int param_3,string *param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,string *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "string *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *in_stack_00000014;\n  \n  if ((-1 < param_3) && (in_stack_00000014[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *in_stack_00000014;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *(int *)param_1 = param_1 + 8;\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }\n  puVar1 = PTR__M_construct<char*>_004c2098;\n  *(int *)param_1 = param_1 + 8;\n  (*(code *)puVar1)(param_1,*in_stack_00000014,*in_stack_00000014 + in_stack_00000014[1],0);\n  return param_1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int *in_stack_00000014;" primitive_type (pointer_declarator "*in_stack_00000014" * identifier) ;) (if_statement "if ((-1 < param_3) && (in_stack_00000014[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *in_stack_00000014;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *(int *)param_1 = param_1 + 8;\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((-1 < param_3) && (in_stack_00000014[1] != 0))" ( (binary_expression "(-1 < param_3) && (in_stack_00000014[1] != 0)" (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) && (parenthesized_expression "(in_stack_00000014[1] != 0)" ( (binary_expression "in_stack_00000014[1] != 0" (subscript_expression "in_stack_00000014[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *in_stack_00000014;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *(int *)param_1 = param_1 + 8;\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }" { (expression_statement "uVar2 = (*(code *)PTR_get_catalogs_004c5768)();" (assignment_expression "uVar2 = (*(code *)PTR_get_catalogs_004c5768)()" identifier = (call_expression "(*(code *)PTR_get_catalogs_004c5768)()" (parenthesized_expression "(*(code *)PTR_get_catalogs_004c5768)" ( (pointer_expression "*(code *)PTR_get_catalogs_004c5768" * (cast_expression "(code *)PTR_get_catalogs_004c5768" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);" (assignment_expression "iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3)" identifier = (call_expression "(*(code *)PTR__M_get_004c5774)(uVar2,param_3)" (parenthesized_expression "(*(code *)PTR__M_get_004c5774)" ( (pointer_expression "*(code *)PTR__M_get_004c5774" * (cast_expression "(code *)PTR__M_get_004c5774" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      iVar4 = *in_stack_00000014;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *(int *)param_1 = param_1 + 8;\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar4 = *in_stack_00000014;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *(int *)param_1 = param_1 + 8;\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }" { (expression_statement "iVar4 = *in_stack_00000014;" (assignment_expression "iVar4 = *in_stack_00000014" identifier = (pointer_expression "*in_stack_00000014" * identifier)) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar3 + 4);" (assignment_expression "uVar5 = *(undefined4 *)(iVar3 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));" (assignment_expression "uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8))" identifier = (call_expression "(*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8))" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" ( (pointer_expression "*(code *)PTR___uselocale_004c5b2c" * (cast_expression "(code *)PTR___uselocale_004c5b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 8))" ( (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);" (assignment_expression "iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4)" identifier = (call_expression "(*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4)" (parenthesized_expression "(*(code *)PTR_dgettext_004c5c70)" ( (pointer_expression "*(code *)PTR_dgettext_004c5c70" * (cast_expression "(code *)PTR_dgettext_004c5c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,iVar4)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR___uselocale_004c5b2c)(uVar2);" (call_expression "(*(code *)PTR___uselocale_004c5b2c)(uVar2)" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" ( (pointer_expression "*(code *)PTR___uselocale_004c5b2c" * (cast_expression "(code *)PTR___uselocale_004c5b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "*(int *)param_1 = param_1 + 8;" (assignment_expression "*(int *)param_1 = param_1 + 8" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = -1;\n      }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }) (else_clause "else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }" else (compound_statement "{\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3)" identifier = (call_expression "(*(code *)PTR_strlen_004c5b9c)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_004c5b9c)" ( (pointer_expression "*(code *)PTR_strlen_004c5b9c" * (cast_expression "(code *)PTR_strlen_004c5b9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "iVar4 = iVar3 + iVar4;" (assignment_expression "iVar4 = iVar3 + iVar4" identifier = (binary_expression "iVar3 + iVar4" identifier + identifier)) ;) }))) (expression_statement "(*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);" (call_expression "(*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0)" (parenthesized_expression "(*(code *)PTR__M_construct<char_const*>_004c1b68)" ( (binary_expression "*(code *)PTR__M_construct<char_const*>_004c1b68" (binary_expression "*(code *)PTR__M_construct<char_const" (pointer_expression "*(code *)PTR__M_construct" * (cast_expression "(code *)PTR__M_construct" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) < identifier) (ERROR "*" *) > identifier) )) (argument_list "(param_1,iVar3,iVar4,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "puVar1 = PTR__M_construct<char*>_004c2098;" (assignment_expression "puVar1 = PTR__M_construct<char*>_004c2098" identifier = (binary_expression "PTR__M_construct<char*>_004c2098" (binary_expression "PTR__M_construct<char" identifier < identifier) (ERROR "*" *) > identifier)) ;) (expression_statement "*(int *)param_1 = param_1 + 8;" (assignment_expression "*(int *)param_1 = param_1 + 8" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(param_1,*in_stack_00000014,*in_stack_00000014 + in_stack_00000014[1],0);" (call_expression "(*(code *)puVar1)(param_1,*in_stack_00000014,*in_stack_00000014 + in_stack_00000014[1],0)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,*in_stack_00000014,*in_stack_00000014 + in_stack_00000014[1],0)" ( identifier , (pointer_expression "*in_stack_00000014" * identifier) , (binary_expression "*in_stack_00000014 + in_stack_00000014[1]" (pointer_expression "*in_stack_00000014" * identifier) + (subscript_expression "in_stack_00000014[1]" identifier [ number_literal ])) , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "int * FUN_003e6b0c(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }\n  puVar1 = PTR__M_construct<char*>_004c2098;\n  *param_1 = (int)(param_1 + 2);\n  (*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);\n  return param_1;\n}\n\n" (function_definition "int * FUN_003e6b0c(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }\n  puVar1 = PTR__M_construct<char*>_004c2098;\n  *param_1 = (int)(param_1 + 2);\n  (*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_003e6b0c(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" * (function_declarator "FUN_003e6b0c(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" identifier (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }\n  puVar1 = PTR__M_construct<char*>_004c2098;\n  *param_1 = (int)(param_1 + 2);\n  (*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);\n  return param_1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (if_statement "if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((-1 < param_3) && (param_6[1] != 0))" ( (binary_expression "(-1 < param_3) && (param_6[1] != 0)" (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) && (parenthesized_expression "(param_6[1] != 0)" ( (binary_expression "param_6[1] != 0" (subscript_expression "param_6[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }" { (expression_statement "uVar2 = (*(code *)PTR_get_catalogs_004c5768)();" (assignment_expression "uVar2 = (*(code *)PTR_get_catalogs_004c5768)()" identifier = (call_expression "(*(code *)PTR_get_catalogs_004c5768)()" (parenthesized_expression "(*(code *)PTR_get_catalogs_004c5768)" ( (pointer_expression "*(code *)PTR_get_catalogs_004c5768" * (cast_expression "(code *)PTR_get_catalogs_004c5768" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);" (assignment_expression "iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3)" identifier = (call_expression "(*(code *)PTR__M_get_004c5774)(uVar2,param_3)" (parenthesized_expression "(*(code *)PTR__M_get_004c5774)" ( (pointer_expression "*(code *)PTR__M_get_004c5774" * (cast_expression "(code *)PTR__M_get_004c5774" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }" { (expression_statement "iVar4 = *param_6;" (assignment_expression "iVar4 = *param_6" identifier = (pointer_expression "*param_6" * identifier)) ;) (expression_statement "uVar5 = *(undefined4 *)(iVar3 + 4);" (assignment_expression "uVar5 = *(undefined4 *)(iVar3 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));" (assignment_expression "uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8))" identifier = (call_expression "(*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8))" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" ( (pointer_expression "*(code *)PTR___uselocale_004c5b2c" * (cast_expression "(code *)PTR___uselocale_004c5b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_2 + 8))" ( (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);" (assignment_expression "iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4)" identifier = (call_expression "(*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4)" (parenthesized_expression "(*(code *)PTR_dgettext_004c5c70)" ( (pointer_expression "*(code *)PTR_dgettext_004c5c70" * (cast_expression "(code *)PTR_dgettext_004c5c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5,iVar4)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR___uselocale_004c5b2c)(uVar2);" (call_expression "(*(code *)PTR___uselocale_004c5b2c)(uVar2)" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" ( (pointer_expression "*(code *)PTR___uselocale_004c5b2c" * (cast_expression "(code *)PTR___uselocale_004c5b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (if_statement "if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = -1;\n      }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }) (else_clause "else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }" else (compound_statement "{\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3)" identifier = (call_expression "(*(code *)PTR_strlen_004c5b9c)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_004c5b9c)" ( (pointer_expression "*(code *)PTR_strlen_004c5b9c" * (cast_expression "(code *)PTR_strlen_004c5b9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "iVar4 = iVar3 + iVar4;" (assignment_expression "iVar4 = iVar3 + iVar4" identifier = (binary_expression "iVar3 + iVar4" identifier + identifier)) ;) }))) (expression_statement "(*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);" (call_expression "(*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0)" (parenthesized_expression "(*(code *)PTR__M_construct<char_const*>_004c1b68)" ( (binary_expression "*(code *)PTR__M_construct<char_const*>_004c1b68" (binary_expression "*(code *)PTR__M_construct<char_const" (pointer_expression "*(code *)PTR__M_construct" * (cast_expression "(code *)PTR__M_construct" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) < identifier) (ERROR "*" *) > identifier) )) (argument_list "(param_1,iVar3,iVar4,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "puVar1 = PTR__M_construct<char*>_004c2098;" (assignment_expression "puVar1 = PTR__M_construct<char*>_004c2098" identifier = (binary_expression "PTR__M_construct<char*>_004c2098" (binary_expression "PTR__M_construct<char" identifier < identifier) (ERROR "*" *) > identifier)) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "(*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);" (call_expression "(*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,*param_6,*param_6 + param_6[1],0)" ( identifier , (pointer_expression "*param_6" * identifier) , (binary_expression "*param_6 + param_6[1]" (pointer_expression "*param_6" * identifier) + (subscript_expression "param_6[1]" identifier [ number_literal ])) , number_literal ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * 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 = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) < IDENT) (ERROR *) > IDENT) )) (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT < IDENT) (ERROR *) > IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * IDENT) , (binary_expression (pointer_expression * IDENT) + (subscript_expression IDENT [ LIT ])) , LIT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int * FUN_003e6b0c(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }\n  puVar1 = PTR__M_construct<char*>_004c2098;\n  *param_1 = (int)(param_1 + 2);\n  (*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_003e6b0c(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" (* "*") (function_declarator "FUN_003e6b0c(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" (identifier "FUN_003e6b0c") (parameter_list "(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n                  int *param_6)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "int *param_6" (primitive_type "int") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }\n  puVar1 = PTR__M_construct<char*>_004c2098;\n  *param_1 = (int)(param_1 + 2);\n  (*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);\n  return param_1;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (if_statement "if ((-1 < param_3) && (param_6[1] != 0)) {\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "((-1 < param_3) && (param_6[1] != 0))" (( "(") (binary_expression "(-1 < param_3) && (param_6[1] != 0)" (parenthesized_expression "(-1 < param_3)" (( "(") (binary_expression "-1 < param_3" (number_literal "-1") (< "<") (identifier "param_3")) () ")")) (&& "&&") (parenthesized_expression "(param_6[1] != 0)" (( "(") (binary_expression "param_6[1] != 0" (subscript_expression "param_6[1]" (identifier "param_6") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();\n    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);\n    if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_get_catalogs_004c5768)();" (assignment_expression "uVar2 = (*(code *)PTR_get_catalogs_004c5768)()" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_get_catalogs_004c5768)()" (parenthesized_expression "(*(code *)PTR_get_catalogs_004c5768)" (( "(") (pointer_expression "*(code *)PTR_get_catalogs_004c5768" (* "*") (cast_expression "(code *)PTR_get_catalogs_004c5768" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_get_catalogs_004c5768"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);" (assignment_expression "iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR__M_get_004c5774)(uVar2,param_3)" (parenthesized_expression "(*(code *)PTR__M_get_004c5774)" (( "(") (pointer_expression "*(code *)PTR__M_get_004c5774" (* "*") (cast_expression "(code *)PTR__M_get_004c5774" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_get_004c5774"))) () ")")) (argument_list "(uVar2,param_3)" (( "(") (identifier "uVar2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = *param_6;\n      uVar5 = *(undefined4 *)(iVar3 + 4);\n      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));\n      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);\n      (*(code *)PTR___uselocale_004c5b2c)(uVar2);\n      *param_1 = (int)(param_1 + 2);\n      if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }\n      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);\n      return param_1;\n    }" ({ "{") (expression_statement "iVar4 = *param_6;" (assignment_expression "iVar4 = *param_6" (identifier "iVar4") (= "=") (pointer_expression "*param_6" (* "*") (identifier "param_6"))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(iVar3 + 4);" (assignment_expression "uVar5 = *(undefined4 *)(iVar3 + 4)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(iVar3 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));" (assignment_expression "uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8))" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8))" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" (( "(") (pointer_expression "*(code *)PTR___uselocale_004c5b2c" (* "*") (cast_expression "(code *)PTR___uselocale_004c5b2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___uselocale_004c5b2c"))) () ")")) (argument_list "(*(undefined4 *)(param_2 + 8))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);" (assignment_expression "iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4)" (parenthesized_expression "(*(code *)PTR_dgettext_004c5c70)" (( "(") (pointer_expression "*(code *)PTR_dgettext_004c5c70" (* "*") (cast_expression "(code *)PTR_dgettext_004c5c70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dgettext_004c5c70"))) () ")")) (argument_list "(uVar5,iVar4)" (( "(") (identifier "uVar5") (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___uselocale_004c5b2c)(uVar2);" (call_expression "(*(code *)PTR___uselocale_004c5b2c)(uVar2)" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" (( "(") (pointer_expression "*(code *)PTR___uselocale_004c5b2c" (* "*") (cast_expression "(code *)PTR___uselocale_004c5b2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___uselocale_004c5b2c"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(param_1 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        iVar4 = -1;\n      }\n      else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = -1;\n      }" ({ "{") (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }" (else "else") (compound_statement "{\n        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);\n        iVar4 = iVar3 + iVar4;\n      }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_004c5b9c)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_004c5b9c)" (( "(") (pointer_expression "*(code *)PTR_strlen_004c5b9c" (* "*") (cast_expression "(code *)PTR_strlen_004c5b9c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_004c5b9c"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "iVar4 = iVar3 + iVar4;" (assignment_expression "iVar4 = iVar3 + iVar4" (identifier "iVar4") (= "=") (binary_expression "iVar3 + iVar4" (identifier "iVar3") (+ "+") (identifier "iVar4"))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);" (call_expression "(*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0)" (parenthesized_expression "(*(code *)PTR__M_construct<char_const*>_004c1b68)" (( "(") (binary_expression "*(code *)PTR__M_construct<char_const*>_004c1b68" (binary_expression "*(code *)PTR__M_construct<char_const" (pointer_expression "*(code *)PTR__M_construct" (* "*") (cast_expression "(code *)PTR__M_construct" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_construct"))) (< "<") (identifier "char_const")) (ERROR "*" (* "*")) (> ">") (identifier "_004c1b68")) () ")")) (argument_list "(param_1,iVar3,iVar4,0)" (( "(") (identifier "param_1") (, ",") (identifier "iVar3") (, ",") (identifier "iVar4") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar1 = PTR__M_construct<char*>_004c2098;" (assignment_expression "puVar1 = PTR__M_construct<char*>_004c2098" (identifier "puVar1") (= "=") (binary_expression "PTR__M_construct<char*>_004c2098" (binary_expression "PTR__M_construct<char" (identifier "PTR__M_construct") (< "<") (identifier "char")) (ERROR "*" (* "*")) (> ">") (identifier "_004c2098"))) (; ";")) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(param_1 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "(*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);" (call_expression "(*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(param_1,*param_6,*param_6 + param_6[1],0)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*param_6" (* "*") (identifier "param_6")) (, ",") (binary_expression "*param_6 + param_6[1]" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (+ "+") (subscript_expression "param_6[1]" (identifier "param_6") ([ "[") (number_literal "1") (] "]"))) (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (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: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (call_expression function: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)) (ERROR) right: (identifier))) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (return_statement (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) (ERROR) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (binary_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal))) (number_literal)))) (return_statement (identifier)))))

int * MASKED(int *param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,
                  int *param_6)

{
  undefined *puVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  
  if ((-1 < param_3) && (param_6[1] != 0)) {
    uVar2 = (*(code *)PTR_get_catalogs_004c5768)();
    iVar3 = (*(code *)PTR__M_get_004c5774)(uVar2,param_3);
    if (iVar3 != 0) {
      iVar4 = *param_6;
      uVar5 = *(undefined4 *)(iVar3 + 4);
      uVar2 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_2 + 8));
      iVar3 = (*(code *)PTR_dgettext_004c5c70)(uVar5,iVar4);
      (*(code *)PTR___uselocale_004c5b2c)(uVar2);
      *param_1 = (int)(param_1 + 2);
      if (iVar3 == 0) {
        iVar4 = -1;
      }
      else {
        iVar4 = (*(code *)PTR_strlen_004c5b9c)(iVar3);
        iVar4 = iVar3 + iVar4;
      }
      (*(code *)PTR__M_construct<char_const*>_004c1b68)(param_1,iVar3,iVar4,0);
      return param_1;
    }
  }
  puVar1 = PTR__M_construct<char*>_004c2098;
  *param_1 = (int)(param_1 + 2);
  (*(code *)puVar1)(param_1,*param_6,*param_6 + param_6[1],0);
  return param_1;
}

