{"type": "func", "start": 6443221648, "end": 6443221826, "name": "cocos2d::CCCamera::locate", "pseudocode": "// \n// cocos2d::CCCamera::locate from 0x1800bc290 to 0x1800bc342 (178 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCNode::transform @ 0x180005369\n// > cocos2d::CCNode::transform @ 0x180005387\n// > cocos2d::CCGridBase::afterDraw @ 0x18002263b\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b903c\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::CCCamera::locate(cocos2d::CCCamera *this)\n{\n  kmMat4 *p_m_lookupMatrix; // rdi\n  float v3[4]; // [rsp+20h] [rbp-48h] BYREF\n  float v4[4]; // [rsp+30h] [rbp-38h] BYREF\n  float v5[4]; // [rsp+40h] [rbp-28h] BYREF\n\n  if ( this->m_bDirty )\n  {\n    kmVec3Fill(v5, this->m_fEyeX, this->m_fEyeY, this->m_fEyeZ);\n    kmVec3Fill(v4, this->m_fCenterX, this->m_fCenterY, this->m_fCenterZ);\n    kmVec3Fill(v3, this->m_fUpX, this->m_fUpY, this->m_fUpZ);\n    p_m_lookupMatrix = &this->m_lookupMatrix;\n    kmMat4LookAt((__int64)&this->m_lookupMatrix, v5, (__int64)v4, (__int64)v3);\n    this->m_bDirty = 0;\n  }\n  else\n  {\n    p_m_lookupMatrix = &this->m_lookupMatrix;\n  }\n  kmGLMultMatrix(p_m_lookupMatrix->mat);\n}", "assembly": "; \n; cocos2d::CCCamera::locate from 0x1800bc290 to 0x1800bc342 (178 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCNode::transform @ 0x180005369\n; > cocos2d::CCNode::transform @ 0x180005387\n; > cocos2d::CCGridBase::afterDraw @ 0x18002263b\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b903c\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, 0x1800bc290\npush    rdi                                                            ; +0x5, 0x1800bc295\nsub     rsp, 60h                                                       ; +0x6, 0x1800bc296\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1800bc29a\nxor     rax, rsp                                                       ; +0x11, 0x1800bc2a1\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x1800bc2a4\ncmp     byte ptr [rcx+5Ch], 0                                          ; +0x19, 0x1800bc2a9\nmov     rbx, rcx                                                       ; +0x1d, 0x1800bc2ad\njz      short loc_1800BC31E                                            ; +0x20, 0x1800bc2b0\nmovss   xmm3, dword ptr [rcx+40h]                                      ; +0x22, 0x1800bc2b2\nmovss   xmm2, dword ptr [rcx+3Ch]                                      ; +0x27, 0x1800bc2b7\nmovss   xmm1, dword ptr [rcx+38h]                                      ; +0x2c, 0x1800bc2bc\nlea     rcx, [rsp+68h+var_28]                                          ; +0x31, 0x1800bc2c1\ncall    kmVec3Fill                                                     ; +0x36, 0x1800bc2c6\nmovss   xmm3, dword ptr [rbx+4Ch]                                      ; +0x3b, 0x1800bc2cb\nlea     rcx, [rsp+68h+var_38]                                          ; +0x40, 0x1800bc2d0\nmovss   xmm2, dword ptr [rbx+48h]                                      ; +0x45, 0x1800bc2d5\nmovss   xmm1, dword ptr [rbx+44h]                                      ; +0x4a, 0x1800bc2da\ncall    kmVec3Fill                                                     ; +0x4f, 0x1800bc2df\nmovss   xmm3, dword ptr [rbx+58h]                                      ; +0x54, 0x1800bc2e4\nlea     rcx, [rsp+68h+var_48]                                          ; +0x59, 0x1800bc2e9\nmovss   xmm2, dword ptr [rbx+54h]                                      ; +0x5e, 0x1800bc2ee\nmovss   xmm1, dword ptr [rbx+50h]                                      ; +0x63, 0x1800bc2f3\ncall    kmVec3Fill                                                     ; +0x68, 0x1800bc2f8\nlea     rdi, [rbx+60h]                                                 ; +0x6d, 0x1800bc2fd\nmov     rcx, rdi                                                       ; +0x71, 0x1800bc301\nlea     r9, [rsp+68h+var_48]                                           ; +0x74, 0x1800bc304\nlea     r8, [rsp+68h+var_38]                                           ; +0x79, 0x1800bc309\nlea     rdx, [rsp+68h+var_28]                                          ; +0x7e, 0x1800bc30e\ncall    kmMat4LookAt                                                   ; +0x83, 0x1800bc313\nmov     byte ptr [rbx+5Ch], 0                                          ; +0x88, 0x1800bc318\njmp     short loc_1800BC322                                            ; +0x8c, 0x1800bc31c\nlea     rdi, [rcx+60h]                                                 ; +0x8e, 0x1800bc31e\nmov     rcx, rdi                                                       ; +0x92, 0x1800bc322\ncall    kmGLMultMatrix                                                 ; +0x95, 0x1800bc325\nmov     rcx, [rsp+68h+var_18]                                          ; +0x9a, 0x1800bc32a\nxor     rcx, rsp; StackCookie                                          ; +0x9f, 0x1800bc32f\ncall    __security_check_cookie                                        ; +0xa2, 0x1800bc332\nmov     rbx, [rsp+68h+arg_8]                                           ; +0xa7, 0x1800bc337\nadd     rsp, 60h                                                       ; +0xac, 0x1800bc33c\npop     rdi                                                            ; +0xb0, 0x1800bc340\nretn                                                                   ; +0xb1, 0x1800bc341", "xrefs": ["cocos2d::CCNode::transform @ 0x180005369", "cocos2d::CCNode::transform @ 0x180005387", "cocos2d::CCGridBase::afterDraw @ 0x18002263b", "<???> @ 0x1801438a8", "<???> @ 0x1801b903c"], "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"}