// // EndPortalObject::setPosition from 0x8b48b0 to 0x8b49f0 (320 bytes) // // 2 xrefs: // > @ 0xca738 // > @ 0x1458f88 // // This function is hookable on this platform (idp: arm, 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 12:56:24 +0000 // __int64 __fastcall EndPortalObject::setPosition(cocos2d::CCArray **this, const cocos2d::CCPoint *a2) { GameManager **v4; // x22 void (__fastcall *v5)(GameManager **, __int64 *); // x24 float v6; // s2 float v7; // s1 __int64 v8; // x21 void (__fastcall *v9)(__int64, __int64 *); // x22 __int64 v10; // x23 float v11; // s0 _BYTE v13[8]; // [xsp+58h] [xbp+58h] BYREF __int64 v14; // [xsp+60h] [xbp+60h] BYREF GameObject::setPosition(this, a2); v4 = (GameManager **)*(this + 169); if ( v4 ) { v5 = *((void (__fastcall **)(GameManager **, __int64 *))*v4 + 23); v6 = *(float *)(*(_QWORD *)(GameManager::sharedState(*v4) + 544) + 424LL); if ( *((_BYTE *)this + 1360) ) v7 = -1.0; else v7 = 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (float)(-14.0 - (float)(15.0 / v6)) * v7, 0.0); cocos2d::CCPoint::operator+(&v14, a2); v5(v4, &v14); } v8 = (__int64)*(this + 97); if ( v8 ) { v9 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL); v10 = (*((__int64 (__fastcall **)(cocos2d::CCArray **))*this + 24))(this); if ( *((_BYTE *)this + 1360) ) v11 = -1.0; else v11 = 1.0; cocos2d::CCPoint::operator*((char *)this + 812, v11); cocos2d::CCPoint::operator+(&v14, v10); v9(v8, &v14); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source