
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: ushort * add_string(Stringpool_template<short_unsigned_int> * this,
   ushort * s, size_t len) */

ushort * __thiscall
gold::Stringpool_template<short_unsigned_int>::add_string
          (Stringpool_template<short_unsigned_int> *this,ushort *s,size_t len)

{
  size_t *psVar1;
  ushort *__dest;
  _List_node_base *p_Var2;
  size_t __n;
  _List_node_base *p_Var3;
  _List_node_base *p_Var4;
  _List_node_base *p_Var5;
  
  if (this->strtab_size_ != 0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/stringpool.cc",0x9a,"add_string");
  }
  __n = len * 2;
  p_Var4 = (_List_node_base *)(__n + 2);
  if (p_Var4 < (_List_node_base *)0x3e9) {
    p_Var2 = (this->strings_).
             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>
             ._M_impl._M_node.super__List_node_base._M_next;
    if (p_Var2 != (_List_node_base *)&this->strings_) {
      p_Var2 = p_Var2[1]._M_next;
      if (p_Var4 <= (_List_node_base *)((int)p_Var2->_M_prev - (int)p_Var2->_M_next)) {
        __dest = (ushort *)((int)(p_Var2 + 1) + (int)p_Var2->_M_next);
        memcpy(__dest,s,__n);
        __dest[len] = 0;
        p_Var2->_M_next = (_List_node_base *)((int)&p_Var4->_M_next + (int)p_Var2->_M_next);
        return __dest;
      }
    }
    p_Var3 = (_List_node_base *)operator_new__(0x3f4);
    p_Var2 = p_Var3 + 1;
    p_Var3->_M_prev = (_List_node_base *)0x3e8;
    memcpy(p_Var2,s,__n);
    *(undefined2 *)((int)&p_Var2->_M_next + __n) = 0;
    p_Var5 = (this->strings_).
             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>
             ._M_impl._M_node.super__List_node_base._M_next;
    p_Var3->_M_next = p_Var4;
    p_Var4 = (_List_node_base *)operator_new(0xc);
    p_Var4[1]._M_next = p_Var3;
    std::__detail::_List_node_base::_M_hook(p_Var4,p_Var5);
    psVar1 = &(this->strings_).
              super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>
              ._M_impl._M_node._M_size;
    *psVar1 = *psVar1 + 1;
    return (ushort *)p_Var2;
  }
  p_Var5 = (_List_node_base *)operator_new__(__n + 0xe);
  p_Var2 = p_Var5 + 1;
  p_Var5->_M_prev = p_Var4;
  memcpy(p_Var2,s,__n);
  *(undefined2 *)((int)&p_Var2->_M_next + __n) = 0;
  p_Var5->_M_next = p_Var4;
  p_Var4 = (_List_node_base *)operator_new(0xc);
  p_Var4[1]._M_next = p_Var5;
  std::__detail::_List_node_base::_M_hook(p_Var4,(_List_node_base *)&this->strings_);
  psVar1 = &(this->strings_).
            super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>
            ._M_impl._M_node._M_size;
  *psVar1 = *psVar1 + 1;
  return (ushort *)p_Var2;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint * FUN_00171dd0(int param_1,void *param_2,int param_3)

{
  uint uVar1;
  uint *puVar2;
  int *piVar3;
  undefined4 uVar4;
  size_t __n;
  uint *puVar5;
  int iVar6;
  
  if (*(int *)(param_1 + 0x38) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);
  }
  __n = param_3 * 2;
  uVar1 = __n + 2;
  if (uVar1 < 0x3e9) {
    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {
      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);
      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {
        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);
        memcpy(puVar2,param_2,__n);
        *(undefined2 *)((int)puVar2 + __n) = 0;
        *piVar3 = *piVar3 + uVar1;
        return puVar2;
      }
    }
    puVar5 = (uint *)FUN_001e5180(0x3f4);
    puVar2 = puVar5 + 2;
    puVar5[1] = 1000;
    memcpy(puVar2,param_2,__n);
    *(undefined2 *)((int)puVar2 + __n) = 0;
    uVar4 = *(undefined4 *)(param_1 + 0x2c);
    *puVar5 = uVar1;
    iVar6 = FUN_001e5200(0xc);
    *(uint **)(iVar6 + 8) = puVar5;
    FUN_001e9f70(iVar6,uVar4);
    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;
    return puVar2;
  }
  puVar5 = (uint *)FUN_001e5180(__n + 0xe);
  puVar2 = puVar5 + 2;
  puVar5[1] = uVar1;
  memcpy(puVar2,param_2,__n);
  *(undefined2 *)((int)puVar2 + __n) = 0;
  *puVar5 = uVar1;
  iVar6 = FUN_001e5200(0xc);
  *(uint **)(iVar6 + 8) = puVar5;
  FUN_001e9f70(iVar6,param_1 + 0x2c);
  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;
  return puVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x21d227
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESI + 0x38]
TEST EDI,EDI
JNZ 0x00171f42
MOV EAX,dword ptr [ESP + 0x38]
LEA ECX,[ESI + 0x2c]
LEA EDX,[EAX + EAX*0x1 + 0x2]
LEA EBP,[EDX + -0x2]
CMP EDX,0x3e8
JA 0x00171e98
MOV EAX,dword ptr [ESI + 0x2c]
CMP EAX,ECX
JZ 0x00171e24
MOV ECX,dword ptr [EAX + 0x8]
MOV EDI,dword ptr [ECX]
MOV EAX,dword ptr [ECX + 0x4]
SUB EAX,EDI
CMP EAX,EDX
JNC 0x00171f10
MOV dword ptr [ESP + 0x8],EDX
SUB ESP,0xc
PUSH 0x3f4
CALL 0x001e5180
MOV dword ptr [ESP + 0x14],EAX
LEA EDI,[EAX + 0x8]
ADD ESP,0xc
MOV dword ptr [EAX + 0x4],0x3e8
PUSH EBP
PUSH dword ptr [ESP + 0x3c]
PUSH EDI
CALL 0x000295c0
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x18]
XOR EAX,EAX
MOV word ptr [EDI + EBP*0x1],AX
MOV EBP,dword ptr [ESI + 0x2c]
MOV dword ptr [ECX],EDX
MOV dword ptr [ESP],0xc
CALL 0x001e5200
MOV ECX,dword ptr [ESP + 0x14]
MOV dword ptr [EAX + 0x8],ECX
POP EDX
POP ECX
PUSH EBP
PUSH EAX
CALL 0x001e9f70
ADD dword ptr [ESI + 0x34],0x1
ADD ESP,0x10
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],ECX
LEA EAX,[EDX + 0xc]
SUB ESP,0xc
MOV dword ptr [ESP + 0x10],EDX
PUSH EAX
CALL 0x001e5180
MOV EDX,dword ptr [ESP + 0x14]
LEA EDI,[EAX + 0x8]
MOV dword ptr [ESP + 0x14],EAX
MOV dword ptr [ESP + 0x18],EDX
ADD ESP,0xc
MOV dword ptr [EAX + 0x4],EDX
PUSH EBP
PUSH dword ptr [ESP + 0x3c]
PUSH EDI
CALL 0x000295c0
XOR EAX,EAX
MOV EDX,dword ptr [ESP + 0x18]
MOV word ptr [EDI + EBP*0x1],AX
MOV EBP,dword ptr [ESP + 0x14]
MOV dword ptr [EBP],EDX
MOV dword ptr [ESP],0xc
CALL 0x001e5200
MOV dword ptr [EAX + 0x8],EBP
POP EDX
POP ECX
MOV ECX,dword ptr [ESP + 0x14]
PUSH ECX
PUSH EAX
CALL 0x001e9f70
ADD ESP,0x10
ADD dword ptr [ESI + 0x34],0x1
MOV EAX,EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],EDX
LEA EDI,[ECX + EDI*0x1 + 0x8]
SUB ESP,0x4
MOV dword ptr [ESP + 0x8],ECX
PUSH EBP
PUSH dword ptr [ESP + 0x3c]
PUSH EDI
CALL 0x000295c0
MOV ECX,dword ptr [ESP + 0x14]
XOR EBX,EBX
MOV EDX,dword ptr [ESP + 0x18]
MOV word ptr [EDI + EBP*0x1],BX
ADD ESP,0x10
ADD dword ptr [ECX],EDX
JMP 0x00171e87
LEA EAX,[EBX + 0xfff0a750]
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xfff0a66a]
PUSH 0x9a
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint * FUN_00171dd0(int param_1,void *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  size_t __n;\n  uint *puVar5;\n  int iVar6;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }\n  __n = param_3 * 2;\n  uVar1 = __n + 2;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_001e5180(__n + 0xe);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,__n);\n  *(undefined2 *)((int)puVar2 + __n) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_001e5200(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_001e9f70(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}\n\n" comment (function_definition "uint * FUN_00171dd0(int param_1,void *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  size_t __n;\n  uint *puVar5;\n  int iVar6;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }\n  __n = param_3 * 2;\n  uVar1 = __n + 2;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_001e5180(__n + 0xe);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,__n);\n  *(undefined2 *)((int)puVar2 + __n) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_001e5200(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_001e9f70(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_00171dd0(int param_1,void *param_2,int param_3)" * (function_declarator "FUN_00171dd0(int param_1,void *param_2,int param_3)" identifier (parameter_list "(int param_1,void *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  size_t __n;\n  uint *puVar5;\n  int iVar6;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }\n  __n = param_3 * 2;\n  uVar1 = __n + 2;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_001e5180(__n + 0xe);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,__n);\n  *(undefined2 *)((int)puVar2 + __n) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_001e5200(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_001e9f70(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x38) != 0)" ( (binary_expression "*(int *)(param_1 + 0x38) != 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }" { comment (expression_statement "FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);" (call_expression "FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1)" identifier (argument_list "("../../gold/stringpool.cc",0x9a,"add_string",param_1)" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""add_string"" " string_content ") , identifier ))) ;) })) (expression_statement "__n = param_3 * 2;" (assignment_expression "__n = param_3 * 2" identifier = (binary_expression "param_3 * 2" identifier * number_literal)) ;) (expression_statement "uVar1 = __n + 2;" (assignment_expression "uVar1 = __n + 2" identifier = (binary_expression "__n + 2" identifier + number_literal)) ;) (if_statement "if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }" if (parenthesized_expression "(uVar1 < 0x3e9)" ( (binary_expression "uVar1 < 0x3e9" identifier < number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }" { (if_statement "if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x2c) != param_1 + 0x2c)" ( (binary_expression "*(int *)(param_1 + 0x2c) != param_1 + 0x2c" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) != (binary_expression "param_1 + 0x2c" identifier + number_literal)) )) (compound_statement "{\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }" { (expression_statement "piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);" (assignment_expression "piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x2c) + 8)" * (cast_expression "(int **)(*(int *)(param_1 + 0x2c) + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x2c) + 8)" ( (binary_expression "*(int *)(param_1 + 0x2c) + 8" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }" if (parenthesized_expression "(uVar1 <= (uint)(piVar3[1] - *piVar3))" ( (binary_expression "uVar1 <= (uint)(piVar3[1] - *piVar3)" identifier <= (call_expression "(uint)(piVar3[1] - *piVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar3[1] - *piVar3)" ( (binary_expression "piVar3[1] - *piVar3" (subscript_expression "piVar3[1]" identifier [ number_literal ]) - (pointer_expression "*piVar3" * identifier)) )))) )) (compound_statement "{\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }" { (expression_statement "puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);" (assignment_expression "puVar2 = (uint *)((int)piVar3 + *piVar3 + 8)" identifier = (cast_expression "(uint *)((int)piVar3 + *piVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar3 + *piVar3 + 8)" ( (binary_expression "(int)piVar3 + *piVar3 + 8" (binary_expression "(int)piVar3 + *piVar3" (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*piVar3" * identifier)) + number_literal) )))) ;) (expression_statement "memcpy(puVar2,param_2,__n);" (call_expression "memcpy(puVar2,param_2,__n)" identifier (argument_list "(puVar2,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined2 *)((int)puVar2 + __n) = 0;" (assignment_expression "*(undefined2 *)((int)puVar2 + __n) = 0" (pointer_expression "*(undefined2 *)((int)puVar2 + __n)" * (cast_expression "(undefined2 *)((int)puVar2 + __n)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + __n)" ( (binary_expression "(int)puVar2 + __n" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*piVar3 = *piVar3 + uVar1;" (assignment_expression "*piVar3 = *piVar3 + uVar1" (pointer_expression "*piVar3" * identifier) = (binary_expression "*piVar3 + uVar1" (pointer_expression "*piVar3" * identifier) + identifier)) ;) (return_statement "return puVar2;" return identifier ;) })) })) (expression_statement "puVar5 = (uint *)FUN_001e5180(0x3f4);" (assignment_expression "puVar5 = (uint *)FUN_001e5180(0x3f4)" identifier = (cast_expression "(uint *)FUN_001e5180(0x3f4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5180(0x3f4)" identifier (argument_list "(0x3f4)" ( number_literal ))))) ;) (expression_statement "puVar2 = puVar5 + 2;" (assignment_expression "puVar2 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "puVar5[1] = 1000;" (assignment_expression "puVar5[1] = 1000" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "memcpy(puVar2,param_2,__n);" (call_expression "memcpy(puVar2,param_2,__n)" identifier (argument_list "(puVar2,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined2 *)((int)puVar2 + __n) = 0;" (assignment_expression "*(undefined2 *)((int)puVar2 + __n) = 0" (pointer_expression "*(undefined2 *)((int)puVar2 + __n)" * (cast_expression "(undefined2 *)((int)puVar2 + __n)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + __n)" ( (binary_expression "(int)puVar2 + __n" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x2c);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x2c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" * (cast_expression "(undefined4 *)(param_1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar6 = FUN_001e5200(0xc);" (assignment_expression "iVar6 = FUN_001e5200(0xc)" identifier = (call_expression "FUN_001e5200(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(uint **)(iVar6 + 8) = puVar5;" (assignment_expression "*(uint **)(iVar6 + 8) = puVar5" (pointer_expression "*(uint **)(iVar6 + 8)" * (cast_expression "(uint **)(iVar6 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_001e9f70(iVar6,uVar4);" (call_expression "FUN_001e9f70(iVar6,uVar4)" identifier (argument_list "(iVar6,uVar4)" ( identifier , identifier ))) ;) (expression_statement "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;" (assignment_expression "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar5 = (uint *)FUN_001e5180(__n + 0xe);" (assignment_expression "puVar5 = (uint *)FUN_001e5180(__n + 0xe)" identifier = (cast_expression "(uint *)FUN_001e5180(__n + 0xe)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5180(__n + 0xe)" identifier (argument_list "(__n + 0xe)" ( (binary_expression "__n + 0xe" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = puVar5 + 2;" (assignment_expression "puVar2 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "puVar5[1] = uVar1;" (assignment_expression "puVar5[1] = uVar1" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy(puVar2,param_2,__n);" (call_expression "memcpy(puVar2,param_2,__n)" identifier (argument_list "(puVar2,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined2 *)((int)puVar2 + __n) = 0;" (assignment_expression "*(undefined2 *)((int)puVar2 + __n) = 0" (pointer_expression "*(undefined2 *)((int)puVar2 + __n)" * (cast_expression "(undefined2 *)((int)puVar2 + __n)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + __n)" ( (binary_expression "(int)puVar2 + __n" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar6 = FUN_001e5200(0xc);" (assignment_expression "iVar6 = FUN_001e5200(0xc)" identifier = (call_expression "FUN_001e5200(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(uint **)(iVar6 + 8) = puVar5;" (assignment_expression "*(uint **)(iVar6 + 8) = puVar5" (pointer_expression "*(uint **)(iVar6 + 8)" * (cast_expression "(uint **)(iVar6 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_001e9f70(iVar6,param_1 + 0x2c);" (call_expression "FUN_001e9f70(iVar6,param_1 + 0x2c)" identifier (argument_list "(iVar6,param_1 + 0x2c)" ( identifier , (binary_expression "param_1 + 0x2c" identifier + number_literal) ))) ;) (expression_statement "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;" (assignment_expression "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Type propagation algorithm not settling */\n/* DWARF original prototype: ushort * add_string(Stringpool_template<short_unsigned_int> * this,\n   ushort * s, size_t len) */\n\nushort * __thiscall\ngold::Stringpool_template<short_unsigned_int>::add_string\n          (Stringpool_template<short_unsigned_int> *this,ushort *s,size_t len)\n\n{\n  size_t *psVar1;\n  ushort *__dest;\n  _List_node_base *p_Var2;\n  size_t __n;\n  _List_node_base *p_Var3;\n  _List_node_base *p_Var4;\n  _List_node_base *p_Var5;\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 * 2;\n  p_Var4 = (_List_node_base *)(__n + 2);\n  if (p_Var4 < (_List_node_base *)0x3e9) {\n    p_Var2 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    if (p_Var2 != (_List_node_base *)&this->strings_) {\n      p_Var2 = p_Var2[1]._M_next;\n      if (p_Var4 <= (_List_node_base *)((int)p_Var2->_M_prev - (int)p_Var2->_M_next)) {\n        __dest = (ushort *)((int)(p_Var2 + 1) + (int)p_Var2->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var2->_M_next = (_List_node_base *)((int)&p_Var4->_M_next + (int)p_Var2->_M_next);\n        return __dest;\n      }\n    }\n    p_Var3 = (_List_node_base *)operator_new__(0x3f4);\n    p_Var2 = p_Var3 + 1;\n    p_Var3->_M_prev = (_List_node_base *)0x3e8;\n    memcpy(p_Var2,s,__n);\n    *(undefined2 *)((int)&p_Var2->_M_next + __n) = 0;\n    p_Var5 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    p_Var3->_M_next = p_Var4;\n    p_Var4 = (_List_node_base *)operator_new(0xc);\n    p_Var4[1]._M_next = p_Var3;\n    std::__detail::_List_node_base::_M_hook(p_Var4,p_Var5);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n    return (ushort *)p_Var2;\n  }\n  p_Var5 = (_List_node_base *)operator_new__(__n + 0xe);\n  p_Var2 = p_Var5 + 1;\n  p_Var5->_M_prev = p_Var4;\n  memcpy(p_Var2,s,__n);\n  *(undefined2 *)((int)&p_Var2->_M_next + __n) = 0;\n  p_Var5->_M_next = p_Var4;\n  p_Var4 = (_List_node_base *)operator_new(0xc);\n  p_Var4[1]._M_next = p_Var5;\n  std::__detail::_List_node_base::_M_hook(p_Var4,(_List_node_base *)&this->strings_);\n  psVar1 = &(this->strings_).\n            super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n            ._M_impl._M_node._M_size;\n  *psVar1 = *psVar1 + 1;\n  return (ushort *)p_Var2;\n}\n\n" comment comment comment (ERROR "ushort * __thiscall\ngold::Stringpool_template<short_unsigned_int>::add_string\n          (Stringpool_template<short_unsigned_int> *this,ushort *s,size_t len)" (binary_expression "ushort * __thiscall\ngold::Stringpool_template<short_unsigned_int>::add_string\n          (Stringpool_template<short_unsigned_int> *this,ushort *s,size_t len)" (binary_expression "ushort * __thiscall\ngold::Stringpool_template<short_unsigned_int" (binary_expression "ushort * __thiscall" identifier * identifier) (ERROR "gold::Stringpool_template" identifier : : identifier) < identifier) > (ERROR "::" : :) (call_expression "add_string\n          (Stringpool_template<short_unsigned_int> *this,ushort *s,size_t len)" identifier (argument_list "(Stringpool_template<short_unsigned_int> *this,ushort *s,size_t len)" ( (binary_expression "Stringpool_template<short_unsigned_int> *this" (binary_expression "Stringpool_template<short_unsigned_int" identifier < identifier) > (pointer_expression "*this" * identifier)) , (binary_expression "ushort *s" identifier * identifier) , identifier (ERROR "len" identifier) ))))) (compound_statement "{\n  size_t *psVar1;\n  ushort *__dest;\n  _List_node_base *p_Var2;\n  size_t __n;\n  _List_node_base *p_Var3;\n  _List_node_base *p_Var4;\n  _List_node_base *p_Var5;\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 * 2;\n  p_Var4 = (_List_node_base *)(__n + 2);\n  if (p_Var4 < (_List_node_base *)0x3e9) {\n    p_Var2 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    if (p_Var2 != (_List_node_base *)&this->strings_) {\n      p_Var2 = p_Var2[1]._M_next;\n      if (p_Var4 <= (_List_node_base *)((int)p_Var2->_M_prev - (int)p_Var2->_M_next)) {\n        __dest = (ushort *)((int)(p_Var2 + 1) + (int)p_Var2->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var2->_M_next = (_List_node_base *)((int)&p_Var4->_M_next + (int)p_Var2->_M_next);\n        return __dest;\n      }\n    }\n    p_Var3 = (_List_node_base *)operator_new__(0x3f4);\n    p_Var2 = p_Var3 + 1;\n    p_Var3->_M_prev = (_List_node_base *)0x3e8;\n    memcpy(p_Var2,s,__n);\n    *(undefined2 *)((int)&p_Var2->_M_next + __n) = 0;\n    p_Var5 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    p_Var3->_M_next = p_Var4;\n    p_Var4 = (_List_node_base *)operator_new(0xc);\n    p_Var4[1]._M_next = p_Var3;\n    std::__detail::_List_node_base::_M_hook(p_Var4,p_Var5);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n    return (ushort *)p_Var2;\n  }\n  p_Var5 = (_List_node_base *)operator_new__(__n + 0xe);\n  p_Var2 = p_Var5 + 1;\n  p_Var5->_M_prev = p_Var4;\n  memcpy(p_Var2,s,__n);\n  *(undefined2 *)((int)&p_Var2->_M_next + __n) = 0;\n  p_Var5->_M_next = p_Var4;\n  p_Var4 = (_List_node_base *)operator_new(0xc);\n  p_Var4[1]._M_next = p_Var5;\n  std::__detail::_List_node_base::_M_hook(p_Var4,(_List_node_base *)&this->strings_);\n  psVar1 = &(this->strings_).\n            super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n            ._M_impl._M_node._M_size;\n  *psVar1 = *psVar1 + 1;\n  return (ushort *)p_Var2;\n}" { (declaration "size_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "ushort *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "_List_node_base *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "size_t __n;" primitive_type 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) ;) (declaration "_List_node_base *p_Var5;" type_identifier (pointer_declarator "*p_Var5" * 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 * 2;" (assignment_expression "__n = len * 2" identifier = (binary_expression "len * 2" identifier * number_literal)) ;) (expression_statement "p_Var4 = (_List_node_base *)(__n + 2);" (assignment_expression "p_Var4 = (_List_node_base *)(__n + 2)" identifier = (cast_expression "(_List_node_base *)(__n + 2)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__n + 2)" ( (binary_expression "__n + 2" identifier + number_literal) )))) ;) (if_statement "if (p_Var4 < (_List_node_base *)0x3e9) {\n    p_Var2 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    if (p_Var2 != (_List_node_base *)&this->strings_) {\n      p_Var2 = p_Var2[1]._M_next;\n      if (p_Var4 <= (_List_node_base *)((int)p_Var2->_M_prev - (int)p_Var2->_M_next)) {\n        __dest = (ushort *)((int)(p_Var2 + 1) + (int)p_Var2->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var2->_M_next = (_List_node_base *)((int)&p_Var4->_M_next + (int)p_Var2->_M_next);\n        return __dest;\n      }\n    }\n    p_Var3 = (_List_node_base *)operator_new__(0x3f4);\n    p_Var2 = p_Var3 + 1;\n    p_Var3->_M_prev = (_List_node_base *)0x3e8;\n    memcpy(p_Var2,s,__n);\n    *(undefined2 *)((int)&p_Var2->_M_next + __n) = 0;\n    p_Var5 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    p_Var3->_M_next = p_Var4;\n    p_Var4 = (_List_node_base *)operator_new(0xc);\n    p_Var4[1]._M_next = p_Var3;\n    std::__detail::_List_node_base::_M_hook(p_Var4,p_Var5);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n    return (ushort *)p_Var2;\n  }" if (parenthesized_expression "(p_Var4 < (_List_node_base *)0x3e9)" ( (binary_expression "p_Var4 < (_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_Var2 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    if (p_Var2 != (_List_node_base *)&this->strings_) {\n      p_Var2 = p_Var2[1]._M_next;\n      if (p_Var4 <= (_List_node_base *)((int)p_Var2->_M_prev - (int)p_Var2->_M_next)) {\n        __dest = (ushort *)((int)(p_Var2 + 1) + (int)p_Var2->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var2->_M_next = (_List_node_base *)((int)&p_Var4->_M_next + (int)p_Var2->_M_next);\n        return __dest;\n      }\n    }\n    p_Var3 = (_List_node_base *)operator_new__(0x3f4);\n    p_Var2 = p_Var3 + 1;\n    p_Var3->_M_prev = (_List_node_base *)0x3e8;\n    memcpy(p_Var2,s,__n);\n    *(undefined2 *)((int)&p_Var2->_M_next + __n) = 0;\n    p_Var5 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;\n    p_Var3->_M_next = p_Var4;\n    p_Var4 = (_List_node_base *)operator_new(0xc);\n    p_Var4[1]._M_next = p_Var3;\n    std::__detail::_List_node_base::_M_hook(p_Var4,p_Var5);\n    psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::Stringpool_template<short_unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n    return (ushort *)p_Var2;\n  }" { (ERROR "p_Var2 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::" (comma_expression "p_Var2 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std" (binary_expression "p_Var2 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata" (binary_expression "p_Var2 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int" (assignment_expression "p_Var2 = (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<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl" (binary_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_" (binary_expression "Stringpool_template<short_unsigned_int>::Stringdata" (binary_expression "Stringpool_template<short_unsigned_int" identifier < identifier) > (ERROR "::" : :) identifier) (ERROR "*" *) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) . field_identifier) . field_identifier) ;) (if_statement "if (p_Var2 != (_List_node_base *)&this->strings_) {\n      p_Var2 = p_Var2[1]._M_next;\n      if (p_Var4 <= (_List_node_base *)((int)p_Var2->_M_prev - (int)p_Var2->_M_next)) {\n        __dest = (ushort *)((int)(p_Var2 + 1) + (int)p_Var2->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var2->_M_next = (_List_node_base *)((int)&p_Var4->_M_next + (int)p_Var2->_M_next);\n        return __dest;\n      }\n    }" if (parenthesized_expression "(p_Var2 != (_List_node_base *)&this->strings_)" ( (binary_expression "p_Var2 != (_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_Var2 = p_Var2[1]._M_next;\n      if (p_Var4 <= (_List_node_base *)((int)p_Var2->_M_prev - (int)p_Var2->_M_next)) {\n        __dest = (ushort *)((int)(p_Var2 + 1) + (int)p_Var2->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var2->_M_next = (_List_node_base *)((int)&p_Var4->_M_next + (int)p_Var2->_M_next);\n        return __dest;\n      }\n    }" { (expression_statement "p_Var2 = p_Var2[1]._M_next;" (assignment_expression "p_Var2 = p_Var2[1]._M_next" identifier = (field_expression "p_Var2[1]._M_next" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier)) ;) (if_statement "if (p_Var4 <= (_List_node_base *)((int)p_Var2->_M_prev - (int)p_Var2->_M_next)) {\n        __dest = (ushort *)((int)(p_Var2 + 1) + (int)p_Var2->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var2->_M_next = (_List_node_base *)((int)&p_Var4->_M_next + (int)p_Var2->_M_next);\n        return __dest;\n      }" if (parenthesized_expression "(p_Var4 <= (_List_node_base *)((int)p_Var2->_M_prev - (int)p_Var2->_M_next))" ( (binary_expression "p_Var4 <= (_List_node_base *)((int)p_Var2->_M_prev - (int)p_Var2->_M_next)" identifier <= (cast_expression "(_List_node_base *)((int)p_Var2->_M_prev - (int)p_Var2->_M_next)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p_Var2->_M_prev - (int)p_Var2->_M_next)" ( (binary_expression "(int)p_Var2->_M_prev - (int)p_Var2->_M_next" (cast_expression "(int)p_Var2->_M_prev" ( (type_descriptor "int" primitive_type) ) (field_expression "p_Var2->_M_prev" identifier -> field_identifier)) - (cast_expression "(int)p_Var2->_M_next" ( (type_descriptor "int" primitive_type) ) (field_expression "p_Var2->_M_next" identifier -> field_identifier))) )))) )) (compound_statement "{\n        __dest = (ushort *)((int)(p_Var2 + 1) + (int)p_Var2->_M_next);\n        memcpy(__dest,s,__n);\n        __dest[len] = 0;\n        p_Var2->_M_next = (_List_node_base *)((int)&p_Var4->_M_next + (int)p_Var2->_M_next);\n        return __dest;\n      }" { (expression_statement "__dest = (ushort *)((int)(p_Var2 + 1) + (int)p_Var2->_M_next);" (assignment_expression "__dest = (ushort *)((int)(p_Var2 + 1) + (int)p_Var2->_M_next)" identifier = (cast_expression "(ushort *)((int)(p_Var2 + 1) + (int)p_Var2->_M_next)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(p_Var2 + 1) + (int)p_Var2->_M_next)" ( (binary_expression "(int)(p_Var2 + 1) + (int)p_Var2->_M_next" (cast_expression "(int)(p_Var2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(p_Var2 + 1)" ( (binary_expression "p_Var2 + 1" identifier + number_literal) ))) + (cast_expression "(int)p_Var2->_M_next" ( (type_descriptor "int" primitive_type) ) (field_expression "p_Var2->_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_Var2->_M_next = (_List_node_base *)((int)&p_Var4->_M_next + (int)p_Var2->_M_next);" (assignment_expression "p_Var2->_M_next = (_List_node_base *)((int)&p_Var4->_M_next + (int)p_Var2->_M_next)" (field_expression "p_Var2->_M_next" identifier -> field_identifier) = (cast_expression "(_List_node_base *)((int)&p_Var4->_M_next + (int)p_Var2->_M_next)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p_Var4->_M_next + (int)p_Var2->_M_next)" ( (binary_expression "(int)&p_Var4->_M_next + (int)p_Var2->_M_next" (cast_expression "(int)&p_Var4->_M_next" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p_Var4->_M_next" & (field_expression "p_Var4->_M_next" identifier -> field_identifier))) + (cast_expression "(int)p_Var2->_M_next" ( (type_descriptor "int" primitive_type) ) (field_expression "p_Var2->_M_next" identifier -> field_identifier))) )))) ;) (return_statement "return __dest;" return identifier ;) })) })) (expression_statement "p_Var3 = (_List_node_base *)operator_new__(0x3f4);" (assignment_expression "p_Var3 = (_List_node_base *)operator_new__(0x3f4)" identifier = (cast_expression "(_List_node_base *)operator_new__(0x3f4)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(0x3f4)" identifier (argument_list "(0x3f4)" ( number_literal ))))) ;) (expression_statement "p_Var2 = p_Var3 + 1;" (assignment_expression "p_Var2 = p_Var3 + 1" identifier = (binary_expression "p_Var3 + 1" identifier + number_literal)) ;) (expression_statement "p_Var3->_M_prev = (_List_node_base *)0x3e8;" (assignment_expression "p_Var3->_M_prev = (_List_node_base *)0x3e8" (field_expression "p_Var3->_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 "memcpy(p_Var2,s,__n);" (call_expression "memcpy(p_Var2,s,__n)" identifier (argument_list "(p_Var2,s,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined2 *)((int)&p_Var2->_M_next + __n) = 0;" (assignment_expression "*(undefined2 *)((int)&p_Var2->_M_next + __n) = 0" (pointer_expression "*(undefined2 *)((int)&p_Var2->_M_next + __n)" * (cast_expression "(undefined2 *)((int)&p_Var2->_M_next + __n)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p_Var2->_M_next + __n)" ( (binary_expression "(int)&p_Var2->_M_next + __n" (cast_expression "(int)&p_Var2->_M_next" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p_Var2->_M_next" & (field_expression "p_Var2->_M_next" identifier -> field_identifier))) + identifier) )))) = number_literal) ;) (ERROR "p_Var5 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::" (comma_expression "p_Var5 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std" (binary_expression "p_Var5 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata" (binary_expression "p_Var5 = (this->strings_).\n             super__List_base<gold::Stringpool_template<short_unsigned_int" (assignment_expression "p_Var5 = (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<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next;" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base._M_next" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node.super__List_node_base" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl._M_node" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n             ._M_impl" (binary_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_" (binary_expression "Stringpool_template<short_unsigned_int>::Stringdata" (binary_expression "Stringpool_template<short_unsigned_int" identifier < identifier) > (ERROR "::" : :) identifier) (ERROR "*" *) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) . field_identifier) . field_identifier) ;) (expression_statement "p_Var3->_M_next = p_Var4;" (assignment_expression "p_Var3->_M_next = p_Var4" (field_expression "p_Var3->_M_next" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var4 = (_List_node_base *)operator_new(0xc);" (assignment_expression "p_Var4 = (_List_node_base *)operator_new(0xc)" identifier = (cast_expression "(_List_node_base *)operator_new(0xc)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "p_Var4[1]._M_next = p_Var3;" (assignment_expression "p_Var4[1]._M_next = p_Var3" (field_expression "p_Var4[1]._M_next" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (labeled_statement "std::__detail::_List_node_base::_M_hook(p_Var4,p_Var5);" statement_identifier : (ERROR ":" :) (labeled_statement "__detail::_List_node_base::_M_hook(p_Var4,p_Var5);" statement_identifier : (ERROR ":" :) (labeled_statement "_List_node_base::_M_hook(p_Var4,p_Var5);" statement_identifier : (ERROR ":" :) (expression_statement "_M_hook(p_Var4,p_Var5);" (call_expression "_M_hook(p_Var4,p_Var5)" identifier (argument_list "(p_Var4,p_Var5)" ( identifier , identifier ))) ;)))) (ERROR "psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::" (comma_expression "psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std" (binary_expression "psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata" (binary_expression "psVar1 = &(this->strings_).\n              super__List_base<gold::Stringpool_template<short_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<short_unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size;" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node._M_size" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n              ._M_impl._M_node" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n              ._M_impl" (binary_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_" (binary_expression "Stringpool_template<short_unsigned_int>::Stringdata" (binary_expression "Stringpool_template<short_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 (ushort *)p_Var2;" return (cast_expression "(ushort *)p_Var2" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (expression_statement "p_Var5 = (_List_node_base *)operator_new__(__n + 0xe);" (assignment_expression "p_Var5 = (_List_node_base *)operator_new__(__n + 0xe)" identifier = (cast_expression "(_List_node_base *)operator_new__(__n + 0xe)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(__n + 0xe)" identifier (argument_list "(__n + 0xe)" ( (binary_expression "__n + 0xe" identifier + number_literal) ))))) ;) (expression_statement "p_Var2 = p_Var5 + 1;" (assignment_expression "p_Var2 = p_Var5 + 1" identifier = (binary_expression "p_Var5 + 1" identifier + number_literal)) ;) (expression_statement "p_Var5->_M_prev = p_Var4;" (assignment_expression "p_Var5->_M_prev = p_Var4" (field_expression "p_Var5->_M_prev" identifier -> field_identifier) = identifier) ;) (expression_statement "memcpy(p_Var2,s,__n);" (call_expression "memcpy(p_Var2,s,__n)" identifier (argument_list "(p_Var2,s,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined2 *)((int)&p_Var2->_M_next + __n) = 0;" (assignment_expression "*(undefined2 *)((int)&p_Var2->_M_next + __n) = 0" (pointer_expression "*(undefined2 *)((int)&p_Var2->_M_next + __n)" * (cast_expression "(undefined2 *)((int)&p_Var2->_M_next + __n)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p_Var2->_M_next + __n)" ( (binary_expression "(int)&p_Var2->_M_next + __n" (cast_expression "(int)&p_Var2->_M_next" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p_Var2->_M_next" & (field_expression "p_Var2->_M_next" identifier -> field_identifier))) + identifier) )))) = number_literal) ;) (expression_statement "p_Var5->_M_next = p_Var4;" (assignment_expression "p_Var5->_M_next = p_Var4" (field_expression "p_Var5->_M_next" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var4 = (_List_node_base *)operator_new(0xc);" (assignment_expression "p_Var4 = (_List_node_base *)operator_new(0xc)" identifier = (cast_expression "(_List_node_base *)operator_new(0xc)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "p_Var4[1]._M_next = p_Var5;" (assignment_expression "p_Var4[1]._M_next = p_Var5" (field_expression "p_Var4[1]._M_next" (subscript_expression "p_Var4[1]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (labeled_statement "std::__detail::_List_node_base::_M_hook(p_Var4,(_List_node_base *)&this->strings_);" statement_identifier : (ERROR ":" :) (labeled_statement "__detail::_List_node_base::_M_hook(p_Var4,(_List_node_base *)&this->strings_);" statement_identifier : (ERROR ":" :) (labeled_statement "_List_node_base::_M_hook(p_Var4,(_List_node_base *)&this->strings_);" statement_identifier : (ERROR ":" :) (expression_statement "_M_hook(p_Var4,(_List_node_base *)&this->strings_);" (call_expression "_M_hook(p_Var4,(_List_node_base *)&this->strings_)" identifier (argument_list "(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))) ))) ;)))) (ERROR "psVar1 = &(this->strings_).\n            super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std::allocator<gold::" (comma_expression "psVar1 = &(this->strings_).\n            super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata*,_std" (binary_expression "psVar1 = &(this->strings_).\n            super__List_base<gold::Stringpool_template<short_unsigned_int>::Stringdata" (binary_expression "psVar1 = &(this->strings_).\n            super__List_base<gold::Stringpool_template<short_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<short_unsigned_int>::Stringdata*>_>\n            ._M_impl._M_node._M_size;" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n            ._M_impl._M_node._M_size" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n            ._M_impl._M_node" (field_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_>\n            ._M_impl" (binary_expression "Stringpool_template<short_unsigned_int>::Stringdata*>_" (binary_expression "Stringpool_template<short_unsigned_int>::Stringdata" (binary_expression "Stringpool_template<short_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 (ushort *)p_Var2;" return (cast_expression "(ushort *)p_Var2" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) }))
(translation_unit "uint * FUN_00171dd0(int param_1,void *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  size_t __n;\n  uint *puVar5;\n  int iVar6;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }\n  __n = param_3 * 2;\n  uVar1 = __n + 2;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_001e5180(__n + 0xe);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,__n);\n  *(undefined2 *)((int)puVar2 + __n) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_001e5200(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_001e9f70(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}\n\n" (function_definition "uint * FUN_00171dd0(int param_1,void *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  size_t __n;\n  uint *puVar5;\n  int iVar6;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }\n  __n = param_3 * 2;\n  uVar1 = __n + 2;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_001e5180(__n + 0xe);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,__n);\n  *(undefined2 *)((int)puVar2 + __n) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_001e5200(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_001e9f70(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_00171dd0(int param_1,void *param_2,int param_3)" * (function_declarator "FUN_00171dd0(int param_1,void *param_2,int param_3)" identifier (parameter_list "(int param_1,void *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  size_t __n;\n  uint *puVar5;\n  int iVar6;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }\n  __n = param_3 * 2;\n  uVar1 = __n + 2;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_001e5180(__n + 0xe);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,__n);\n  *(undefined2 *)((int)puVar2 + __n) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_001e5200(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_001e9f70(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x38) != 0)" ( (binary_expression "*(int *)(param_1 + 0x38) != 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }" { (expression_statement "FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);" (call_expression "FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1)" identifier (argument_list "("../../gold/stringpool.cc",0x9a,"add_string",param_1)" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""add_string"" " string_content ") , identifier ))) ;) })) (expression_statement "__n = param_3 * 2;" (assignment_expression "__n = param_3 * 2" identifier = (binary_expression "param_3 * 2" identifier * number_literal)) ;) (expression_statement "uVar1 = __n + 2;" (assignment_expression "uVar1 = __n + 2" identifier = (binary_expression "__n + 2" identifier + number_literal)) ;) (if_statement "if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }" if (parenthesized_expression "(uVar1 < 0x3e9)" ( (binary_expression "uVar1 < 0x3e9" identifier < number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }" { (if_statement "if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x2c) != param_1 + 0x2c)" ( (binary_expression "*(int *)(param_1 + 0x2c) != param_1 + 0x2c" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) != (binary_expression "param_1 + 0x2c" identifier + number_literal)) )) (compound_statement "{\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }" { (expression_statement "piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);" (assignment_expression "piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x2c) + 8)" * (cast_expression "(int **)(*(int *)(param_1 + 0x2c) + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x2c) + 8)" ( (binary_expression "*(int *)(param_1 + 0x2c) + 8" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }" if (parenthesized_expression "(uVar1 <= (uint)(piVar3[1] - *piVar3))" ( (binary_expression "uVar1 <= (uint)(piVar3[1] - *piVar3)" identifier <= (call_expression "(uint)(piVar3[1] - *piVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar3[1] - *piVar3)" ( (binary_expression "piVar3[1] - *piVar3" (subscript_expression "piVar3[1]" identifier [ number_literal ]) - (pointer_expression "*piVar3" * identifier)) )))) )) (compound_statement "{\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }" { (expression_statement "puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);" (assignment_expression "puVar2 = (uint *)((int)piVar3 + *piVar3 + 8)" identifier = (cast_expression "(uint *)((int)piVar3 + *piVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar3 + *piVar3 + 8)" ( (binary_expression "(int)piVar3 + *piVar3 + 8" (binary_expression "(int)piVar3 + *piVar3" (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*piVar3" * identifier)) + number_literal) )))) ;) (expression_statement "memcpy(puVar2,param_2,__n);" (call_expression "memcpy(puVar2,param_2,__n)" identifier (argument_list "(puVar2,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined2 *)((int)puVar2 + __n) = 0;" (assignment_expression "*(undefined2 *)((int)puVar2 + __n) = 0" (pointer_expression "*(undefined2 *)((int)puVar2 + __n)" * (cast_expression "(undefined2 *)((int)puVar2 + __n)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + __n)" ( (binary_expression "(int)puVar2 + __n" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*piVar3 = *piVar3 + uVar1;" (assignment_expression "*piVar3 = *piVar3 + uVar1" (pointer_expression "*piVar3" * identifier) = (binary_expression "*piVar3 + uVar1" (pointer_expression "*piVar3" * identifier) + identifier)) ;) (return_statement "return puVar2;" return identifier ;) })) })) (expression_statement "puVar5 = (uint *)FUN_001e5180(0x3f4);" (assignment_expression "puVar5 = (uint *)FUN_001e5180(0x3f4)" identifier = (cast_expression "(uint *)FUN_001e5180(0x3f4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5180(0x3f4)" identifier (argument_list "(0x3f4)" ( number_literal ))))) ;) (expression_statement "puVar2 = puVar5 + 2;" (assignment_expression "puVar2 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "puVar5[1] = 1000;" (assignment_expression "puVar5[1] = 1000" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "memcpy(puVar2,param_2,__n);" (call_expression "memcpy(puVar2,param_2,__n)" identifier (argument_list "(puVar2,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined2 *)((int)puVar2 + __n) = 0;" (assignment_expression "*(undefined2 *)((int)puVar2 + __n) = 0" (pointer_expression "*(undefined2 *)((int)puVar2 + __n)" * (cast_expression "(undefined2 *)((int)puVar2 + __n)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + __n)" ( (binary_expression "(int)puVar2 + __n" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x2c);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x2c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" * (cast_expression "(undefined4 *)(param_1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar6 = FUN_001e5200(0xc);" (assignment_expression "iVar6 = FUN_001e5200(0xc)" identifier = (call_expression "FUN_001e5200(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(uint **)(iVar6 + 8) = puVar5;" (assignment_expression "*(uint **)(iVar6 + 8) = puVar5" (pointer_expression "*(uint **)(iVar6 + 8)" * (cast_expression "(uint **)(iVar6 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_001e9f70(iVar6,uVar4);" (call_expression "FUN_001e9f70(iVar6,uVar4)" identifier (argument_list "(iVar6,uVar4)" ( identifier , identifier ))) ;) (expression_statement "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;" (assignment_expression "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar5 = (uint *)FUN_001e5180(__n + 0xe);" (assignment_expression "puVar5 = (uint *)FUN_001e5180(__n + 0xe)" identifier = (cast_expression "(uint *)FUN_001e5180(__n + 0xe)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5180(__n + 0xe)" identifier (argument_list "(__n + 0xe)" ( (binary_expression "__n + 0xe" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = puVar5 + 2;" (assignment_expression "puVar2 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "puVar5[1] = uVar1;" (assignment_expression "puVar5[1] = uVar1" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy(puVar2,param_2,__n);" (call_expression "memcpy(puVar2,param_2,__n)" identifier (argument_list "(puVar2,param_2,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined2 *)((int)puVar2 + __n) = 0;" (assignment_expression "*(undefined2 *)((int)puVar2 + __n) = 0" (pointer_expression "*(undefined2 *)((int)puVar2 + __n)" * (cast_expression "(undefined2 *)((int)puVar2 + __n)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + __n)" ( (binary_expression "(int)puVar2 + __n" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar6 = FUN_001e5200(0xc);" (assignment_expression "iVar6 = FUN_001e5200(0xc)" identifier = (call_expression "FUN_001e5200(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(uint **)(iVar6 + 8) = puVar5;" (assignment_expression "*(uint **)(iVar6 + 8) = puVar5" (pointer_expression "*(uint **)(iVar6 + 8)" * (cast_expression "(uint **)(iVar6 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_001e9f70(iVar6,param_1 + 0x2c);" (call_expression "FUN_001e9f70(iVar6,param_1 + 0x2c)" identifier (argument_list "(iVar6,param_1 + 0x2c)" ( identifier , (binary_expression "param_1 + 0x2c" identifier + number_literal) ))) ;) (expression_statement "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;" (assignment_expression "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 ") , IDENT ))) ;) })) (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 TYPE (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 TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 TYPE) ) 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 TYPE) ) 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 IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (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 (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 , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (return_statement return IDENT ;) })) (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 IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 TYPE) ) 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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (return_statement return IDENT ;) })))
(function_definition "uint * FUN_00171dd0(int param_1,void *param_2,int param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  size_t __n;\n  uint *puVar5;\n  int iVar6;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }\n  __n = param_3 * 2;\n  uVar1 = __n + 2;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_001e5180(__n + 0xe);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,__n);\n  *(undefined2 *)((int)puVar2 + __n) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_001e5200(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_001e9f70(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}" (type_identifier "uint") (pointer_declarator "* FUN_00171dd0(int param_1,void *param_2,int param_3)" (* "*") (function_declarator "FUN_00171dd0(int param_1,void *param_2,int param_3)" (identifier "FUN_00171dd0") (parameter_list "(int param_1,void *param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")")))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  size_t __n;\n  uint *puVar5;\n  int iVar6;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }\n  __n = param_3 * 2;\n  uVar1 = __n + 2;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_001e5180(__n + 0xe);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,__n);\n  *(undefined2 *)((int)puVar2 + __n) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_001e5200(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_001e9f70(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x38) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) != 0" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);\n  }" ({ "{") (expression_statement "FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);" (call_expression "FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1)" (identifier "FUN_00069d00") (argument_list "("../../gold/stringpool.cc",0x9a,"add_string",param_1)" (( "(") (string_literal ""../../gold/stringpool.cc"" (" """) (string_content "../../gold/stringpool.cc") (" """)) (, ",") (number_literal "0x9a") (, ",") (string_literal ""add_string"" (" """) (string_content "add_string") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "__n = param_3 * 2;" (assignment_expression "__n = param_3 * 2" (identifier "__n") (= "=") (binary_expression "param_3 * 2" (identifier "param_3") (* "*") (number_literal "2"))) (; ";")) (expression_statement "uVar1 = __n + 2;" (assignment_expression "uVar1 = __n + 2" (identifier "uVar1") (= "=") (binary_expression "__n + 2" (identifier "__n") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(uVar1 < 0x3e9)" (( "(") (binary_expression "uVar1 < 0x3e9" (identifier "uVar1") (< "<") (number_literal "0x3e9")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_001e5180(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,__n);\n    *(undefined2 *)((int)puVar2 + __n) = 0;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    *puVar5 = uVar1;\n    iVar6 = FUN_001e5200(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_001e9f70(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x2c) != param_1 + 0x2c)" (( "(") (binary_expression "*(int *)(param_1 + 0x2c) != param_1 + 0x2c" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (!= "!=") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c"))) () ")")) (compound_statement "{\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }" ({ "{") (expression_statement "piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);" (assignment_expression "piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(*(int *)(param_1 + 0x2c) + 8)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 0x2c) + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x2c) + 8)" (( "(") (binary_expression "*(int *)(param_1 + 0x2c) + 8" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }" (if "if") (parenthesized_expression "(uVar1 <= (uint)(piVar3[1] - *piVar3))" (( "(") (binary_expression "uVar1 <= (uint)(piVar3[1] - *piVar3)" (identifier "uVar1") (<= "<=") (call_expression "(uint)(piVar3[1] - *piVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar3[1] - *piVar3)" (( "(") (binary_expression "piVar3[1] - *piVar3" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (- "-") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")))) () ")")) (compound_statement "{\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,__n);\n        *(undefined2 *)((int)puVar2 + __n) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }" ({ "{") (expression_statement "puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);" (assignment_expression "puVar2 = (uint *)((int)piVar3 + *piVar3 + 8)" (identifier "puVar2") (= "=") (cast_expression "(uint *)((int)piVar3 + *piVar3 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar3 + *piVar3 + 8)" (( "(") (binary_expression "(int)piVar3 + *piVar3 + 8" (binary_expression "(int)piVar3 + *piVar3" (cast_expression "(int)piVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar3")) (+ "+") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (+ "+") (number_literal "8")) () ")")))) (; ";")) (expression_statement "memcpy(puVar2,param_2,__n);" (call_expression "memcpy(puVar2,param_2,__n)" (identifier "memcpy") (argument_list "(puVar2,param_2,__n)" (( "(") (identifier "puVar2") (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "*(undefined2 *)((int)puVar2 + __n) = 0;" (assignment_expression "*(undefined2 *)((int)puVar2 + __n) = 0" (pointer_expression "*(undefined2 *)((int)puVar2 + __n)" (* "*") (cast_expression "(undefined2 *)((int)puVar2 + __n)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + __n)" (( "(") (binary_expression "(int)puVar2 + __n" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (identifier "__n")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar3 = *piVar3 + uVar1;" (assignment_expression "*piVar3 = *piVar3 + uVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (binary_expression "*piVar3 + uVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (identifier "uVar1"))) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar5 = (uint *)FUN_001e5180(0x3f4);" (assignment_expression "puVar5 = (uint *)FUN_001e5180(0x3f4)" (identifier "puVar5") (= "=") (cast_expression "(uint *)FUN_001e5180(0x3f4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5180(0x3f4)" (identifier "FUN_001e5180") (argument_list "(0x3f4)" (( "(") (number_literal "0x3f4") () ")"))))) (; ";")) (expression_statement "puVar2 = puVar5 + 2;" (assignment_expression "puVar2 = puVar5 + 2" (identifier "puVar2") (= "=") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar5[1] = 1000;" (assignment_expression "puVar5[1] = 1000" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1000")) (; ";")) (expression_statement "memcpy(puVar2,param_2,__n);" (call_expression "memcpy(puVar2,param_2,__n)" (identifier "memcpy") (argument_list "(puVar2,param_2,__n)" (( "(") (identifier "puVar2") (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "*(undefined2 *)((int)puVar2 + __n) = 0;" (assignment_expression "*(undefined2 *)((int)puVar2 + __n) = 0" (pointer_expression "*(undefined2 *)((int)puVar2 + __n)" (* "*") (cast_expression "(undefined2 *)((int)puVar2 + __n)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + __n)" (( "(") (binary_expression "(int)puVar2 + __n" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (identifier "__n")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x2c);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x2c)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar6 = FUN_001e5200(0xc);" (assignment_expression "iVar6 = FUN_001e5200(0xc)" (identifier "iVar6") (= "=") (call_expression "FUN_001e5200(0xc)" (identifier "FUN_001e5200") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(uint **)(iVar6 + 8) = puVar5;" (assignment_expression "*(uint **)(iVar6 + 8) = puVar5" (pointer_expression "*(uint **)(iVar6 + 8)" (* "*") (cast_expression "(uint **)(iVar6 + 8)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar5")) (; ";")) (expression_statement "FUN_001e9f70(iVar6,uVar4);" (call_expression "FUN_001e9f70(iVar6,uVar4)" (identifier "FUN_001e9f70") (argument_list "(iVar6,uVar4)" (( "(") (identifier "iVar6") (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;" (assignment_expression "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "puVar5 = (uint *)FUN_001e5180(__n + 0xe);" (assignment_expression "puVar5 = (uint *)FUN_001e5180(__n + 0xe)" (identifier "puVar5") (= "=") (cast_expression "(uint *)FUN_001e5180(__n + 0xe)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5180(__n + 0xe)" (identifier "FUN_001e5180") (argument_list "(__n + 0xe)" (( "(") (binary_expression "__n + 0xe" (identifier "__n") (+ "+") (number_literal "0xe")) () ")"))))) (; ";")) (expression_statement "puVar2 = puVar5 + 2;" (assignment_expression "puVar2 = puVar5 + 2" (identifier "puVar2") (= "=") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar5[1] = uVar1;" (assignment_expression "puVar5[1] = uVar1" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "memcpy(puVar2,param_2,__n);" (call_expression "memcpy(puVar2,param_2,__n)" (identifier "memcpy") (argument_list "(puVar2,param_2,__n)" (( "(") (identifier "puVar2") (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "*(undefined2 *)((int)puVar2 + __n) = 0;" (assignment_expression "*(undefined2 *)((int)puVar2 + __n) = 0" (pointer_expression "*(undefined2 *)((int)puVar2 + __n)" (* "*") (cast_expression "(undefined2 *)((int)puVar2 + __n)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + __n)" (( "(") (binary_expression "(int)puVar2 + __n" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (identifier "__n")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar6 = FUN_001e5200(0xc);" (assignment_expression "iVar6 = FUN_001e5200(0xc)" (identifier "iVar6") (= "=") (call_expression "FUN_001e5200(0xc)" (identifier "FUN_001e5200") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(uint **)(iVar6 + 8) = puVar5;" (assignment_expression "*(uint **)(iVar6 + 8) = puVar5" (pointer_expression "*(uint **)(iVar6 + 8)" (* "*") (cast_expression "(uint **)(iVar6 + 8)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar5")) (; ";")) (expression_statement "FUN_001e9f70(iVar6,param_1 + 0x2c);" (call_expression "FUN_001e9f70(iVar6,param_1 + 0x2c)" (identifier "FUN_001e9f70") (argument_list "(iVar6,param_1 + 0x2c)" (( "(") (identifier "iVar6") (, ",") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;" (assignment_expression "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: ushort * add_string(Stringpool_template<short_unsigned_int> * this,
   ushort * 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;
  type_1 *__dest;
  type_2 *var_9;
  size_t var_3;
  type_2 *var_12;
  type_2 *var_4;
  type_2 *var_15;
  
  if (this->strtab_size_ != 0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/stringpool.cc",0x9a,"add_string");
  }
  var_3 = var_2 * 2;
  var_4 = (type_2 *)(var_3 + 2);
  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 *)((int)var_9->_M_prev - (int)var_9->_M_next)) {
        __dest = (type_1 *)((int)(var_9 + 1) + (int)var_9->_M_next);
        var_10(__dest,s,var_3);
        __dest[var_2] = 0;
        var_9->_M_next = (type_2 *)((int)&var_4->_M_next + (int)var_9->_M_next);
        return __dest;
      }
    }
    var_12 = (type_2 *)var_11(0x3f4);
    var_9 = var_12 + 1;
    var_12->_M_prev = (type_2 *)0x3e8;
    var_10(var_9,s,var_3);
    *(type_3 *)((int)&var_9->_M_next + var_3) = 0;
    var_15 = (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;
    var_12->_M_next = var_4;
    var_4 = (type_2 *)var_13(0xc);
    var_4[1]._M_next = var_12;
    std::__detail::_List_node_base::var_14(var_4,var_15);
    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;
  }
  var_15 = (type_2 *)var_11(var_3 + 0xe);
  var_9 = var_15 + 1;
  var_15->_M_prev = var_4;
  var_10(var_9,s,var_3);
  *(type_3 *)((int)&var_9->_M_next + var_3) = 0;
  var_15->_M_next = var_4;
  var_4 = (type_2 *)var_13(0xc);
  var_4[1]._M_next = var_15;
  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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))) (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: (primitive_type) 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: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (primitive_type)) 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: (primitive_type)) 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: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (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: (primitive_type)) value: (identifier)) right: (identifier))))) right: (number_literal))) (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: (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) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (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 (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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: (primitive_type)) 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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint * MASKED(int param_1,void *param_2,int param_3)

{
  uint uVar1;
  uint *puVar2;
  int *piVar3;
  undefined4 uVar4;
  size_t __n;
  uint *puVar5;
  int iVar6;
  
  if (*(int *)(param_1 + 0x38) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/stringpool.cc",0x9a,"add_string",param_1);
  }
  __n = param_3 * 2;
  uVar1 = __n + 2;
  if (uVar1 < 0x3e9) {
    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {
      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);
      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {
        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);
        memcpy(puVar2,param_2,__n);
        *(undefined2 *)((int)puVar2 + __n) = 0;
        *piVar3 = *piVar3 + uVar1;
        return puVar2;
      }
    }
    puVar5 = (uint *)FUN_001e5180(0x3f4);
    puVar2 = puVar5 + 2;
    puVar5[1] = 1000;
    memcpy(puVar2,param_2,__n);
    *(undefined2 *)((int)puVar2 + __n) = 0;
    uVar4 = *(undefined4 *)(param_1 + 0x2c);
    *puVar5 = uVar1;
    iVar6 = FUN_001e5200(0xc);
    *(uint **)(iVar6 + 8) = puVar5;
    FUN_001e9f70(iVar6,uVar4);
    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;
    return puVar2;
  }
  puVar5 = (uint *)FUN_001e5180(__n + 0xe);
  puVar2 = puVar5 + 2;
  puVar5[1] = uVar1;
  memcpy(puVar2,param_2,__n);
  *(undefined2 *)((int)puVar2 + __n) = 0;
  *puVar5 = uVar1;
  iVar6 = FUN_001e5200(0xc);
  *(uint **)(iVar6 + 8) = puVar5;
  FUN_001e9f70(iVar6,param_1 + 0x2c);
  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;
  return puVar2;
}

