{"type": "func", "start": 6442537344, "end": 6442537422, "name": "cocos2d::CCDrawNode::ensureCapacity", "pseudocode": "// \n// cocos2d::CCDrawNode::ensureCapacity from 0x180015180 to 0x1800151ce (78 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b8548\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:23 +0000\n// \n\nvoid __fastcall cocos2d::CCDrawNode::ensureCapacity(cocos2d::CCDrawNode *this, unsigned int a2)\n{\n  unsigned int v3; // ecx\n  __int64 v4; // rax\n  void *v5; // rcx\n\n  v3 = *((_DWORD *)this + 88);\n  if ( a2 + *((_DWORD *)this + 89) > v3 )\n  {\n    if ( v3 > a2 )\n      a2 = v3;\n    v4 = v3 + a2;\n    v5 = *((void **)this + 45);\n    *((_DWORD *)this + 88) = v4;\n    *((_QWORD *)this + 45) = realloc(v5, 20 * v4);\n  }\n}", "assembly": "; \n; cocos2d::CCDrawNode::ensureCapacity from 0x180015180 to 0x1800151ce (78 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b8548\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:23 +0000\n; \npush    rbx                                                            ; +0x0, 0x180015180\nsub     rsp, 20h                                                       ; +0x2, 0x180015182\nmov     rbx, rcx                                                       ; +0x6, 0x180015186\nmov     ecx, [rcx+160h]                                                ; +0x9, 0x180015189\nmov     r8d, [rbx+164h]                                                ; +0xf, 0x18001518f\nadd     r8d, edx                                                       ; +0x16, 0x180015196\ncmp     r8d, ecx                                                       ; +0x19, 0x180015199\njbe     short loc_1800151C8                                            ; +0x1c, 0x18001519c\ncmp     ecx, edx                                                       ; +0x1e, 0x18001519e\ncmova   edx, ecx                                                       ; +0x20, 0x1800151a0\nlea     eax, [rcx+rdx]                                                 ; +0x23, 0x1800151a3\nmov     rcx, [rbx+168h]; Block                                         ; +0x26, 0x1800151a6\nlea     rdx, [rax+rax*4]                                               ; +0x2d, 0x1800151ad\nmov     [rbx+160h], eax                                                ; +0x31, 0x1800151b1\nshl     rdx, 2; Size                                                   ; +0x37, 0x1800151b7\ncall    cs:realloc                                                     ; +0x3b, 0x1800151bb\nmov     [rbx+168h], rax                                                ; +0x41, 0x1800151c1\nadd     rsp, 20h                                                       ; +0x48, 0x1800151c8\npop     rbx                                                            ; +0x4c, 0x1800151cc\nretn                                                                   ; +0x4d, 0x1800151cd", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b8548"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}