//
// SetupTeleportPopup::onTeleportGravity from 0x54b2a4 to 0x54b32c (136 bytes)
//
// 0 xrefs:
//
// 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)
{
float v4; // s16
int v5; // r0
cocos2d::CCDictionary *m_triggerValues; // r7
int v7; // r4
int v8; // r5
v4 = COERCE_FLOAT(((int (__fastcall *)(SetupTeleportPopup *, int))a1->getValue)(a1, 354));
v5 = a2->getTag(a2);
m_triggerValues = a1->m_triggerValues;
if ( (int)v4 == v5 )
v7 = 0;
else
v7 = v5;
v8 = operator new(0x38u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v8);
*(float *)(v8 + 52) = (float)v7;
*(_DWORD *)v8 = &off_A851A8;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
cocos2d::CCDictionary::setObject(m_triggerValues, (cocos2d::CCObject *)v8, 354);
SetupTriggerPopup::valueChanged(a1, 354, (float)v7);
SetupTeleportPopup::updateTeleportGravityState(a1, v7);
}