// // cocos2d::CCDirector::convertToUI from 0x1800be2a0 to 0x1800be3c4 (292 bytes) // // 3 xrefs: // > cocos2d::CCNode::convertToWindowSpace @ 0x180002f3e // > @ 0x1801438a8 // > @ 0x1801b9180 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // struct cocos2d::CCPoint *__fastcall cocos2d::CCDirector::convertToUI( cocos2d::CCDirector *this, struct cocos2d::CCPoint *a2, _DWORD *a3) { int v6; // xmm1_4 int v7; // r9d _DWORD *v8; // rax float v10[2]; // [rsp+20h] [rbp-118h] BYREF _DWORD v11[4]; // [rsp+28h] [rbp-110h] BYREF float v12[6]; // [rsp+38h] [rbp-100h] BYREF float v13[16]; // [rsp+50h] [rbp-E8h] BYREF float v14[16]; // [rsp+90h] [rbp-A8h] BYREF float v15[16]; // [rsp+D0h] [rbp-68h] BYREF kmGLGetMatrix(5889, v14); kmGLGetMatrix(5888, v13); kmMat4Multiply(v15, v14, v13); v6 = a3[1]; v11[0] = *a3; v11[1] = v6; v11[2] = 0; kmVec3TransformCoord(v12, (int)v11, (__int64)v15, v7); v8 = (_DWORD *)((__int64 (__fastcall *)(cocos2d::CCEGLView *))this->m_pobOpenGLView->getDesignResolutionSize)(this->m_pobOpenGLView); cocos2d::cc_timeval::operator=(v10, v8); kmVec2Fill((float *)a2, (v12[0] * 0.5 + 0.5) * v10[0], (0.5 - v12[1] * 0.5) * v10[1]); return a2; }