
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: uint * add_string(Stringpool_template<unsigned_int> * this, uint * s,
   size_t len) */

uint * __thiscall
gold::Stringpool_template<unsigned_int>::add_string
          (Stringpool_template<unsigned_int> *this,uint *s,size_t len)

{
  size_t *psVar1;
  size_t __n;
  uint *__dest;
  _List_node_base *p_Var2;
  _List_node_base *this_00;
  _List_node_base *p_Var3;
  _List_node_base *p_Var4;
  
  if (this->strtab_size_ != 0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/stringpool.cc",0x9a,"add_string");
  }
  __n = len * 4;
  p_Var3 = (_List_node_base *)(__n + 4);
  if (p_Var3 < (_List_node_base *)0x3e9) {
    p_Var4 = (this->strings_).
             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>
             ._M_impl._M_node.super__List_node_base._M_next;
    if (p_Var4 != (_List_node_base *)&this->strings_) {
      p_Var4 = p_Var4[1]._M_next;
      if (p_Var3 <= (_List_node_base *)((long)p_Var4->_M_prev - (long)p_Var4->_M_next)) {
        __dest = (uint *)((long)(p_Var4 + 1) + (long)p_Var4->_M_next);
        memcpy(__dest,s,__n);
        __dest[len] = 0;
        p_Var4->_M_next = (_List_node_base *)((long)&p_Var3->_M_next + (long)p_Var4->_M_next);
        return __dest;
      }
    }
    p_Var2 = (_List_node_base *)operator_new__(0x400);
    p_Var2->_M_prev = (_List_node_base *)0x3e8;
    p_Var4 = p_Var2 + 1;
    memcpy(p_Var4,s,__n);
    *(undefined4 *)((long)&p_Var2[1]._M_next + __n) = 0;
    p_Var2->_M_next = p_Var3;
    p_Var3 = (this->strings_).
             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>
             ._M_impl._M_node.super__List_node_base._M_next;
    this_00 = (_List_node_base *)operator_new(0x18);
    this_00[1]._M_next = p_Var2;
    std::__detail::_List_node_base::_M_hook(this_00,p_Var3);
    psVar1 = &(this->strings_).
              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>
              ._M_impl._M_node._M_size;
    *psVar1 = *psVar1 + 1;
  }
  else {
    p_Var2 = (_List_node_base *)operator_new__(__n + 0x1c);
    p_Var2->_M_prev = p_Var3;
    p_Var4 = p_Var2 + 1;
    memcpy(p_Var4,s,__n);
    *(undefined4 *)((long)&p_Var4->_M_next + __n) = 0;
    p_Var2->_M_next = p_Var3;
    p_Var3 = (_List_node_base *)operator_new(0x18);
    p_Var3[1]._M_next = p_Var2;
    std::__detail::_List_node_base::_M_hook(p_Var3,(_List_node_base *)&this->strings_);
    psVar1 = &(this->strings_).
              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>
              ._M_impl._M_node._M_size;
    *psVar1 = *psVar1 + 1;
  }
  return (uint *)p_Var4;
}



ulong * FUN_00219c10(long param_1,void *param_2,long param_3)

{
  size_t __n;
  ulong uVar1;
  long *plVar2;
  undefined8 uVar3;
  ulong *puVar4;
  long lVar5;
  ulong *puVar6;
  
  if (*(long *)(param_1 + 0x70) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");
  }
  __n = param_3 * 4;
  uVar1 = __n + 4;
  if (uVar1 < 0x3e9) {
    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {
      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);
      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {
        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);
        memcpy(puVar6,param_2,__n);
        *(undefined4 *)((long)puVar6 + __n) = 0;
        *plVar2 = *plVar2 + uVar1;
        return puVar6;
      }
    }
    puVar4 = (ulong *)thunk_FUN_00275550(0x400);
    puVar4[1] = 1000;
    puVar6 = puVar4 + 2;
    memcpy(puVar6,param_2,__n);
    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;
    *puVar4 = uVar1;
    uVar3 = *(undefined8 *)(param_1 + 0x58);
    lVar5 = FUN_00275550(0x18);
    *(ulong **)(lVar5 + 0x10) = puVar4;
    FUN_00279bc0(lVar5,uVar3);
    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;
  }
  else {
    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);
    puVar4[1] = uVar1;
    puVar6 = puVar4 + 2;
    memcpy(puVar6,param_2,__n);
    *(undefined4 *)((long)puVar6 + __n) = 0;
    *puVar4 = uVar1;
    lVar5 = FUN_00275550(0x18);
    *(ulong **)(lVar5 + 0x10) = puVar4;
    FUN_00279bc0(lVar5,param_1 + 0x58);
    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;
  }
  return puVar6;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
CMP qword ptr [RDI + 0x70],0x0
JNZ 0x00219d50
LEA RBP,[0x4 + RDX*0x4]
MOV RBX,RDI
LEA RCX,[RDI + 0x58]
MOV R15,RSI
LEA R13,[RBP + -0x4]
CMP RBP,0x3e8
JA 0x00219cd8
MOV RAX,qword ptr [RDI + 0x58]
CMP RAX,RCX
JZ 0x00219c6c
MOV R14,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [R14]
MOV RAX,qword ptr [R14 + 0x8]
SUB RAX,RDX
CMP RAX,RBP
JNC 0x00219d30
MOV EDI,0x400
CALL 0x002754f0
MOV RDX,R13
MOV RSI,R15
MOV qword ptr [RAX + 0x8],0x3e8
LEA R12,[RAX + 0x10]
MOV R14,RAX
MOV RDI,R12
CALL 0x0013eaa0
MOV EDI,0x18
MOV dword ptr [R14 + R13*0x1 + 0x10],0x0
MOV qword ptr [R14],RBP
MOV RBP,qword ptr [RBX + 0x58]
CALL 0x00275550
MOV RSI,RBP
MOV qword ptr [RAX + 0x10],R14
MOV RDI,RAX
CALL 0x00279bc0
ADD qword ptr [RBX + 0x68],0x1
ADD RSP,0x18
MOV RAX,R12
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
LEA RDI,[RBP + 0x18]
MOV qword ptr [RSP + 0x8],RCX
CALL 0x002754f0
MOV RDX,R13
MOV RSI,R15
MOV qword ptr [RAX + 0x8],RBP
LEA R12,[RAX + 0x10]
MOV R14,RAX
MOV RDI,R12
CALL 0x0013eaa0
MOV dword ptr [R12 + R13*0x1],0x0
MOV EDI,0x18
MOV qword ptr [R14],RBP
CALL 0x00275550
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x10],R14
MOV RDI,RAX
MOV RSI,RCX
CALL 0x00279bc0
ADD qword ptr [RBX + 0x68],0x1
JMP 0x00219cc1
LEA R12,[R14 + RDX*0x1 + 0x10]
MOV RDX,R13
MOV RDI,R12
CALL 0x0013eaa0
MOV dword ptr [R12 + R13*0x1],0x0
ADD qword ptr [R14],RBP
JMP 0x00219cc1
LEA RDX,[0x31eb30]
MOV ESI,0x9a
LEA RDI,[0x31eaba]
CALL 0x0016cdf0
(translation_unit "ulong * FUN_00219c10(long param_1,void *param_2,long param_3)\n\n{\n  size_t __n;\n  ulong uVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  long lVar5;\n  ulong *puVar6;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }\n  __n = param_3 * 4;\n  uVar1 = __n + 4;\n  if (uVar1 < 0x3e9) {\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  return puVar6;\n}\n\n" (function_definition "ulong * FUN_00219c10(long param_1,void *param_2,long param_3)\n\n{\n  size_t __n;\n  ulong uVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  long lVar5;\n  ulong *puVar6;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }\n  __n = param_3 * 4;\n  uVar1 = __n + 4;\n  if (uVar1 < 0x3e9) {\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  return puVar6;\n}" type_identifier (pointer_declarator "* FUN_00219c10(long param_1,void *param_2,long param_3)" * (function_declarator "FUN_00219c10(long param_1,void *param_2,long param_3)" identifier (parameter_list "(long param_1,void *param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  size_t __n;\n  ulong uVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  long lVar5;\n  ulong *puVar6;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }\n  __n = param_3 * 4;\n  uVar1 = __n + 4;\n  if (uVar1 < 0x3e9) {\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  return puVar6;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "ulong *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (if_statement "if (*(long *)(param_1 + 0x70) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x70) != 0)" ( (binary_expression "*(long *)(param_1 + 0x70) != 0" (pointer_expression "*(long *)(param_1 + 0x70)" * (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }" { comment (expression_statement "FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");" (call_expression "FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string")" identifier (argument_list "("../../gold/stringpool.cc",0x9a,"add_string")" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""add_string"" " string_content ") ))) ;) })) (expression_statement "__n = param_3 * 4;" (assignment_expression "__n = param_3 * 4" identifier = (binary_expression "param_3 * 4" identifier * number_literal)) ;) (expression_statement "uVar1 = __n + 4;" (assignment_expression "uVar1 = __n + 4" identifier = (binary_expression "__n + 4" identifier + number_literal)) ;) (if_statement "if (uVar1 < 0x3e9) {\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }" if (parenthesized_expression "(uVar1 < 0x3e9)" ( (binary_expression "uVar1 < 0x3e9" identifier < number_literal) )) (compound_statement "{\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }" { (if_statement "if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }" if (parenthesized_expression "(*(long *)(param_1 + 0x58) != param_1 + 0x58)" ( (binary_expression "*(long *)(param_1 + 0x58) != param_1 + 0x58" (pointer_expression "*(long *)(param_1 + 0x58)" * (cast_expression "(long *)(param_1 + 0x58)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) != (binary_expression "param_1 + 0x58" identifier + number_literal)) )) (compound_statement "{\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }" { (expression_statement "plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);" (assignment_expression "plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10)" identifier = (pointer_expression "*(long **)(*(long *)(param_1 + 0x58) + 0x10)" * (cast_expression "(long **)(*(long *)(param_1 + 0x58) + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 0x58) + 0x10)" ( (binary_expression "*(long *)(param_1 + 0x58) + 0x10" (pointer_expression "*(long *)(param_1 + 0x58)" * (cast_expression "(long *)(param_1 + 0x58)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }" if (parenthesized_expression "(uVar1 <= (ulong)(plVar2[1] - *plVar2))" ( (binary_expression "uVar1 <= (ulong)(plVar2[1] - *plVar2)" identifier <= (call_expression "(ulong)(plVar2[1] - *plVar2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(plVar2[1] - *plVar2)" ( (binary_expression "plVar2[1] - *plVar2" (subscript_expression "plVar2[1]" identifier [ number_literal ]) - (pointer_expression "*plVar2" * identifier)) )))) )) (compound_statement "{\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }" { (expression_statement "puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);" (assignment_expression "puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10)" identifier = (cast_expression "(ulong *)((long)plVar2 + *plVar2 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + *plVar2 + 0x10)" ( (binary_expression "(long)plVar2 + *plVar2 + 0x10" (binary_expression "(long)plVar2 + *plVar2" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*plVar2" * identifier)) + number_literal) )))) ;) (expression_statement "memcpy(puVar6,param_2,__n);" (call_expression "memcpy(puVar6,param_2,__n)" identifier (argument_list "(puVar6,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)((long)puVar6 + __n) = 0;" (assignment_expression "*(undefined4 *)((long)puVar6 + __n) = 0" (pointer_expression "*(undefined4 *)((long)puVar6 + __n)" * (cast_expression "(undefined4 *)((long)puVar6 + __n)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar6 + __n)" ( (binary_expression "(long)puVar6 + __n" (cast_expression "(long)puVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*plVar2 = *plVar2 + uVar1;" (assignment_expression "*plVar2 = *plVar2 + uVar1" (pointer_expression "*plVar2" * identifier) = (binary_expression "*plVar2 + uVar1" (pointer_expression "*plVar2" * identifier) + identifier)) ;) (return_statement "return puVar6;" return identifier ;) })) })) (expression_statement "puVar4 = (ulong *)thunk_FUN_00275550(0x400);" (assignment_expression "puVar4 = (ulong *)thunk_FUN_00275550(0x400)" identifier = (cast_expression "(ulong *)thunk_FUN_00275550(0x400)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_00275550(0x400)" identifier (argument_list "(0x400)" ( number_literal ))))) ;) (expression_statement "puVar4[1] = 1000;" (assignment_expression "puVar4[1] = 1000" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6 = puVar4 + 2;" (assignment_expression "puVar6 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) (expression_statement "memcpy(puVar6,param_2,__n);" (call_expression "memcpy(puVar6,param_2,__n)" identifier (argument_list "(puVar6,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)((long)puVar4 + __n + 0x10) = 0;" (assignment_expression "*(undefined4 *)((long)puVar4 + __n + 0x10) = 0" (pointer_expression "*(undefined4 *)((long)puVar4 + __n + 0x10)" * (cast_expression "(undefined4 *)((long)puVar4 + __n + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar4 + __n + 0x10)" ( (binary_expression "(long)puVar4 + __n + 0x10" (binary_expression "(long)puVar4 + __n" (cast_expression "(long)puVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "uVar3 = *(undefined8 *)(param_1 + 0x58);" (assignment_expression "uVar3 = *(undefined8 *)(param_1 + 0x58)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x58)" * (cast_expression "(undefined8 *)(param_1 + 0x58)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) ))))) ;) (expression_statement "lVar5 = FUN_00275550(0x18);" (assignment_expression "lVar5 = FUN_00275550(0x18)" identifier = (call_expression "FUN_00275550(0x18)" identifier (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "*(ulong **)(lVar5 + 0x10) = puVar4;" (assignment_expression "*(ulong **)(lVar5 + 0x10) = puVar4" (pointer_expression "*(ulong **)(lVar5 + 0x10)" * (cast_expression "(ulong **)(lVar5 + 0x10)" ( (type_descriptor "ulong **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + 0x10)" ( (binary_expression "lVar5 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00279bc0(lVar5,uVar3);" (call_expression "FUN_00279bc0(lVar5,uVar3)" identifier (argument_list "(lVar5,uVar3)" ( identifier , identifier ))) ;) (expression_statement "*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;" (assignment_expression "*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1" (pointer_expression "*(long *)(param_1 + 0x68)" * (cast_expression "(long *)(param_1 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x68) + 1" (pointer_expression "*(long *)(param_1 + 0x68)" * (cast_expression "(long *)(param_1 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }" else (compound_statement "{\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }" { (expression_statement "puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);" (assignment_expression "puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c)" identifier = (cast_expression "(ulong *)thunk_FUN_00275550(__n + 0x1c)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_00275550(__n + 0x1c)" identifier (argument_list "(__n + 0x1c)" ( (binary_expression "__n + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "puVar4[1] = uVar1;" (assignment_expression "puVar4[1] = uVar1" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6 = puVar4 + 2;" (assignment_expression "puVar6 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) (expression_statement "memcpy(puVar6,param_2,__n);" (call_expression "memcpy(puVar6,param_2,__n)" identifier (argument_list "(puVar6,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)((long)puVar6 + __n) = 0;" (assignment_expression "*(undefined4 *)((long)puVar6 + __n) = 0" (pointer_expression "*(undefined4 *)((long)puVar6 + __n)" * (cast_expression "(undefined4 *)((long)puVar6 + __n)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar6 + __n)" ( (binary_expression "(long)puVar6 + __n" (cast_expression "(long)puVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "lVar5 = FUN_00275550(0x18);" (assignment_expression "lVar5 = FUN_00275550(0x18)" identifier = (call_expression "FUN_00275550(0x18)" identifier (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "*(ulong **)(lVar5 + 0x10) = puVar4;" (assignment_expression "*(ulong **)(lVar5 + 0x10) = puVar4" (pointer_expression "*(ulong **)(lVar5 + 0x10)" * (cast_expression "(ulong **)(lVar5 + 0x10)" ( (type_descriptor "ulong **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + 0x10)" ( (binary_expression "lVar5 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00279bc0(lVar5,param_1 + 0x58);" (call_expression "FUN_00279bc0(lVar5,param_1 + 0x58)" identifier (argument_list "(lVar5,param_1 + 0x58)" ( identifier , (binary_expression "param_1 + 0x58" identifier + number_literal) ))) ;) (expression_statement "*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;" (assignment_expression "*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1" (pointer_expression "*(long *)(param_1 + 0x68)" * (cast_expression "(long *)(param_1 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x68) + 1" (pointer_expression "*(long *)(param_1 + 0x68)" * (cast_expression "(long *)(param_1 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) + number_literal)) ;) }))) (return_statement "return puVar6;" return identifier ;) })))
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n/* DWARF original prototype: uint * add_string(Stringpool_template<unsigned_int> * this, uint * s,\n   size_t len) */\n\nuint * __thiscall\ngold::Stringpool_template<unsigned_int>::add_string\n          (Stringpool_template<unsigned_int> *this,uint *s,size_t len)\n\n{\n  size_t *psVar1;\n  size_t __n;\n  uint *__dest;\n  _List_node_base *p_Var2;\n  _List_node_base *this_00;\n  _List_node_base *p_Var3;\n  _List_node_base *p_Var4;\n  \n  if (this->strtab_size_ != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x9a,"add_string");\n  }\n  __n = len * 4;\n  p_Var3 = (_List_node_base *)(__n + 4);\n  if (p_Var3 < (_List_node_base *)0x3e9) {\n    p_Var4 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    if (p_Var4 != (_List_node_base *)&this->strings_) {\n      p_Var4 = p_Var4[1]._M_next;\n      if (p_Var3 <= (_List_node_base *)((long)p_Var4->_M_prev - (long)p_Var4->_M_next)) {\n        __dest = (uint *)((long)(p_Var4 + 1) + (long)p_Var4->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var4->_M_next = (_List_node_base *)((long)&p_Var3->_M_next + (long)p_Var4->_M_next);\n        return __dest;\n      }\n    }\n    p_Var2 = (_List_node_base *)operator_new__(0x400);\n    p_Var2->_M_prev = (_List_node_base *)0x3e8;\n    p_Var4 = p_Var2 + 1;\n    memcpy(p_Var4,s,__n);\n    *(undefined4 *)((long)&p_Var2[1]._M_next + __n) = 0;\n    p_Var2->_M_next = p_Var3;\n    p_Var3 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    this_00 = (_List_node_base *)operator_new(0x18);\n    this_00[1]._M_next = p_Var2;\n    std::__detail::_List_node_base::_M_hook(this_00,p_Var3);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n  }\n  else {\n    p_Var2 = (_List_node_base *)operator_new__(__n + 0x1c);\n    p_Var2->_M_prev = p_Var3;\n    p_Var4 = p_Var2 + 1;\n    memcpy(p_Var4,s,__n);\n    *(undefined4 *)((long)&p_Var4->_M_next + __n) = 0;\n    p_Var2->_M_next = p_Var3;\n    p_Var3 = (_List_node_base *)operator_new(0x18);\n    p_Var3[1]._M_next = p_Var2;\n    std::__detail::_List_node_base::_M_hook(p_Var3,(_List_node_base *)&this->strings_);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n  }\n  return (uint *)p_Var4;\n}\n\n" comment comment (ERROR "uint * __thiscall\ngold::Stringpool_template<unsigned_int>::add_string\n          (Stringpool_template<unsigned_int> *this,uint *s,size_t len)" (binary_expression "uint * __thiscall\ngold::Stringpool_template<unsigned_int>::add_string\n          (Stringpool_template<unsigned_int> *this,uint *s,size_t len)" (binary_expression "uint * __thiscall\ngold::Stringpool_template<unsigned_int" (binary_expression "uint * __thiscall" identifier * identifier) (ERROR "gold::Stringpool_template" identifier : : identifier) < identifier) > (ERROR "::" : :) (call_expression "add_string\n          (Stringpool_template<unsigned_int> *this,uint *s,size_t len)" identifier (argument_list "(Stringpool_template<unsigned_int> *this,uint *s,size_t len)" ( (binary_expression "Stringpool_template<unsigned_int> *this" (binary_expression "Stringpool_template<unsigned_int" identifier < identifier) > (pointer_expression "*this" * identifier)) , (binary_expression "uint *s" identifier * identifier) , identifier (ERROR "len" identifier) ))))) (compound_statement "{\n  size_t *psVar1;\n  size_t __n;\n  uint *__dest;\n  _List_node_base *p_Var2;\n  _List_node_base *this_00;\n  _List_node_base *p_Var3;\n  _List_node_base *p_Var4;\n  \n  if (this->strtab_size_ != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x9a,"add_string");\n  }\n  __n = len * 4;\n  p_Var3 = (_List_node_base *)(__n + 4);\n  if (p_Var3 < (_List_node_base *)0x3e9) {\n    p_Var4 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    if (p_Var4 != (_List_node_base *)&this->strings_) {\n      p_Var4 = p_Var4[1]._M_next;\n      if (p_Var3 <= (_List_node_base *)((long)p_Var4->_M_prev - (long)p_Var4->_M_next)) {\n        __dest = (uint *)((long)(p_Var4 + 1) + (long)p_Var4->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var4->_M_next = (_List_node_base *)((long)&p_Var3->_M_next + (long)p_Var4->_M_next);\n        return __dest;\n      }\n    }\n    p_Var2 = (_List_node_base *)operator_new__(0x400);\n    p_Var2->_M_prev = (_List_node_base *)0x3e8;\n    p_Var4 = p_Var2 + 1;\n    memcpy(p_Var4,s,__n);\n    *(undefined4 *)((long)&p_Var2[1]._M_next + __n) = 0;\n    p_Var2->_M_next = p_Var3;\n    p_Var3 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    this_00 = (_List_node_base *)operator_new(0x18);\n    this_00[1]._M_next = p_Var2;\n    std::__detail::_List_node_base::_M_hook(this_00,p_Var3);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n  }\n  else {\n    p_Var2 = (_List_node_base *)operator_new__(__n + 0x1c);\n    p_Var2->_M_prev = p_Var3;\n    p_Var4 = p_Var2 + 1;\n    memcpy(p_Var4,s,__n);\n    *(undefined4 *)((long)&p_Var4->_M_next + __n) = 0;\n    p_Var2->_M_next = p_Var3;\n    p_Var3 = (_List_node_base *)operator_new(0x18);\n    p_Var3[1]._M_next = p_Var2;\n    std::__detail::_List_node_base::_M_hook(p_Var3,(_List_node_base *)&this->strings_);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n  }\n  return (uint *)p_Var4;\n}" { (declaration "size_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "uint *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "_List_node_base *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "_List_node_base *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "_List_node_base *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "_List_node_base *p_Var4;" type_identifier (pointer_declarator "*p_Var4" * identifier) ;) (if_statement "if (this->strtab_size_ != 0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x9a,"add_string");\n  }" if (parenthesized_expression "(this->strtab_size_ != 0)" ( (binary_expression "this->strtab_size_ != 0" (field_expression "this->strtab_size_" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/stringpool.cc",0x9a,"add_string");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/stringpool.cc",0x9a,"add_string");" (call_expression "do_gold_unreachable("../../gold/stringpool.cc",0x9a,"add_string")" identifier (argument_list "("../../gold/stringpool.cc",0x9a,"add_string")" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""add_string"" " string_content ") ))) ;) })) (expression_statement "__n = len * 4;" (assignment_expression "__n = len * 4" identifier = (binary_expression "len * 4" identifier * number_literal)) ;) (expression_statement "p_Var3 = (_List_node_base *)(__n + 4);" (assignment_expression "p_Var3 = (_List_node_base *)(__n + 4)" identifier = (cast_expression "(_List_node_base *)(__n + 4)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__n + 4)" ( (binary_expression "__n + 4" identifier + number_literal) )))) ;) (if_statement "if (p_Var3 < (_List_node_base *)0x3e9) {\n    p_Var4 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    if (p_Var4 != (_List_node_base *)&this->strings_) {\n      p_Var4 = p_Var4[1]._M_next;\n      if (p_Var3 <= (_List_node_base *)((long)p_Var4->_M_prev - (long)p_Var4->_M_next)) {\n        __dest = (uint *)((long)(p_Var4 + 1) + (long)p_Var4->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var4->_M_next = (_List_node_base *)((long)&p_Var3->_M_next + (long)p_Var4->_M_next);\n        return __dest;\n      }\n    }\n    p_Var2 = (_List_node_base *)operator_new__(0x400);\n    p_Var2->_M_prev = (_List_node_base *)0x3e8;\n    p_Var4 = p_Var2 + 1;\n    memcpy(p_Var4,s,__n);\n    *(undefined4 *)((long)&p_Var2[1]._M_next + __n) = 0;\n    p_Var2->_M_next = p_Var3;\n    p_Var3 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    this_00 = (_List_node_base *)operator_new(0x18);\n    this_00[1]._M_next = p_Var2;\n    std::__detail::_List_node_base::_M_hook(this_00,p_Var3);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n  }\n  else {\n    p_Var2 = (_List_node_base *)operator_new__(__n + 0x1c);\n    p_Var2->_M_prev = p_Var3;\n    p_Var4 = p_Var2 + 1;\n    memcpy(p_Var4,s,__n);\n    *(undefined4 *)((long)&p_Var4->_M_next + __n) = 0;\n    p_Var2->_M_next = p_Var3;\n    p_Var3 = (_List_node_base *)operator_new(0x18);\n    p_Var3[1]._M_next = p_Var2;\n    std::__detail::_List_node_base::_M_hook(p_Var3,(_List_node_base *)&this->strings_);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n  }" if (parenthesized_expression "(p_Var3 < (_List_node_base *)0x3e9)" ( (binary_expression "p_Var3 < (_List_node_base *)0x3e9" identifier < (cast_expression "(_List_node_base *)0x3e9" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p_Var4 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    if (p_Var4 != (_List_node_base *)&this->strings_) {\n      p_Var4 = p_Var4[1]._M_next;\n      if (p_Var3 <= (_List_node_base *)((long)p_Var4->_M_prev - (long)p_Var4->_M_next)) {\n        __dest = (uint *)((long)(p_Var4 + 1) + (long)p_Var4->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var4->_M_next = (_List_node_base *)((long)&p_Var3->_M_next + (long)p_Var4->_M_next);\n        return __dest;\n      }\n    }\n    p_Var2 = (_List_node_base *)operator_new__(0x400);\n    p_Var2->_M_prev = (_List_node_base *)0x3e8;\n    p_Var4 = p_Var2 + 1;\n    memcpy(p_Var4,s,__n);\n    *(undefined4 *)((long)&p_Var2[1]._M_next + __n) = 0;\n    p_Var2->_M_next = p_Var3;\n    p_Var3 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    this_00 = (_List_node_base *)operator_new(0x18);\n    this_00[1]._M_next = p_Var2;\n    std::__detail::_List_node_base::_M_hook(this_00,p_Var3);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n  }" { (ERROR "p_Var4 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::" (comma_expression "p_Var4 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std" (binary_expression "p_Var4 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata" (binary_expression "p_Var4 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int" (assignment_expression "p_Var4 = (this->strings_).\n             super__List_base<gold" identifier = (binary_expression "(this->strings_).\n             super__List_base<gold" (field_expression "(this->strings_).\n             super__List_base" (parenthesized_expression "(this->strings_)" ( (field_expression "this->strings_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Stringpool_template" : : identifier) < identifier) > (ERROR "::" : :) identifier) (ERROR "*" *) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (expression_statement "Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl" (binary_expression "Stringpool_template<unsigned_int>::Stringdata*>_" (binary_expression "Stringpool_template<unsigned_int>::Stringdata" (binary_expression "Stringpool_template<unsigned_int" identifier < identifier) > (ERROR "::" : :) identifier) (ERROR "*" *) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) . field_identifier) . field_identifier) ;) (if_statement "if (p_Var4 != (_List_node_base *)&this->strings_) {\n      p_Var4 = p_Var4[1]._M_next;\n      if (p_Var3 <= (_List_node_base *)((long)p_Var4->_M_prev - (long)p_Var4->_M_next)) {\n        __dest = (uint *)((long)(p_Var4 + 1) + (long)p_Var4->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var4->_M_next = (_List_node_base *)((long)&p_Var3->_M_next + (long)p_Var4->_M_next);\n        return __dest;\n      }\n    }" if (parenthesized_expression "(p_Var4 != (_List_node_base *)&this->strings_)" ( (binary_expression "p_Var4 != (_List_node_base *)&this->strings_" identifier != (cast_expression "(_List_node_base *)&this->strings_" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->strings_" & (field_expression "this->strings_" identifier -> field_identifier)))) )) (compound_statement "{\n      p_Var4 = p_Var4[1]._M_next;\n      if (p_Var3 <= (_List_node_base *)((long)p_Var4->_M_prev - (long)p_Var4->_M_next)) {\n        __dest = (uint *)((long)(p_Var4 + 1) + (long)p_Var4->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var4->_M_next = (_List_node_base *)((long)&p_Var3->_M_next + (long)p_Var4->_M_next);\n        return __dest;\n      }\n    }" { (expression_statement "p_Var4 = p_Var4[1]._M_next;" (assignment_expression "p_Var4 = p_Var4[1]._M_next" identifier = (field_expression "p_Var4[1]._M_next" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier)) ;) (if_statement "if (p_Var3 <= (_List_node_base *)((long)p_Var4->_M_prev - (long)p_Var4->_M_next)) {\n        __dest = (uint *)((long)(p_Var4 + 1) + (long)p_Var4->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var4->_M_next = (_List_node_base *)((long)&p_Var3->_M_next + (long)p_Var4->_M_next);\n        return __dest;\n      }" if (parenthesized_expression "(p_Var3 <= (_List_node_base *)((long)p_Var4->_M_prev - (long)p_Var4->_M_next))" ( (binary_expression "p_Var3 <= (_List_node_base *)((long)p_Var4->_M_prev - (long)p_Var4->_M_next)" identifier <= (cast_expression "(_List_node_base *)((long)p_Var4->_M_prev - (long)p_Var4->_M_next)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p_Var4->_M_prev - (long)p_Var4->_M_next)" ( (binary_expression "(long)p_Var4->_M_prev - (long)p_Var4->_M_next" (cast_expression "(long)p_Var4->_M_prev" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "p_Var4->_M_prev" identifier -> field_identifier)) - (cast_expression "(long)p_Var4->_M_next" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "p_Var4->_M_next" identifier -> field_identifier))) )))) )) (compound_statement "{\n        __dest = (uint *)((long)(p_Var4 + 1) + (long)p_Var4->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var4->_M_next = (_List_node_base *)((long)&p_Var3->_M_next + (long)p_Var4->_M_next);\n        return __dest;\n      }" { (expression_statement "__dest = (uint *)((long)(p_Var4 + 1) + (long)p_Var4->_M_next);" (assignment_expression "__dest = (uint *)((long)(p_Var4 + 1) + (long)p_Var4->_M_next)" identifier = (cast_expression "(uint *)((long)(p_Var4 + 1) + (long)p_Var4->_M_next)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)(p_Var4 + 1) + (long)p_Var4->_M_next)" ( (binary_expression "(long)(p_Var4 + 1) + (long)p_Var4->_M_next" (cast_expression "(long)(p_Var4 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(p_Var4 + 1)" ( (binary_expression "p_Var4 + 1" identifier + number_literal) ))) + (cast_expression "(long)p_Var4->_M_next" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "p_Var4->_M_next" identifier -> field_identifier))) )))) ;) (expression_statement "memcpy(__dest,s,__n);" (call_expression "memcpy(__dest,s,__n)" identifier (argument_list "(__dest,s,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "__dest[len] = 0;" (assignment_expression "__dest[len] = 0" (subscript_expression "__dest[len]" identifier [ identifier ]) = number_literal) ;) (expression_statement "p_Var4->_M_next = (_List_node_base *)((long)&p_Var3->_M_next + (long)p_Var4->_M_next);" (assignment_expression "p_Var4->_M_next = (_List_node_base *)((long)&p_Var3->_M_next + (long)p_Var4->_M_next)" (field_expression "p_Var4->_M_next" identifier -> field_identifier) = (cast_expression "(_List_node_base *)((long)&p_Var3->_M_next + (long)p_Var4->_M_next)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&p_Var3->_M_next + (long)p_Var4->_M_next)" ( (binary_expression "(long)&p_Var3->_M_next + (long)p_Var4->_M_next" (cast_expression "(long)&p_Var3->_M_next" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p_Var3->_M_next" & (field_expression "p_Var3->_M_next" identifier -> field_identifier))) + (cast_expression "(long)p_Var4->_M_next" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "p_Var4->_M_next" identifier -> field_identifier))) )))) ;) (return_statement "return __dest;" return identifier ;) })) })) (expression_statement "p_Var2 = (_List_node_base *)operator_new__(0x400);" (assignment_expression "p_Var2 = (_List_node_base *)operator_new__(0x400)" identifier = (cast_expression "(_List_node_base *)operator_new__(0x400)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(0x400)" identifier (argument_list "(0x400)" ( number_literal ))))) ;) (expression_statement "p_Var2->_M_prev = (_List_node_base *)0x3e8;" (assignment_expression "p_Var2->_M_prev = (_List_node_base *)0x3e8" (field_expression "p_Var2->_M_prev" identifier -> field_identifier) = (cast_expression "(_List_node_base *)0x3e8" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "p_Var4 = p_Var2 + 1;" (assignment_expression "p_Var4 = p_Var2 + 1" identifier = (binary_expression "p_Var2 + 1" identifier + number_literal)) ;) (expression_statement "memcpy(p_Var4,s,__n);" (call_expression "memcpy(p_Var4,s,__n)" identifier (argument_list "(p_Var4,s,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)((long)&p_Var2[1]._M_next + __n) = 0;" (assignment_expression "*(undefined4 *)((long)&p_Var2[1]._M_next + __n) = 0" (pointer_expression "*(undefined4 *)((long)&p_Var2[1]._M_next + __n)" * (cast_expression "(undefined4 *)((long)&p_Var2[1]._M_next + __n)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&p_Var2[1]._M_next + __n)" ( (binary_expression "(long)&p_Var2[1]._M_next + __n" (cast_expression "(long)&p_Var2[1]._M_next" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p_Var2[1]._M_next" & (field_expression "p_Var2[1]._M_next" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier))) + identifier) )))) = number_literal) ;) (expression_statement "p_Var2->_M_next = p_Var3;" (assignment_expression "p_Var2->_M_next = p_Var3" (field_expression "p_Var2->_M_next" identifier -> field_identifier) = identifier) ;) (ERROR "p_Var3 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::" (comma_expression "p_Var3 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std" (binary_expression "p_Var3 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata" (binary_expression "p_Var3 = (this->strings_).\n             super__List_base<gold::Stringpool_template<unsigned_int" (assignment_expression "p_Var3 = (this->strings_).\n             super__List_base<gold" identifier = (binary_expression "(this->strings_).\n             super__List_base<gold" (field_expression "(this->strings_).\n             super__List_base" (parenthesized_expression "(this->strings_)" ( (field_expression "this->strings_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Stringpool_template" : : identifier) < identifier) > (ERROR "::" : :) identifier) (ERROR "*" *) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (expression_statement "Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n             ._M_impl" (binary_expression "Stringpool_template<unsigned_int>::Stringdata*>_" (binary_expression "Stringpool_template<unsigned_int>::Stringdata" (binary_expression "Stringpool_template<unsigned_int" identifier < identifier) > (ERROR "::" : :) identifier) (ERROR "*" *) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) . field_identifier) . field_identifier) ;) (expression_statement "this_00 = (_List_node_base *)operator_new(0x18);" (assignment_expression "this_00 = (_List_node_base *)operator_new(0x18)" identifier = (cast_expression "(_List_node_base *)operator_new(0x18)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "this_00[1]._M_next = p_Var2;" (assignment_expression "this_00[1]._M_next = p_Var2" (field_expression "this_00[1]._M_next" (subscript_expression "this_00[1]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (labeled_statement "std::__detail::_List_node_base::_M_hook(this_00,p_Var3);" statement_identifier : (ERROR ":" :) (labeled_statement "__detail::_List_node_base::_M_hook(this_00,p_Var3);" statement_identifier : (ERROR ":" :) (labeled_statement "_List_node_base::_M_hook(this_00,p_Var3);" statement_identifier : (ERROR ":" :) (expression_statement "_M_hook(this_00,p_Var3);" (call_expression "_M_hook(this_00,p_Var3)" identifier (argument_list "(this_00,p_Var3)" ( identifier , identifier ))) ;)))) (ERROR "psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::" (comma_expression "psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std" (binary_expression "psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata" (binary_expression "psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int" (assignment_expression "psVar1 = &(this->strings_).\n              super__List_base<gold" identifier = (binary_expression "&(this->strings_).\n              super__List_base<gold" (pointer_expression "&(this->strings_).\n              super__List_base" & (field_expression "(this->strings_).\n              super__List_base" (parenthesized_expression "(this->strings_)" ( (field_expression "this->strings_" identifier -> field_identifier) )) . field_identifier)) < identifier)) (ERROR "::Stringpool_template" : : identifier) < identifier) > (ERROR "::" : :) identifier) (ERROR "*" *) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (expression_statement "Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl" (binary_expression "Stringpool_template<unsigned_int>::Stringdata*>_" (binary_expression "Stringpool_template<unsigned_int>::Stringdata" (binary_expression "Stringpool_template<unsigned_int" identifier < identifier) > (ERROR "::" : :) identifier) (ERROR "*" *) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) . field_identifier) ;) (expression_statement "*psVar1 = *psVar1 + 1;" (assignment_expression "*psVar1 = *psVar1 + 1" (pointer_expression "*psVar1" * identifier) = (binary_expression "*psVar1 + 1" (pointer_expression "*psVar1" * identifier) + number_literal)) ;) }) (else_clause "else {\n    p_Var2 = (_List_node_base *)operator_new__(__n + 0x1c);\n    p_Var2->_M_prev = p_Var3;\n    p_Var4 = p_Var2 + 1;\n    memcpy(p_Var4,s,__n);\n    *(undefined4 *)((long)&p_Var4->_M_next + __n) = 0;\n    p_Var2->_M_next = p_Var3;\n    p_Var3 = (_List_node_base *)operator_new(0x18);\n    p_Var3[1]._M_next = p_Var2;\n    std::__detail::_List_node_base::_M_hook(p_Var3,(_List_node_base *)&this->strings_);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n  }" else (compound_statement "{\n    p_Var2 = (_List_node_base *)operator_new__(__n + 0x1c);\n    p_Var2->_M_prev = p_Var3;\n    p_Var4 = p_Var2 + 1;\n    memcpy(p_Var4,s,__n);\n    *(undefined4 *)((long)&p_Var4->_M_next + __n) = 0;\n    p_Var2->_M_next = p_Var3;\n    p_Var3 = (_List_node_base *)operator_new(0x18);\n    p_Var3[1]._M_next = p_Var2;\n    std::__detail::_List_node_base::_M_hook(p_Var3,(_List_node_base *)&this->strings_);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n  }" { (expression_statement "p_Var2 = (_List_node_base *)operator_new__(__n + 0x1c);" (assignment_expression "p_Var2 = (_List_node_base *)operator_new__(__n + 0x1c)" identifier = (cast_expression "(_List_node_base *)operator_new__(__n + 0x1c)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(__n + 0x1c)" identifier (argument_list "(__n + 0x1c)" ( (binary_expression "__n + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "p_Var2->_M_prev = p_Var3;" (assignment_expression "p_Var2->_M_prev = p_Var3" (field_expression "p_Var2->_M_prev" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var4 = p_Var2 + 1;" (assignment_expression "p_Var4 = p_Var2 + 1" identifier = (binary_expression "p_Var2 + 1" identifier + number_literal)) ;) (expression_statement "memcpy(p_Var4,s,__n);" (call_expression "memcpy(p_Var4,s,__n)" identifier (argument_list "(p_Var4,s,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)((long)&p_Var4->_M_next + __n) = 0;" (assignment_expression "*(undefined4 *)((long)&p_Var4->_M_next + __n) = 0" (pointer_expression "*(undefined4 *)((long)&p_Var4->_M_next + __n)" * (cast_expression "(undefined4 *)((long)&p_Var4->_M_next + __n)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&p_Var4->_M_next + __n)" ( (binary_expression "(long)&p_Var4->_M_next + __n" (cast_expression "(long)&p_Var4->_M_next" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p_Var4->_M_next" & (field_expression "p_Var4->_M_next" identifier -> field_identifier))) + identifier) )))) = number_literal) ;) (expression_statement "p_Var2->_M_next = p_Var3;" (assignment_expression "p_Var2->_M_next = p_Var3" (field_expression "p_Var2->_M_next" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var3 = (_List_node_base *)operator_new(0x18);" (assignment_expression "p_Var3 = (_List_node_base *)operator_new(0x18)" identifier = (cast_expression "(_List_node_base *)operator_new(0x18)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "p_Var3[1]._M_next = p_Var2;" (assignment_expression "p_Var3[1]._M_next = p_Var2" (field_expression "p_Var3[1]._M_next" (subscript_expression "p_Var3[1]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (labeled_statement "std::__detail::_List_node_base::_M_hook(p_Var3,(_List_node_base *)&this->strings_);" statement_identifier : (ERROR ":" :) (labeled_statement "__detail::_List_node_base::_M_hook(p_Var3,(_List_node_base *)&this->strings_);" statement_identifier : (ERROR ":" :) (labeled_statement "_List_node_base::_M_hook(p_Var3,(_List_node_base *)&this->strings_);" statement_identifier : (ERROR ":" :) (expression_statement "_M_hook(p_Var3,(_List_node_base *)&this->strings_);" (call_expression "_M_hook(p_Var3,(_List_node_base *)&this->strings_)" identifier (argument_list "(p_Var3,(_List_node_base *)&this->strings_)" ( identifier , (cast_expression "(_List_node_base *)&this->strings_" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->strings_" & (field_expression "this->strings_" identifier -> field_identifier))) ))) ;)))) (ERROR "psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std::allocator<gold::" (comma_expression "psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata*,_std" (binary_expression "psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int>::Stringdata" (binary_expression "psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<unsigned_int" (assignment_expression "psVar1 = &(this->strings_).\n              super__List_base<gold" identifier = (binary_expression "&(this->strings_).\n              super__List_base<gold" (pointer_expression "&(this->strings_).\n              super__List_base" & (field_expression "(this->strings_).\n              super__List_base" (parenthesized_expression "(this->strings_)" ( (field_expression "this->strings_" identifier -> field_identifier) )) . field_identifier)) < identifier)) (ERROR "::Stringpool_template" : : identifier) < identifier) > (ERROR "::" : :) identifier) (ERROR "*" *) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (expression_statement "Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node" (field_expression "Stringpool_template<unsigned_int>::Stringdata*>_>\n              ._M_impl" (binary_expression "Stringpool_template<unsigned_int>::Stringdata*>_" (binary_expression "Stringpool_template<unsigned_int>::Stringdata" (binary_expression "Stringpool_template<unsigned_int" identifier < identifier) > (ERROR "::" : :) identifier) (ERROR "*" *) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) . field_identifier) ;) (expression_statement "*psVar1 = *psVar1 + 1;" (assignment_expression "*psVar1 = *psVar1 + 1" (pointer_expression "*psVar1" * identifier) = (binary_expression "*psVar1 + 1" (pointer_expression "*psVar1" * identifier) + number_literal)) ;) }))) (return_statement "return (uint *)p_Var4;" return (cast_expression "(uint *)p_Var4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) }))
(translation_unit "ulong * FUN_00219c10(long param_1,void *param_2,long param_3)\n\n{\n  size_t __n;\n  ulong uVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  long lVar5;\n  ulong *puVar6;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }\n  __n = param_3 * 4;\n  uVar1 = __n + 4;\n  if (uVar1 < 0x3e9) {\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  return puVar6;\n}\n\n" (function_definition "ulong * FUN_00219c10(long param_1,void *param_2,long param_3)\n\n{\n  size_t __n;\n  ulong uVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  long lVar5;\n  ulong *puVar6;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }\n  __n = param_3 * 4;\n  uVar1 = __n + 4;\n  if (uVar1 < 0x3e9) {\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  return puVar6;\n}" type_identifier (pointer_declarator "* FUN_00219c10(long param_1,void *param_2,long param_3)" * (function_declarator "FUN_00219c10(long param_1,void *param_2,long param_3)" identifier (parameter_list "(long param_1,void *param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  size_t __n;\n  ulong uVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  long lVar5;\n  ulong *puVar6;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }\n  __n = param_3 * 4;\n  uVar1 = __n + 4;\n  if (uVar1 < 0x3e9) {\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  return puVar6;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "ulong *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (if_statement "if (*(long *)(param_1 + 0x70) != 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x70) != 0)" ( (binary_expression "*(long *)(param_1 + 0x70) != 0" (pointer_expression "*(long *)(param_1 + 0x70)" * (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }" { (expression_statement "FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");" (call_expression "FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string")" identifier (argument_list "("../../gold/stringpool.cc",0x9a,"add_string")" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""add_string"" " string_content ") ))) ;) })) (expression_statement "__n = param_3 * 4;" (assignment_expression "__n = param_3 * 4" identifier = (binary_expression "param_3 * 4" identifier * number_literal)) ;) (expression_statement "uVar1 = __n + 4;" (assignment_expression "uVar1 = __n + 4" identifier = (binary_expression "__n + 4" identifier + number_literal)) ;) (if_statement "if (uVar1 < 0x3e9) {\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }" if (parenthesized_expression "(uVar1 < 0x3e9)" ( (binary_expression "uVar1 < 0x3e9" identifier < number_literal) )) (compound_statement "{\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }" { (if_statement "if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }" if (parenthesized_expression "(*(long *)(param_1 + 0x58) != param_1 + 0x58)" ( (binary_expression "*(long *)(param_1 + 0x58) != param_1 + 0x58" (pointer_expression "*(long *)(param_1 + 0x58)" * (cast_expression "(long *)(param_1 + 0x58)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) != (binary_expression "param_1 + 0x58" identifier + number_literal)) )) (compound_statement "{\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }" { (expression_statement "plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);" (assignment_expression "plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10)" identifier = (pointer_expression "*(long **)(*(long *)(param_1 + 0x58) + 0x10)" * (cast_expression "(long **)(*(long *)(param_1 + 0x58) + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 0x58) + 0x10)" ( (binary_expression "*(long *)(param_1 + 0x58) + 0x10" (pointer_expression "*(long *)(param_1 + 0x58)" * (cast_expression "(long *)(param_1 + 0x58)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }" if (parenthesized_expression "(uVar1 <= (ulong)(plVar2[1] - *plVar2))" ( (binary_expression "uVar1 <= (ulong)(plVar2[1] - *plVar2)" identifier <= (call_expression "(ulong)(plVar2[1] - *plVar2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(plVar2[1] - *plVar2)" ( (binary_expression "plVar2[1] - *plVar2" (subscript_expression "plVar2[1]" identifier [ number_literal ]) - (pointer_expression "*plVar2" * identifier)) )))) )) (compound_statement "{\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }" { (expression_statement "puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);" (assignment_expression "puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10)" identifier = (cast_expression "(ulong *)((long)plVar2 + *plVar2 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + *plVar2 + 0x10)" ( (binary_expression "(long)plVar2 + *plVar2 + 0x10" (binary_expression "(long)plVar2 + *plVar2" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*plVar2" * identifier)) + number_literal) )))) ;) (expression_statement "memcpy(puVar6,param_2,__n);" (call_expression "memcpy(puVar6,param_2,__n)" identifier (argument_list "(puVar6,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)((long)puVar6 + __n) = 0;" (assignment_expression "*(undefined4 *)((long)puVar6 + __n) = 0" (pointer_expression "*(undefined4 *)((long)puVar6 + __n)" * (cast_expression "(undefined4 *)((long)puVar6 + __n)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar6 + __n)" ( (binary_expression "(long)puVar6 + __n" (cast_expression "(long)puVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*plVar2 = *plVar2 + uVar1;" (assignment_expression "*plVar2 = *plVar2 + uVar1" (pointer_expression "*plVar2" * identifier) = (binary_expression "*plVar2 + uVar1" (pointer_expression "*plVar2" * identifier) + identifier)) ;) (return_statement "return puVar6;" return identifier ;) })) })) (expression_statement "puVar4 = (ulong *)thunk_FUN_00275550(0x400);" (assignment_expression "puVar4 = (ulong *)thunk_FUN_00275550(0x400)" identifier = (cast_expression "(ulong *)thunk_FUN_00275550(0x400)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_00275550(0x400)" identifier (argument_list "(0x400)" ( number_literal ))))) ;) (expression_statement "puVar4[1] = 1000;" (assignment_expression "puVar4[1] = 1000" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6 = puVar4 + 2;" (assignment_expression "puVar6 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) (expression_statement "memcpy(puVar6,param_2,__n);" (call_expression "memcpy(puVar6,param_2,__n)" identifier (argument_list "(puVar6,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)((long)puVar4 + __n + 0x10) = 0;" (assignment_expression "*(undefined4 *)((long)puVar4 + __n + 0x10) = 0" (pointer_expression "*(undefined4 *)((long)puVar4 + __n + 0x10)" * (cast_expression "(undefined4 *)((long)puVar4 + __n + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar4 + __n + 0x10)" ( (binary_expression "(long)puVar4 + __n + 0x10" (binary_expression "(long)puVar4 + __n" (cast_expression "(long)puVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "uVar3 = *(undefined8 *)(param_1 + 0x58);" (assignment_expression "uVar3 = *(undefined8 *)(param_1 + 0x58)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x58)" * (cast_expression "(undefined8 *)(param_1 + 0x58)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) ))))) ;) (expression_statement "lVar5 = FUN_00275550(0x18);" (assignment_expression "lVar5 = FUN_00275550(0x18)" identifier = (call_expression "FUN_00275550(0x18)" identifier (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "*(ulong **)(lVar5 + 0x10) = puVar4;" (assignment_expression "*(ulong **)(lVar5 + 0x10) = puVar4" (pointer_expression "*(ulong **)(lVar5 + 0x10)" * (cast_expression "(ulong **)(lVar5 + 0x10)" ( (type_descriptor "ulong **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + 0x10)" ( (binary_expression "lVar5 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00279bc0(lVar5,uVar3);" (call_expression "FUN_00279bc0(lVar5,uVar3)" identifier (argument_list "(lVar5,uVar3)" ( identifier , identifier ))) ;) (expression_statement "*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;" (assignment_expression "*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1" (pointer_expression "*(long *)(param_1 + 0x68)" * (cast_expression "(long *)(param_1 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x68) + 1" (pointer_expression "*(long *)(param_1 + 0x68)" * (cast_expression "(long *)(param_1 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }" else (compound_statement "{\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }" { (expression_statement "puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);" (assignment_expression "puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c)" identifier = (cast_expression "(ulong *)thunk_FUN_00275550(__n + 0x1c)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_00275550(__n + 0x1c)" identifier (argument_list "(__n + 0x1c)" ( (binary_expression "__n + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "puVar4[1] = uVar1;" (assignment_expression "puVar4[1] = uVar1" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6 = puVar4 + 2;" (assignment_expression "puVar6 = puVar4 + 2" identifier = (binary_expression "puVar4 + 2" identifier + number_literal)) ;) (expression_statement "memcpy(puVar6,param_2,__n);" (call_expression "memcpy(puVar6,param_2,__n)" identifier (argument_list "(puVar6,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)((long)puVar6 + __n) = 0;" (assignment_expression "*(undefined4 *)((long)puVar6 + __n) = 0" (pointer_expression "*(undefined4 *)((long)puVar6 + __n)" * (cast_expression "(undefined4 *)((long)puVar6 + __n)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar6 + __n)" ( (binary_expression "(long)puVar6 + __n" (cast_expression "(long)puVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "lVar5 = FUN_00275550(0x18);" (assignment_expression "lVar5 = FUN_00275550(0x18)" identifier = (call_expression "FUN_00275550(0x18)" identifier (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "*(ulong **)(lVar5 + 0x10) = puVar4;" (assignment_expression "*(ulong **)(lVar5 + 0x10) = puVar4" (pointer_expression "*(ulong **)(lVar5 + 0x10)" * (cast_expression "(ulong **)(lVar5 + 0x10)" ( (type_descriptor "ulong **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + 0x10)" ( (binary_expression "lVar5 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00279bc0(lVar5,param_1 + 0x58);" (call_expression "FUN_00279bc0(lVar5,param_1 + 0x58)" identifier (argument_list "(lVar5,param_1 + 0x58)" ( identifier , (binary_expression "param_1 + 0x58" identifier + number_literal) ))) ;) (expression_statement "*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;" (assignment_expression "*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1" (pointer_expression "*(long *)(param_1 + 0x68)" * (cast_expression "(long *)(param_1 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x68) + 1" (pointer_expression "*(long *)(param_1 + 0x68)" * (cast_expression "(long *)(param_1 + 0x68)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) + number_literal)) ;) }))) (return_statement "return puVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) - (pointer_expression * IDENT)) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * IDENT)) + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }))) (return_statement return IDENT ;) })))
(function_definition "ulong * FUN_00219c10(long param_1,void *param_2,long param_3)\n\n{\n  size_t __n;\n  ulong uVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  long lVar5;\n  ulong *puVar6;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }\n  __n = param_3 * 4;\n  uVar1 = __n + 4;\n  if (uVar1 < 0x3e9) {\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  return puVar6;\n}" (type_identifier "ulong") (pointer_declarator "* FUN_00219c10(long param_1,void *param_2,long param_3)" (* "*") (function_declarator "FUN_00219c10(long param_1,void *param_2,long param_3)" (identifier "FUN_00219c10") (parameter_list "(long param_1,void *param_2,long param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")")))) (compound_statement "{\n  size_t __n;\n  ulong uVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  long lVar5;\n  ulong *puVar6;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }\n  __n = param_3 * 4;\n  uVar1 = __n + 4;\n  if (uVar1 < 0x3e9) {\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  return puVar6;\n}" ({ "{") (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "ulong *puVar4;" (type_identifier "ulong") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "ulong *puVar6;" (type_identifier "ulong") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (if_statement "if (*(long *)(param_1 + 0x70) != 0) {\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x70) != 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x70) != 0" (pointer_expression "*(long *)(param_1 + 0x70)" (* "*") (cast_expression "(long *)(param_1 + 0x70)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");\n  }" ({ "{") (expression_statement "FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");" (call_expression "FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string")" (identifier "FUN_0016cdf0") (argument_list "("../../gold/stringpool.cc",0x9a,"add_string")" (( "(") (string_literal ""../../gold/stringpool.cc"" (" """) (string_content "../../gold/stringpool.cc") (" """)) (, ",") (number_literal "0x9a") (, ",") (string_literal ""add_string"" (" """) (string_content "add_string") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "__n = param_3 * 4;" (assignment_expression "__n = param_3 * 4" (identifier "__n") (= "=") (binary_expression "param_3 * 4" (identifier "param_3") (* "*") (number_literal "4"))) (; ";")) (expression_statement "uVar1 = __n + 4;" (assignment_expression "uVar1 = __n + 4" (identifier "uVar1") (= "=") (binary_expression "__n + 4" (identifier "__n") (+ "+") (number_literal "4"))) (; ";")) (if_statement "if (uVar1 < 0x3e9) {\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }\n  else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }" (if "if") (parenthesized_expression "(uVar1 < 0x3e9)" (( "(") (binary_expression "uVar1 < 0x3e9" (identifier "uVar1") (< "<") (number_literal "0x3e9")) () ")")) (compound_statement "{\n    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }\n    puVar4 = (ulong *)thunk_FUN_00275550(0x400);\n    puVar4[1] = 1000;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;\n    *puVar4 = uVar1;\n    uVar3 = *(undefined8 *)(param_1 + 0x58);\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,uVar3);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }" ({ "{") (if_statement "if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x58) != param_1 + 0x58)" (( "(") (binary_expression "*(long *)(param_1 + 0x58) != param_1 + 0x58" (pointer_expression "*(long *)(param_1 + 0x58)" (* "*") (cast_expression "(long *)(param_1 + 0x58)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (!= "!=") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58"))) () ")")) (compound_statement "{\n      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);\n      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }\n    }" ({ "{") (expression_statement "plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);" (assignment_expression "plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10)" (identifier "plVar2") (= "=") (pointer_expression "*(long **)(*(long *)(param_1 + 0x58) + 0x10)" (* "*") (cast_expression "(long **)(*(long *)(param_1 + 0x58) + 0x10)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x58) + 0x10)" (( "(") (binary_expression "*(long *)(param_1 + 0x58) + 0x10" (pointer_expression "*(long *)(param_1 + 0x58)" (* "*") (cast_expression "(long *)(param_1 + 0x58)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }" (if "if") (parenthesized_expression "(uVar1 <= (ulong)(plVar2[1] - *plVar2))" (( "(") (binary_expression "uVar1 <= (ulong)(plVar2[1] - *plVar2)" (identifier "uVar1") (<= "<=") (call_expression "(ulong)(plVar2[1] - *plVar2)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(plVar2[1] - *plVar2)" (( "(") (binary_expression "plVar2[1] - *plVar2" (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]")) (- "-") (pointer_expression "*plVar2" (* "*") (identifier "plVar2"))) () ")")))) () ")")) (compound_statement "{\n        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);\n        memcpy(puVar6,param_2,__n);\n        *(undefined4 *)((long)puVar6 + __n) = 0;\n        *plVar2 = *plVar2 + uVar1;\n        return puVar6;\n      }" ({ "{") (expression_statement "puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);" (assignment_expression "puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10)" (identifier "puVar6") (= "=") (cast_expression "(ulong *)((long)plVar2 + *plVar2 + 0x10)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + *plVar2 + 0x10)" (( "(") (binary_expression "(long)plVar2 + *plVar2 + 0x10" (binary_expression "(long)plVar2 + *plVar2" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (pointer_expression "*plVar2" (* "*") (identifier "plVar2"))) (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "memcpy(puVar6,param_2,__n);" (call_expression "memcpy(puVar6,param_2,__n)" (identifier "memcpy") (argument_list "(puVar6,param_2,__n)" (( "(") (identifier "puVar6") (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "*(undefined4 *)((long)puVar6 + __n) = 0;" (assignment_expression "*(undefined4 *)((long)puVar6 + __n) = 0" (pointer_expression "*(undefined4 *)((long)puVar6 + __n)" (* "*") (cast_expression "(undefined4 *)((long)puVar6 + __n)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar6 + __n)" (( "(") (binary_expression "(long)puVar6 + __n" (cast_expression "(long)puVar6" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar6")) (+ "+") (identifier "__n")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*plVar2 = *plVar2 + uVar1;" (assignment_expression "*plVar2 = *plVar2 + uVar1" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (= "=") (binary_expression "*plVar2 + uVar1" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (+ "+") (identifier "uVar1"))) (; ";")) (return_statement "return puVar6;" (return "return") (identifier "puVar6") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar4 = (ulong *)thunk_FUN_00275550(0x400);" (assignment_expression "puVar4 = (ulong *)thunk_FUN_00275550(0x400)" (identifier "puVar4") (= "=") (cast_expression "(ulong *)thunk_FUN_00275550(0x400)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "thunk_FUN_00275550(0x400)" (identifier "thunk_FUN_00275550") (argument_list "(0x400)" (( "(") (number_literal "0x400") () ")"))))) (; ";")) (expression_statement "puVar4[1] = 1000;" (assignment_expression "puVar4[1] = 1000" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1000")) (; ";")) (expression_statement "puVar6 = puVar4 + 2;" (assignment_expression "puVar6 = puVar4 + 2" (identifier "puVar6") (= "=") (binary_expression "puVar4 + 2" (identifier "puVar4") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "memcpy(puVar6,param_2,__n);" (call_expression "memcpy(puVar6,param_2,__n)" (identifier "memcpy") (argument_list "(puVar6,param_2,__n)" (( "(") (identifier "puVar6") (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "*(undefined4 *)((long)puVar4 + __n + 0x10) = 0;" (assignment_expression "*(undefined4 *)((long)puVar4 + __n + 0x10) = 0" (pointer_expression "*(undefined4 *)((long)puVar4 + __n + 0x10)" (* "*") (cast_expression "(undefined4 *)((long)puVar4 + __n + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar4 + __n + 0x10)" (( "(") (binary_expression "(long)puVar4 + __n + 0x10" (binary_expression "(long)puVar4 + __n" (cast_expression "(long)puVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar4")) (+ "+") (identifier "__n")) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar3 = *(undefined8 *)(param_1 + 0x58);" (assignment_expression "uVar3 = *(undefined8 *)(param_1 + 0x58)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (expression_statement "lVar5 = FUN_00275550(0x18);" (assignment_expression "lVar5 = FUN_00275550(0x18)" (identifier "lVar5") (= "=") (call_expression "FUN_00275550(0x18)" (identifier "FUN_00275550") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")")))) (; ";")) (expression_statement "*(ulong **)(lVar5 + 0x10) = puVar4;" (assignment_expression "*(ulong **)(lVar5 + 0x10) = puVar4" (pointer_expression "*(ulong **)(lVar5 + 0x10)" (* "*") (cast_expression "(ulong **)(lVar5 + 0x10)" (( "(") (type_descriptor "ulong **" (type_identifier "ulong") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar5 + 0x10)" (( "(") (binary_expression "lVar5 + 0x10" (identifier "lVar5") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "puVar4")) (; ";")) (expression_statement "FUN_00279bc0(lVar5,uVar3);" (call_expression "FUN_00279bc0(lVar5,uVar3)" (identifier "FUN_00279bc0") (argument_list "(lVar5,uVar3)" (( "(") (identifier "lVar5") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;" (assignment_expression "*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1" (pointer_expression "*(long *)(param_1 + 0x68)" (* "*") (cast_expression "(long *)(param_1 + 0x68)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x68) + 1" (pointer_expression "*(long *)(param_1 + 0x68)" (* "*") (cast_expression "(long *)(param_1 + 0x68)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }" (else "else") (compound_statement "{\n    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);\n    puVar4[1] = uVar1;\n    puVar6 = puVar4 + 2;\n    memcpy(puVar6,param_2,__n);\n    *(undefined4 *)((long)puVar6 + __n) = 0;\n    *puVar4 = uVar1;\n    lVar5 = FUN_00275550(0x18);\n    *(ulong **)(lVar5 + 0x10) = puVar4;\n    FUN_00279bc0(lVar5,param_1 + 0x58);\n    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;\n  }" ({ "{") (expression_statement "puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);" (assignment_expression "puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c)" (identifier "puVar4") (= "=") (cast_expression "(ulong *)thunk_FUN_00275550(__n + 0x1c)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "thunk_FUN_00275550(__n + 0x1c)" (identifier "thunk_FUN_00275550") (argument_list "(__n + 0x1c)" (( "(") (binary_expression "__n + 0x1c" (identifier "__n") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "puVar4[1] = uVar1;" (assignment_expression "puVar4[1] = uVar1" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "puVar6 = puVar4 + 2;" (assignment_expression "puVar6 = puVar4 + 2" (identifier "puVar6") (= "=") (binary_expression "puVar4 + 2" (identifier "puVar4") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "memcpy(puVar6,param_2,__n);" (call_expression "memcpy(puVar6,param_2,__n)" (identifier "memcpy") (argument_list "(puVar6,param_2,__n)" (( "(") (identifier "puVar6") (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "*(undefined4 *)((long)puVar6 + __n) = 0;" (assignment_expression "*(undefined4 *)((long)puVar6 + __n) = 0" (pointer_expression "*(undefined4 *)((long)puVar6 + __n)" (* "*") (cast_expression "(undefined4 *)((long)puVar6 + __n)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar6 + __n)" (( "(") (binary_expression "(long)puVar6 + __n" (cast_expression "(long)puVar6" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar6")) (+ "+") (identifier "__n")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar4 = uVar1;" (assignment_expression "*puVar4 = uVar1" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "lVar5 = FUN_00275550(0x18);" (assignment_expression "lVar5 = FUN_00275550(0x18)" (identifier "lVar5") (= "=") (call_expression "FUN_00275550(0x18)" (identifier "FUN_00275550") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")")))) (; ";")) (expression_statement "*(ulong **)(lVar5 + 0x10) = puVar4;" (assignment_expression "*(ulong **)(lVar5 + 0x10) = puVar4" (pointer_expression "*(ulong **)(lVar5 + 0x10)" (* "*") (cast_expression "(ulong **)(lVar5 + 0x10)" (( "(") (type_descriptor "ulong **" (type_identifier "ulong") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar5 + 0x10)" (( "(") (binary_expression "lVar5 + 0x10" (identifier "lVar5") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "puVar4")) (; ";")) (expression_statement "FUN_00279bc0(lVar5,param_1 + 0x58);" (call_expression "FUN_00279bc0(lVar5,param_1 + 0x58)" (identifier "FUN_00279bc0") (argument_list "(lVar5,param_1 + 0x58)" (( "(") (identifier "lVar5") (, ",") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")"))) (; ";")) (expression_statement "*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;" (assignment_expression "*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1" (pointer_expression "*(long *)(param_1 + 0x68)" (* "*") (cast_expression "(long *)(param_1 + 0x68)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x68) + 1" (pointer_expression "*(long *)(param_1 + 0x68)" (* "*") (cast_expression "(long *)(param_1 + 0x68)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (return_statement "return puVar6;" (return "return") (identifier "puVar6") (; ";")) (} "}")))

/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: uint * add_string(Stringpool_template<unsigned_int> * this, uint * s,
   size_t len) */

type_1 * __thiscall
gold::var_5<var_6>::add_string
          (var_5<var_6> *this,type_1 *s,size_t var_2)

{
  size_t *psVar1;
  size_t var_3;
  type_1 *__dest;
  type_2 *var_12;
  type_2 *this_00;
  type_2 *var_4;
  type_2 *var_9;
  
  if (this->strtab_size_ != 0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/stringpool.cc",0x9a,"add_string");
  }
  var_3 = var_2 * 4;
  var_4 = (type_2 *)(var_3 + 4);
  if (var_4 < (type_2 *)0x3e9) {
    var_9 = (this->strings_).
             super__List_base<gold::var_5<var_6>::var_7*,_std::allocator<gold::var_5<var_6>::var_7*>var_8>
             ._M_impl._M_node.super__List_node_base._M_next;
    if (var_9 != (type_2 *)&this->strings_) {
      var_9 = var_9[1]._M_next;
      if (var_4 <= (type_2 *)((long)var_9->_M_prev - (long)var_9->_M_next)) {
        __dest = (type_1 *)((long)(var_9 + 1) + (long)var_9->_M_next);
        var_10(__dest,s,var_3);
        __dest[var_2] = 0;
        var_9->_M_next = (type_2 *)((long)&var_4->_M_next + (long)var_9->_M_next);
        return __dest;
      }
    }
    var_12 = (type_2 *)var_11(0x400);
    var_12->_M_prev = (type_2 *)0x3e8;
    var_9 = var_12 + 1;
    var_10(var_9,s,var_3);
    *(type_3 *)((long)&var_12[1]._M_next + var_3) = 0;
    var_12->_M_next = var_4;
    var_4 = (this->strings_).
             super__List_base<gold::var_5<var_6>::var_7*,_std::allocator<gold::var_5<var_6>::var_7*>var_8>
             ._M_impl._M_node.super__List_node_base._M_next;
    this_00 = (type_2 *)var_13(0x18);
    this_00[1]._M_next = var_12;
    std::__detail::_List_node_base::var_14(this_00,var_4);
    psVar1 = &(this->strings_).
              super__List_base<gold::var_5<var_6>::var_7*,_std::allocator<gold::var_5<var_6>::var_7*>var_8>
              ._M_impl._M_node._M_size;
    *psVar1 = *psVar1 + 1;
  }
  else {
    var_12 = (type_2 *)var_11(var_3 + 0x1c);
    var_12->_M_prev = var_4;
    var_9 = var_12 + 1;
    var_10(var_9,s,var_3);
    *(type_3 *)((long)&var_9->_M_next + var_3) = 0;
    var_12->_M_next = var_4;
    var_4 = (type_2 *)var_13(0x18);
    var_4[1]._M_next = var_12;
    std::__detail::_List_node_base::var_14(var_4,(type_2 *)&this->strings_);
    psVar1 = &(this->strings_).
              super__List_base<gold::var_5<var_6>::var_7*,_std::allocator<gold::var_5<var_6>::var_7*>var_8>
              ._M_impl._M_node._M_size;
    *psVar1 = *psVar1 + 1;
  }
  return (type_1 *)var_9;
}


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

ulong * MASKED(long param_1,void *param_2,long param_3)

{
  size_t __n;
  ulong uVar1;
  long *plVar2;
  undefined8 uVar3;
  ulong *puVar4;
  long lVar5;
  ulong *puVar6;
  
  if (*(long *)(param_1 + 0x70) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0016cdf0("../../gold/stringpool.cc",0x9a,"add_string");
  }
  __n = param_3 * 4;
  uVar1 = __n + 4;
  if (uVar1 < 0x3e9) {
    if (*(long *)(param_1 + 0x58) != param_1 + 0x58) {
      plVar2 = *(long **)(*(long *)(param_1 + 0x58) + 0x10);
      if (uVar1 <= (ulong)(plVar2[1] - *plVar2)) {
        puVar6 = (ulong *)((long)plVar2 + *plVar2 + 0x10);
        memcpy(puVar6,param_2,__n);
        *(undefined4 *)((long)puVar6 + __n) = 0;
        *plVar2 = *plVar2 + uVar1;
        return puVar6;
      }
    }
    puVar4 = (ulong *)thunk_FUN_00275550(0x400);
    puVar4[1] = 1000;
    puVar6 = puVar4 + 2;
    memcpy(puVar6,param_2,__n);
    *(undefined4 *)((long)puVar4 + __n + 0x10) = 0;
    *puVar4 = uVar1;
    uVar3 = *(undefined8 *)(param_1 + 0x58);
    lVar5 = FUN_00275550(0x18);
    *(ulong **)(lVar5 + 0x10) = puVar4;
    FUN_00279bc0(lVar5,uVar3);
    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;
  }
  else {
    puVar4 = (ulong *)thunk_FUN_00275550(__n + 0x1c);
    puVar4[1] = uVar1;
    puVar6 = puVar4 + 2;
    memcpy(puVar6,param_2,__n);
    *(undefined4 *)((long)puVar6 + __n) = 0;
    *puVar4 = uVar1;
    lVar5 = FUN_00275550(0x18);
    *(ulong **)(lVar5 + 0x10) = puVar4;
    FUN_00279bc0(lVar5,param_1 + 0x58);
    *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;
  }
  return puVar6;
}

