{"type": "func", "start": 6442891408, "end": 6442891518, "name": "cocos2d::CCEGLViewProtocol::getVisibleOrigin", "pseudocode": "// \n// cocos2d::CCEGLViewProtocol::getVisibleOrigin from 0x18006b890 to 0x18006b8fe (110 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1801002b8\n// > <???> @ 0x1801008e8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3e04\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\nfloat *__fastcall cocos2d::CCEGLViewProtocol::getVisibleOrigin(cocos2d::CCEGLViewProtocol *this, float *a2)\n{\n  if ( this->m_eResolutionPolicy == kResolutionNoBorder )\n    kmVec2Fill(\n      a2,\n      (float)(this->m_obDesignResolutionSize.width - (float)(this->m_obScreenSize.width / this->m_fScaleX)) * 0.5,\n      (float)(this->m_obDesignResolutionSize.height - (float)(this->m_obScreenSize.height / this->m_fScaleY)) * 0.5);\n  else\n    cocos2d::cc_timeval::operator=(a2, dword_1801A8478);\n  return a2;\n}", "assembly": "; \n; cocos2d::CCEGLViewProtocol::getVisibleOrigin from 0x18006b890 to 0x18006b8fe (110 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1801002b8\n; > <???> @ 0x1801008e8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3e04\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, 0x18006b890\nsub     rsp, 20h                                                       ; +0x2, 0x18006b892\ncmp     dword ptr [rcx+6Ch], 1                                         ; +0x6, 0x18006b896\nmov     rbx, rdx                                                       ; +0xa, 0x18006b89a\njnz     short loc_18006B8E6                                            ; +0xd, 0x18006b89d\nmovss   xmm0, dword ptr [rcx+14h]                                      ; +0xf, 0x18006b89f\ndivss   xmm0, dword ptr [rcx+68h]                                      ; +0x14, 0x18006b8a4\nmovss   xmm2, dword ptr [rcx+1Ch]                                      ; +0x19, 0x18006b8a9\nmovss   xmm1, dword ptr [rcx+18h]                                      ; +0x1e, 0x18006b8ae\nsubss   xmm2, xmm0                                                     ; +0x23, 0x18006b8b3\nmovss   xmm0, dword ptr [rcx+10h]                                      ; +0x27, 0x18006b8b7\ndivss   xmm0, dword ptr [rcx+64h]                                      ; +0x2c, 0x18006b8bc\nmov     rcx, rdx                                                       ; +0x31, 0x18006b8c1\nmulss   xmm2, cs:dword_1800E6308                                       ; +0x34, 0x18006b8c4\nsubss   xmm1, xmm0                                                     ; +0x3c, 0x18006b8cc\nmulss   xmm1, cs:dword_1800E6308                                       ; +0x40, 0x18006b8d0\ncall    kmVec2Fill                                                     ; +0x48, 0x18006b8d8\nmov     rax, rbx                                                       ; +0x4d, 0x18006b8dd\nadd     rsp, 20h                                                       ; +0x50, 0x18006b8e0\npop     rbx                                                            ; +0x54, 0x18006b8e4\nretn                                                                   ; +0x55, 0x18006b8e5\nlea     rdx, dword_1801A8478                                           ; +0x56, 0x18006b8e6\nmov     rcx, rbx                                                       ; +0x5d, 0x18006b8ed\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x60, 0x18006b8f0\nmov     rax, rbx                                                       ; +0x65, 0x18006b8f5\nadd     rsp, 20h                                                       ; +0x68, 0x18006b8f8\npop     rbx                                                            ; +0x6c, 0x18006b8fc\nretn                                                                   ; +0x6d, 0x18006b8fd", "xrefs": ["<???> @ 0x1801002b8", "<???> @ 0x1801008e8", "<???> @ 0x1801438a8", "<???> @ 0x1801b3e04"], "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"}