{"type": "func", "start": 4301635584, "end": 4301635764, "name": "AppDelegate::setupGLView", "pseudocode": "// \n// AppDelegate::setupGLView from 0x10065c000 to 0x10065c0b4 (180 bytes)\n// \n// 1 xrefs:\n// > AppDelegate::applicationDidFinishLaunching @ 0x10065c15b\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 AppDelegate::setupGLView(AppDelegate *a1)\n{\n  cocos2d::CCEGLView *v1; // r14\n  cocos2d::CCDirector *v2; // rax\n  cocos2d::CCDirector *v3; // r15\n  _QWORD *v4; // rax\n  __int64 v5; // [rsp-40h] [rbp-40h] BYREF\n  __int64 v6; // [rsp-38h] [rbp-38h] BYREF\n  __int64 v7; // [rsp-30h] [rbp-30h] BYREF\n  __int64 v8; // [rsp-8h] [rbp-8h] BYREF\n\n  if ( !a1->m_glViewSetup )\n  {\n    sub_10028CBF0((float *)&v5, 480.0, 320.0);\n    a1->m_glViewSetup = 1;\n    GameManager::sharedState();\n    LocalLevelManager::sharedState();\n    v1 = cocos2d::CCEGLView::sharedOpenGLView();\n    v2 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::setOpenGLView(v2, v1);\n    v3 = cocos2d::CCDirector::sharedDirector();\n    sub_10028CFC0(&v6, &v5);\n    v4 = (_QWORD *)((__int64 (__fastcall *)(cocos2d::CCEGLView *))v1->getFrameSize)(v1);\n    sub_10028CFC0(&v7, v4);\n    GameManager::sharedState();\n    cocos2d::CCDirector::setupScreenScale(\n      v3,\n      (cocos2d::CCSize)1139802112LL,\n      (cocos2d::CCSize)1134559232LL,\n      (cocos2d::TextureQuality)((unsigned int)&v8 - 48));\n  }\n}", "assembly": "; \n; AppDelegate::setupGLView from 0x10065c000 to 0x10065c0b4 (180 bytes)\n; \n; 1 xrefs:\n; > AppDelegate::applicationDidFinishLaunching @ 0x10065c15b\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\ncmp     byte ptr [rdi+40h], 0                                          ; +0x0, 0x10065c000\njnz     locret_10065C0B3                                               ; +0x4, 0x10065c004\npush    rbp                                                            ; +0xa, 0x10065c00a\nmov     rbp, rsp                                                       ; +0xb, 0x10065c00b\npush    r15                                                            ; +0xe, 0x10065c00e\npush    r14                                                            ; +0x10, 0x10065c010\npush    r12                                                            ; +0x12, 0x10065c012\npush    rbx                                                            ; +0x14, 0x10065c014\nsub     rsp, 20h                                                       ; +0x15, 0x10065c015\nmov     r14, rdi                                                       ; +0x19, 0x10065c019\nlea     rbx, [rbp-38h]                                                 ; +0x1c, 0x10065c01c\nmovss   xmm0, cs:dword_100815D10                                       ; +0x20, 0x10065c020\nmovss   xmm1, cs:dword_100815D18                                       ; +0x28, 0x10065c028\nmov     rdi, rbx                                                       ; +0x30, 0x10065c030\ncall    sub_10028CBF0                                                  ; +0x33, 0x10065c033\nmov     byte ptr [r14+40h], 1                                          ; +0x38, 0x10065c038\ncall    GameManager__sharedState                                       ; +0x3d, 0x10065c03d\ncall    LocalLevelManager__sharedState                                 ; +0x42, 0x10065c042\ncall    cocos2d__CCEGLView__sharedOpenGLView                           ; +0x47, 0x10065c047\nmov     r14, rax                                                       ; +0x4c, 0x10065c04c\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x4f, 0x10065c04f\nmov     rdi, rax                                                       ; +0x54, 0x10065c054\nmov     rsi, r14                                                       ; +0x57, 0x10065c057\ncall    cocos2d__CCDirector__setOpenGLView                             ; +0x5a, 0x10065c05a\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x5f, 0x10065c05f\nmov     r15, rax                                                       ; +0x64, 0x10065c064\nlea     r12, [rbp-30h]                                                 ; +0x67, 0x10065c067\nmov     rdi, r12                                                       ; +0x6b, 0x10065c06b\nmov     rsi, rbx                                                       ; +0x6e, 0x10065c06e\ncall    sub_10028CFC0                                                  ; +0x71, 0x10065c071\nmov     rax, [r14]                                                     ; +0x76, 0x10065c076\nmov     rdi, r14                                                       ; +0x79, 0x10065c079\ncall    qword ptr [rax+30h]                                            ; +0x7c, 0x10065c07c\nlea     rbx, [rbp-28h]                                                 ; +0x7f, 0x10065c07f\nmov     rdi, rbx                                                       ; +0x83, 0x10065c083\nmov     rsi, rax                                                       ; +0x86, 0x10065c086\ncall    sub_10028CFC0                                                  ; +0x89, 0x10065c089\ncall    GameManager__sharedState                                       ; +0x8e, 0x10065c08e\nmov     ecx, [rax+3E8h]                                                ; +0x93, 0x10065c093\nmov     rdi, r15                                                       ; +0x99, 0x10065c099\nmov     rsi, r12                                                       ; +0x9c, 0x10065c09c\nmov     rdx, rbx                                                       ; +0x9f, 0x10065c09f\ncall    cocos2d__CCDirector__setupScreenScale                          ; +0xa2, 0x10065c0a2\nadd     rsp, 20h                                                       ; +0xa7, 0x10065c0a7\npop     rbx                                                            ; +0xab, 0x10065c0ab\npop     r12                                                            ; +0xac, 0x10065c0ac\npop     r14                                                            ; +0xae, 0x10065c0ae\npop     r15                                                            ; +0xb0, 0x10065c0b0\npop     rbp                                                            ; +0xb2, 0x10065c0b2\nretn                                                                   ; +0xb3, 0x10065c0b3", "xrefs": ["AppDelegate::applicationDidFinishLaunching @ 0x10065c15b"], "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"}