{"type": "func", "start": 4675184, "end": 4675230, "name": "GJBaseGameLayer::resetMoveOptimizedValue", "pseudocode": "// \n// GJBaseGameLayer::resetMoveOptimizedValue from 0x475670 to 0x47569e (46 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::recreateGroups @ 0x36e754\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 GJBaseGameLayer::resetMoveOptimizedValue(GJBaseGameLayer *a1)\n{\n  cocos2d::CCArray *m_objects; // r3\n  cocos2d::ccArray *data; // r2\n  int v3; // r3\n  cocos2d::CCObject **arr; // r2\n  cocos2d::CCObject **v5; // r3\n  int v6; // r1\n  int v7; // t1\n\n  m_objects = a1->m_objects;\n  if ( m_objects )\n  {\n    data = m_objects->data;\n    if ( data->num )\n    {\n      v3 = data->num + 0x40000000;\n      arr = data->arr;\n      v5 = &arr[v3 - 1];\n      while ( arr <= v5 )\n      {\n        v7 = (int)*arr++;\n        v6 = v7;\n        if ( !v7 )\n          break;\n        *(_BYTE *)(v6 + 1102) = *(_BYTE *)(v6 + 1101);\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::resetMoveOptimizedValue from 0x475670 to 0x47569e (46 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::recreateGroups @ 0x36e754\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.W           R3, [R0,#0x8C4]                                        ; +0x0, 0x475670\nCBZ             R3, locret_47569C                                      ; +0x4, 0x475674\nLDR             R2, [R3,#0x34]                                         ; +0x6, 0x475676\nLDR             R3, [R2]                                               ; +0x8, 0x475678\nCBZ             R3, locret_47569C                                      ; +0xa, 0x47567a\nADD.W           R3, R3, #0x40000000                                    ; +0xc, 0x47567c\nLDR             R2, [R2,#0xC]                                          ; +0x10, 0x475680\nSUBS            R3, #1                                                 ; +0x12, 0x475682\nADD.W           R3, R2, R3,LSL#2                                       ; +0x14, 0x475684\nCMP             R2, R3                                                 ; +0x18, 0x475688\nBHI             locret_47569C                                          ; +0x1a, 0x47568a\nLDR.W           R1, [R2],#4                                            ; +0x1c, 0x47568c\nCBZ             R1, locret_47569C                                      ; +0x20, 0x475690\nLDRB.W          R0, [R1,#0x44D]                                        ; +0x22, 0x475692\nSTRB.W          R0, [R1,#0x44E]                                        ; +0x26, 0x475696\nB               loc_475688                                             ; +0x2a, 0x47569a\nBX              LR                                                     ; +0x2c, 0x47569c", "xrefs": ["LevelEditorLayer::recreateGroups @ 0x36e754"], "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"}