{"type": "func", "start": 4297645776, "end": 4297645892, "name": "GJBaseGameLayer::addToGroups", "pseudocode": "// \n// GJBaseGameLayer::addToGroups from 0x10028ded0 to 0x10028df44 (116 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::addObject @ 0x1001416a0\n// > PlayLayer::addObject @ 0x100141ca8\n// > PlayLayer::addObject @ 0x100141fac\n// > LevelEditorLayer::addSpecial @ 0x1003f9f98\n// \n// This function is hookable on this platform (idp: arm, 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 11:02:01 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::addToGroups(__int64 result, __int64 a2, __int64 a3)\n{\n  __int64 v5; // x21\n  __int64 v6; // x22\n  __int64 v7; // x0\n\n  if ( *(__int16 *)(a2 + 1168) >= 1 )\n  {\n    v5 = result;\n    v6 = 0;\n    do\n    {\n      v7 = sub_1002FA6C4(a2, v6);\n      result = (*(__int64 (__fastcall **)(__int64, __int64, __int64, __int64))(*(_QWORD *)v5 + 1352LL))(v5, a2, v7, a3);\n      v6 = (unsigned int)(v6 + 1);\n    }\n    while ( (int)v6 < *(__int16 *)(a2 + 1168) );\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::addToGroups from 0x10028ded0 to 0x10028df44 (116 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::addObject @ 0x1001416a0\n; > PlayLayer::addObject @ 0x100141ca8\n; > PlayLayer::addObject @ 0x100141fac\n; > LevelEditorLayer::addSpecial @ 0x1003f9f98\n; \n; This function is hookable on this platform (idp: arm, 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 11:02:01 +0000\n; \nLDRSH           W8, [X1,#0x490]                                        ; +0x0, 0x10028ded0\nCMP             W8, #1                                                 ; +0x4, 0x10028ded4\nB.LT            locret_10028DF40                                       ; +0x8, 0x10028ded8\nSTP             X22, X21, [SP,#var_30]!                                ; +0xc, 0x10028dedc\nSTP             X20, X19, [SP,#0x30+var_20]                            ; +0x10, 0x10028dee0\nSTP             X29, X30, [SP,#0x30+var_10]                            ; +0x14, 0x10028dee4\nADD             X29, SP, #0x30+var_10                                  ; +0x18, 0x10028dee8\nMOV             X19, X2                                                ; +0x1c, 0x10028deec\nMOV             X20, X1                                                ; +0x20, 0x10028def0\nMOV             X21, X0                                                ; +0x24, 0x10028def4\nMOV             W22, #0                                                ; +0x28, 0x10028def8\nMOV             X0, X20                                                ; +0x2c, 0x10028defc\nMOV             X1, X22                                                ; +0x30, 0x10028df00\nBL              sub_1002FA6C4                                          ; +0x34, 0x10028df04\nMOV             X2, X0                                                 ; +0x38, 0x10028df08\nLDR             X8, [X21]                                              ; +0x3c, 0x10028df0c\nLDR             X8, [X8,#0x548]                                        ; +0x40, 0x10028df10\nMOV             X0, X21                                                ; +0x44, 0x10028df14\nMOV             X1, X20                                                ; +0x48, 0x10028df18\nMOV             X3, X19                                                ; +0x4c, 0x10028df1c\nBLR             X8                                                     ; +0x50, 0x10028df20\nADD             W22, W22, #1                                           ; +0x54, 0x10028df24\nLDRSH           W8, [X20,#0x490]                                       ; +0x58, 0x10028df28\nCMP             W22, W8                                                ; +0x5c, 0x10028df2c\nB.LT            loc_10028DEFC                                          ; +0x60, 0x10028df30\nLDP             X29, X30, [SP,#0x30+var_10]                            ; +0x64, 0x10028df34\nLDP             X20, X19, [SP,#0x30+var_20]                            ; +0x68, 0x10028df38\nLDP             X22, X21, [SP+0x30+var_30],#0x30                       ; +0x6c, 0x10028df3c\nRET                                                                    ; +0x70, 0x10028df40", "xrefs": ["PlayLayer::addObject @ 0x1001416a0", "PlayLayer::addObject @ 0x100141ca8", "PlayLayer::addObject @ 0x100141fac", "LevelEditorLayer::addSpecial @ 0x1003f9f98"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}