{"type": "func", "start": 4297559860, "end": 4297560008, "name": "GJBaseGameLayer::increaseBatchNodeCapacity", "pseudocode": "// \n// GJBaseGameLayer::increaseBatchNodeCapacity from 0x100278f34 to 0x100278fc8 (148 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::setupHasCompleted @ 0x10013f640\n// > LevelEditorLayer::init @ 0x1003f7030\n// \n// This function is hookable on this platform (idp: arm, 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:01:51 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::increaseBatchNodeCapacity(__int64 a1)\n{\n  __int64 v2; // x0\n  int v3; // w0\n  __int64 v4; // x19\n  __int64 v5; // x8\n  unsigned int *v6; // x9\n  __int64 v7; // x8\n  __int64 *v8; // x21\n  unsigned __int64 v9; // x22\n  __int64 v10; // x20\n\n  v2 = GameManager::sharedState(a1);\n  GameManager::getGameVariable(v2, \"0066\");\n  if ( v3 )\n    v4 = 1000;\n  else\n    v4 = 200;\n  v5 = *(_QWORD *)(a1 + 3984);\n  if ( v5 )\n  {\n    v6 = *(unsigned int **)(v5 + 56);\n    v7 = *v6;\n    if ( (_DWORD)v7 )\n    {\n      v8 = *((__int64 **)v6 + 2);\n      v9 = (unsigned __int64)&v8[v7 - 1];\n      do\n      {\n        v10 = *v8;\n        if ( !*v8 )\n          break;\n        if ( (int)cocos2d::CCSpriteBatchNode::getAtlasCapacity(*v8) < (int)v4 )\n          cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v10, v4);\n        ++v8;\n      }\n      while ( (unsigned __int64)v8 <= v9 );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::increaseBatchNodeCapacity from 0x100278f34 to 0x100278fc8 (148 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::setupHasCompleted @ 0x10013f640\n; > LevelEditorLayer::init @ 0x1003f7030\n; \n; This function is hookable on this platform (idp: arm, 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:01:51 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100278f34\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100278f38\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100278f3c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100278f40\nMOV             X20, X0                                                ; +0x10, 0x100278f44\nBL              GameManager__sharedState                               ; +0x14, 0x100278f48\nADRL            X1, a0066; \"0066\"                                      ; +0x18, 0x100278f4c\nBL              GameManager__getGameVariable                           ; +0x20, 0x100278f54\nCMP             W0, #0                                                 ; +0x24, 0x100278f58\nMOV             W8, #0xC8                                              ; +0x28, 0x100278f5c\nMOV             W9, #0x3E8                                             ; +0x2c, 0x100278f60\nCSEL            W19, W9, W8, NE                                        ; +0x30, 0x100278f64\nLDR             X8, [X20,#0xF90]                                       ; +0x34, 0x100278f68\nCBZ             X8, loc_100278FB8                                      ; +0x38, 0x100278f6c\nLDR             X9, [X8,#0x38]                                         ; +0x3c, 0x100278f70\nLDR             W8, [X9]                                               ; +0x40, 0x100278f74\nCBZ             W8, loc_100278FB8                                      ; +0x44, 0x100278f78\nLDR             X21, [X9,#0x10]                                        ; +0x48, 0x100278f7c\nADD             X8, X21, X8,LSL#3                                      ; +0x4c, 0x100278f80\nSUB             X22, X8, #8                                            ; +0x50, 0x100278f84\nLDR             X20, [X21]                                             ; +0x54, 0x100278f88\nCBZ             X20, loc_100278FB8                                     ; +0x58, 0x100278f8c\nMOV             X0, X20                                                ; +0x5c, 0x100278f90\nBL              cocos2d__CCSpriteBatchNode__getAtlasCapacity           ; +0x60, 0x100278f94\nCMP             W0, W19                                                ; +0x64, 0x100278f98\nB.GE            loc_100278FAC                                          ; +0x68, 0x100278f9c\nMOV             X0, X20                                                ; +0x6c, 0x100278fa0\nMOV             X1, X19                                                ; +0x70, 0x100278fa4\nBL              cocos2d__CCSpriteBatchNode__increaseAtlasCapacity      ; +0x74, 0x100278fa8\nADD             X21, X21, #8                                           ; +0x78, 0x100278fac\nCMP             X21, X22                                               ; +0x7c, 0x100278fb0\nB.LS            loc_100278F88                                          ; +0x80, 0x100278fb4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x100278fb8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x100278fbc\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x100278fc0\nRET                                                                    ; +0x90, 0x100278fc4", "xrefs": ["PlayLayer::setupHasCompleted @ 0x10013f640", "LevelEditorLayer::init @ 0x1003f7030"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}