{"type": "func", "start": 6442503072, "end": 6442503117, "name": "cocos2d::CCPoint::getLength", "pseudocode": "// \n// cocos2d::CCPoint::getLength from 0x18000cba0 to 0x18000cbcd (45 bytes)\n// \n// 8 xrefs:\n// > cocos2d::CCDrawNode::drawArchLikeHalfCircle @ 0x180012324\n// > cocos2d::CCLens3D::update @ 0x18002e08e\n// > cocos2d::CCLens3D::update @ 0x18002e0d6\n// > cocos2d::CCLens3D::update @ 0x18002e124\n// > cocos2d::CCRipple3D::update @ 0x18002e55f\n// > cocos2d::CCTwirl::update @ 0x18002e9c8\n// > cocos2d::CCLayerGradient::updateColor @ 0x18005319f\n// > <???> @ 0x18014cf68\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:21:20 +0000\n// \n\n// Alternative name is '?ccpLength@cocos2d@@YAMAEBVCCPoint@1@@Z'\nfloat __fastcall cocos2d::CCPoint::getLength(cocos2d::CCPoint *this)\n{\n  float v1; // xmm1_4\n\n  v1 = (float)(*((float *)this + 1) * *((float *)this + 1)) + (float)(*(float *)this * *(float *)this);\n  if ( v1 < 0.0 )\n    return sqrtf(v1);\n  else\n    return fsqrt(v1);\n}", "assembly": "; \n; cocos2d::CCPoint::getLength from 0x18000cba0 to 0x18000cbcd (45 bytes)\n; \n; 8 xrefs:\n; > cocos2d::CCDrawNode::drawArchLikeHalfCircle @ 0x180012324\n; > cocos2d::CCLens3D::update @ 0x18002e08e\n; > cocos2d::CCLens3D::update @ 0x18002e0d6\n; > cocos2d::CCLens3D::update @ 0x18002e124\n; > cocos2d::CCRipple3D::update @ 0x18002e55f\n; > cocos2d::CCTwirl::update @ 0x18002e9c8\n; > cocos2d::CCLayerGradient::updateColor @ 0x18005319f\n; > <???> @ 0x18014cf68\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:21:20 +0000\n; \nmovss   xmm0, dword ptr [rcx]                                          ; +0x0, 0x18000cba0\nmovss   xmm1, dword ptr [rcx+4]                                        ; +0x4, 0x18000cba4\nmulss   xmm0, xmm0                                                     ; +0x9, 0x18000cba9\nmulss   xmm1, xmm1                                                     ; +0xd, 0x18000cbad\naddss   xmm1, xmm0                                                     ; +0x11, 0x18000cbb1\nxorps   xmm0, xmm0                                                     ; +0x15, 0x18000cbb5\nucomiss xmm0, xmm1                                                     ; +0x18, 0x18000cbb8\nja      short loc_18000CBC5                                            ; +0x1b, 0x18000cbbb\nxorps   xmm0, xmm0                                                     ; +0x1d, 0x18000cbbd\nsqrtss  xmm0, xmm1                                                     ; +0x20, 0x18000cbc0\nretn                                                                   ; +0x24, 0x18000cbc4\nmovaps  xmm0, xmm1; X                                                  ; +0x25, 0x18000cbc5\njmp     sqrtf                                                          ; +0x28, 0x18000cbc8", "xrefs": ["cocos2d::CCDrawNode::drawArchLikeHalfCircle @ 0x180012324", "cocos2d::CCLens3D::update @ 0x18002e08e", "cocos2d::CCLens3D::update @ 0x18002e0d6", "cocos2d::CCLens3D::update @ 0x18002e124", "cocos2d::CCRipple3D::update @ 0x18002e55f", "cocos2d::CCTwirl::update @ 0x18002e9c8", "cocos2d::CCLayerGradient::updateColor @ 0x18005319f", "<???> @ 0x18014cf68"], "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"}