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

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

{
  undefined8 uVar1;
  undefined8 uVar2;
  Catalogs *this;
  long lVar3;
  undefined8 uVar4;
  char *pcVar5;
  undefined4 in_register_00000034;
  undefined4 in_register_0000003c;
  string *this_00;
  string *in_R9;
  allocator local_29;
  
  this_00 = (string *)CONCAT44(in_register_0000003c,param_1);
  if ((-1 < param_3) && (*(long *)(*(long *)in_R9 + -0x18) != 0)) {
    this = (Catalogs *)get_catalogs();
    lVar3 = Catalogs::_M_get(this,param_3);
    if (lVar3 != 0) {
      uVar1 = *(undefined8 *)in_R9;
      uVar2 = *(undefined8 *)(lVar3 + 8);
      uVar4 = __uselocale(*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10));
      pcVar5 = (char *)dgettext(uVar2,uVar1);
      __uselocale(uVar4);
      std::string::string(this_00,pcVar5,&local_29);
      return this_00;
    }
  }
  std::string::string(this_00,in_R9);
  return this_00;
}



undefined8
FUN_00321670(undefined8 param_1,long param_2,int param_3,undefined8 param_4,undefined8 param_5,
            long *param_6)

{
  long lVar1;
  undefined8 uVar2;
  long lVar3;
  undefined8 uVar4;
  undefined1 local_29;
  
  if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {
    uVar2 = FUN_0031be70();
    lVar3 = FUN_0031bd90(uVar2,param_3);
    if (lVar3 != 0) {
      lVar1 = *param_6;
      uVar2 = *(undefined8 *)(lVar3 + 8);
      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));
      uVar2 = dgettext(uVar2,lVar1);
      __uselocale(uVar4);
      FUN_0030f630(param_1,uVar2,&local_29);
      return param_1;
    }
  }
  FUN_0030edc0(param_1,param_6);
  return param_1;
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x20
TEST EDX,EDX
JS 0x0032168d
MOV RAX,qword ptr [R9]
CMP qword ptr [RAX + -0x18],0x0
JNZ 0x003216b0
MOV RDI,RBX
MOV RSI,R9
CALL 0x0030edc0
ADD RSP,0x20
MOV RAX,RBX
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV qword ptr [RSP + 0x8],R9
MOV RBP,RSI
MOV dword ptr [RSP + 0x4],EDX
CALL 0x0031be70
MOV EDX,dword ptr [RSP + 0x4]
MOV RDI,RAX
MOV ESI,EDX
CALL 0x0031bd90
MOV R9,qword ptr [RSP + 0x8]
TEST RAX,RAX
JZ 0x0032168d
MOV R14,qword ptr [R9]
MOV R13,qword ptr [RAX + 0x8]
MOV RDI,qword ptr [RBP + 0x10]
CALL 0x00147790
MOV RSI,R14
MOV RDI,R13
MOV R12,RAX
CALL 0x001470c0
MOV RDI,R12
MOV RBP,RAX
CALL 0x00147790
LEA RDX,[RSP + 0x1f]
MOV RSI,RBP
MOV RDI,RBX
CALL 0x0030f630
ADD RSP,0x20
MOV RAX,RBX
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
(translation_unit "undefined8\nFUN_00321670(undefined8 param_1,long param_2,int param_3,undefined8 param_4,undefined8 param_5,\n            long *param_6)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined1 local_29;\n  \n  if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }\n  FUN_0030edc0(param_1,param_6);\n  return param_1;\n}\n\n" (function_definition "undefined8\nFUN_00321670(undefined8 param_1,long param_2,int param_3,undefined8 param_4,undefined8 param_5,\n            long *param_6)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined1 local_29;\n  \n  if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }\n  FUN_0030edc0(param_1,param_6);\n  return param_1;\n}" type_identifier (function_declarator "FUN_00321670(undefined8 param_1,long param_2,int param_3,undefined8 param_4,undefined8 param_5,\n            long *param_6)" identifier (parameter_list "(undefined8 param_1,long param_2,int param_3,undefined8 param_4,undefined8 param_5,\n            long *param_6)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "long *param_6" (sized_type_specifier "long" long) (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined1 local_29;\n  \n  if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }\n  FUN_0030edc0(param_1,param_6);\n  return param_1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "undefined1 local_29;" type_identifier identifier ;) (if_statement "if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0))" ( (binary_expression "(-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)" (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) && (parenthesized_expression "(*(long *)(*param_6 + -0x18) != 0)" ( (binary_expression "*(long *)(*param_6 + -0x18) != 0" (pointer_expression "*(long *)(*param_6 + -0x18)" * (cast_expression "(long *)(*param_6 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_6 + -0x18)" ( (binary_expression "*param_6 + -0x18" (pointer_expression "*param_6" * identifier) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }" { (expression_statement "uVar2 = FUN_0031be70();" (assignment_expression "uVar2 = FUN_0031be70()" identifier = (call_expression "FUN_0031be70()" identifier (argument_list "()" ( )))) ;) (expression_statement "lVar3 = FUN_0031bd90(uVar2,param_3);" (assignment_expression "lVar3 = FUN_0031bd90(uVar2,param_3)" identifier = (call_expression "FUN_0031bd90(uVar2,param_3)" identifier (argument_list "(uVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }" { (expression_statement "lVar1 = *param_6;" (assignment_expression "lVar1 = *param_6" identifier = (pointer_expression "*param_6" * identifier)) ;) (expression_statement "uVar2 = *(undefined8 *)(lVar3 + 8);" (assignment_expression "uVar2 = *(undefined8 *)(lVar3 + 8)" identifier = (pointer_expression "*(undefined8 *)(lVar3 + 8)" * (cast_expression "(undefined8 *)(lVar3 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 8)" ( (binary_expression "lVar3 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));" (assignment_expression "uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10))" identifier = (call_expression "__uselocale(*(undefined8 *)(param_2 + 0x10))" identifier (argument_list "(*(undefined8 *)(param_2 + 0x10))" ( (pointer_expression "*(undefined8 *)(param_2 + 0x10)" * (cast_expression "(undefined8 *)(param_2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) )))) ;) (expression_statement "uVar2 = dgettext(uVar2,lVar1);" (assignment_expression "uVar2 = dgettext(uVar2,lVar1)" identifier = (call_expression "dgettext(uVar2,lVar1)" identifier (argument_list "(uVar2,lVar1)" ( identifier , identifier )))) ;) (expression_statement "__uselocale(uVar4);" (call_expression "__uselocale(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "FUN_0030f630(param_1,uVar2,&local_29);" (call_expression "FUN_0030f630(param_1,uVar2,&local_29)" identifier (argument_list "(param_1,uVar2,&local_29)" ( identifier , identifier , (pointer_expression "&local_29" & identifier) ))) ;) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "FUN_0030edc0(param_1,param_6);" (call_expression "FUN_0030edc0(param_1,param_6)" identifier (argument_list "(param_1,param_6)" ( identifier , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::messages<char>::do_get(int, int, int, std::string const&) const */\n\nstring * std::messages<char>::do_get(int param_1,int param_2,int param_3,string *param_4)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  Catalogs *this;\n  long lVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  undefined4 in_register_00000034;\n  undefined4 in_register_0000003c;\n  string *this_00;\n  string *in_R9;\n  allocator local_29;\n  \n  this_00 = (string *)CONCAT44(in_register_0000003c,param_1);\n  if ((-1 < param_3) && (*(long *)(*(long *)in_R9 + -0x18) != 0)) {\n    this = (Catalogs *)get_catalogs();\n    lVar3 = Catalogs::_M_get(this,param_3);\n    if (lVar3 != 0) {\n      uVar1 = *(undefined8 *)in_R9;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10));\n      pcVar5 = (char *)dgettext(uVar2,uVar1);\n      __uselocale(uVar4);\n      std::string::string(this_00,pcVar5,&local_29);\n      return this_00;\n    }\n  }\n  std::string::string(this_00,in_R9);\n  return this_00;\n}\n\n" comment (ERROR "string * std::messages<char>::do_get(int param_1,int param_2,int param_3,string *param_4)" (binary_expression "string * std::messages<char>::do_get(int param_1,int param_2,int param_3,string *param_4)" (binary_expression "string * std::messages<char" (binary_expression "string * std" identifier * identifier) (ERROR "::messages" : : identifier) < identifier) > (ERROR "::" : :) (call_expression "do_get(int param_1,int param_2,int param_3,string *param_4)" identifier (argument_list "(int param_1,int param_2,int param_3,string *param_4)" ( (ERROR "int" identifier) identifier , (ERROR "int" identifier) identifier , (ERROR "int" identifier) identifier , (binary_expression "string *param_4" identifier * identifier) ))))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  Catalogs *this;\n  long lVar3;\n  undefined8 uVar4;\n  char *pcVar5;\n  undefined4 in_register_00000034;\n  undefined4 in_register_0000003c;\n  string *this_00;\n  string *in_R9;\n  allocator local_29;\n  \n  this_00 = (string *)CONCAT44(in_register_0000003c,param_1);\n  if ((-1 < param_3) && (*(long *)(*(long *)in_R9 + -0x18) != 0)) {\n    this = (Catalogs *)get_catalogs();\n    lVar3 = Catalogs::_M_get(this,param_3);\n    if (lVar3 != 0) {\n      uVar1 = *(undefined8 *)in_R9;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10));\n      pcVar5 = (char *)dgettext(uVar2,uVar1);\n      __uselocale(uVar4);\n      std::string::string(this_00,pcVar5,&local_29);\n      return this_00;\n    }\n  }\n  std::string::string(this_00,in_R9);\n  return this_00;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "Catalogs *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 in_register_00000034;" type_identifier identifier ;) (declaration "undefined4 in_register_0000003c;" type_identifier identifier ;) (declaration "string *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "string *in_R9;" type_identifier (pointer_declarator "*in_R9" * identifier) ;) (declaration "allocator local_29;" type_identifier identifier ;) (expression_statement "this_00 = (string *)CONCAT44(in_register_0000003c,param_1);" (assignment_expression "this_00 = (string *)CONCAT44(in_register_0000003c,param_1)" identifier = (cast_expression "(string *)CONCAT44(in_register_0000003c,param_1)" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "CONCAT44(in_register_0000003c,param_1)" identifier (argument_list "(in_register_0000003c,param_1)" ( identifier , identifier ))))) ;) (if_statement "if ((-1 < param_3) && (*(long *)(*(long *)in_R9 + -0x18) != 0)) {\n    this = (Catalogs *)get_catalogs();\n    lVar3 = Catalogs::_M_get(this,param_3);\n    if (lVar3 != 0) {\n      uVar1 = *(undefined8 *)in_R9;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10));\n      pcVar5 = (char *)dgettext(uVar2,uVar1);\n      __uselocale(uVar4);\n      std::string::string(this_00,pcVar5,&local_29);\n      return this_00;\n    }\n  }" if (parenthesized_expression "((-1 < param_3) && (*(long *)(*(long *)in_R9 + -0x18) != 0))" ( (binary_expression "(-1 < param_3) && (*(long *)(*(long *)in_R9 + -0x18) != 0)" (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) && (parenthesized_expression "(*(long *)(*(long *)in_R9 + -0x18) != 0)" ( (binary_expression "*(long *)(*(long *)in_R9 + -0x18) != 0" (pointer_expression "*(long *)(*(long *)in_R9 + -0x18)" * (cast_expression "(long *)(*(long *)in_R9 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)in_R9 + -0x18)" ( (binary_expression "*(long *)in_R9 + -0x18" (pointer_expression "*(long *)in_R9" * (cast_expression "(long *)in_R9" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    this = (Catalogs *)get_catalogs();\n    lVar3 = Catalogs::_M_get(this,param_3);\n    if (lVar3 != 0) {\n      uVar1 = *(undefined8 *)in_R9;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10));\n      pcVar5 = (char *)dgettext(uVar2,uVar1);\n      __uselocale(uVar4);\n      std::string::string(this_00,pcVar5,&local_29);\n      return this_00;\n    }\n  }" { (expression_statement "this = (Catalogs *)get_catalogs();" (assignment_expression "this = (Catalogs *)get_catalogs()" identifier = (cast_expression "(Catalogs *)get_catalogs()" ( (type_descriptor "Catalogs *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "get_catalogs()" identifier (argument_list "()" ( ))))) ;) (ERROR "lVar3 = Catalogs::" (assignment_expression "lVar3 = Catalogs" identifier = identifier) : :) (expression_statement "_M_get(this,param_3);" (call_expression "_M_get(this,param_3)" identifier (argument_list "(this,param_3)" ( identifier , identifier ))) ;) (if_statement "if (lVar3 != 0) {\n      uVar1 = *(undefined8 *)in_R9;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10));\n      pcVar5 = (char *)dgettext(uVar2,uVar1);\n      __uselocale(uVar4);\n      std::string::string(this_00,pcVar5,&local_29);\n      return this_00;\n    }" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar1 = *(undefined8 *)in_R9;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10));\n      pcVar5 = (char *)dgettext(uVar2,uVar1);\n      __uselocale(uVar4);\n      std::string::string(this_00,pcVar5,&local_29);\n      return this_00;\n    }" { (expression_statement "uVar1 = *(undefined8 *)in_R9;" (assignment_expression "uVar1 = *(undefined8 *)in_R9" identifier = (pointer_expression "*(undefined8 *)in_R9" * (cast_expression "(undefined8 *)in_R9" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar2 = *(undefined8 *)(lVar3 + 8);" (assignment_expression "uVar2 = *(undefined8 *)(lVar3 + 8)" identifier = (pointer_expression "*(undefined8 *)(lVar3 + 8)" * (cast_expression "(undefined8 *)(lVar3 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 8)" ( (binary_expression "lVar3 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = __uselocale(*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10));" (assignment_expression "uVar4 = __uselocale(*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10))" identifier = (call_expression "__uselocale(*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10))" identifier (argument_list "(*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10))" ( (pointer_expression "*(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10)" * (cast_expression "(undefined8 *)(CONCAT44(in_register_00000034,param_2) + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(CONCAT44(in_register_00000034,param_2) + 0x10)" ( (binary_expression "CONCAT44(in_register_00000034,param_2) + 0x10" (call_expression "CONCAT44(in_register_00000034,param_2)" identifier (argument_list "(in_register_00000034,param_2)" ( identifier , identifier ))) + number_literal) )))) )))) ;) (expression_statement "pcVar5 = (char *)dgettext(uVar2,uVar1);" (assignment_expression "pcVar5 = (char *)dgettext(uVar2,uVar1)" identifier = (cast_expression "(char *)dgettext(uVar2,uVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dgettext(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier ))))) ;) (expression_statement "__uselocale(uVar4);" (call_expression "__uselocale(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (labeled_statement "std::string::string(this_00,pcVar5,&local_29);" statement_identifier : (ERROR ":" :) (labeled_statement "string::string(this_00,pcVar5,&local_29);" statement_identifier : (ERROR ":" :) (expression_statement "string(this_00,pcVar5,&local_29);" (call_expression "string(this_00,pcVar5,&local_29)" identifier (argument_list "(this_00,pcVar5,&local_29)" ( identifier , identifier , (pointer_expression "&local_29" & identifier) ))) ;))) (return_statement "return this_00;" return identifier ;) })) })) (labeled_statement "std::string::string(this_00,in_R9);" statement_identifier : (ERROR ":" :) (labeled_statement "string::string(this_00,in_R9);" statement_identifier : (ERROR ":" :) (expression_statement "string(this_00,in_R9);" (call_expression "string(this_00,in_R9)" identifier (argument_list "(this_00,in_R9)" ( identifier , identifier ))) ;))) (return_statement "return this_00;" return identifier ;) }))
(translation_unit "undefined8\nFUN_00321670(undefined8 param_1,long param_2,int param_3,undefined8 param_4,undefined8 param_5,\n            long *param_6)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined1 local_29;\n  \n  if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }\n  FUN_0030edc0(param_1,param_6);\n  return param_1;\n}\n\n" (function_definition "undefined8\nFUN_00321670(undefined8 param_1,long param_2,int param_3,undefined8 param_4,undefined8 param_5,\n            long *param_6)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined1 local_29;\n  \n  if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }\n  FUN_0030edc0(param_1,param_6);\n  return param_1;\n}" type_identifier (function_declarator "FUN_00321670(undefined8 param_1,long param_2,int param_3,undefined8 param_4,undefined8 param_5,\n            long *param_6)" identifier (parameter_list "(undefined8 param_1,long param_2,int param_3,undefined8 param_4,undefined8 param_5,\n            long *param_6)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "long *param_6" (sized_type_specifier "long" long) (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined1 local_29;\n  \n  if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }\n  FUN_0030edc0(param_1,param_6);\n  return param_1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "undefined1 local_29;" type_identifier identifier ;) (if_statement "if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0))" ( (binary_expression "(-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)" (parenthesized_expression "(-1 < param_3)" ( (binary_expression "-1 < param_3" number_literal < identifier) )) && (parenthesized_expression "(*(long *)(*param_6 + -0x18) != 0)" ( (binary_expression "*(long *)(*param_6 + -0x18) != 0" (pointer_expression "*(long *)(*param_6 + -0x18)" * (cast_expression "(long *)(*param_6 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_6 + -0x18)" ( (binary_expression "*param_6 + -0x18" (pointer_expression "*param_6" * identifier) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }" { (expression_statement "uVar2 = FUN_0031be70();" (assignment_expression "uVar2 = FUN_0031be70()" identifier = (call_expression "FUN_0031be70()" identifier (argument_list "()" ( )))) ;) (expression_statement "lVar3 = FUN_0031bd90(uVar2,param_3);" (assignment_expression "lVar3 = FUN_0031bd90(uVar2,param_3)" identifier = (call_expression "FUN_0031bd90(uVar2,param_3)" identifier (argument_list "(uVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }" { (expression_statement "lVar1 = *param_6;" (assignment_expression "lVar1 = *param_6" identifier = (pointer_expression "*param_6" * identifier)) ;) (expression_statement "uVar2 = *(undefined8 *)(lVar3 + 8);" (assignment_expression "uVar2 = *(undefined8 *)(lVar3 + 8)" identifier = (pointer_expression "*(undefined8 *)(lVar3 + 8)" * (cast_expression "(undefined8 *)(lVar3 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 8)" ( (binary_expression "lVar3 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));" (assignment_expression "uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10))" identifier = (call_expression "__uselocale(*(undefined8 *)(param_2 + 0x10))" identifier (argument_list "(*(undefined8 *)(param_2 + 0x10))" ( (pointer_expression "*(undefined8 *)(param_2 + 0x10)" * (cast_expression "(undefined8 *)(param_2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) )))) ;) (expression_statement "uVar2 = dgettext(uVar2,lVar1);" (assignment_expression "uVar2 = dgettext(uVar2,lVar1)" identifier = (call_expression "dgettext(uVar2,lVar1)" identifier (argument_list "(uVar2,lVar1)" ( identifier , identifier )))) ;) (expression_statement "__uselocale(uVar4);" (call_expression "__uselocale(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "FUN_0030f630(param_1,uVar2,&local_29);" (call_expression "FUN_0030f630(param_1,uVar2,&local_29)" identifier (argument_list "(param_1,uVar2,&local_29)" ( identifier , identifier , (pointer_expression "&local_29" & identifier) ))) ;) (return_statement "return param_1;" return identifier ;) })) })) (expression_statement "FUN_0030edc0(param_1,param_6);" (call_expression "FUN_0030edc0(param_1,param_6)" identifier (argument_list "(param_1,param_6)" ( identifier , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression 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 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 IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) ))) ;) (return_statement return IDENT ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined8\nFUN_00321670(undefined8 param_1,long param_2,int param_3,undefined8 param_4,undefined8 param_5,\n            long *param_6)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined1 local_29;\n  \n  if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }\n  FUN_0030edc0(param_1,param_6);\n  return param_1;\n}" (type_identifier "undefined8") (function_declarator "FUN_00321670(undefined8 param_1,long param_2,int param_3,undefined8 param_4,undefined8 param_5,\n            long *param_6)" (identifier "FUN_00321670") (parameter_list "(undefined8 param_1,long param_2,int param_3,undefined8 param_4,undefined8 param_5,\n            long *param_6)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "long *param_6" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined1 local_29;\n  \n  if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }\n  FUN_0030edc0(param_1,param_6);\n  return param_1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "undefined1 local_29;" (type_identifier "undefined1") (identifier "local_29") (; ";")) (if_statement "if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0))" (( "(") (binary_expression "(-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)" (parenthesized_expression "(-1 < param_3)" (( "(") (binary_expression "-1 < param_3" (number_literal "-1") (< "<") (identifier "param_3")) () ")")) (&& "&&") (parenthesized_expression "(*(long *)(*param_6 + -0x18) != 0)" (( "(") (binary_expression "*(long *)(*param_6 + -0x18) != 0" (pointer_expression "*(long *)(*param_6 + -0x18)" (* "*") (cast_expression "(long *)(*param_6 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_6 + -0x18)" (( "(") (binary_expression "*param_6 + -0x18" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (+ "+") (number_literal "-0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar2 = FUN_0031be70();\n    lVar3 = FUN_0031bd90(uVar2,param_3);\n    if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "uVar2 = FUN_0031be70();" (assignment_expression "uVar2 = FUN_0031be70()" (identifier "uVar2") (= "=") (call_expression "FUN_0031be70()" (identifier "FUN_0031be70") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "lVar3 = FUN_0031bd90(uVar2,param_3);" (assignment_expression "lVar3 = FUN_0031bd90(uVar2,param_3)" (identifier "lVar3") (= "=") (call_expression "FUN_0031bd90(uVar2,param_3)" (identifier "FUN_0031bd90") (argument_list "(uVar2,param_3)" (( "(") (identifier "uVar2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (lVar3 != 0) {\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }" (if "if") (parenthesized_expression "(lVar3 != 0)" (( "(") (binary_expression "lVar3 != 0" (identifier "lVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      lVar1 = *param_6;\n      uVar2 = *(undefined8 *)(lVar3 + 8);\n      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));\n      uVar2 = dgettext(uVar2,lVar1);\n      __uselocale(uVar4);\n      FUN_0030f630(param_1,uVar2,&local_29);\n      return param_1;\n    }" ({ "{") (expression_statement "lVar1 = *param_6;" (assignment_expression "lVar1 = *param_6" (identifier "lVar1") (= "=") (pointer_expression "*param_6" (* "*") (identifier "param_6"))) (; ";")) (expression_statement "uVar2 = *(undefined8 *)(lVar3 + 8);" (assignment_expression "uVar2 = *(undefined8 *)(lVar3 + 8)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined8 *)(lVar3 + 8)" (* "*") (cast_expression "(undefined8 *)(lVar3 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 8)" (( "(") (binary_expression "lVar3 + 8" (identifier "lVar3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));" (assignment_expression "uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10))" (identifier "uVar4") (= "=") (call_expression "__uselocale(*(undefined8 *)(param_2 + 0x10))" (identifier "__uselocale") (argument_list "(*(undefined8 *)(param_2 + 0x10))" (( "(") (pointer_expression "*(undefined8 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar2 = dgettext(uVar2,lVar1);" (assignment_expression "uVar2 = dgettext(uVar2,lVar1)" (identifier "uVar2") (= "=") (call_expression "dgettext(uVar2,lVar1)" (identifier "dgettext") (argument_list "(uVar2,lVar1)" (( "(") (identifier "uVar2") (, ",") (identifier "lVar1") () ")")))) (; ";")) (expression_statement "__uselocale(uVar4);" (call_expression "__uselocale(uVar4)" (identifier "__uselocale") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "FUN_0030f630(param_1,uVar2,&local_29);" (call_expression "FUN_0030f630(param_1,uVar2,&local_29)" (identifier "FUN_0030f630") (argument_list "(param_1,uVar2,&local_29)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") (, ",") (pointer_expression "&local_29" (& "&") (identifier "local_29")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0030edc0(param_1,param_6);" (call_expression "FUN_0030edc0(param_1,param_6)" (identifier "FUN_0030edc0") (argument_list "(param_1,param_6)" (( "(") (identifier "param_1") (, ",") (identifier "param_6") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

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

type_4 * std::messages<char>::do_get(int param_1,int param_2,int var_2,type_4 *param_4)

{
  type_1 uVar1;
  type_1 uVar2;
  type_2 *this;
  long var_5;
  type_1 uVar4;
  char *pcVar5;
  type_3 in_register_00000034;
  type_3 in_register_0000003c;
  type_4 *this_00;
  type_4 *in_R9;
  type_5 local_29;
  
  this_00 = (type_4 *)var_1(in_register_0000003c,param_1);
  if ((-1 < var_2) && (*(long *)(*(long *)in_R9 + -0x18) != 0)) {
    this = (type_2 *)var_3();
    var_5 = type_2::var_4(this,var_2);
    if (var_5 != 0) {
      uVar1 = *(type_1 *)in_R9;
      uVar2 = *(type_1 *)(var_5 + 8);
      uVar4 = var_6(*(type_1 *)(var_1(in_register_00000034,param_2) + 0x10));
      pcVar5 = (char *)var_7(uVar2,uVar1);
      var_6(uVar4);
      std::string::type_4(this_00,pcVar5,&local_29);
      return this_00;
    }
  }
  std::string::type_4(this_00,in_R9);
  return this_00;
}


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

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

{
  long lVar1;
  undefined8 uVar2;
  long lVar3;
  undefined8 uVar4;
  undefined1 local_29;
  
  if ((-1 < param_3) && (*(long *)(*param_6 + -0x18) != 0)) {
    uVar2 = FUN_0031be70();
    lVar3 = FUN_0031bd90(uVar2,param_3);
    if (lVar3 != 0) {
      lVar1 = *param_6;
      uVar2 = *(undefined8 *)(lVar3 + 8);
      uVar4 = __uselocale(*(undefined8 *)(param_2 + 0x10));
      uVar2 = dgettext(uVar2,lVar1);
      __uselocale(uVar4);
      FUN_0030f630(param_1,uVar2,&local_29);
      return param_1;
    }
  }
  FUN_0030edc0(param_1,param_6);
  return param_1;
}

