{"type": "func", "start": 6442537568, "end": 6442537646, "name": "cocos2d::CCDrawNode::ensureCapacity", "pseudocode": "// \n// cocos2d::CCDrawNode::ensureCapacity from 0x180015260 to 0x1800152ae (78 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae494\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\nvoid __fastcall cocos2d::CCDrawNode::ensureCapacity(cocos2d::CCDrawNode *this, unsigned int a2)\n{\n  unsigned int m_uBufferCapacity; // ecx\n  __int64 v4; // rax\n  cocos2d::ccV2F_C4B_T2F *m_pBuffer; // rcx\n\n  m_uBufferCapacity = this->m_uBufferCapacity;\n  if ( a2 + this->m_nBufferCount > m_uBufferCapacity )\n  {\n    if ( m_uBufferCapacity > a2 )\n      a2 = m_uBufferCapacity;\n    v4 = m_uBufferCapacity + a2;\n    m_pBuffer = this->m_pBuffer;\n    this->m_uBufferCapacity = v4;\n    this->m_pBuffer = (cocos2d::ccV2F_C4B_T2F *)realloc(m_pBuffer, 20 * v4);\n  }\n}", "assembly": "; \n; cocos2d::CCDrawNode::ensureCapacity from 0x180015260 to 0x1800152ae (78 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae494\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\npush    rbx                                                            ; +0x0, 0x180015260\nsub     rsp, 20h                                                       ; +0x2, 0x180015262\nmov     rbx, rcx                                                       ; +0x6, 0x180015266\nmov     ecx, [rcx+160h]                                                ; +0x9, 0x180015269\nmov     r8d, [rbx+164h]                                                ; +0xf, 0x18001526f\nadd     r8d, edx                                                       ; +0x16, 0x180015276\ncmp     r8d, ecx                                                       ; +0x19, 0x180015279\njbe     short loc_1800152A8                                            ; +0x1c, 0x18001527c\ncmp     ecx, edx                                                       ; +0x1e, 0x18001527e\ncmova   edx, ecx                                                       ; +0x20, 0x180015280\nlea     eax, [rcx+rdx]                                                 ; +0x23, 0x180015283\nmov     rcx, [rbx+168h]; Block                                         ; +0x26, 0x180015286\nlea     rdx, [rax+rax*4]                                               ; +0x2d, 0x18001528d\nmov     [rbx+160h], eax                                                ; +0x31, 0x180015291\nshl     rdx, 2; Size                                                   ; +0x37, 0x180015297\ncall    cs:realloc                                                     ; +0x3b, 0x18001529b\nmov     [rbx+168h], rax                                                ; +0x41, 0x1800152a1\nadd     rsp, 20h                                                       ; +0x48, 0x1800152a8\npop     rbx                                                            ; +0x4c, 0x1800152ac\nretn                                                                   ; +0x4d, 0x1800152ad", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ae494"], "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"}