{"type": "func", "start": 4302550624, "end": 4302550874, "name": "AppDelegate::setupGLView", "pseudocode": "// \n// AppDelegate::setupGLView from 0x10073b660 to 0x10073b75a (250 bytes)\n// \n// 1 xrefs:\n// > AppDelegate::applicationDidFinishLaunching @ 0x10073b7fb\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 12:36:26 +0000\n// \n\nvoid __fastcall AppDelegate::setupGLView(__int64 a1)\n{\n  __int64 v1; // rax\n  __int64 v2; // rbx\n  __int64 v3; // rax\n  _DWORD *v4; // rdi\n  __int64 v5; // r14\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  __int64 v8; // rdx\n  __int64 v9; // rcx\n  __int64 v10; // r8\n  __int64 v11; // r14\n  _QWORD *v12; // rax\n  __int64 v13; // rax\n  __int64 v14; // [rsp-38h] [rbp-38h] BYREF\n  __int64 v15; // [rsp-30h] [rbp-30h] BYREF\n  _QWORD v16[5]; // [rsp-28h] [rbp-28h] BYREF\n\n  if ( !*(_BYTE *)(a1 + 64) )\n  {\n    sub_100278260((float *)v16, 480.0, 320.0);\n    *(_BYTE *)(a1 + 64) = 1;\n    v1 = cocos2d::CCDirector::sharedDirector();\n    v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 192LL))(v1);\n    v3 = GJKeybindManager::sharedState();\n    v4 = *(_DWORD **)(v2 + 136);\n    if ( v4 != (_DWORD *)v3 )\n    {\n      v5 = v3;\n      if ( v3 )\n      {\n        cocos2d::CCObject::retain(v3);\n        v4 = *(_DWORD **)(v2 + 136);\n      }\n      if ( v4 )\n        cocos2d::CCObject::release(v4);\n      *(_QWORD *)(v2 + 136) = v5;\n    }\n    GameManager::sharedState();\n    LocalLevelManager::sharedState();\n    v6 = cocos2d::CCEGLView::sharedOpenGLView();\n    v7 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::setOpenGLView(v7, v6, v8, v9, v10);\n    v11 = cocos2d::CCDirector::sharedDirector();\n    sub_100278630(&v14, v16);\n    v12 = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 48LL))(v6);\n    sub_100278630(&v15, v12);\n    v13 = GameManager::sharedState();\n    cocos2d::CCDirector::setupScreenScale(v11, &v14, &v15, *(_DWORD *)(v13 + 1060));\n  }\n}", "assembly": "; \n; AppDelegate::setupGLView from 0x10073b660 to 0x10073b75a (250 bytes)\n; \n; 1 xrefs:\n; > AppDelegate::applicationDidFinishLaunching @ 0x10073b7fb\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 12:36:26 +0000\n; \ncmp     byte ptr [rdi+40h], 0                                          ; +0x0, 0x10073b660\njnz     locret_10073B759                                               ; +0x4, 0x10073b664\npush    rbp                                                            ; +0xa, 0x10073b66a\nmov     rbp, rsp                                                       ; +0xb, 0x10073b66b\npush    r15                                                            ; +0xe, 0x10073b66e\npush    r14                                                            ; +0x10, 0x10073b670\npush    rbx                                                            ; +0x12, 0x10073b672\nsub     rsp, 18h                                                       ; +0x13, 0x10073b673\nmov     rbx, rdi                                                       ; +0x17, 0x10073b677\nlea     rdi, [rbp-20h]                                                 ; +0x1a, 0x10073b67a\nmovss   xmm0, cs:dword_100A04120                                       ; +0x1e, 0x10073b67e\nmovss   xmm1, cs:dword_100A04128                                       ; +0x26, 0x10073b686\ncall    sub_100278260                                                  ; +0x2e, 0x10073b68e\nmov     byte ptr [rbx+40h], 1                                          ; +0x33, 0x10073b693\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x37, 0x10073b697\nmov     rcx, [rax]                                                     ; +0x3c, 0x10073b69c\nmov     rdi, rax                                                       ; +0x3f, 0x10073b69f\ncall    qword ptr [rcx+0C0h]                                           ; +0x42, 0x10073b6a2\nmov     rbx, rax                                                       ; +0x48, 0x10073b6a8\ncall    GJKeybindManager__sharedState                                  ; +0x4b, 0x10073b6ab\nmov     rdi, [rbx+88h]                                                 ; +0x50, 0x10073b6b0\ncmp     rdi, rax                                                       ; +0x57, 0x10073b6b7\njz      short loc_10073B6E4                                            ; +0x5a, 0x10073b6ba\nmov     r14, rax                                                       ; +0x5c, 0x10073b6bc\ntest    rax, rax                                                       ; +0x5f, 0x10073b6bf\njz      short loc_10073B6D3                                            ; +0x62, 0x10073b6c2\nmov     rdi, r14                                                       ; +0x64, 0x10073b6c4\ncall    cocos2d__CCObject__retain                                      ; +0x67, 0x10073b6c7\nmov     rdi, [rbx+88h]                                                 ; +0x6c, 0x10073b6cc\ntest    rdi, rdi                                                       ; +0x73, 0x10073b6d3\njz      short loc_10073B6DD                                            ; +0x76, 0x10073b6d6\ncall    cocos2d__CCObject__release                                     ; +0x78, 0x10073b6d8\nmov     [rbx+88h], r14                                                 ; +0x7d, 0x10073b6dd\ncall    GameManager__sharedState                                       ; +0x84, 0x10073b6e4\ncall    LocalLevelManager__sharedState                                 ; +0x89, 0x10073b6e9\ncall    cocos2d__CCEGLView__sharedOpenGLView                           ; +0x8e, 0x10073b6ee\nmov     rbx, rax                                                       ; +0x93, 0x10073b6f3\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x96, 0x10073b6f6\nmov     rdi, rax                                                       ; +0x9b, 0x10073b6fb\nmov     rsi, rbx                                                       ; +0x9e, 0x10073b6fe\ncall    cocos2d__CCDirector__setOpenGLView                             ; +0xa1, 0x10073b701\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xa6, 0x10073b706\nmov     r14, rax                                                       ; +0xab, 0x10073b70b\nlea     r15, [rbp-30h]                                                 ; +0xae, 0x10073b70e\nlea     rsi, [rbp-20h]                                                 ; +0xb2, 0x10073b712\nmov     rdi, r15                                                       ; +0xb6, 0x10073b716\ncall    sub_100278630                                                  ; +0xb9, 0x10073b719\nmov     rax, [rbx]                                                     ; +0xbe, 0x10073b71e\nmov     rdi, rbx                                                       ; +0xc1, 0x10073b721\ncall    qword ptr [rax+30h]                                            ; +0xc4, 0x10073b724\nlea     rbx, [rbp-28h]                                                 ; +0xc7, 0x10073b727\nmov     rdi, rbx                                                       ; +0xcb, 0x10073b72b\nmov     rsi, rax                                                       ; +0xce, 0x10073b72e\ncall    sub_100278630                                                  ; +0xd1, 0x10073b731\ncall    GameManager__sharedState                                       ; +0xd6, 0x10073b736\nmov     ecx, [rax+424h]                                                ; +0xdb, 0x10073b73b\nmov     rdi, r14                                                       ; +0xe1, 0x10073b741\nmov     rsi, r15                                                       ; +0xe4, 0x10073b744\nmov     rdx, rbx                                                       ; +0xe7, 0x10073b747\ncall    cocos2d__CCDirector__setupScreenScale                          ; +0xea, 0x10073b74a\nadd     rsp, 18h                                                       ; +0xef, 0x10073b74f\npop     rbx                                                            ; +0xf3, 0x10073b753\npop     r14                                                            ; +0xf4, 0x10073b754\npop     r15                                                            ; +0xf6, 0x10073b756\npop     rbp                                                            ; +0xf8, 0x10073b758\nretn                                                                   ; +0xf9, 0x10073b759", "xrefs": ["AppDelegate::applicationDidFinishLaunching @ 0x10073b7fb"], "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"}