{"type": "func", "start": 4296123360, "end": 4296123464, "name": "GJBaseGameLayer::addToGroups", "pseudocode": "// \n// GJBaseGameLayer::addToGroups from 0x10011a3e0 to 0x10011a448 (104 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::addObject @ 0x10007f5bf\n// > PlayLayer::addObject @ 0x10007f853\n// > PlayLayer::addObject @ 0x10007ff61\n// > LevelEditorLayer::addSpecial @ 0x1000afa91\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:24:35 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::addToGroups(__int64 a1, __int64 a2, unsigned __int8 a3)\n{\n  unsigned int v3; // r15d\n  unsigned int v4; // r12d\n  unsigned int GroupID; // eax\n\n  if ( *(__int16 *)(a2 + 1168) > 0 )\n  {\n    v3 = 0;\n    v4 = a3;\n    do\n    {\n      GroupID = GameObject::getGroupID(a2, v3);\n      (*(void (__fastcall **)(__int64, __int64, _QWORD, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, a2, GroupID, v4);\n      ++v3;\n    }\n    while ( (int)v3 < *(__int16 *)(a2 + 1168) );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addToGroups from 0x10011a3e0 to 0x10011a448 (104 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::addObject @ 0x10007f5bf\n; > PlayLayer::addObject @ 0x10007f853\n; > PlayLayer::addObject @ 0x10007ff61\n; > LevelEditorLayer::addSpecial @ 0x1000afa91\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:24:35 +0000\n; \ncmp     word ptr [rsi+490h], 0                                         ; +0x0, 0x10011a3e0\njle     short locret_10011A447                                         ; +0x8, 0x10011a3e8\npush    rbp                                                            ; +0xa, 0x10011a3ea\nmov     rbp, rsp                                                       ; +0xb, 0x10011a3eb\npush    r15                                                            ; +0xe, 0x10011a3ee\npush    r14                                                            ; +0x10, 0x10011a3f0\npush    r12                                                            ; +0x12, 0x10011a3f2\npush    rbx                                                            ; +0x14, 0x10011a3f4\nmov     rbx, rsi                                                       ; +0x15, 0x10011a3f5\nmov     r14, rdi                                                       ; +0x18, 0x10011a3f8\nxor     r15d, r15d                                                     ; +0x1b, 0x10011a3fb\nmovzx   r12d, dl                                                       ; +0x1e, 0x10011a3fe\nnop     word ptr [rax+rax+00000000h]                                   ; +0x22, 0x10011a402\nmov     rdi, rbx                                                       ; +0x30, 0x10011a410\nmov     esi, r15d                                                      ; +0x33, 0x10011a413\ncall    GameObject__getGroupID                                         ; +0x36, 0x10011a416\nmov     r8, [r14]                                                      ; +0x3b, 0x10011a41b\nmov     rdi, r14                                                       ; +0x3e, 0x10011a41e\nmov     rsi, rbx                                                       ; +0x41, 0x10011a421\nmov     edx, eax                                                       ; +0x44, 0x10011a424\nmov     ecx, r12d                                                      ; +0x46, 0x10011a426\ncall    qword ptr [r8+548h]                                            ; +0x49, 0x10011a429\ninc     r15d                                                           ; +0x50, 0x10011a430\nmovsx   eax, word ptr [rbx+490h]                                       ; +0x53, 0x10011a433\ncmp     r15d, eax                                                      ; +0x5a, 0x10011a43a\njl      short loc_10011A410                                            ; +0x5d, 0x10011a43d\npop     rbx                                                            ; +0x5f, 0x10011a43f\npop     r12                                                            ; +0x60, 0x10011a440\npop     r14                                                            ; +0x62, 0x10011a442\npop     r15                                                            ; +0x64, 0x10011a444\npop     rbp                                                            ; +0x66, 0x10011a446\nretn                                                                   ; +0x67, 0x10011a447", "xrefs": ["PlayLayer::addObject @ 0x10007f5bf", "PlayLayer::addObject @ 0x10007f853", "PlayLayer::addObject @ 0x10007ff61", "LevelEditorLayer::addSpecial @ 0x1000afa91"], "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"}