//
// SetupTeleportPopup::onTeleportGravity from 0x9f2a74 to 0x9f2b58 (228 bytes)
//
// 3 xrefs:
// > ??> @ 0xb0778
// > SetupTeleportPopup::init @ 0x9f19a4
// > ??> @ 0x122e1c0
//
// 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
//
void SetupTeleportPopup::onTeleportGravity(SetupTeleportPopup *a1, cocos2d::CCObject *a2)
{
int v4; // w21
float v5; // s8
cocos2d::CCDictionary *m_triggerValues; // x22
__int64 v7; // x19
float v8; // [xsp+40h] [xbp+40h]
v8 = COERCE_FLOAT(COERCE_UNSIGNED_INT128(((long double (__fastcall *)(SetupTeleportPopup *, __int64))a1->getValue)(a1, 354)));
v4 = a2->getTag(a2);
if ( (int)v8 == v4 )
{
v5 = 0.0;
v4 = 0;
}
else
{
v5 = (float)v4;
}
m_triggerValues = a1->m_triggerValues;
v7 = operator new(0x40u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v7);
*(float *)(v7 + 56) = v5;
*(_QWORD *)v7 = &off_11C7DB0;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);
cocos2d::CCDictionary::setObject(m_triggerValues, (cocos2d::CCObject *)v7, 354);
SetupTriggerPopup::valueChanged(a1, 354, v5);
SetupTeleportPopup::updateTeleportGravityState(a1, v4);
}