{"type": "func", "start": 8767504, "end": 8767616, "name": "GJBaseGameLayer::resetGradientLayers", "pseudocode": "// \n// GJBaseGameLayer::resetGradientLayers from 0x85c810 to 0x85c880 (112 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::updateGameObjects @ 0x67b724\n// > GJBaseGameLayer::triggerGradientCommand @ 0x86c324\n// > GJBaseGameLayer::resetLevelVariables @ 0x88ac60\n// > <???> @ 0xbb1b8\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::resetGradientLayers(GJBaseGameLayer *a1)\n{\n  cocos2d::CCDictionary *m_gradientLayers; // x0\n  cocos2d::CCDictElement *m_pElements; // x0\n  cocos2d::CCDictElement *i; // x20\n  cocos2d::CCObject *m_pObject; // x19\n  cocos2d::CCObject_vtbl *v5; // x2\n\n  m_gradientLayers = a1->m_gradientLayers;\n  if ( m_gradientLayers )\n  {\n    m_pElements = m_gradientLayers->m_pElements;\n    if ( m_pElements )\n    {\n      for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next )\n      {\n        m_pObject = m_pElements->m_pObject;\n        m_pObject->__vftable[6].acceptVisitor(m_pObject, nullptr);\n        *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount = 0;\n        v5 = m_pObject->__vftable;\n        LOBYTE(m_pObject[10].m_uIndexInArray) = 0;\n        ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v5[4].~CCObject)(m_pObject, 0);\n        m_pElements = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::resetGradientLayers from 0x85c810 to 0x85c880 (112 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::updateGameObjects @ 0x67b724\n; > GJBaseGameLayer::triggerGradientCommand @ 0x86c324\n; > GJBaseGameLayer::resetLevelVariables @ 0x88ac60\n; > <???> @ 0xbb1b8\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x85c810\nMOV             X29, SP                                                ; +0x4, 0x85c814\nLDR             X0, [X0,#0x31C8]                                       ; +0x8, 0x85c818\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x85c81c\nCBZ             X0, loc_85C874                                         ; +0x10, 0x85c820\nLDR             X0, [X0,#0x38]                                         ; +0x14, 0x85c824\nCBZ             X0, loc_85C874                                         ; +0x18, 0x85c828\nLDR             X20, [X0,#0x120]                                       ; +0x1c, 0x85c82c\nB               loc_85C838                                             ; +0x20, 0x85c830\nLDR             X20, [X20,#0x120]                                      ; +0x24, 0x85c834\nLDR             X19, [X0,#0x108]                                       ; +0x28, 0x85c838\nMOV             W1, #0                                                 ; +0x2c, 0x85c83c\nMOV             X0, X19                                                ; +0x30, 0x85c840\nLDR             X2, [X19]                                              ; +0x34, 0x85c844\nLDR             X2, [X2,#0x200]                                        ; +0x38, 0x85c848\nBLR             X2                                                     ; +0x3c, 0x85c84c\nSTR             XZR, [X19,#0x248]                                      ; +0x40, 0x85c850\nLDR             X2, [X19]                                              ; +0x44, 0x85c854\nMOV             X0, X19                                                ; +0x48, 0x85c858\nSTRB            WZR, [X19,#0x250]                                      ; +0x4c, 0x85c85c\nMOV             W1, #0                                                 ; +0x50, 0x85c860\nLDR             X2, [X2,#0x148]                                        ; +0x54, 0x85c864\nBLR             X2                                                     ; +0x58, 0x85c868\nMOV             X0, X20                                                ; +0x5c, 0x85c86c\nCBNZ            X20, loc_85C834                                        ; +0x60, 0x85c870\nLDP             X19, X20, [SP,#var_s10]                                ; +0x64, 0x85c874\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x68, 0x85c878\nRET                                                                    ; +0x6c, 0x85c87c", "xrefs": ["LevelEditorLayer::updateGameObjects @ 0x67b724", "GJBaseGameLayer::triggerGradientCommand @ 0x86c324", "GJBaseGameLayer::resetLevelVariables @ 0x88ac60", "<???> @ 0xbb1b8"], "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"}