{"type": "func", "start": 4644024, "end": 4644106, "name": "GJBaseGameLayer::increaseBatchNodeCapacity", "pseudocode": "// \n// GJBaseGameLayer::increaseBatchNodeCapacity from 0x46dcb8 to 0x46dd0a (82 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::setupHasCompleted @ 0x31bbb6\n// > LevelEditorLayer::init @ 0x376a5e\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 GJBaseGameLayer::increaseBatchNodeCapacity(GJBaseGameLayer *a1)\n{\n  GameManager *v2; // r0\n  _BOOL4 GameVariable; // r0\n  cocos2d::CCArray *m_batchNodes; // r3\n  signed int v5; // r7\n  cocos2d::ccArray *data; // r2\n  cocos2d::CCObject **arr; // r5\n  cocos2d::CCObject **v8; // r4\n  cocos2d::CCSpriteBatchNode *v9; // r6\n  cocos2d::CCSpriteBatchNode *v10; // t1\n\n  v2 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v2, \"0066\");\n  m_batchNodes = a1->m_batchNodes;\n  if ( GameVariable )\n    v5 = 1000;\n  else\n    v5 = 200;\n  if ( m_batchNodes )\n  {\n    data = m_batchNodes->data;\n    if ( data->num )\n    {\n      arr = data->arr;\n      v8 = &arr[data->num] + 0x3FFFFFFF;\n      while ( arr <= v8 )\n      {\n        v10 = (cocos2d::CCSpriteBatchNode *)*arr++;\n        v9 = v10;\n        if ( !v10 )\n          break;\n        if ( cocos2d::CCSpriteBatchNode::getAtlasCapacity(v9) < v5 )\n          cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v9, v5);\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::increaseBatchNodeCapacity from 0x46dcb8 to 0x46dd0a (82 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::setupHasCompleted @ 0x31bbb6\n; > LevelEditorLayer::init @ 0x376a5e\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            {R3-R7,LR}                                             ; +0x0, 0x46dcb8\nMOV             R4, R0                                                 ; +0x2, 0x46dcba\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4, 0x46dcbc\nLDR             R1, =(a0066 - 0x46DCC6); \"0066\"                        ; +0x8, 0x46dcc0\nADD             R1, PC; \"0066\"                                         ; +0xa, 0x46dcc2\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0xc, 0x46dcc4\nLDR.W           R3, [R4,#0xA10]                                        ; +0x10, 0x46dcc8\nCMP             R0, #0                                                 ; +0x14, 0x46dccc\nITE NE                                                                 ; +0x16, 0x46dcce\nMOVNE.W         R7, #0x3E8                                             ; +0x18, 0x46dcd0\nMOVEQ           R7, #0xC8                                              ; +0x1c, 0x46dcd4\nCBZ             R3, locret_46DD08                                      ; +0x1e, 0x46dcd6\nLDR             R2, [R3,#0x34]                                         ; +0x20, 0x46dcd8\nLDR             R3, [R2]                                               ; +0x22, 0x46dcda\nCBZ             R3, locret_46DD08                                      ; +0x24, 0x46dcdc\nADD.W           R3, R3, #0x40000000                                    ; +0x26, 0x46dcde\nLDR             R5, [R2,#0xC]                                          ; +0x2a, 0x46dce2\nSUBS            R3, #1                                                 ; +0x2c, 0x46dce4\nADD.W           R4, R5, R3,LSL#2                                       ; +0x2e, 0x46dce6\nCMP             R5, R4                                                 ; +0x32, 0x46dcea\nBHI             locret_46DD08                                          ; +0x34, 0x46dcec\nLDR.W           R6, [R5],#4                                            ; +0x36, 0x46dcee\nCBZ             R6, locret_46DD08                                      ; +0x3a, 0x46dcf2\nMOV             R0, R6; this                                           ; +0x3c, 0x46dcf4\nBL              _ZN7cocos2d17CCSpriteBatchNode16getAtlasCapacityEv; cocos2d::CCSpriteBatchNode::getAtlasCapacity(void) ; +0x3e, 0x46dcf6\nCMP             R0, R7                                                 ; +0x42, 0x46dcfa\nBGE             loc_46DCEA                                             ; +0x44, 0x46dcfc\nMOV             R0, R6; this                                           ; +0x46, 0x46dcfe\nMOV             R1, R7; unsigned int                                   ; +0x48, 0x46dd00\nBL              _ZN7cocos2d17CCSpriteBatchNode21increaseAtlasCapacityEj; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(uint) ; +0x4a, 0x46dd02\nB               loc_46DCEA                                             ; +0x4e, 0x46dd06\nPOP             {R3-R7,PC}                                             ; +0x50, 0x46dd08", "xrefs": ["PlayLayer::setupHasCompleted @ 0x31bbb6", "LevelEditorLayer::init @ 0x376a5e"], "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"}