{"type": "func", "start": 5369202432, "end": 5369202561, "name": "PlatformToolbox::getDisplaySize", "pseudocode": "// \n// PlatformToolbox::getDisplaySize from 0x140078700 to 0x140078781 (129 bytes)\n// \n// 2 xrefs:\n// > GameManager::resolutionForKey @ 0x14018abbd\n// > <???> @ 0x1406c669c\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCSize PlatformToolbox::getDisplaySize()\n{\n  cocos2d::CCSize v0; // rcx\n  cocos2d::CCSize v1; // rbx\n  cocos2d::CCEGLView *v2; // rax\n  GameManager *v4; // rcx\n  void *v5; // [rsp+38h] [rbp+10h]\n\n  v1 = v0;\n  if ( cocos2d::CCEGLView::sharedOpenGLView() )\n  {\n    v2 = (cocos2d::CCEGLView *)cocos2d::CCEGLView::sharedOpenGLView();\n    cocos2d::CCEGLView::getDisplaySize(v2);\n    return v1;\n  }\n  else\n  {\n    v4 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v5 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00(v5);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v4 = (GameManager *)qword_1406C2ED8;\n    }\n    GameManager::resolutionForKey(v4, SLODWORD(v1.width));\n    return v1;\n  }\n}", "assembly": "; \n; PlatformToolbox::getDisplaySize from 0x140078700 to 0x140078781 (129 bytes)\n; \n; 2 xrefs:\n; > GameManager::resolutionForKey @ 0x14018abbd\n; > <???> @ 0x1406c669c\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\npush    rbx                                                            ; +0x0, 0x140078700\nsub     rsp, 20h                                                       ; +0x2, 0x140078702\nmov     rbx, rcx                                                       ; +0x6, 0x140078706\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x9, 0x140078709\ntest    rax, rax                                                       ; +0xf, 0x14007870f\njz      short loc_14007872F                                            ; +0x12, 0x140078712\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x14, 0x140078714\nmov     rcx, rax                                                       ; +0x1a, 0x14007871a\nmov     rdx, rbx                                                       ; +0x1d, 0x14007871d\ncall    cs:?getDisplaySize@CCEGLView@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCEGLView::getDisplaySize(void) ; +0x20, 0x140078720\nmov     rax, rbx                                                       ; +0x26, 0x140078726\nadd     rsp, 20h                                                       ; +0x29, 0x140078729\npop     rbx                                                            ; +0x2d, 0x14007872d\nretn                                                                   ; +0x2e, 0x14007872e\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x2f, 0x14007872f\ntest    rcx, rcx                                                       ; +0x36, 0x140078736\njnz     short loc_14007876A                                            ; +0x39, 0x140078739\nmov     ecx, 668h; Size                                                ; +0x3b, 0x14007873b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x40, 0x140078740\nmov     [rsp+28h+arg_8], rax                                           ; +0x45, 0x140078745\nmov     rcx, rax                                                       ; +0x4a, 0x14007874a\ncall    sub_14017AB00                                                  ; +0x4d, 0x14007874d\nnop                                                                    ; +0x52, 0x140078752\nmov     cs:qword_1406C2ED8, rax                                        ; +0x53, 0x140078753\nmov     rdx, [rax]                                                     ; +0x5a, 0x14007875a\nmov     rcx, rax                                                       ; +0x5d, 0x14007875d\ncall    qword ptr [rdx+48h]                                            ; +0x60, 0x140078760\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x63, 0x140078763\nmov     r8d, 1                                                         ; +0x6a, 0x14007876a\nmov     rdx, rbx                                                       ; +0x70, 0x140078770\ncall    GameManager__resolutionForKey                                  ; +0x73, 0x140078773\nmov     rax, rbx                                                       ; +0x78, 0x140078778\nadd     rsp, 20h                                                       ; +0x7b, 0x14007877b\npop     rbx                                                            ; +0x7f, 0x14007877f\nretn                                                                   ; +0x80, 0x140078780", "xrefs": ["GameManager::resolutionForKey @ 0x14018abbd", "<???> @ 0x1406c669c"], "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"}