{"type": "func", "start": 4296250224, "end": 4296250326, "name": "GJBaseGameLayer::resetGradientLayers", "pseudocode": "// \n// GJBaseGameLayer::resetGradientLayers from 0x100139370 to 0x1001393d6 (102 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::updateGameObjects @ 0x1000de0cd\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; // rax\n  cocos2d::CCDictElement *m_pElements; // r14\n  cocos2d::CCObject *m_pObject; // rbx\n\n  m_gradientLayers = a1->m_gradientLayers;\n  if ( m_gradientLayers )\n  {\n    m_pElements = m_gradientLayers->m_pElements;\n    while ( m_pElements )\n    {\n      m_pObject = m_pElements->m_pObject;\n      m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;\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    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::resetGradientLayers from 0x100139370 to 0x1001393d6 (102 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::updateGameObjects @ 0x1000de0cd\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\nmov     rax, [rdi+2FD0h]                                               ; +0x0, 0x100139370\ntest    rax, rax                                                       ; +0x7, 0x100139377\njz      short locret_1001393D5                                         ; +0xa, 0x10013937a\npush    rbp                                                            ; +0xc, 0x10013937c\nmov     rbp, rsp                                                       ; +0xd, 0x10013937d\npush    r14                                                            ; +0x10, 0x100139380\npush    rbx                                                            ; +0x12, 0x100139382\nmov     r14, [rax+38h]                                                 ; +0x13, 0x100139383\ntest    r14, r14                                                       ; +0x17, 0x100139387\njz      short loc_1001393D1                                            ; +0x1a, 0x10013938a\nnop     dword ptr [rax+00h]                                            ; +0x1c, 0x10013938c\nmov     rbx, [r14+108h]                                                ; +0x20, 0x100139390\nmov     r14, [r14+120h]                                                ; +0x27, 0x100139397\nmov     rax, [rbx]                                                     ; +0x2e, 0x10013939e\nmov     rdi, rbx                                                       ; +0x31, 0x1001393a1\nxor     esi, esi                                                       ; +0x34, 0x1001393a4\ncall    qword ptr [rax+200h]                                           ; +0x36, 0x1001393a6\nmov     qword ptr [rbx+248h], 0                                        ; +0x3c, 0x1001393ac\nmov     byte ptr [rbx+250h], 0                                         ; +0x47, 0x1001393b7\nmov     rax, [rbx]                                                     ; +0x4e, 0x1001393be\nmov     rdi, rbx                                                       ; +0x51, 0x1001393c1\nxor     esi, esi                                                       ; +0x54, 0x1001393c4\ncall    qword ptr [rax+148h]                                           ; +0x56, 0x1001393c6\ntest    r14, r14                                                       ; +0x5c, 0x1001393cc\njnz     short loc_100139390                                            ; +0x5f, 0x1001393cf\npop     rbx                                                            ; +0x61, 0x1001393d1\npop     r14                                                            ; +0x62, 0x1001393d2\npop     rbp                                                            ; +0x64, 0x1001393d4\nretn                                                                   ; +0x65, 0x1001393d5", "xrefs": ["LevelEditorLayer::updateGameObjects @ 0x1000de0cd"], "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"}