// // GameObject::setPosition from 0x44ba14 to 0x44baf0 (220 bytes) // // 4 xrefs: // > PlayerObject::setPosition @ 0x4365a4 // > TeleportPortalObject::setPositionOverride @ 0x4e88f4 // > TeleportPortalObject::setPosition @ 0x4e8a6e // > EndPortalObject::setPosition @ 0x507630 // // 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:48:34 +0000 // int __fastcall GameObject::setPosition(cocos2d::CCArray **this, const cocos2d::CCPoint *a2) { int v4; // r0 int v5; // r8 void (__fastcall *v6)(int, _BYTE *); // r9 int v7; // r0 int result; // r0 float v9[2]; // [sp+4h] [bp-20h] BYREF float v10[2]; // [sp+Ch] [bp-18h] BYREF _BYTE v11[8]; // [sp+14h] [bp-10h] BYREF CCSpritePlus::setPosition(this, a2); v4 = (int)*(this + 165); if ( v4 ) { if ( *((float *)this + 170) == 0.0 && *((float *)this + 171) == 0.0 ) { (*(void (__fastcall **)(int, const cocos2d::CCPoint *))(*(_DWORD *)v4 + 92))(v4, a2); } else { cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v9, (const cocos2d::CCPoint *)this); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v10, (const cocos2d::CCPoint *)this); v5 = (int)*(this + 165); v6 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v11, (float)(*(float *)a2 + v9[0]) - v10[0], (float)(*((float *)a2 + 1) + v9[1]) - v10[1]); v6(v5, v11); } } v7 = (int)*(this + 160); if ( v7 ) (*(void (__fastcall **)(int, const cocos2d::CCPoint *))(*(_DWORD *)v7 + 92))(v7, a2); result = (int)*(this + 189); if ( result ) { if ( !*((_BYTE *)this + 734) ) return (*(int (__fastcall **)(int, const cocos2d::CCPoint *))(*(_DWORD *)result + 92))(result, a2); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source