{"type": "func", "start": 5370941344, "end": 5370941474, "name": "GJBaseGameLayer::resetGradientLayers", "pseudocode": "// \n// GJBaseGameLayer::resetGradientLayers from 0x140220fa0 to 0x140221022 (130 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::triggerGradientCommand @ 0x14021f777\n// > GJBaseGameLayer::resetLevelVariables @ 0x14023b552\n// > LevelEditorLayer::updateGameObjects @ 0x1402dc926\n// > <???> @ 0x14067fca8\n// > <???> @ 0x14067fcb8\n// > <???> @ 0x1406cd4c4\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; // rdi\n  cocos2d::CCDictElement *m_pElements; // rdi\n  cocos2d::CCDictElement *i; // rbx\n  cocos2d::CCObject *m_pObject; // rdi\n  cocos2d::CCObject_vtbl *v5; // rax\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[7].copyWithZone(m_pObject, nullptr);\n        v5 = m_pObject->__vftable;\n        *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount = 0;\n        LOBYTE(m_pObject[10].m_uIndexInArray) = 0;\n        ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v5[4].update)(m_pObject, 0);\n        m_pElements = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::resetGradientLayers from 0x140220fa0 to 0x140221022 (130 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::triggerGradientCommand @ 0x14021f777\n; > GJBaseGameLayer::resetLevelVariables @ 0x14023b552\n; > LevelEditorLayer::updateGameObjects @ 0x1402dc926\n; > <???> @ 0x14067fca8\n; > <???> @ 0x14067fcb8\n; > <???> @ 0x1406cd4c4\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\npush    rdi                                                            ; +0x0, 0x140220fa0\nsub     rsp, 20h                                                       ; +0x2, 0x140220fa2\nmov     rdi, [rcx+3168h]                                               ; +0x6, 0x140220fa6\ntest    rdi, rdi                                                       ; +0xd, 0x140220fad\njz      short loc_14022101C                                            ; +0x10, 0x140220fb0\nmov     rdi, [rdi+38h]                                                 ; +0x12, 0x140220fb2\ntest    rdi, rdi                                                       ; +0x16, 0x140220fb6\njz      short loc_14022101C                                            ; +0x19, 0x140220fb9\nmov     [rsp+28h+arg_0], rbx                                           ; +0x1b, 0x140220fbb\nmov     rbx, [rdi+120h]                                                ; +0x20, 0x140220fc0\nmov     [rsp+28h+arg_8], rsi                                           ; +0x27, 0x140220fc7\nxor     esi, esi                                                       ; +0x2c, 0x140220fcc\nxchg    ax, ax                                                         ; +0x2e, 0x140220fce\nmov     rdi, [rdi+108h]                                                ; +0x30, 0x140220fd0\nxor     edx, edx                                                       ; +0x37, 0x140220fd7\nmov     rcx, rdi                                                       ; +0x39, 0x140220fd9\nmov     rax, [rdi]                                                     ; +0x3c, 0x140220fdc\ncall    qword ptr [rax+1F8h]                                           ; +0x3f, 0x140220fdf\nmov     rax, [rdi]                                                     ; +0x45, 0x140220fe5\nxor     edx, edx                                                       ; +0x48, 0x140220fe8\nmov     rcx, rdi                                                       ; +0x4a, 0x140220fea\nmov     [rdi+248h], rsi                                                ; +0x4d, 0x140220fed\nmov     [rdi+250h], sil                                                ; +0x54, 0x140220ff4\ncall    qword ptr [rax+140h]                                           ; +0x5b, 0x140220ffb\nmov     rdi, rbx                                                       ; +0x61, 0x140221001\ntest    rbx, rbx                                                       ; +0x64, 0x140221004\njz      short loc_140221012                                            ; +0x67, 0x140221007\nmov     rbx, [rbx+120h]                                                ; +0x69, 0x140221009\njmp     short loc_140220FD0                                            ; +0x70, 0x140221010\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x72, 0x140221012\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x77, 0x140221017\nadd     rsp, 20h                                                       ; +0x7c, 0x14022101c\npop     rdi                                                            ; +0x80, 0x140221020\nretn                                                                   ; +0x81, 0x140221021", "xrefs": ["GJBaseGameLayer::triggerGradientCommand @ 0x14021f777", "GJBaseGameLayer::resetLevelVariables @ 0x14023b552", "LevelEditorLayer::updateGameObjects @ 0x1402dc926", "<???> @ 0x14067fca8", "<???> @ 0x14067fcb8", "<???> @ 0x1406cd4c4"], "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"}