{"type": "func", "start": 4295991952, "end": 4295992053, "name": "GJBaseGameLayer::getGroup", "pseudocode": "// \n// GJBaseGameLayer::getGroup from 0x1000fa290 to 0x1000fa2f5 (101 bytes)\n// \n// 16 xrefs:\n// > sub_10007BFE0 @ 0x10007c126\n// > sub_10007C1D0 @ 0x10007c316\n// > PlayLayer::scanDynamicSaveObjects @ 0x10007c664\n// > PlayLayer::addToGroupOld @ 0x100084672\n// > PlayLayer::removeFromGroupOld @ 0x100084720\n// > PlayLayer::processLoadedMoveActions @ 0x1000847e6\n// > PlayLayer::loadFromCheckpoint @ 0x10008b435\n// > LevelEditorLayer::processLoadedMoveActions @ 0x1000c419b\n// > sub_1000C9520 @ 0x1000c9a77\n// > sub_1000CBA70 @ 0x1000ce1f0\n// > sub_1000D00C0 @ 0x1000d037b\n// > sub_1000D00C0 @ 0x1000d0770\n// > LevelEditorLayer::updateDebugDraw @ 0x1000d41fe\n// > KeyframeGameObject::updateShadowObjects @ 0x1001a721d\n// > LevelTools::sortSpeedObjects @ 0x10050149a\n// > EditorUI::findObject @ 0x1005b9791\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:18 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::getGroup(__int64 a1, int a2)\n{\n  int v2; // eax\n  __int64 v3; // rbx\n  __int64 result; // rax\n  __int64 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 = *(_QWORD *)(*(_QWORD *)(a1 + 3616) + 8 * v3);\n  if ( !result )\n  {\n    v5 = sub_1007FE900(a1);\n    cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3592), v5, v3);\n    *(_QWORD *)(*(_QWORD *)(a1 + 3616) + 8 * v3) = v5;\n    return v5;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getGroup from 0x1000fa290 to 0x1000fa2f5 (101 bytes)\n; \n; 16 xrefs:\n; > sub_10007BFE0 @ 0x10007c126\n; > sub_10007C1D0 @ 0x10007c316\n; > PlayLayer::scanDynamicSaveObjects @ 0x10007c664\n; > PlayLayer::addToGroupOld @ 0x100084672\n; > PlayLayer::removeFromGroupOld @ 0x100084720\n; > PlayLayer::processLoadedMoveActions @ 0x1000847e6\n; > PlayLayer::loadFromCheckpoint @ 0x10008b435\n; > LevelEditorLayer::processLoadedMoveActions @ 0x1000c419b\n; > sub_1000C9520 @ 0x1000c9a77\n; > sub_1000CBA70 @ 0x1000ce1f0\n; > sub_1000D00C0 @ 0x1000d037b\n; > sub_1000D00C0 @ 0x1000d0770\n; > LevelEditorLayer::updateDebugDraw @ 0x1000d41fe\n; > KeyframeGameObject::updateShadowObjects @ 0x1001a721d\n; > LevelTools::sortSpeedObjects @ 0x10050149a\n; > EditorUI::findObject @ 0x1005b9791\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:18 +0000\n; \npush    rbp                                                            ; +0x0, 0x1000fa290\nmov     rbp, rsp                                                       ; +0x1, 0x1000fa291\npush    r15                                                            ; +0x4, 0x1000fa294\npush    r14                                                            ; +0x6, 0x1000fa296\npush    rbx                                                            ; +0x8, 0x1000fa298\npush    rax                                                            ; +0x9, 0x1000fa299\ncmp     esi, 270Fh                                                     ; +0xa, 0x1000fa29a\nmov     eax, 270Fh                                                     ; +0x10, 0x1000fa2a0\ncmovl   eax, esi                                                       ; +0x15, 0x1000fa2a5\nxor     ebx, ebx                                                       ; +0x18, 0x1000fa2a8\ntest    eax, eax                                                       ; +0x1a, 0x1000fa2aa\ncmovg   ebx, eax                                                       ; +0x1c, 0x1000fa2ac\nmov     rax, [rdi+0E20h]                                               ; +0x1f, 0x1000fa2af\nmov     rax, [rax+rbx*8]                                               ; +0x26, 0x1000fa2b6\ntest    rax, rax                                                       ; +0x2a, 0x1000fa2ba\njnz     short loc_1000FA2EA                                            ; +0x2d, 0x1000fa2bd\nmov     r14, rdi                                                       ; +0x2f, 0x1000fa2bf\ncall    sub_1007FE900                                                  ; +0x32, 0x1000fa2c2\nmov     r15, rax                                                       ; +0x37, 0x1000fa2c7\nmov     rdi, [r14+0E08h]                                               ; +0x3a, 0x1000fa2ca\nmov     rsi, rax                                                       ; +0x41, 0x1000fa2d1\nmov     rdx, rbx                                                       ; +0x44, 0x1000fa2d4\ncall    cocos2d__CCDictionary__setObject_1                             ; +0x47, 0x1000fa2d7\nmov     rax, r15                                                       ; +0x4c, 0x1000fa2dc\nmov     rcx, [r14+0E20h]                                               ; +0x4f, 0x1000fa2df\nmov     [rcx+rbx*8], r15                                               ; +0x56, 0x1000fa2e6\nadd     rsp, 8                                                         ; +0x5a, 0x1000fa2ea\npop     rbx                                                            ; +0x5e, 0x1000fa2ee\npop     r14                                                            ; +0x5f, 0x1000fa2ef\npop     r15                                                            ; +0x61, 0x1000fa2f1\npop     rbp                                                            ; +0x63, 0x1000fa2f3\nretn                                                                   ; +0x64, 0x1000fa2f4", "xrefs": ["sub_10007BFE0 @ 0x10007c126", "sub_10007C1D0 @ 0x10007c316", "PlayLayer::scanDynamicSaveObjects @ 0x10007c664", "PlayLayer::addToGroupOld @ 0x100084672", "PlayLayer::removeFromGroupOld @ 0x100084720", "PlayLayer::processLoadedMoveActions @ 0x1000847e6", "PlayLayer::loadFromCheckpoint @ 0x10008b435", "LevelEditorLayer::processLoadedMoveActions @ 0x1000c419b", "sub_1000C9520 @ 0x1000c9a77", "sub_1000CBA70 @ 0x1000ce1f0", "sub_1000D00C0 @ 0x1000d037b", "sub_1000D00C0 @ 0x1000d0770", "LevelEditorLayer::updateDebugDraw @ 0x1000d41fe", "KeyframeGameObject::updateShadowObjects @ 0x1001a721d", "LevelTools::sortSpeedObjects @ 0x10050149a", "EditorUI::findObject @ 0x1005b9791"], "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"}