{"type": "func", "start": 4295956144, "end": 4295956290, "name": "GJBaseGameLayer::increaseBatchNodeCapacity", "pseudocode": "// \n// GJBaseGameLayer::increaseBatchNodeCapacity from 0x1000f16b0 to 0x1000f1742 (146 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::setupHasCompleted @ 0x10007b3b7\n// > LevelEditorLayer::init @ 0x1000aac2c\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 12:21:11 +0000\n// \n\nunsigned int *__fastcall GJBaseGameLayer::increaseBatchNodeCapacity(__int64 a1, __int64 a2, __int64 a3)\n{\n  double v3; // xmm0_8\n  __int64 v4; // rax\n  int v5; // ebx\n  unsigned int *result; // rax\n  _QWORD *v7; // r15\n  unsigned __int64 v8; // r12\n  __int64 v9; // r14\n\n  *(_QWORD *)&v3 = GameManager::sharedState(a1, a2, a3).u64[0];\n  v5 = 200;\n  if ( (unsigned __int8)GameManager::getGameVariable(v4, \"0066\") )\n    v5 = 1000;\n  result = *(unsigned int **)(a1 + 3984);\n  if ( result )\n  {\n    result = *((unsigned int **)result + 7);\n    if ( *result )\n    {\n      v7 = *((_QWORD **)result + 2);\n      v8 = (unsigned __int64)&v7[*result - 1];\n      do\n      {\n        v9 = *v7;\n        if ( !*v7 )\n          break;\n        result = (unsigned int *)cocos2d::CCSpriteBatchNode::getAtlasCapacity(*v7, v3);\n        if ( (int)result < v5 )\n          result = (unsigned int *)cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(v9, (unsigned int)v5);\n        ++v7;\n      }\n      while ( (unsigned __int64)v7 <= v8 );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::increaseBatchNodeCapacity from 0x1000f16b0 to 0x1000f1742 (146 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::setupHasCompleted @ 0x10007b3b7\n; > LevelEditorLayer::init @ 0x1000aac2c\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 12:21:11 +0000\n; \npush    rbp                                                            ; +0x0, 0x1000f16b0\nmov     rbp, rsp                                                       ; +0x1, 0x1000f16b1\npush    r15                                                            ; +0x4, 0x1000f16b4\npush    r14                                                            ; +0x6, 0x1000f16b6\npush    r12                                                            ; +0x8, 0x1000f16b8\npush    rbx                                                            ; +0xa, 0x1000f16ba\nmov     r14, rdi                                                       ; +0xb, 0x1000f16bb\ncall    GameManager__sharedState                                       ; +0xe, 0x1000f16be\nlea     rsi, a0066; \"0066\"                                             ; +0x13, 0x1000f16c3\nmov     rdi, rax                                                       ; +0x1a, 0x1000f16ca\ncall    GameManager__getGameVariable                                   ; +0x1d, 0x1000f16cd\ntest    al, al                                                         ; +0x22, 0x1000f16d2\nmov     eax, 3E8h                                                      ; +0x24, 0x1000f16d4\nmov     ebx, 0C8h                                                      ; +0x29, 0x1000f16d9\ncmovnz  ebx, eax                                                       ; +0x2e, 0x1000f16de\nmov     rax, [r14+0F90h]                                               ; +0x31, 0x1000f16e1\ntest    rax, rax                                                       ; +0x38, 0x1000f16e8\njz      short loc_1000F1739                                            ; +0x3b, 0x1000f16eb\nmov     rax, [rax+38h]                                                 ; +0x3d, 0x1000f16ed\nmov     ecx, [rax]                                                     ; +0x41, 0x1000f16f1\ntest    rcx, rcx                                                       ; +0x43, 0x1000f16f3\njz      short loc_1000F1739                                            ; +0x46, 0x1000f16f6\nmov     r15, [rax+10h]                                                 ; +0x48, 0x1000f16f8\nlea     r12, [r15+rcx*8]                                               ; +0x4c, 0x1000f16fc\nadd     r12, 0FFFFFFFFFFFFFFF8h                                        ; +0x50, 0x1000f1700\njmp     short loc_1000F1719                                            ; +0x54, 0x1000f1704\nalign 10h                                                              ; +0x56, 0x1000f1706\nadd     r15, 8                                                         ; +0x60, 0x1000f1710\ncmp     r15, r12                                                       ; +0x64, 0x1000f1714\nja      short loc_1000F1739                                            ; +0x67, 0x1000f1717\nmov     r14, [r15]                                                     ; +0x69, 0x1000f1719\ntest    r14, r14                                                       ; +0x6c, 0x1000f171c\njz      short loc_1000F1739                                            ; +0x6f, 0x1000f171f\nmov     rdi, r14                                                       ; +0x71, 0x1000f1721\ncall    cocos2d__CCSpriteBatchNode__getAtlasCapacity                   ; +0x74, 0x1000f1724\ncmp     eax, ebx                                                       ; +0x79, 0x1000f1729\njge     short loc_1000F1710                                            ; +0x7b, 0x1000f172b\nmov     rdi, r14                                                       ; +0x7d, 0x1000f172d\nmov     esi, ebx                                                       ; +0x80, 0x1000f1730\ncall    cocos2d__CCSpriteBatchNode__increaseAtlasCapacity              ; +0x82, 0x1000f1732\njmp     short loc_1000F1710                                            ; +0x87, 0x1000f1737\npop     rbx                                                            ; +0x89, 0x1000f1739\npop     r12                                                            ; +0x8a, 0x1000f173a\npop     r14                                                            ; +0x8c, 0x1000f173c\npop     r15                                                            ; +0x8e, 0x1000f173e\npop     rbp                                                            ; +0x90, 0x1000f1740\nretn                                                                   ; +0x91, 0x1000f1741", "xrefs": ["PlayLayer::setupHasCompleted @ 0x10007b3b7", "LevelEditorLayer::init @ 0x1000aac2c"], "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"}