//
// cocos2d::ccpDistance from 0xb1eeec to 0xb1ef5c (112 bytes)
//
// 57 xrefs:
// > CCScrollLayerExt::ccTouchEnded @ 0x579f88
// > PlayerObject::update @ 0x63f68c
// > drawTrace @ 0x675a00
// > GJRotationControl::ccTouchBegan @ 0x6867f4
// > EditorUI::addObjectsToSmartTemplate @ 0x6b4258
// > EditorUI::addObjectsToSmartTemplate @ 0x6b4304
// > EditorUI::addObjectsToSmartTemplate @ 0x6b4318
// > EditorUI::addObjectsToSmartTemplate @ 0x6b434c
// > EditorUI::addObjectsToSmartTemplate @ 0x6b4384
// > EditorUI::addObjectsToSmartTemplate @ 0x6b45f8
// > EditorUI::addObjectsToSmartTemplate @ 0x6b4680
// > EditorUI::addObjectsToSmartTemplate @ 0x6b46cc
// > EditorUI::addObjectsToSmartTemplate @ 0x6b47b4
// > EditorUI::addObjectsToSmartTemplate @ 0x6b4800
// > EditorUI::addObjectsToSmartTemplate @ 0x6b48bc
// > EditorUI::ccTouchMoved @ 0x6c1b64
// > EditorUI::ccTouchMoved @ 0x6c1c34
// > EditorUI::ccTouchEnded @ 0x6c297c
// > EditorUI::ccTouchEnded @ 0x6c2998
// > EditorUI::ccTouchEnded @ 0x6c2ba4
// > EditorUI::ccTouchEnded @ 0x6c2cd8
// > EditorUI::ccTouchEnded @ 0x6c2d6c
// > MenuGameLayer::ccTouchBegan @ 0x6c9e68
// > ForceBlockGameObject::calculateForceToTarget @ 0x76bba8
// > LevelPage::ccTouchBegan @ 0x79ede8
// > HardStreak::updateStroke @ 0x825e98
// > GJBaseGameLayer::objectIntersectsCircle @ 0x85900c
// > GJBaseGameLayer::objectIntersectsCircle @ 0x859038
// > GJBaseGameLayer::objectIntersectsCircle @ 0x859068
// > GJBaseGameLayer::objectIntersectsCircle @ 0x859098
// > GJBaseGameLayer::playerIntersectsCircle @ 0x85913c
// > GJBaseGameLayer::rectIntersectsCircle @ 0x859284
// > GJBaseGameLayer::rectIntersectsCircle @ 0x8592b0
// > GJBaseGameLayer::rectIntersectsCircle @ 0x8592dc
// > GJBaseGameLayer::rectIntersectsCircle @ 0x859308
// > GJBaseGameLayer::rectIntersectsCircle @ 0x85936c
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x861c98
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x8620b4
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x862250
// > GJBaseGameLayer::getMinDistance @ 0x868740
// > GJBaseGameLayer::getMinDistance @ 0x868a44
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x870d04
// > GJBaseGameLayer::processAreaRotateGroupAction @ 0x87265c
// > GJBaseGameLayer::processAreaTransformGroupAction @ 0x873a50
// > GJEffectManager::createKeyframeCommand @ 0x8bb128
// > UIPOptionsLayer::ccTouchMoved @ 0x8c3900
// > UIOptionsLayer::ccTouchMoved @ 0x8d8c20
// > CurrencyRewardLayer::update @ 0x90ea88
// > GJMapObject::moveMonster @ 0x97e164
// > MapSelectLayer::checkTouchMonster @ 0x97ed0c
// > cocos2d::extension::CCScrollView::ccTouchBegan @ 0xaa667c
// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0xaa6810
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0xad9f04
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0xad9f20
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0xad9f30
// > cocos2d::CCMotionStreak::update @ 0xaf789c
// > ??> @ 0x45ba0
//
// 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; // [xsp+20h] [xbp+20h] BYREF
cocos2d::CCPoint::operator-((float *)a1, (float *)a2, &v3);
return sqrtf((float)(v3.y * v3.y) + (float)(v3.x * v3.x));
}