{"type": "func", "start": 6443244224, "end": 6443244516, "name": "cocos2d::CCDirector::convertToUI", "pseudocode": "// \n// cocos2d::CCDirector::convertToUI from 0x1800c1ac0 to 0x1800c1be4 (292 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCNode::convertToWindowSpace @ 0x180002fae\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3438\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:25 +0000\n// \n\nfloat *__fastcall cocos2d::CCDirector::convertToUI(__int64 a1, float *a2, _DWORD *a3)\n{\n  int v6; // xmm1_4\n  int v7; // r9d\n  _DWORD *v8; // rax\n  float v10[2]; // [rsp+20h] [rbp-118h] BYREF\n  _DWORD v11[4]; // [rsp+28h] [rbp-110h] BYREF\n  float v12[6]; // [rsp+38h] [rbp-100h] BYREF\n  float v13[16]; // [rsp+50h] [rbp-E8h] BYREF\n  float v14[16]; // [rsp+90h] [rbp-A8h] BYREF\n  float v15[16]; // [rsp+D0h] [rbp-68h] BYREF\n\n  kmGLGetMatrix(5889, v14);\n  kmGLGetMatrix(5888, v13);\n  kmMat4Multiply(v15, v14, v13);\n  v6 = a3[1];\n  v11[0] = *a3;\n  v11[1] = v6;\n  v11[2] = 0;\n  kmVec3TransformCoord(v12, (int)v11, (__int64)v15, v7);\n  v8 = (_DWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 192) + 80LL))(*(_QWORD *)(a1 + 192));\n  cocos2d::cc_timeval::operator=(v10, v8);\n  kmVec2Fill(a2, (v12[0] * 0.5 + 0.5) * v10[0], (0.5 - v12[1] * 0.5) * v10[1]);\n  return a2;\n}", "assembly": "; \n; cocos2d::CCDirector::convertToUI from 0x1800c1ac0 to 0x1800c1be4 (292 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCNode::convertToWindowSpace @ 0x180002fae\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3438\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:25 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800c1ac0\npush    rsi                                                            ; +0x2, 0x1800c1ac2\npush    rdi                                                            ; +0x3, 0x1800c1ac3\nsub     rsp, 120h                                                      ; +0x4, 0x1800c1ac4\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x1800c1acb\nxor     rax, rsp                                                       ; +0x12, 0x1800c1ad2\nmov     [rsp+138h+var_28], rax                                         ; +0x15, 0x1800c1ad5\nmov     rsi, rdx                                                       ; +0x1d, 0x1800c1add\nmov     rdi, rcx                                                       ; +0x20, 0x1800c1ae0\nlea     rdx, [rsp+138h+var_A8]                                         ; +0x23, 0x1800c1ae3\nmov     ecx, 1701h                                                     ; +0x2b, 0x1800c1aeb\nmov     rbx, r8                                                        ; +0x30, 0x1800c1af0\ncall    kmGLGetMatrix                                                  ; +0x33, 0x1800c1af3\nlea     rdx, [rsp+138h+var_E8]                                         ; +0x38, 0x1800c1af8\nmov     ecx, 1700h                                                     ; +0x3d, 0x1800c1afd\ncall    kmGLGetMatrix                                                  ; +0x42, 0x1800c1b02\nlea     r8, [rsp+138h+var_E8]                                          ; +0x47, 0x1800c1b07\nlea     rdx, [rsp+138h+var_A8]                                         ; +0x4c, 0x1800c1b0c\nlea     rcx, [rsp+138h+var_68]                                         ; +0x54, 0x1800c1b14\ncall    kmMat4Multiply                                                 ; +0x5c, 0x1800c1b1c\nmovss   xmm0, dword ptr [rbx]                                          ; +0x61, 0x1800c1b21\nlea     r8, [rsp+138h+var_68]                                          ; +0x65, 0x1800c1b25\nmovss   xmm1, dword ptr [rbx+4]                                        ; +0x6d, 0x1800c1b2d\nlea     rdx, [rsp+138h+var_110]                                        ; +0x72, 0x1800c1b32\nlea     rcx, [rsp+138h+var_100]                                        ; +0x77, 0x1800c1b37\nmovss   [rsp+138h+var_110], xmm0                                       ; +0x7c, 0x1800c1b3c\nmovss   [rsp+138h+var_10C], xmm1                                       ; +0x82, 0x1800c1b42\nmov     [rsp+138h+var_108], 0                                          ; +0x88, 0x1800c1b48\ncall    kmVec3TransformCoord                                           ; +0x90, 0x1800c1b50\nmov     rcx, [rdi+0C0h]                                                ; +0x95, 0x1800c1b55\nmov     rax, [rcx]                                                     ; +0x9c, 0x1800c1b5c\ncall    qword ptr [rax+50h]                                            ; +0x9f, 0x1800c1b5f\nmov     rdx, rax                                                       ; +0xa2, 0x1800c1b62\nlea     rcx, [rsp+138h+var_118]                                        ; +0xa5, 0x1800c1b65\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0xaa, 0x1800c1b6a\nmovsd   xmm4, cs:qword_1800EC5B8                                       ; +0xaf, 0x1800c1b6f\nmov     rcx, rsi                                                       ; +0xb7, 0x1800c1b77\nmovss   xmm0, [rsp+138h+var_FC]                                        ; +0xba, 0x1800c1b7a\nmovaps  xmm1, xmm4                                                     ; +0xc0, 0x1800c1b80\nmovss   xmm3, [rsp+138h+var_100]                                       ; +0xc3, 0x1800c1b83\ncvtps2pd xmm0, xmm0                                                    ; +0xc9, 0x1800c1b89\ncvtps2pd xmm3, xmm3                                                    ; +0xcc, 0x1800c1b8c\nmulsd   xmm0, xmm4                                                     ; +0xcf, 0x1800c1b8f\nmulsd   xmm3, xmm4                                                     ; +0xd3, 0x1800c1b93\nsubsd   xmm1, xmm0                                                     ; +0xd7, 0x1800c1b97\nmovss   xmm0, [rsp+138h+var_114]                                       ; +0xdb, 0x1800c1b9b\ncvtps2pd xmm0, xmm0                                                    ; +0xe1, 0x1800c1ba1\naddsd   xmm3, xmm4                                                     ; +0xe4, 0x1800c1ba4\nmulsd   xmm1, xmm0                                                     ; +0xe8, 0x1800c1ba8\nmovss   xmm0, [rsp+138h+var_118]                                       ; +0xec, 0x1800c1bac\ncvtps2pd xmm0, xmm0                                                    ; +0xf2, 0x1800c1bb2\ncvtpd2ps xmm2, xmm1                                                    ; +0xf5, 0x1800c1bb5\nmulsd   xmm3, xmm0                                                     ; +0xf9, 0x1800c1bb9\ncvtpd2ps xmm1, xmm3                                                    ; +0xfd, 0x1800c1bbd\ncall    kmVec2Fill                                                     ; +0x101, 0x1800c1bc1\nmov     rax, rsi                                                       ; +0x106, 0x1800c1bc6\nmov     rcx, [rsp+138h+var_28]                                         ; +0x109, 0x1800c1bc9\nxor     rcx, rsp; StackCookie                                          ; +0x111, 0x1800c1bd1\ncall    __security_check_cookie                                        ; +0x114, 0x1800c1bd4\nadd     rsp, 120h                                                      ; +0x119, 0x1800c1bd9\npop     rdi                                                            ; +0x120, 0x1800c1be0\npop     rsi                                                            ; +0x121, 0x1800c1be1\npop     rbx                                                            ; +0x122, 0x1800c1be2\nretn                                                                   ; +0x123, 0x1800c1be3", "xrefs": ["cocos2d::CCNode::convertToWindowSpace @ 0x180002fae", "<???> @ 0x18014cf68", "<???> @ 0x1801c3438"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}