{"type": "func", "start": 6443033936, "end": 6443034022, "name": "cocos2d::CCSpriteBatchNode::increaseAtlasCapacity", "pseudocode": "// \n// cocos2d::CCSpriteBatchNode::increaseAtlasCapacity from 0x18008e550 to 0x18008e5a6 (86 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCSpriteBatchNode::appendChild @ 0x18008dfc7\n// > cocos2d::CCSpriteBatchNode::insertChild @ 0x18008e82c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6000\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::CCSpriteBatchNode::increaseAtlasCapacity(cocos2d::CCSpriteBatchNode *this)\n{\n  unsigned int v2; // ebx\n\n  v2 = (4\n      * ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getCapacity)(this->m_pobTextureAtlas)\n      + 4)\n     / 3;\n  if ( ((unsigned int (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pobTextureAtlas->getCapacity)(this->m_pobTextureAtlas) < v2 )\n    cocos2d::CCTextureAtlas::resizeCapacity(this->m_pobTextureAtlas, v2);\n}", "assembly": "; \n; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity from 0x18008e550 to 0x18008e5a6 (86 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCSpriteBatchNode::appendChild @ 0x18008dfc7\n; > cocos2d::CCSpriteBatchNode::insertChild @ 0x18008e82c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6000\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_0], rbx                                               ; +0x0, 0x18008e550\npush    rdi                                                            ; +0x5, 0x18008e555\nsub     rsp, 20h                                                       ; +0x6, 0x18008e556\nmov     rdi, rcx                                                       ; +0xa, 0x18008e55a\nmov     rcx, [rcx+148h]                                                ; +0xd, 0x18008e55d\nmov     rax, [rcx]                                                     ; +0x14, 0x18008e564\ncall    qword ptr [rax+50h]                                            ; +0x17, 0x18008e567\nmov     rcx, [rdi+148h]                                                ; +0x1a, 0x18008e56a\nlea     edx, ds:4[rax*4]                                               ; +0x21, 0x18008e571\nmov     eax, 0AAAAAAABh                                                ; +0x28, 0x18008e578\nmul     edx                                                            ; +0x2d, 0x18008e57d\nmov     rax, [rcx]                                                     ; +0x2f, 0x18008e57f\nmov     ebx, edx                                                       ; +0x32, 0x18008e582\nshr     ebx, 1                                                         ; +0x34, 0x18008e584\ncall    qword ptr [rax+50h]                                            ; +0x36, 0x18008e586\ncmp     eax, ebx                                                       ; +0x39, 0x18008e589\njnb     short loc_18008E59B                                            ; +0x3b, 0x18008e58b\nmov     rcx, [rdi+148h]; this                                          ; +0x3d, 0x18008e58d\nmov     edx, ebx; unsigned int                                         ; +0x44, 0x18008e594\ncall    ?resizeCapacity@CCTextureAtlas@cocos2d@@QEAA_NI@Z; cocos2d::CCTextureAtlas::resizeCapacity(uint) ; +0x46, 0x18008e596\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4b, 0x18008e59b\nadd     rsp, 20h                                                       ; +0x50, 0x18008e5a0\npop     rdi                                                            ; +0x54, 0x18008e5a4\nretn                                                                   ; +0x55, 0x18008e5a5", "xrefs": ["cocos2d::CCSpriteBatchNode::appendChild @ 0x18008dfc7", "cocos2d::CCSpriteBatchNode::insertChild @ 0x18008e82c", "<???> @ 0x1801438a8", "<???> @ 0x1801b6000"], "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"}