{"type": "func", "start": 5370324784, "end": 5370324932, "name": "GameManager::reloadAllStep4", "pseudocode": "// \n// GameManager::reloadAllStep4 from 0x14018a730 to 0x14018a7c4 (148 bytes)\n// \n// 2 xrefs:\n// > GameManager::reloadAllStep3 @ 0x14018a6d0\n// > <???> @ 0x1406cb724\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 GameManager::reloadAllStep4(GameManager *a1)\n{\n  cocos2d::CCShaderCache *v2; // rax\n  unsigned int v3; // edx\n  cocos2d::CCEGLView *v4; // rax\n  __int64 v5; // rbx\n  struct cocos2d::CCDelayTime *v6; // rax\n  struct cocos2d::CCSequence *v7; // rax\n  bool v8; // [rsp+50h] [rbp+28h]\n\n  if ( a1->m_switchModes && a1->m_reloadTextures )\n  {\n    v2 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(a1);\n    cocos2d::CCShaderCache::reloadDefaultShaders(v2);\n    cocos2d::ccGLEnableVertexAttribs((cocos2d *)7, v3);\n    v4 = (cocos2d::CCEGLView *)cocos2d::CCEGLView::sharedOpenGLView();\n    cocos2d::CCEGLView::makeBorderlessTop(v4);\n  }\n  v5 = cocos2d::CCCallFunc::create(a1, GameManager::reloadAllStep5);\n  v6 = cocos2d::CCDelayTime::create(0.0);\n  v7 = cocos2d::CCSequence::create(v6, v5, 0);\n  cocos2d::CCActionManager::addAction((GameManager *)a1->m_pActionManager, v7, a1, 0, v8);\n}", "assembly": "; \n; GameManager::reloadAllStep4 from 0x14018a730 to 0x14018a7c4 (148 bytes)\n; \n; 2 xrefs:\n; > GameManager::reloadAllStep3 @ 0x14018a6d0\n; > <???> @ 0x1406cb724\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     [rsp+arg_0], rbx                                               ; +0x0, 0x14018a730\npush    rdi                                                            ; +0x5, 0x14018a735\nsub     rsp, 20h                                                       ; +0x6, 0x14018a736\ncmp     byte ptr [rcx+190h], 0                                         ; +0xa, 0x14018a73a\nmov     rdi, rcx                                                       ; +0x11, 0x14018a741\njz      short loc_14018A778                                            ; +0x14, 0x14018a744\ncmp     byte ptr [rcx+194h], 0                                         ; +0x16, 0x14018a746\njz      short loc_14018A778                                            ; +0x1d, 0x14018a74d\ncall    cs:?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x1f, 0x14018a74f\nmov     rcx, rax                                                       ; +0x25, 0x14018a755\ncall    cs:?reloadDefaultShaders@CCShaderCache@cocos2d@@QEAAXXZ; cocos2d::CCShaderCache::reloadDefaultShaders(void) ; +0x28, 0x14018a758\nmov     ecx, 7                                                         ; +0x2e, 0x14018a75e\ncall    cs:?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x33, 0x14018a763\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x39, 0x14018a769\nmov     rcx, rax                                                       ; +0x3f, 0x14018a76f\ncall    cs:?makeBorderlessTop@CCEGLView@cocos2d@@QEAAXXZ; cocos2d::CCEGLView::makeBorderlessTop(void) ; +0x42, 0x14018a772\nlea     rdx, GameManager__reloadAllStep5                               ; +0x48, 0x14018a778\nmov     rcx, rdi                                                       ; +0x4f, 0x14018a77f\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x52, 0x14018a782\nxorps   xmm0, xmm0                                                     ; +0x58, 0x14018a788\nmov     rbx, rax                                                       ; +0x5b, 0x14018a78b\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x5e, 0x14018a78e\nxor     r8d, r8d                                                       ; +0x64, 0x14018a794\nmov     rdx, rbx                                                       ; +0x67, 0x14018a797\nmov     rcx, rax                                                       ; +0x6a, 0x14018a79a\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x6d, 0x14018a79d\nmov     rcx, [rdi+108h]                                                ; +0x73, 0x14018a7a3\nxor     r9d, r9d                                                       ; +0x7a, 0x14018a7aa\nmov     rdx, rax                                                       ; +0x7d, 0x14018a7ad\nmov     r8, rdi                                                        ; +0x80, 0x14018a7b0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x83, 0x14018a7b3\nadd     rsp, 20h                                                       ; +0x88, 0x14018a7b8\npop     rdi                                                            ; +0x8c, 0x14018a7bc\njmp     cs:?addAction@CCActionManager@cocos2d@@QEAAXPEAVCCAction@2@PEAVCCNode@2@_N@Z; cocos2d::CCActionManager::addAction(cocos2d::CCAction *,cocos2d::CCNode *,bool) ; +0x8d, 0x14018a7bd", "xrefs": ["GameManager::reloadAllStep3 @ 0x14018a6d0", "<???> @ 0x1406cb724"], "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"}