{"type": "func", "start": 6442941408, "end": 6442941469, "name": "sub_180077BE0", "pseudocode": "// \n// sub_180077BE0 from 0x180077be0 to 0x180077c1d (61 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCEGLView::setupWindow @ 0x180078c34\n// > <???> @ 0x1801b4a28\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 sub_180077BE0(__int64 a1, int a2)\n{\n  struct cocos2d::CCApplication *v2; // rax\n  struct cocos2d::CCApplication *v3; // rax\n\n  if ( qword_1801A8500 )\n  {\n    if ( a2 )\n    {\n      v2 = cocos2d::CCApplication::sharedApplication();\n      ((void (__fastcall *)(struct cocos2d::CCApplication *))v2->applicationDidEnterBackground)(v2);\n    }\n    else\n    {\n      v3 = cocos2d::CCApplication::sharedApplication();\n      ((void (__fastcall *)(struct cocos2d::CCApplication *))v3->applicationWillEnterForeground)(v3);\n    }\n  }\n}", "assembly": "; \n; sub_180077BE0 from 0x180077be0 to 0x180077c1d (61 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCEGLView::setupWindow @ 0x180078c34\n; > <???> @ 0x1801b4a28\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, 0x180077be0\ncmp     cs:qword_1801A8500, 0                                          ; +0x4, 0x180077be4\njz      short loc_180077C18                                            ; +0xc, 0x180077bec\ntest    edx, edx                                                       ; +0xe, 0x180077bee\njz      short loc_180077C05                                            ; +0x10, 0x180077bf0\ncall    ?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x12, 0x180077bf2\nmov     rcx, rax                                                       ; +0x17, 0x180077bf7\nmov     rdx, [rax]                                                     ; +0x1a, 0x180077bfa\nadd     rsp, 28h                                                       ; +0x1d, 0x180077bfd\njmp     qword ptr [rdx+10h]                                            ; +0x21, 0x180077c01\ncall    ?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x25, 0x180077c05\nmov     rcx, rax                                                       ; +0x2a, 0x180077c0a\nmov     rdx, [rax]                                                     ; +0x2d, 0x180077c0d\nadd     rsp, 28h                                                       ; +0x30, 0x180077c10\njmp     qword ptr [rdx+18h]                                            ; +0x34, 0x180077c14\nadd     rsp, 28h                                                       ; +0x38, 0x180077c18\nretn                                                                   ; +0x3c, 0x180077c1c", "xrefs": ["cocos2d::CCEGLView::setupWindow @ 0x180078c34", "<???> @ 0x1801b4a28"], "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"}