{"type": "func", "start": 4296265520, "end": 4296265624, "name": "GJBaseGameLayer::addToGroups", "pseudocode": "// \n// GJBaseGameLayer::addToGroups from 0x10013cf30 to 0x10013cf98 (104 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::addObject @ 0x1000b209b\n// > PlayLayer::addObject @ 0x1000b22d5\n// > PlayLayer::addObject @ 0x1000b29e3\n// > LevelEditorLayer::addSpecial @ 0x1000e02a1\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\nvoid __fastcall GJBaseGameLayer::addToGroups(GJBaseGameLayer *a1, GameObject *a2, bool a3)\n{\n  int v3; // r15d\n  _BOOL4 v4; // r12d\n  unsigned int GroupID; // eax\n\n  if ( a2->m_groupCount > 0 )\n  {\n    v3 = 0;\n    v4 = a3;\n    do\n    {\n      GroupID = GameObject::getGroupID(a2, v3);\n      ((void (__fastcall *)(GJBaseGameLayer *, GameObject *, _QWORD, _BOOL4))a1->addToGroup)(a1, a2, GroupID, v4);\n      ++v3;\n    }\n    while ( v3 < a2->m_groupCount );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addToGroups from 0x10013cf30 to 0x10013cf98 (104 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::addObject @ 0x1000b209b\n; > PlayLayer::addObject @ 0x1000b22d5\n; > PlayLayer::addObject @ 0x1000b29e3\n; > LevelEditorLayer::addSpecial @ 0x1000e02a1\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\ncmp     word ptr [rsi+490h], 0                                         ; +0x0, 0x10013cf30\njle     short locret_10013CF97                                         ; +0x8, 0x10013cf38\npush    rbp                                                            ; +0xa, 0x10013cf3a\nmov     rbp, rsp                                                       ; +0xb, 0x10013cf3b\npush    r15                                                            ; +0xe, 0x10013cf3e\npush    r14                                                            ; +0x10, 0x10013cf40\npush    r12                                                            ; +0x12, 0x10013cf42\npush    rbx                                                            ; +0x14, 0x10013cf44\nmov     rbx, rsi                                                       ; +0x15, 0x10013cf45\nmov     r14, rdi                                                       ; +0x18, 0x10013cf48\nxor     r15d, r15d                                                     ; +0x1b, 0x10013cf4b\nmovzx   r12d, dl                                                       ; +0x1e, 0x10013cf4e\nnop     word ptr [rax+rax+00000000h]                                   ; +0x22, 0x10013cf52\nmov     rdi, rbx                                                       ; +0x30, 0x10013cf60\nmov     esi, r15d                                                      ; +0x33, 0x10013cf63\ncall    GameObject__getGroupID                                         ; +0x36, 0x10013cf66\nmov     r8, [r14]                                                      ; +0x3b, 0x10013cf6b\nmov     rdi, r14                                                       ; +0x3e, 0x10013cf6e\nmov     rsi, rbx                                                       ; +0x41, 0x10013cf71\nmov     edx, eax                                                       ; +0x44, 0x10013cf74\nmov     ecx, r12d                                                      ; +0x46, 0x10013cf76\ncall    qword ptr [r8+510h]                                            ; +0x49, 0x10013cf79\ninc     r15d                                                           ; +0x50, 0x10013cf80\nmovsx   eax, word ptr [rbx+490h]                                       ; +0x53, 0x10013cf83\ncmp     r15d, eax                                                      ; +0x5a, 0x10013cf8a\njl      short loc_10013CF60                                            ; +0x5d, 0x10013cf8d\npop     rbx                                                            ; +0x5f, 0x10013cf8f\npop     r12                                                            ; +0x60, 0x10013cf90\npop     r14                                                            ; +0x62, 0x10013cf92\npop     r15                                                            ; +0x64, 0x10013cf94\npop     rbp                                                            ; +0x66, 0x10013cf96\nretn                                                                   ; +0x67, 0x10013cf97", "xrefs": ["PlayLayer::addObject @ 0x1000b209b", "PlayLayer::addObject @ 0x1000b22d5", "PlayLayer::addObject @ 0x1000b29e3", "LevelEditorLayer::addSpecial @ 0x1000e02a1"], "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"}