{"type": "func", "start": 6443233872, "end": 6443233961, "name": "cocos2d::CCDirector::reshapeProjection", "pseudocode": "// \n// cocos2d::CCDirector::reshapeProjection from 0x1800bf250 to 0x1800bf2a9 (89 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b92ac\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::reshapeProjection(cocos2d::CCDirector *this, const struct cocos2d::CCSize *a2)\n{\n  float *v3; // rax\n  float v4; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( this->m_pobOpenGLView )\n  {\n    v3 = kmVec2Fill(&v4, this->m_fContentScaleFactor * a2->width, this->m_fContentScaleFactor * a2->height);\n    cocos2d::CCSize::operator=(&this->m_obWinSizeInPoints, v3);\n    cocos2d::CCDirector::setProjection(this, this->m_eProjection);\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::reshapeProjection from 0x1800bf250 to 0x1800bf2a9 (89 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b92ac\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, 0x1800bf250\nsub     rsp, 20h                                                       ; +0x2, 0x1800bf252\ncmp     qword ptr [rcx+0B8h], 0                                        ; +0x6, 0x1800bf256\nmov     rbx, rcx                                                       ; +0xe, 0x1800bf25e\njz      short loc_1800BF2A3                                            ; +0x11, 0x1800bf261\nmovss   xmm1, dword ptr [rcx+140h]                                     ; +0x13, 0x1800bf263\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x1b, 0x1800bf26b\nmovaps  xmm2, xmm1                                                     ; +0x20, 0x1800bf270\nmulss   xmm1, dword ptr [rdx]                                          ; +0x23, 0x1800bf273\nmulss   xmm2, dword ptr [rdx+4]                                        ; +0x27, 0x1800bf277\ncall    kmVec2Fill                                                     ; +0x2c, 0x1800bf27c\nmov     rdx, rax                                                       ; +0x31, 0x1800bf281\nlea     rcx, [rbx+138h]                                                ; +0x34, 0x1800bf284\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x3b, 0x1800bf28b\nmov     edx, [rbx+134h]                                                ; +0x40, 0x1800bf290\nmov     rcx, rbx                                                       ; +0x46, 0x1800bf296\nadd     rsp, 20h                                                       ; +0x49, 0x1800bf299\npop     rbx                                                            ; +0x4d, 0x1800bf29d\njmp     ?setProjection@CCDirector@cocos2d@@QEAAXW4ccDirectorProjection@2@@Z; cocos2d::CCDirector::setProjection(cocos2d::ccDirectorProjection) ; +0x4e, 0x1800bf29e\nadd     rsp, 20h                                                       ; +0x53, 0x1800bf2a3\npop     rbx                                                            ; +0x57, 0x1800bf2a7\nretn                                                                   ; +0x58, 0x1800bf2a8", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b92ac"], "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"}