{"type": "func", "start": 4297008120, "end": 4297008236, "name": "GJBaseGameLayer::addToGroups", "pseudocode": "// \n// GJBaseGameLayer::addToGroups from 0x1001f23f8 to 0x1001f246c (116 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::addObject @ 0x10011897c\n// > PlayLayer::addObject @ 0x100118fb0\n// > PlayLayer::addObject @ 0x1001192b4\n// > LevelEditorLayer::addSpecial @ 0x10035a070\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!\nvoid __fastcall GJBaseGameLayer::addToGroups(GJBaseGameLayer *a1, GameObject *a2, bool a3)\n{\n  _BOOL8 v3; // x19\n  int v6; // w22\n  __int64 GroupID; // x0\n\n  if ( a2->m_groupCount >= 1 )\n  {\n    v3 = a3;\n    v6 = 0;\n    do\n    {\n      GroupID = GameObject::getGroupID(a2, v6);\n      ((void (__fastcall *)(GJBaseGameLayer *, GameObject *, __int64, _BOOL8))a1->addToGroup)(a1, a2, GroupID, v3);\n      ++v6;\n    }\n    while ( v6 < a2->m_groupCount );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addToGroups from 0x1001f23f8 to 0x1001f246c (116 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::addObject @ 0x10011897c\n; > PlayLayer::addObject @ 0x100118fb0\n; > PlayLayer::addObject @ 0x1001192b4\n; > LevelEditorLayer::addSpecial @ 0x10035a070\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\nLDRSH           W8, [X1,#0x490]                                        ; +0x0, 0x1001f23f8\nCMP             W8, #1                                                 ; +0x4, 0x1001f23fc\nB.LT            locret_1001F2468                                       ; +0x8, 0x1001f2400\nSTP             X22, X21, [SP,#var_30]!                                ; +0xc, 0x1001f2404\nSTP             X20, X19, [SP,#0x30+var_20]                            ; +0x10, 0x1001f2408\nSTP             X29, X30, [SP,#0x30+var_10]                            ; +0x14, 0x1001f240c\nADD             X29, SP, #0x30+var_10                                  ; +0x18, 0x1001f2410\nMOV             X19, X2                                                ; +0x1c, 0x1001f2414\nMOV             X20, X1                                                ; +0x20, 0x1001f2418\nMOV             X21, X0                                                ; +0x24, 0x1001f241c\nMOV             W22, #0                                                ; +0x28, 0x1001f2420\nMOV             X0, X20                                                ; +0x2c, 0x1001f2424\nMOV             X1, X22                                                ; +0x30, 0x1001f2428\nBL              GameObject__getGroupID                                 ; +0x34, 0x1001f242c\nMOV             X2, X0                                                 ; +0x38, 0x1001f2430\nLDR             X8, [X21]                                              ; +0x3c, 0x1001f2434\nLDR             X8, [X8,#0x518]                                        ; +0x40, 0x1001f2438\nMOV             X0, X21                                                ; +0x44, 0x1001f243c\nMOV             X1, X20                                                ; +0x48, 0x1001f2440\nMOV             X3, X19                                                ; +0x4c, 0x1001f2444\nBLR             X8                                                     ; +0x50, 0x1001f2448\nADD             W22, W22, #1                                           ; +0x54, 0x1001f244c\nLDRSH           W8, [X20,#0x490]                                       ; +0x58, 0x1001f2450\nCMP             W22, W8                                                ; +0x5c, 0x1001f2454\nB.LT            loc_1001F2424                                          ; +0x60, 0x1001f2458\nLDP             X29, X30, [SP,#0x30+var_10]                            ; +0x64, 0x1001f245c\nLDP             X20, X19, [SP,#0x30+var_20]                            ; +0x68, 0x1001f2460\nLDP             X22, X21, [SP+0x30+var_30],#0x30                       ; +0x6c, 0x1001f2464\nRET                                                                    ; +0x70, 0x1001f2468", "xrefs": ["PlayLayer::addObject @ 0x10011897c", "PlayLayer::addObject @ 0x100118fb0", "PlayLayer::addObject @ 0x1001192b4", "LevelEditorLayer::addSpecial @ 0x10035a070"], "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"}