//
// cocos2d::ccpDistance from 0x5eb36c to 0x5eb3ac (64 bytes)
//
// 50 xrefs:
// > CCScrollLayerExt::ccTouchEnded @ 0x2e8936
// > PlayerObject::update @ 0x34f110
// > drawTrace @ 0x377f92
// > GJRotationControl::ccTouchBegan @ 0x37c036
// > EditorUI::addObjectsToSmartTemplate @ 0x39c348
// > EditorUI::addObjectsToSmartTemplate @ 0x39c4f6
// > EditorUI::addObjectsToSmartTemplate @ 0x39c50e
// > EditorUI::addObjectsToSmartTemplate @ 0x39c55a
// > EditorUI::addObjectsToSmartTemplate @ 0x39c592
// > EditorUI::addObjectsToSmartTemplate @ 0x39c5d0
// > EditorUI::addObjectsToSmartTemplate @ 0x39c60e
// > EditorUI::addObjectsToSmartTemplate @ 0x39c64c
// > EditorUI::addObjectsToSmartTemplate @ 0x39c688
// > EditorUI::addObjectsToSmartTemplate @ 0x39c6c4
// > EditorUI::addObjectsToSmartTemplate @ 0x39c704
// > EditorUI::ccTouchMoved @ 0x3a4bc6
// > EditorUI::ccTouchMoved @ 0x3a4e08
// > EditorUI::ccTouchEnded @ 0x3a54c8
// > EditorUI::ccTouchEnded @ 0x3a54f8
// > EditorUI::ccTouchEnded @ 0x3a5792
// > EditorUI::ccTouchEnded @ 0x3a581c
// > MenuGameLayer::ccTouchBegan @ 0x3aa07e
// > ForceBlockGameObject::calculateForceToTarget @ 0x3ec7b6
// > LevelPage::ccTouchBegan @ 0x40ac5a
// > HardStreak::updateStroke @ 0x45671a
// > GJBaseGameLayer::objectIntersectsCircle @ 0x46e686
// > GJBaseGameLayer::objectIntersectsCircle @ 0x46e6b4
// > GJBaseGameLayer::objectIntersectsCircle @ 0x46e6e2
// > GJBaseGameLayer::objectIntersectsCircle @ 0x46e70c
// > GJBaseGameLayer::playerIntersectsCircle @ 0x46e780
// > GJBaseGameLayer::rectIntersectsCircle @ 0x46e850
// > GJBaseGameLayer::rectIntersectsCircle @ 0x46e882
// > GJBaseGameLayer::rectIntersectsCircle @ 0x46e8b4
// > GJBaseGameLayer::rectIntersectsCircle @ 0x46e8e2
// > GJBaseGameLayer::rectIntersectsCircle @ 0x46e94c
// > GJBaseGameLayer::getAreaObjectValue @ 0x473f8c
// > GJBaseGameLayer::getMinDistance @ 0x47834c
// > GJBaseGameLayer::getMinDistance @ 0x478362
// > GJEffectManager::createKeyframeCommand @ 0x4a5b18
// > UIPOptionsLayer::ccTouchMoved @ 0x4a9420
// > UIOptionsLayer::ccTouchMoved @ 0x4b3210
// > CurrencyRewardLayer::update @ 0x4d0be6
// > GJMapObject::moveMonster @ 0x50dfc2
// > MapSelectLayer::checkTouchMonster @ 0x50e772
// > cocos2d::extension::CCScrollView::ccTouchBegan @ 0x5a8f92
// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0x5a9156
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x5c5a42
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x5c5a52
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x5c5a5e
// > cocos2d::CCMotionStreak::update @ 0x5d6bc8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float cocos2d::ccpDistance(const cocos2d::CCPoint *a1, const cocos2d::CCPoint *a2)
{
cocos2d::CCPoint v3; // [sp+4h] [bp-Ch] BYREF
LODWORD(v3.x) = a2;
cocos2d::CCPoint::operator-(&v3, &a1->x, &a2->x);
return sqrtf((float)(v3.y * v3.y) + (float)(v3.x * v3.x));
}