{"type": "func", "start": 4297646204, "end": 4297646312, "name": "GJBaseGameLayer::removeFromGroups", "pseudocode": "// \n// GJBaseGameLayer::removeFromGroups from 0x10028e07c to 0x10028e0e8 (108 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::removeSpecial @ 0x1003fb8a4\n// > sub_100405BC8 @ 0x100405be8\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:02 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::removeFromGroups(__int64 result, __int64 a2)\n{\n  __int64 v3; // x20\n  __int64 v4; // x21\n  __int64 v5; // x0\n\n  if ( *(__int16 *)(a2 + 1168) >= 1 )\n  {\n    v3 = result;\n    v4 = 0;\n    do\n    {\n      v5 = sub_1002FA6C4(a2, v4);\n      result = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v3 + 1360LL))(v3, a2, v5);\n      v4 = (unsigned int)(v4 + 1);\n    }\n    while ( (int)v4 < *(__int16 *)(a2 + 1168) );\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::removeFromGroups from 0x10028e07c to 0x10028e0e8 (108 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::removeSpecial @ 0x1003fb8a4\n; > sub_100405BC8 @ 0x100405be8\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:02 +0000\n; \nLDRSH           W8, [X1,#0x490]                                        ; +0x0, 0x10028e07c\nCMP             W8, #1                                                 ; +0x4, 0x10028e080\nB.LT            locret_10028E0E4                                       ; +0x8, 0x10028e084\nSTP             X22, X21, [SP,#var_30]!                                ; +0xc, 0x10028e088\nSTP             X20, X19, [SP,#0x30+var_20]                            ; +0x10, 0x10028e08c\nSTP             X29, X30, [SP,#0x30+var_10]                            ; +0x14, 0x10028e090\nADD             X29, SP, #0x30+var_10                                  ; +0x18, 0x10028e094\nMOV             X19, X1                                                ; +0x1c, 0x10028e098\nMOV             X20, X0                                                ; +0x20, 0x10028e09c\nMOV             W21, #0                                                ; +0x24, 0x10028e0a0\nMOV             X0, X19                                                ; +0x28, 0x10028e0a4\nMOV             X1, X21                                                ; +0x2c, 0x10028e0a8\nBL              sub_1002FA6C4                                          ; +0x30, 0x10028e0ac\nMOV             X2, X0                                                 ; +0x34, 0x10028e0b0\nLDR             X8, [X20]                                              ; +0x38, 0x10028e0b4\nLDR             X8, [X8,#0x550]                                        ; +0x3c, 0x10028e0b8\nMOV             X0, X20                                                ; +0x40, 0x10028e0bc\nMOV             X1, X19                                                ; +0x44, 0x10028e0c0\nBLR             X8                                                     ; +0x48, 0x10028e0c4\nADD             W21, W21, #1                                           ; +0x4c, 0x10028e0c8\nLDRSH           W8, [X19,#0x490]                                       ; +0x50, 0x10028e0cc\nCMP             W21, W8                                                ; +0x54, 0x10028e0d0\nB.LT            loc_10028E0A4                                          ; +0x58, 0x10028e0d4\nLDP             X29, X30, [SP,#0x30+var_10]                            ; +0x5c, 0x10028e0d8\nLDP             X20, X19, [SP,#0x30+var_20]                            ; +0x60, 0x10028e0dc\nLDP             X22, X21, [SP+0x30+var_30],#0x30                       ; +0x64, 0x10028e0e0\nRET                                                                    ; +0x68, 0x10028e0e4", "xrefs": ["LevelEditorLayer::removeSpecial @ 0x1003fb8a4", "sub_100405BC8 @ 0x100405be8"], "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"}