{"type": "func", "start": 6442952768, "end": 6442952817, "name": "sub_18007A840", "pseudocode": "// \n// sub_18007A840 from 0x18007a840 to 0x18007a871 (49 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCEGLView::setupWindow @ 0x18007b9ff\n// > <???> @ 0x1801bed4c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:00 +0000\n// \n\nvoid sub_18007A840()\n{\n  cocos2d::CCDirector *v0; // rax\n  cocos2d::CCApplication *v1; // rax\n\n  if ( qword_1801B2540 )\n  {\n    v0 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::setViewport(v0);\n    v1 = cocos2d::CCApplication::sharedApplication();\n    cocos2d::CCApplication::checkMonitorChanged(v1);\n  }\n}", "assembly": "; \n; sub_18007A840 from 0x18007a840 to 0x18007a871 (49 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCEGLView::setupWindow @ 0x18007b9ff\n; > <???> @ 0x1801bed4c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:00 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x18007a840\ncmp     cs:qword_1801B2540, 0                                          ; +0x4, 0x18007a844\njz      short loc_18007A86C                                            ; +0xc, 0x18007a84c\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xe, 0x18007a84e\nmov     rcx, rax; this                                                 ; +0x13, 0x18007a853\ncall    ?setViewport@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setViewport(void) ; +0x16, 0x18007a856\ncall    ?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x1b, 0x18007a85b\nmov     rcx, rax; this                                                 ; +0x20, 0x18007a860\nadd     rsp, 28h                                                       ; +0x23, 0x18007a863\njmp     ?checkMonitorChanged@CCApplication@cocos2d@@QEAAXXZ; cocos2d::CCApplication::checkMonitorChanged(void) ; +0x27, 0x18007a867\nadd     rsp, 28h                                                       ; +0x2c, 0x18007a86c\nretn                                                                   ; +0x30, 0x18007a870", "xrefs": ["cocos2d::CCEGLView::setupWindow @ 0x18007b9ff", "<???> @ 0x1801bed4c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}