{"type": "func", "start": 4296138624, "end": 4296138725, "name": "GJBaseGameLayer::getGroup", "pseudocode": "// \n// GJBaseGameLayer::getGroup from 0x10011df80 to 0x10011dfe5 (101 bytes)\n// \n// 15 xrefs:\n// > PlayLayer::optimizeColorGroups @ 0x1000aebc6\n// > PlayLayer::optimizeOpacityGroups @ 0x1000aedb6\n// > PlayLayer::scanDynamicSaveObjects @ 0x1000af104\n// > PlayLayer::addToGroupOld @ 0x1000b6d72\n// > PlayLayer::removeFromGroupOld @ 0x1000b6e20\n// > PlayLayer::processLoadedMoveActions @ 0x1000b6ee6\n// > PlayLayer::loadFromCheckpoint @ 0x1000bd7d6\n// > LevelEditorLayer::processLoadedMoveActions @ 0x1000f0a4b\n// > sub_1000F5470 @ 0x1000f59f4\n// > sub_1000F78E0 @ 0x1000fa060\n// > sub_1000FBF30 @ 0x1000fc2cf\n// > sub_1000FBF30 @ 0x1000fc7fa\n// > LevelEditorLayer::updateDebugDraw @ 0x1000ff86f\n// > KeyframeGameObject::updateShadowObjects @ 0x1001c691d\n// > LevelTools::sortSpeedObjects @ 0x10050276a\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\n// local variable allocation has failed, the output may be wrong!\ncocos2d::CCArray *__fastcall GJBaseGameLayer::getGroup(GJBaseGameLayer *a1, int a2)\n{\n  int v2; // eax\n  intptr_t v3; // rbx\n  cocos2d::CCArray *result; // rax\n  cocos2d::CCArray *v5; // r15\n\n  v2 = 9999;\n  if ( a2 < 9999 )\n    v2 = a2;\n  v3 = 0;\n  if ( v2 > 0 )\n    v3 = (unsigned int)v2;\n  result = a1->m_groups.__begin_[v3];\n  if ( !result )\n  {\n    v5 = (cocos2d::CCArray *)sub_10071F9E0(a1, *(_QWORD *)&a2);\n    cocos2d::CCDictionary::setObject(a1->m_groupDict, v5, v3);\n    a1->m_groups.__begin_[v3] = v5;\n    return v5;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getGroup from 0x10011df80 to 0x10011dfe5 (101 bytes)\n; \n; 15 xrefs:\n; > PlayLayer::optimizeColorGroups @ 0x1000aebc6\n; > PlayLayer::optimizeOpacityGroups @ 0x1000aedb6\n; > PlayLayer::scanDynamicSaveObjects @ 0x1000af104\n; > PlayLayer::addToGroupOld @ 0x1000b6d72\n; > PlayLayer::removeFromGroupOld @ 0x1000b6e20\n; > PlayLayer::processLoadedMoveActions @ 0x1000b6ee6\n; > PlayLayer::loadFromCheckpoint @ 0x1000bd7d6\n; > LevelEditorLayer::processLoadedMoveActions @ 0x1000f0a4b\n; > sub_1000F5470 @ 0x1000f59f4\n; > sub_1000F78E0 @ 0x1000fa060\n; > sub_1000FBF30 @ 0x1000fc2cf\n; > sub_1000FBF30 @ 0x1000fc7fa\n; > LevelEditorLayer::updateDebugDraw @ 0x1000ff86f\n; > KeyframeGameObject::updateShadowObjects @ 0x1001c691d\n; > LevelTools::sortSpeedObjects @ 0x10050276a\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    rbp                                                            ; +0x0, 0x10011df80\nmov     rbp, rsp                                                       ; +0x1, 0x10011df81\npush    r15                                                            ; +0x4, 0x10011df84\npush    r14                                                            ; +0x6, 0x10011df86\npush    rbx                                                            ; +0x8, 0x10011df88\npush    rax                                                            ; +0x9, 0x10011df89\ncmp     esi, 270Fh                                                     ; +0xa, 0x10011df8a\nmov     eax, 270Fh                                                     ; +0x10, 0x10011df90\ncmovl   eax, esi                                                       ; +0x15, 0x10011df95\nxor     ebx, ebx                                                       ; +0x18, 0x10011df98\ntest    eax, eax                                                       ; +0x1a, 0x10011df9a\ncmovg   ebx, eax                                                       ; +0x1c, 0x10011df9c\nmov     rax, [rdi+0E00h]                                               ; +0x1f, 0x10011df9f\nmov     rax, [rax+rbx*8]                                               ; +0x26, 0x10011dfa6\ntest    rax, rax                                                       ; +0x2a, 0x10011dfaa\njnz     short loc_10011DFDA                                            ; +0x2d, 0x10011dfad\nmov     r14, rdi                                                       ; +0x2f, 0x10011dfaf\ncall    sub_10071F9E0                                                  ; +0x32, 0x10011dfb2\nmov     r15, rax                                                       ; +0x37, 0x10011dfb7\nmov     rdi, [r14+0DE8h]                                               ; +0x3a, 0x10011dfba\nmov     rsi, rax                                                       ; +0x41, 0x10011dfc1\nmov     rdx, rbx                                                       ; +0x44, 0x10011dfc4\ncall    cocos2d__CCDictionary__setObject                               ; +0x47, 0x10011dfc7\nmov     rax, r15                                                       ; +0x4c, 0x10011dfcc\nmov     rcx, [r14+0E00h]                                               ; +0x4f, 0x10011dfcf\nmov     [rcx+rbx*8], r15                                               ; +0x56, 0x10011dfd6\nadd     rsp, 8                                                         ; +0x5a, 0x10011dfda\npop     rbx                                                            ; +0x5e, 0x10011dfde\npop     r14                                                            ; +0x5f, 0x10011dfdf\npop     r15                                                            ; +0x61, 0x10011dfe1\npop     rbp                                                            ; +0x63, 0x10011dfe3\nretn                                                                   ; +0x64, 0x10011dfe4", "xrefs": ["PlayLayer::optimizeColorGroups @ 0x1000aebc6", "PlayLayer::optimizeOpacityGroups @ 0x1000aedb6", "PlayLayer::scanDynamicSaveObjects @ 0x1000af104", "PlayLayer::addToGroupOld @ 0x1000b6d72", "PlayLayer::removeFromGroupOld @ 0x1000b6e20", "PlayLayer::processLoadedMoveActions @ 0x1000b6ee6", "PlayLayer::loadFromCheckpoint @ 0x1000bd7d6", "LevelEditorLayer::processLoadedMoveActions @ 0x1000f0a4b", "sub_1000F5470 @ 0x1000f59f4", "sub_1000F78E0 @ 0x1000fa060", "sub_1000FBF30 @ 0x1000fc2cf", "sub_1000FBF30 @ 0x1000fc7fa", "LevelEditorLayer::updateDebugDraw @ 0x1000ff86f", "KeyframeGameObject::updateShadowObjects @ 0x1001c691d", "LevelTools::sortSpeedObjects @ 0x10050276a"], "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"}