//
// cocos2d::ccpDistance from 0x100356100 to 0x100356137 (55 bytes)
//
// 54 xrefs:
// > EditorUI::addObjectsToSmartTemplate @ 0x10004225e
// > EditorUI::addObjectsToSmartTemplate @ 0x100042279
// > EditorUI::addObjectsToSmartTemplate @ 0x100042293
// > EditorUI::addObjectsToSmartTemplate @ 0x100042330
// > EditorUI::addObjectsToSmartTemplate @ 0x100042375
// > EditorUI::addObjectsToSmartTemplate @ 0x1000423ba
// > EditorUI::addObjectsToSmartTemplate @ 0x1000423ff
// > EditorUI::addObjectsToSmartTemplate @ 0x100042444
// > EditorUI::addObjectsToSmartTemplate @ 0x100042489
// > EditorUI::addObjectsToSmartTemplate @ 0x1000424ce
// > EditorUI::addObjectsToSmartTemplate @ 0x100042513
// > EditorUI::ccTouchMoved @ 0x10004f5e3
// > EditorUI::ccTouchMoved @ 0x10004f727
// > EditorUI::ccTouchEnded @ 0x10004fb87
// > EditorUI::ccTouchEnded @ 0x10004fba9
// > EditorUI::ccTouchEnded @ 0x10004fe48
// > EditorUI::ccTouchEnded @ 0x10004fed8
// > GJRotationControl::ccTouchBegan @ 0x100051bde
// > HardStreak::updateStroke @ 0x10009d460
// > sub_1000FBF30 @ 0x1000fc768
// > GJBaseGameLayer::rectIntersectsCircle @ 0x100122e79
// > GJBaseGameLayer::rectIntersectsCircle @ 0x100122eab
// > GJBaseGameLayer::rectIntersectsCircle @ 0x100122edd
// > GJBaseGameLayer::rectIntersectsCircle @ 0x100122f1a
// > GJBaseGameLayer::rectIntersectsCircle @ 0x100122f96
// > GJBaseGameLayer::playerCircleCollision @ 0x1001231a1
// > GJBaseGameLayer::playerIntersectsCircle @ 0x10012322d
// > GJBaseGameLayer::objectIntersectsCircle @ 0x100123331
// > GJBaseGameLayer::objectIntersectsCircle @ 0x100123368
// > GJBaseGameLayer::objectIntersectsCircle @ 0x10012339b
// > GJBaseGameLayer::objectIntersectsCircle @ 0x1001233ce
// > GJBaseGameLayer::checkCollisions @ 0x10012679d
// > GJBaseGameLayer::collisionCheckObjects @ 0x100126d0d
// > GJBaseGameLayer::getAreaObjectValue @ 0x100143991
// > GJBaseGameLayer::getMinDistance @ 0x10015ee53
// > GJBaseGameLayer::getMinDistance @ 0x10015ee68
// > ForceBlockGameObject::calculateForceToTarget @ 0x1001ece36
// > GJMapObject::moveMonster @ 0x1002674f4
// > MapSelectLayer::checkTouchMonster @ 0x10026939d
// > UIOptionsLayer::ccTouchMoved @ 0x1002b4f6a
// > UIPOptionsLayer::ccTouchMoved @ 0x1002b79ac
// > sub_1002B7A10 @ 0x1002b7a65
// > GJEffectManager::createKeyframeCommand @ 0x1002e1d51
// > cocos2d::extension::CCScrollView::ccTouchBegan @ 0x1003f8d57
// > cocos2d::extension::CCScrollView::ccTouchMoved @ 0x1003f8f7b
// > PlayerObject::update @ 0x1003fd1dd
// > CCScrollLayerExt::ccTouchEnded @ 0x10042ed1c
// > LevelPage::ccTouchBegan @ 0x1004376bc
// > MenuGameLayer::ccTouchBegan @ 0x1004fb1a2
// > cocos2d::CCMotionStreak::update @ 0x100576e0c
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x1006118a2
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x1006118b1
// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x1006118c0
// > CurrencyRewardLayer::update @ 0x1007a8d4c
//
// 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 __fastcall cocos2d::ccpDistance(const cocos2d::CCPoint *a1, const cocos2d::CCPoint *a2)
{
double v3; // [rsp+8h] [rbp-8h] BYREF
sub_10028CD00(&v3, (unsigned __int64 *)a1, (unsigned __int64 *)a2);
return fsqrt((float)(*(float *)&v3 * *(float *)&v3) + (float)(*((float *)&v3 + 1) * *((float *)&v3 + 1)));
}