{"type": "func", "start": 6442941504, "end": 6442941540, "name": "sub_180077C40", "pseudocode": "// \n// sub_180077C40 from 0x180077c40 to 0x180077c64 (36 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCEGLView::setupWindow @ 0x180078bd5\n// > <???> @ 0x1801b4a40\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 sub_180077C40()\n{\n  cocos2d::CCDirector *v0; // rax\n\n  if ( qword_1801A8500 )\n  {\n    v0 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::setViewport(v0);\n  }\n}", "assembly": "; \n; sub_180077C40 from 0x180077c40 to 0x180077c64 (36 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCEGLView::setupWindow @ 0x180078bd5\n; > <???> @ 0x1801b4a40\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\nsub     rsp, 28h                                                       ; +0x0, 0x180077c40\ncmp     cs:qword_1801A8500, 0                                          ; +0x4, 0x180077c44\njz      short loc_180077C5F                                            ; +0xc, 0x180077c4c\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xe, 0x180077c4e\nmov     rcx, rax; this                                                 ; +0x13, 0x180077c53\nadd     rsp, 28h                                                       ; +0x16, 0x180077c56\njmp     ?setViewport@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setViewport(void) ; +0x1a, 0x180077c5a\nadd     rsp, 28h                                                       ; +0x1f, 0x180077c5f\nretn                                                                   ; +0x23, 0x180077c63", "xrefs": ["cocos2d::CCEGLView::setupWindow @ 0x180078bd5", "<???> @ 0x1801b4a40"], "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"}