{"type": "func", "start": 4297041888, "end": 4297042076, "name": "GJBaseGameLayer::moveObjectToStaticGroup", "pseudocode": "// \n// GJBaseGameLayer::moveObjectToStaticGroup from 0x1001fa7e0 to 0x1001fa89c (188 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::optimizeMoveGroups @ 0x1001e010c\n// > GJBaseGameLayer::optimizeMoveGroups @ 0x1001e0194\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::moveObjectToStaticGroup(GJBaseGameLayer *a1, GameObject *a2)\n{\n  int v4; // w21\n  int GroupID; // w22\n  cocos2d::CCArray *StaticGroup; // x23\n  cocos2d::CCArray *OptimizedGroup; // x22\n\n  if ( a2->m_isDecoration2 )\n  {\n    a2->m_isDecoration2 = 0;\n    if ( a2->m_groupCount >= 1 )\n    {\n      v4 = 0;\n      do\n      {\n        GroupID = GameObject::getGroupID(a2, v4);\n        StaticGroup = GJBaseGameLayer::getStaticGroup(a1, GroupID);\n        OptimizedGroup = GJBaseGameLayer::getOptimizedGroup(a1, GroupID);\n        if ( (sub_10024A420(StaticGroup) & 1) == 0 )\n          sub_10024A2D0(StaticGroup, a2);\n        sub_10024A444(OptimizedGroup, a2, 1);\n        ++v4;\n      }\n      while ( v4 < a2->m_groupCount );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::moveObjectToStaticGroup from 0x1001fa7e0 to 0x1001fa89c (188 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::optimizeMoveGroups @ 0x1001e010c\n; > GJBaseGameLayer::optimizeMoveGroups @ 0x1001e0194\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\nLDRB            W8, [X1,#0x50A]                                        ; +0x0, 0x1001fa7e0\nCMP             W8, #1                                                 ; +0x4, 0x1001fa7e4\nB.NE            locret_1001FA898                                       ; +0x8, 0x1001fa7e8\nSTP             X24, X23, [SP,#var_40]!                                ; +0xc, 0x1001fa7ec\nSTP             X22, X21, [SP,#0x40+var_30]                            ; +0x10, 0x1001fa7f0\nSTP             X20, X19, [SP,#0x40+var_20]                            ; +0x14, 0x1001fa7f4\nSTP             X29, X30, [SP,#0x40+var_10]                            ; +0x18, 0x1001fa7f8\nADD             X29, SP, #0x40+var_10                                  ; +0x1c, 0x1001fa7fc\nMOV             X19, X1                                                ; +0x20, 0x1001fa800\nSTRB            WZR, [X1,#0x50A]                                       ; +0x24, 0x1001fa804\nLDRSH           W8, [X1,#0x490]                                        ; +0x28, 0x1001fa808\nCMP             W8, #1                                                 ; +0x2c, 0x1001fa80c\nB.LT            loc_1001FA888                                          ; +0x30, 0x1001fa810\nMOV             X20, X0                                                ; +0x34, 0x1001fa814\nMOV             W21, #0                                                ; +0x38, 0x1001fa818\nMOV             X0, X19                                                ; +0x3c, 0x1001fa81c\nMOV             X1, X21                                                ; +0x40, 0x1001fa820\nBL              GameObject__getGroupID                                 ; +0x44, 0x1001fa824\nMOV             X22, X0                                                ; +0x48, 0x1001fa828\nMOV             X0, X20                                                ; +0x4c, 0x1001fa82c\nMOV             X1, X22                                                ; +0x50, 0x1001fa830\nBL              GJBaseGameLayer__getStaticGroup                        ; +0x54, 0x1001fa834\nMOV             X23, X0                                                ; +0x58, 0x1001fa838\nMOV             X0, X20                                                ; +0x5c, 0x1001fa83c\nMOV             X1, X22                                                ; +0x60, 0x1001fa840\nBL              GJBaseGameLayer__getOptimizedGroup                     ; +0x64, 0x1001fa844\nMOV             X22, X0                                                ; +0x68, 0x1001fa848\nMOV             X0, X23                                                ; +0x6c, 0x1001fa84c\nMOV             X1, X19                                                ; +0x70, 0x1001fa850\nBL              sub_10024A420                                          ; +0x74, 0x1001fa854\nTBNZ            W0, #0, loc_1001FA868                                  ; +0x78, 0x1001fa858\nMOV             X0, X23                                                ; +0x7c, 0x1001fa85c\nMOV             X1, X19                                                ; +0x80, 0x1001fa860\nBL              sub_10024A2D0                                          ; +0x84, 0x1001fa864\nMOV             X0, X22                                                ; +0x88, 0x1001fa868\nMOV             X1, X19                                                ; +0x8c, 0x1001fa86c\nMOV             W2, #1                                                 ; +0x90, 0x1001fa870\nBL              sub_10024A444                                          ; +0x94, 0x1001fa874\nADD             W21, W21, #1                                           ; +0x98, 0x1001fa878\nLDRSH           W8, [X19,#0x490]                                       ; +0x9c, 0x1001fa87c\nCMP             W21, W8                                                ; +0xa0, 0x1001fa880\nB.LT            loc_1001FA81C                                          ; +0xa4, 0x1001fa884\nLDP             X29, X30, [SP,#0x40+var_10]                            ; +0xa8, 0x1001fa888\nLDP             X20, X19, [SP,#0x40+var_20]                            ; +0xac, 0x1001fa88c\nLDP             X22, X21, [SP,#0x40+var_30]                            ; +0xb0, 0x1001fa890\nLDP             X24, X23, [SP+0x40+var_40],#0x40                       ; +0xb4, 0x1001fa894\nRET                                                                    ; +0xb8, 0x1001fa898", "xrefs": ["GJBaseGameLayer::optimizeMoveGroups @ 0x1001e010c", "GJBaseGameLayer::optimizeMoveGroups @ 0x1001e0194"], "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"}