{"type": "func", "start": 6443236448, "end": 6443236533, "name": "cocos2d::CCDirector::setupScreenScale", "pseudocode": "// \n// cocos2d::CCDirector::setupScreenScale from 0x1800bfc60 to 0x1800bfcb5 (85 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b93cc\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 cocos2d::CCDirector::setupScreenScale(\n        cocos2d::CCDirector *this,\n        struct cocos2d::CCSize a2,\n        struct cocos2d::CCSize a3,\n        enum cocos2d::TextureQuality a4)\n{\n  _DWORD *v7; // rax\n  int v8; // [rsp+30h] [rbp+8h] BYREF\n\n  cocos2d::CCSize::operator=(&this->m_obScaleFactor, *(_DWORD **)&a2);\n  v7 = cocos2d::cc_timeval::operator=(&v8, *(_DWORD **)&a3);\n  cocos2d::CCDirector::updateScreenScale(this, (struct cocos2d::CCSize)v7);\n  cocos2d::CCDirector::updateContentScale(this, a4);\n}", "assembly": "; \n; cocos2d::CCDirector::setupScreenScale from 0x1800bfc60 to 0x1800bfcb5 (85 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b93cc\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800bfc60\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800bfc65\npush    rdi                                                            ; +0xa, 0x1800bfc6a\nsub     rsp, 20h                                                       ; +0xb, 0x1800bfc6b\nmov     rdi, rcx                                                       ; +0xf, 0x1800bfc6f\nmov     esi, r9d                                                       ; +0x12, 0x1800bfc72\nadd     rcx, 178h                                                      ; +0x15, 0x1800bfc75\nmov     rbx, r8                                                        ; +0x1c, 0x1800bfc7c\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x1f, 0x1800bfc7f\nmov     rdx, rbx                                                       ; +0x24, 0x1800bfc84\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x27, 0x1800bfc87\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x2c, 0x1800bfc8c\nmov     rdx, rax                                                       ; +0x31, 0x1800bfc91\nmov     rcx, rdi                                                       ; +0x34, 0x1800bfc94\ncall    ?updateScreenScale@CCDirector@cocos2d@@QEAAXVCCSize@2@@Z; cocos2d::CCDirector::updateScreenScale(cocos2d::CCSize) ; +0x37, 0x1800bfc97\nmov     edx, esi                                                       ; +0x3c, 0x1800bfc9c\nmov     rcx, rdi                                                       ; +0x3e, 0x1800bfc9e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x41, 0x1800bfca1\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x46, 0x1800bfca6\nadd     rsp, 20h                                                       ; +0x4b, 0x1800bfcab\npop     rdi                                                            ; +0x4f, 0x1800bfcaf\njmp     ?updateContentScale@CCDirector@cocos2d@@QEAAXW4TextureQuality@2@@Z; cocos2d::CCDirector::updateContentScale(cocos2d::TextureQuality) ; +0x50, 0x1800bfcb0", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b93cc"], "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"}