{"type": "func", "start": 4296997928, "end": 4296998032, "name": "GJBaseGameLayer::resetGradientLayers", "pseudocode": "// \n// GJBaseGameLayer::resetGradientLayers from 0x1001efc28 to 0x1001efc90 (104 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::triggerGradientCommand @ 0x1001ef960\n// > GJBaseGameLayer::resetLevelVariables @ 0x1002024b0\n// > LevelEditorLayer::updateGameObjects @ 0x100358a54\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::resetGradientLayers(GJBaseGameLayer *a1)\n{\n  cocos2d::CCDictionary *m_gradientLayers; // x8\n  cocos2d::CCDictElement *m_pElements; // x8\n  cocos2d::CCDictElement *next; // x20\n  cocos2d::CCObject *m_pObject; // x19\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      do\n      {\n        next = (cocos2d::CCDictElement *)m_pElements->hh.next;\n        m_pObject = m_pElements->m_pObject;\n        ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))m_pObject->__vftable[6].acceptVisitor)(m_pObject, 0);\n        *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount = 0;\n        LOBYTE(m_pObject[10].m_uIndexInArray) = 0;\n        ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))m_pObject->__vftable[4].~CCObject)(m_pObject, 0);\n        m_pElements = next;\n      }\n      while ( next );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::resetGradientLayers from 0x1001efc28 to 0x1001efc90 (104 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::triggerGradientCommand @ 0x1001ef960\n; > GJBaseGameLayer::resetLevelVariables @ 0x1002024b0\n; > LevelEditorLayer::updateGameObjects @ 0x100358a54\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,#0x2FF8]                                       ; +0x0, 0x1001efc28\nCBZ             X8, locret_1001EFC8C                                   ; +0x4, 0x1001efc2c\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x8, 0x1001efc30\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc, 0x1001efc34\nADD             X29, SP, #0x10                                         ; +0x10, 0x1001efc38\nLDR             X8, [X8,#0x38]                                         ; +0x14, 0x1001efc3c\nCBZ             X8, loc_1001EFC84                                      ; +0x18, 0x1001efc40\nLDR             X20, [X8,#0x120]                                       ; +0x1c, 0x1001efc44\nLDR             X19, [X8,#0x108]                                       ; +0x20, 0x1001efc48\nLDR             X8, [X19]                                              ; +0x24, 0x1001efc4c\nLDR             X8, [X8,#0x200]                                        ; +0x28, 0x1001efc50\nMOV             X0, X19                                                ; +0x2c, 0x1001efc54\nMOV             W1, #0                                                 ; +0x30, 0x1001efc58\nBLR             X8                                                     ; +0x34, 0x1001efc5c\nSTR             XZR, [X19,#0x248]                                      ; +0x38, 0x1001efc60\nSTRB            WZR, [X19,#0x250]                                      ; +0x3c, 0x1001efc64\nLDR             X8, [X19]                                              ; +0x40, 0x1001efc68\nLDR             X8, [X8,#0x148]                                        ; +0x44, 0x1001efc6c\nMOV             X0, X19                                                ; +0x48, 0x1001efc70\nMOV             W1, #0                                                 ; +0x4c, 0x1001efc74\nBLR             X8                                                     ; +0x50, 0x1001efc78\nMOV             X8, X20                                                ; +0x54, 0x1001efc7c\nCBNZ            X20, loc_1001EFC44                                     ; +0x58, 0x1001efc80\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x1001efc84\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x1001efc88\nRET                                                                    ; +0x64, 0x1001efc8c", "xrefs": ["GJBaseGameLayer::triggerGradientCommand @ 0x1001ef960", "GJBaseGameLayer::resetLevelVariables @ 0x1002024b0", "LevelEditorLayer::updateGameObjects @ 0x100358a54"], "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"}