{"type": "func", "start": 6442952640, "end": 6442952707, "name": "sub_18007A7C0", "pseudocode": "// \n// sub_18007A7C0 from 0x18007a7c0 to 0x18007a803 (67 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCEGLView::setupWindow @ 0x18007ba5e\n// > <???> @ 0x1801bed34\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 __fastcall sub_18007A7C0(__int64 a1, int a2)\n{\n  struct cocos2d::CCApplication *v2; // rax\n  struct cocos2d::CCApplication *v3; // rax\n\n  if ( qword_1801B2540 )\n  {\n    if ( a2 )\n    {\n      v2 = cocos2d::CCApplication::sharedApplication();\n      (*(void (__fastcall **)(struct cocos2d::CCApplication *))(*(_QWORD *)v2 + 16LL))(v2);\n    }\n    else\n    {\n      v3 = cocos2d::CCApplication::sharedApplication();\n      (*(void (__fastcall **)(struct cocos2d::CCApplication *))(*(_QWORD *)v3 + 24LL))(v3);\n    }\n  }\n}", "assembly": "; \n; sub_18007A7C0 from 0x18007a7c0 to 0x18007a803 (67 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCEGLView::setupWindow @ 0x18007ba5e\n; > <???> @ 0x1801bed34\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, 0x18007a7c0\ncmp     cs:qword_1801B2540, 0                                          ; +0x4, 0x18007a7c4\njz      short loc_18007A7FE                                            ; +0xc, 0x18007a7cc\ntest    edx, edx                                                       ; +0xe, 0x18007a7ce\njz      short loc_18007A7E8                                            ; +0x10, 0x18007a7d0\ncall    ?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x12, 0x18007a7d2\nmov     rcx, [rax]                                                     ; +0x17, 0x18007a7d7\nmov     rdx, [rcx+10h]                                                 ; +0x1a, 0x18007a7da\nmov     rcx, rax                                                       ; +0x1e, 0x18007a7de\nadd     rsp, 28h                                                       ; +0x21, 0x18007a7e1\njmp     rdx                                                            ; +0x25, 0x18007a7e5\ncall    ?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x28, 0x18007a7e8\nmov     rcx, [rax]                                                     ; +0x2d, 0x18007a7ed\nmov     rdx, [rcx+18h]                                                 ; +0x30, 0x18007a7f0\nmov     rcx, rax                                                       ; +0x34, 0x18007a7f4\nadd     rsp, 28h                                                       ; +0x37, 0x18007a7f7\njmp     rdx                                                            ; +0x3b, 0x18007a7fb\nadd     rsp, 28h                                                       ; +0x3e, 0x18007a7fe\nretn                                                                   ; +0x42, 0x18007a802", "xrefs": ["cocos2d::CCEGLView::setupWindow @ 0x18007ba5e", "<???> @ 0x1801bed34"], "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"}