//
// cocos2d::ccpDistance from 0x100341810 to 0x100341847 (55 bytes)
//
// 71 xrefs:
// > EditorUI::addObjectsToSmartTemplate @ 0x10001342e
// > EditorUI::addObjectsToSmartTemplate @ 0x100013449
// > EditorUI::addObjectsToSmartTemplate @ 0x100013463
// > EditorUI::addObjectsToSmartTemplate @ 0x100013500
// > EditorUI::addObjectsToSmartTemplate @ 0x100013545
// > EditorUI::addObjectsToSmartTemplate @ 0x10001358a
// > EditorUI::addObjectsToSmartTemplate @ 0x1000135cf
// > EditorUI::addObjectsToSmartTemplate @ 0x100013614
// > EditorUI::addObjectsToSmartTemplate @ 0x100013659
// > EditorUI::addObjectsToSmartTemplate @ 0x10001369e
// > EditorUI::addObjectsToSmartTemplate @ 0x1000136e3
// > HardStreak::updateStroke @ 0x10006451f
// > HardStreak::updateStroke @ 0x1000648d0
// > CCTextInputNode::ccTouchMoved @ 0x10006c6a5
// > sub_1000D00C0 @ 0x1000d2674
// > GJBaseGameLayer::rectIntersectsCircle @ 0x1000ffec9
// > GJBaseGameLayer::rectIntersectsCircle @ 0x1000ffefb
// > GJBaseGameLayer::rectIntersectsCircle @ 0x1000fff2d
// > GJBaseGameLayer::rectIntersectsCircle @ 0x1000fff6a
// > GJBaseGameLayer::rectIntersectsCircle @ 0x1000fffe6
// > GJBaseGameLayer::playerCircleCollision @ 0x1001001f1
// > GJBaseGameLayer::playerIntersectsCircle @ 0x10010027d
// > GJBaseGameLayer::objectIntersectsCircle @ 0x100100381
// > GJBaseGameLayer::objectIntersectsCircle @ 0x1001003b8
// > GJBaseGameLayer::objectIntersectsCircle @ 0x1001003eb
// > GJBaseGameLayer::objectIntersectsCircle @ 0x10010041e
// > GJBaseGameLayer::checkCollisions @ 0x10010420d
// > GJBaseGameLayer::collisionCheckObjects @ 0x10010477d
// > GJBaseGameLayer::getAreaObjectValue @ 0x100121f41
// > GJBaseGameLayer::getMinDistance @ 0x10013e633
// > GJBaseGameLayer::getMinDistance @ 0x10013e648
// > ForceBlockGameObject::calculateForceToTarget @ 0x1001ce1a6
// > GJMapObject::moveMonster @ 0x100251514
// > MapSelectLayer::checkTouchMonster @ 0x1002533ad
// > UIOptionsLayer::ccTouchMoved @ 0x1002a2d6a
// > UIPOptionsLayer::ccTouchMoved @ 0x1002a5a2c
// > sub_1002A5A90 @ 0x1002a5ae5
// > GJEffectManager::createKeyframeCommand @ 0x1002cc7f1
// > cocos2d::extension::CCScrollView::ccTouchBegan @ 0x1003e5f37
// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0x1003e615b
// > PlayerObject::update @ 0x1003ea3bd
// > CCScrollLayerExt::ccTouchEnded @ 0x10041bb7c
// > LevelPage::ccTouchBegan @ 0x10042515c
// > MenuGameLayer::ccTouchBegan @ 0x1004fa032
// > cocos2d::CCMotionStreak::update @ 0x1005a432c
// > EditorUI::ccTouchBegan @ 0x10060a1ec
// > EditorUI::ccTouchMoved @ 0x10060a49c
// > EditorUI::ccTouchMoved @ 0x10060a54e
// > EditorUI::ccTouchMoved @ 0x10060a820
// > EditorUI::ccTouchEnded @ 0x10060aafb
// > EditorUI::ccTouchEnded @ 0x10060ab1d
// > EditorUI::ccTouchEnded @ 0x10060adba
// > EditorUI::ccTouchEnded @ 0x10060ae62
// > GJRotationControl::ccTouchBegan @ 0x100641418
// > sub_100646070 @ 0x1006462ed
// > sub_100646070 @ 0x10064635d
// > sub_100646070 @ 0x1006463cb
// > sub_100646070 @ 0x100646439
// > sub_100646070 @ 0x1006464a7
// > sub_100646070 @ 0x100646515
// > sub_100646070 @ 0x100646583
// > sub_100646070 @ 0x1006465f1
// > sub_100646070 @ 0x10064665f
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x1006ee332
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x1006ee341
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x1006ee350
// > CurrencyRewardLayer::update @ 0x10088bfec
// > TouchControlEditLayer::ccTouchBegan @ 0x10097aefb
// > TouchControlEditLayer::ccTouchBegan @ 0x10097af18
// > TouchControlEditLayer::ccTouchBegan @ 0x10097af33
// > TouchControlEditLayer::ccTouchBegan @ 0x10097af55
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:28:43 +0000
//
float __fastcall cocos2d::ccpDistance(unsigned __int64 *a1, unsigned __int64 *a2)
{
double v3; // [rsp+8h] [rbp-8h] BYREF
sub_100278370(&v3, a1, a2);
return fsqrt((float)(*(float *)&v3 * *(float *)&v3) + (float)(*((float *)&v3 + 1) * *((float *)&v3 + 1)));
}