// // PlayerObject::redirectPlayerForce from 0x75386c to 0x753a64 (504 bytes) // // 2 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x9e5e04 // > @ 0x63a48 // // 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:52:56 +0000 // __int64 __fastcall PlayerObject::redirectPlayerForce(PlayerObject *this, float a2, float a3, float a4, float a5) { float v6; // s8 float v8; // s0 float v9; // s1 float v12; // s0 GJBaseGameLayer *v13; // x0 float v14; // s0 float v15; // s11 float v16; // s0 float v17; // s9 float v18; // s0 float v19; // w1 float v21; // s0 float v22; // s13 float v23; // s0 float x; // [xsp+68h] [xbp+68h] BYREF float y; // [xsp+6Ch] [xbp+6Ch] float v26; // [xsp+70h] [xbp+70h] BYREF v6 = a2 * 0.017453; v8 = *((double *)this + 339); v9 = *((double *)this + 299); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&x, v8, v9); v12 = atan2f(y, x); GJBaseGameLayer::convertToClosestDirection(v13, v6 - v12, 3.1416); v15 = v14; if ( v14 != 0.0 ) { v22 = cosf(v14); v23 = sinf(v15); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v26, -(float)((float)(v23 * y) - (float)(v22 * x)), (float)(v23 * x) + (float)(v22 * y)); cocos2d::CCPoint::operator=(&x, &v26); } cocos2d::CCPoint::operator*(&x, a3); cocos2d::CCPoint::operator=(&x, &v26); v16 = sqrtf((float)(y * y) + (float)(x * x)); if ( a5 < v16 && a5 > 0.0 ) { v21 = a5 / v16; LABEL_13: cocos2d::CCPoint::operator*(&x, v21); cocos2d::CCPoint::operator=(&x, &v26); goto LABEL_9; } if ( a4 > v16 && a4 > 0.0 ) { if ( v16 == 0.0 ) { v17 = cosf(v6); v18 = sinf(v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, a4 * v17, a4 * v18); cocos2d::CCPoint::operator=(&x, &v26); goto LABEL_9; } v21 = a4 / v16; goto LABEL_13; } LABEL_9: if ( *((_BYTE *)this + 2427) ) { v19 = x; x = y; y = v19; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, (const cocos2d::CCPoint *)&x); PlayerObject::updatePlayerForce((__int64)this, &v26, 0); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source