{"type": "func", "start": 4297041824, "end": 4297041888, "name": "GJBaseGameLayer::resetMoveOptimizedValue", "pseudocode": "// \n// GJBaseGameLayer::resetMoveOptimizedValue from 0x1001fa7a0 to 0x1001fa7e0 (64 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::recreateGroups @ 0x100361d50\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::resetMoveOptimizedValue(GJBaseGameLayer *a1)\n{\n  cocos2d::CCArray *m_objects; // x8\n  cocos2d::ccArray *data; // x8\n  __int64 num; // x9\n  unsigned __int64 arr; // x8\n  unsigned __int64 v5; // x9\n\n  m_objects = a1->m_objects;\n  if ( m_objects )\n  {\n    data = m_objects->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = (unsigned __int64)data->arr;\n      v5 = arr + 8 * num - 8;\n      do\n      {\n        if ( !*(_QWORD *)arr )\n          break;\n        *(_BYTE *)(*(_QWORD *)arr + 1290LL) = *(_BYTE *)(*(_QWORD *)arr + 1289LL);\n        arr += 8LL;\n      }\n      while ( arr <= v5 );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::resetMoveOptimizedValue from 0x1001fa7a0 to 0x1001fa7e0 (64 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::recreateGroups @ 0x100361d50\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\nLDR             X8, [X0,#0xCE0]                                        ; +0x0, 0x1001fa7a0\nCBZ             X8, locret_1001FA7DC                                   ; +0x4, 0x1001fa7a4\nLDR             X8, [X8,#0x38]                                         ; +0x8, 0x1001fa7a8\nLDR             W9, [X8]                                               ; +0xc, 0x1001fa7ac\nCBZ             W9, locret_1001FA7DC                                   ; +0x10, 0x1001fa7b0\nLDR             X8, [X8,#0x10]                                         ; +0x14, 0x1001fa7b4\nADD             X9, X8, X9,LSL#3                                       ; +0x18, 0x1001fa7b8\nSUB             X9, X9, #8                                             ; +0x1c, 0x1001fa7bc\nLDR             X10, [X8]                                              ; +0x20, 0x1001fa7c0\nCBZ             X10, locret_1001FA7DC                                  ; +0x24, 0x1001fa7c4\nLDRB            W11, [X10,#0x509]                                      ; +0x28, 0x1001fa7c8\nSTRB            W11, [X10,#0x50A]                                      ; +0x2c, 0x1001fa7cc\nADD             X8, X8, #8                                             ; +0x30, 0x1001fa7d0\nCMP             X8, X9                                                 ; +0x34, 0x1001fa7d4\nB.LS            loc_1001FA7C0                                          ; +0x38, 0x1001fa7d8\nRET                                                                    ; +0x3c, 0x1001fa7dc", "xrefs": ["LevelEditorLayer::recreateGroups @ 0x100361d50"], "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"}