{"type": "func", "start": 6443087024, "end": 6443087148, "name": "tinyxml2::DynArray<char,20>::PushArr", "pseudocode": "// \n// tinyxml2::DynArray<char,20>::PushArr from 0x18009b4b0 to 0x18009b52c (124 bytes)\n// \n// 5 xrefs:\n// > tinyxml2::XMLPrinter::Print @ 0x18009b1a0\n// > <???> @ 0x18013ef0c\n// > <???> @ 0x18013ef1c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b70b0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall tinyxml2::DynArray<char,20>::PushArr(__int64 a1, int a2)\n{\n  int v4; // ecx\n  int v5; // esi\n  void *v6; // rbp\n  __int64 v7; // rcx\n\n  v4 = a2 + *(_DWORD *)(a1 + 32);\n  if ( v4 > *(_DWORD *)(a1 + 28) )\n  {\n    v5 = 2 * v4;\n    v6 = operator new(2 * v4);\n    memcpy(v6, *(const void **)a1, *(int *)(a1 + 32));\n    if ( *(_QWORD *)a1 != a1 + 8 )\n      j_j_free_0(*(void **)a1);\n    *(_QWORD *)a1 = v6;\n    *(_DWORD *)(a1 + 28) = v5;\n  }\n  v7 = *(int *)(a1 + 32);\n  *(_DWORD *)(a1 + 32) = v7 + a2;\n  return *(_QWORD *)a1 + v7;\n}", "assembly": "; \n; tinyxml2::DynArray<char,20>::PushArr from 0x18009b4b0 to 0x18009b52c (124 bytes)\n; \n; 5 xrefs:\n; > tinyxml2::XMLPrinter::Print @ 0x18009b1a0\n; > <???> @ 0x18013ef0c\n; > <???> @ 0x18013ef1c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b70b0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x18009b4b0\npush    rdi                                                            ; +0x5, 0x18009b4b5\nsub     rsp, 20h                                                       ; +0x6, 0x18009b4b6\nmov     rbx, rcx                                                       ; +0xa, 0x18009b4ba\nmov     edi, edx                                                       ; +0xd, 0x18009b4bd\nmov     ecx, [rcx+20h]                                                 ; +0xf, 0x18009b4bf\nadd     ecx, edx                                                       ; +0x12, 0x18009b4c2\ncmp     ecx, [rbx+1Ch]                                                 ; +0x14, 0x18009b4c4\njle     short loc_18009B511                                            ; +0x17, 0x18009b4c7\nmov     [rsp+28h+arg_0], rbp                                           ; +0x19, 0x18009b4c9\nmov     [rsp+28h+arg_8], rsi                                           ; +0x1e, 0x18009b4ce\nlea     esi, [rcx+rcx]                                                 ; +0x23, 0x18009b4d3\nmovsxd  rcx, esi; Size                                                 ; +0x26, 0x18009b4d6\ncall    j_??2@YAPEAX_K@Z; operator new(unsigned __int64)               ; +0x29, 0x18009b4d9\nmovsxd  r8, dword ptr [rbx+20h]; Size                                  ; +0x2e, 0x18009b4de\nmov     rcx, rax; void *                                               ; +0x32, 0x18009b4e2\nmov     rdx, [rbx]; Src                                                ; +0x35, 0x18009b4e5\nmov     rbp, rax                                                       ; +0x38, 0x18009b4e8\ncall    memcpy                                                         ; +0x3b, 0x18009b4eb\nmov     rcx, [rbx]; Block                                              ; +0x40, 0x18009b4f0\nlea     rdx, [rbx+8]                                                   ; +0x43, 0x18009b4f3\ncmp     rcx, rdx                                                       ; +0x47, 0x18009b4f7\njz      short loc_18009B501                                            ; +0x4a, 0x18009b4fa\ncall    j_j_free_0                                                     ; +0x4c, 0x18009b4fc\nmov     [rbx], rbp                                                     ; +0x51, 0x18009b501\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x54, 0x18009b504\nmov     [rbx+1Ch], esi                                                 ; +0x59, 0x18009b509\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5c, 0x18009b50c\nmovsxd  rcx, dword ptr [rbx+20h]                                       ; +0x61, 0x18009b511\nlea     eax, [rcx+rdi]                                                 ; +0x65, 0x18009b515\nmov     [rbx+20h], eax                                                 ; +0x68, 0x18009b518\nmov     rax, rcx                                                       ; +0x6b, 0x18009b51b\nadd     rax, [rbx]                                                     ; +0x6e, 0x18009b51e\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x71, 0x18009b521\nadd     rsp, 20h                                                       ; +0x76, 0x18009b526\npop     rdi                                                            ; +0x7a, 0x18009b52a\nretn                                                                   ; +0x7b, 0x18009b52b", "xrefs": ["tinyxml2::XMLPrinter::Print @ 0x18009b1a0", "<???> @ 0x18013ef0c", "<???> @ 0x18013ef1c", "<???> @ 0x1801438a8", "<???> @ 0x1801b70b0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}