//
// SetupTeleportPopup::onTeleportGravity from 0x1405f7c00 to 0x1405f7c93 (147 bytes)
//
// 2 xrefs:
// > SetupTeleportPopup::init @ 0x1405f7398
// > ??> @ 0x14092f510
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:35:08 +0000
//
__int64 __fastcall SetupTeleportPopup::onTeleportGravity(_QWORD *a1, __int64 a2)
{
int v4; // ebx
int v5; // eax
int v6; // edi
bool v7; // zf
cocos2d::CCDictionary *v8; // rbx
struct cocos2d::CCObject *v9; // rax
v4 = (int)(*(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1168LL))(a1, 354);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v6 = 0;
v7 = v4 == v5;
v8 = (cocos2d::CCDictionary *)a1[104];
if ( !v7 )
v6 = v5;
v9 = cocos2d::CCFloat::create((float)v6);
cocos2d::CCDictionary::setObject(v8, v9, 354);
SetupTriggerPopup::valueChanged(a1, 354);
return SetupTeleportPopup::updateTeleportGravityState(a1, (unsigned int)v6);
}