{"type": "func", "start": 5370954368, "end": 5370954479, "name": "GJBaseGameLayer::getGroup", "pseudocode": "// \n// GJBaseGameLayer::getGroup from 0x140224280 to 0x1402242ef (111 bytes)\n// \n// 36 xrefs:\n// > GJBaseGameLayer::teleportPlayer @ 0x14020fe9b\n// > GJBaseGameLayer::playKeyframeAnimation @ 0x140217bee\n// > GJBaseGameLayer::prepareSavePositionObjects @ 0x14021a2a7\n// > GJBaseGameLayer::spawnGroup @ 0x14021ad5b\n// > GJBaseGameLayer::controlTriggersInGroup @ 0x14021e1b5\n// > GJBaseGameLayer::triggerMoveCommand @ 0x14021edeb\n// > GJBaseGameLayer::toggleGroup @ 0x140223c36\n// > GJBaseGameLayer::addToGroup @ 0x140223ffc\n// > GJBaseGameLayer::removeFromGroup @ 0x140224174\n// > GJBaseGameLayer::tryGetMainObject @ 0x14022454e\n// > GJBaseGameLayer::tryGetObject @ 0x1402245cb\n// > GJBaseGameLayer::positionUIObjects @ 0x1402261ba\n// > GJBaseGameLayer::triggerAreaEffect @ 0x14022734c\n// > GJBaseGameLayer::processRotationActions @ 0x14022b999\n// > GJBaseGameLayer::processTransformActions @ 0x14022c869\n// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x14022ec67\n// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x14022ecc5\n// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x14022ed69\n// > GJBaseGameLayer::processFollowActions @ 0x14023065f\n// > GJBaseGameLayer::optimizeMoveGroups @ 0x140231224\n// > GJBaseGameLayer::updateCamera @ 0x14023d018\n// > GJBaseGameLayer::spawnParticleTrigger @ 0x14023ff48\n// > GJBaseGameLayer::activateSFXEditTrigger @ 0x140241edf\n// > GJBaseGameLayer::volumeForProximityEffect @ 0x140242697\n// > LevelEditorLayer::addToGroup @ 0x1402dea32\n// > LevelEditorLayer::removeFromGroup @ 0x1402deb84\n// > sub_1402E2370 @ 0x1402e289a\n// > sub_1402E5800 @ 0x1402e5d07\n// > sub_1402E5800 @ 0x1402e607d\n// > LevelTools::sortSpeedObjects @ 0x14032d9df\n// > EffectGameObject::triggerObject @ 0x1404a6ad4\n// > EffectGameObject::triggerObject @ 0x1404a7eac\n// > KeyframeGameObject::updateShadowObjects @ 0x1404b553c\n// > <???> @ 0x14067ffb4\n// > <???> @ 0x14067ffc4\n// > <???> @ 0x1406cd6a4\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 *GJBaseGameLayer::getGroup(GJBaseGameLayer *a1, int a2)\n{\n  __int64 v3; // rsi\n  cocos2d::CCArray *result; // rax\n  cocos2d::CCArray *v5; // rbx\n\n  if ( a2 > 9999 )\n    *(_QWORD *)&a2 = 9999;\n  if ( a2 < 0 )\n    *(_QWORD *)&a2 = 0;\n  v3 = (unsigned int)a2;\n  result = a1->m_groups._Mypair._Myval2._Myfirst[*(_QWORD *)&a2];\n  if ( !result )\n  {\n    v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);\n    cocos2d::CCDictionary::setObject(a1->m_groupDict, v5, (unsigned int)v3);\n    a1->m_groups._Mypair._Myval2._Myfirst[v3] = v5;\n    return v5;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getGroup from 0x140224280 to 0x1402242ef (111 bytes)\n; \n; 36 xrefs:\n; > GJBaseGameLayer::teleportPlayer @ 0x14020fe9b\n; > GJBaseGameLayer::playKeyframeAnimation @ 0x140217bee\n; > GJBaseGameLayer::prepareSavePositionObjects @ 0x14021a2a7\n; > GJBaseGameLayer::spawnGroup @ 0x14021ad5b\n; > GJBaseGameLayer::controlTriggersInGroup @ 0x14021e1b5\n; > GJBaseGameLayer::triggerMoveCommand @ 0x14021edeb\n; > GJBaseGameLayer::toggleGroup @ 0x140223c36\n; > GJBaseGameLayer::addToGroup @ 0x140223ffc\n; > GJBaseGameLayer::removeFromGroup @ 0x140224174\n; > GJBaseGameLayer::tryGetMainObject @ 0x14022454e\n; > GJBaseGameLayer::tryGetObject @ 0x1402245cb\n; > GJBaseGameLayer::positionUIObjects @ 0x1402261ba\n; > GJBaseGameLayer::triggerAreaEffect @ 0x14022734c\n; > GJBaseGameLayer::processRotationActions @ 0x14022b999\n; > GJBaseGameLayer::processTransformActions @ 0x14022c869\n; > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x14022ec67\n; > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x14022ecc5\n; > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x14022ed69\n; > GJBaseGameLayer::processFollowActions @ 0x14023065f\n; > GJBaseGameLayer::optimizeMoveGroups @ 0x140231224\n; > GJBaseGameLayer::updateCamera @ 0x14023d018\n; > GJBaseGameLayer::spawnParticleTrigger @ 0x14023ff48\n; > GJBaseGameLayer::activateSFXEditTrigger @ 0x140241edf\n; > GJBaseGameLayer::volumeForProximityEffect @ 0x140242697\n; > LevelEditorLayer::addToGroup @ 0x1402dea32\n; > LevelEditorLayer::removeFromGroup @ 0x1402deb84\n; > sub_1402E2370 @ 0x1402e289a\n; > sub_1402E5800 @ 0x1402e5d07\n; > sub_1402E5800 @ 0x1402e607d\n; > LevelTools::sortSpeedObjects @ 0x14032d9df\n; > EffectGameObject::triggerObject @ 0x1404a6ad4\n; > EffectGameObject::triggerObject @ 0x1404a7eac\n; > KeyframeGameObject::updateShadowObjects @ 0x1404b553c\n; > <???> @ 0x14067ffb4\n; > <???> @ 0x14067ffc4\n; > <???> @ 0x1406cd6a4\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_8], rsi                                               ; +0x0, 0x140224280\npush    rdi                                                            ; +0x5, 0x140224285\nsub     rsp, 20h                                                       ; +0x6, 0x140224286\nmov     eax, 270Fh                                                     ; +0xa, 0x14022428a\nmov     rdi, rcx                                                       ; +0xf, 0x14022428f\ncmp     edx, eax                                                       ; +0x12, 0x140224292\ncmovg   edx, eax                                                       ; +0x14, 0x140224294\nxor     eax, eax                                                       ; +0x17, 0x140224297\ntest    edx, edx                                                       ; +0x19, 0x140224299\ncmovs   edx, eax                                                       ; +0x1b, 0x14022429b\nmov     rax, [rcx+0F18h]                                               ; +0x1e, 0x14022429e\nmov     esi, edx                                                       ; +0x25, 0x1402242a5\nmov     rax, [rax+rdx*8]                                               ; +0x27, 0x1402242a7\ntest    rax, rax                                                       ; +0x2b, 0x1402242ab\njnz     short loc_1402242E4                                            ; +0x2e, 0x1402242ae\nmov     [rsp+28h+arg_0], rbx                                           ; +0x30, 0x1402242b0\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x35, 0x1402242b5\nmov     rcx, [rdi+0F00h]                                               ; +0x3b, 0x1402242bb\nmov     r8d, esi                                                       ; +0x42, 0x1402242c2\nmov     rdx, rax                                                       ; +0x45, 0x1402242c5\nmov     rbx, rax                                                       ; +0x48, 0x1402242c8\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x4b, 0x1402242cb\nmov     rax, [rdi+0F18h]                                               ; +0x51, 0x1402242d1\nmov     [rax+rsi*8], rbx                                               ; +0x58, 0x1402242d8\nmov     rax, rbx                                                       ; +0x5c, 0x1402242dc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5f, 0x1402242df\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x64, 0x1402242e4\nadd     rsp, 20h                                                       ; +0x69, 0x1402242e9\npop     rdi                                                            ; +0x6d, 0x1402242ed\nretn                                                                   ; +0x6e, 0x1402242ee", "xrefs": ["GJBaseGameLayer::teleportPlayer @ 0x14020fe9b", "GJBaseGameLayer::playKeyframeAnimation @ 0x140217bee", "GJBaseGameLayer::prepareSavePositionObjects @ 0x14021a2a7", "GJBaseGameLayer::spawnGroup @ 0x14021ad5b", "GJBaseGameLayer::controlTriggersInGroup @ 0x14021e1b5", "GJBaseGameLayer::triggerMoveCommand @ 0x14021edeb", "GJBaseGameLayer::toggleGroup @ 0x140223c36", "GJBaseGameLayer::addToGroup @ 0x140223ffc", "GJBaseGameLayer::removeFromGroup @ 0x140224174", "GJBaseGameLayer::tryGetMainObject @ 0x14022454e", "GJBaseGameLayer::tryGetObject @ 0x1402245cb", "GJBaseGameLayer::positionUIObjects @ 0x1402261ba", "GJBaseGameLayer::triggerAreaEffect @ 0x14022734c", "GJBaseGameLayer::processRotationActions @ 0x14022b999", "GJBaseGameLayer::processTransformActions @ 0x14022c869", "GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x14022ec67", "GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x14022ecc5", "GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x14022ed69", "GJBaseGameLayer::processFollowActions @ 0x14023065f", "GJBaseGameLayer::optimizeMoveGroups @ 0x140231224", "GJBaseGameLayer::updateCamera @ 0x14023d018", "GJBaseGameLayer::spawnParticleTrigger @ 0x14023ff48", "GJBaseGameLayer::activateSFXEditTrigger @ 0x140241edf", "GJBaseGameLayer::volumeForProximityEffect @ 0x140242697", "LevelEditorLayer::addToGroup @ 0x1402dea32", "LevelEditorLayer::removeFromGroup @ 0x1402deb84", "sub_1402E2370 @ 0x1402e289a", "sub_1402E5800 @ 0x1402e5d07", "sub_1402E5800 @ 0x1402e607d", "LevelTools::sortSpeedObjects @ 0x14032d9df", "EffectGameObject::triggerObject @ 0x1404a6ad4", "EffectGameObject::triggerObject @ 0x1404a7eac", "KeyframeGameObject::updateShadowObjects @ 0x1404b553c", "<???> @ 0x14067ffb4", "<???> @ 0x14067ffc4", "<???> @ 0x1406cd6a4"], "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"}