// // EndPortalObject::setPosition from 0x50761c to 0x5076f4 (216 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:51:25 +0000 // GameManager *__fastcall EndPortalObject::setPosition(cocos2d::CCArray **this, const cocos2d::CCPoint *a2) { GameManager *result; // r0 int v5; // r6 int (__fastcall *v6)(int, _BYTE *); // r9 int v7; // r3 float v8; // s15 int v9; // r6 int (__fastcall *v10)(int, _BYTE *); // r8 int v11; // r0 float v12; // r2 int v13; // r9 _BYTE v14[8]; // [sp+4h] [bp-14h] BYREF _BYTE v15[8]; // [sp+Ch] [bp-Ch] BYREF result = (GameManager *)GameObject::setPosition(this, a2); v5 = (int)*(this + 292); if ( v5 ) { v6 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92); v7 = *(_DWORD *)(GameManager::sharedState(result) + 404); v8 = -1.0; if ( !*((_BYTE *)this + 1172) ) v8 = 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (float)(-14.0 - (float)(15.0 / *(float *)(v7 + 328))) * v8, 0.0); cocos2d::CCPoint::operator+(v15, a2, v14); result = (GameManager *)v6(v5, v15); } v9 = (int)*(this + 165); if ( v9 ) { v10 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92); v11 = (*((int (__fastcall **)(cocos2d::CCArray **))*this + 24))(this); if ( *((_BYTE *)this + 1172) ) v12 = -1.0; else v12 = 1.0; v13 = v11; cocos2d::CCPoint::operator*(v14, this + 170, LODWORD(v12)); cocos2d::CCPoint::operator+(v15, v13, v14); return (GameManager *)v10(v9, v15); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source