// // GJBaseGameLayer::checkRepellPlayer from 0x9a895c to 0x9a8b68 (524 bytes) // // 2 xrefs: // > GJBaseGameLayer::update @ 0x9eddf8 // > @ 0xa3b88 // // 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:58:11 +0000 // __int64 __fastcall GJBaseGameLayer::checkRepellPlayer(GJBaseGameLayer *this) { _BYTE *v2; // x0 __int64 v4; // x1 float v5; // s9 float v6; // s8 float v7; // s10 PlayerObject *v8; // x0 cocos2d::CCNode *v9; // x21 char v10; // w26 char v11; // w25 char v12; // w24 const cocos2d::CCPoint *v13; // x0 __int64 v14; // x0 __int64 v15; // x2 CCCircleWave *v16; // x22 _BYTE v17[8]; // [xsp+70h] [xbp+70h] BYREF if ( *((_BYTE *)this + 1010) ) { v2 = *((_BYTE **)this + 407); if ( v2[2419] ) { v4 = *((_QWORD *)this + 408); if ( *(_BYTE *)(v4 + 2419) ) { if ( !*(_BYTE *)(*((_QWORD *)this + 409) + 340LL) && v2[2423] == *(_BYTE *)(v4 + 2423) ) { v5 = (float)((*(float (__fastcall **)(_BYTE *))(*(_QWORD *)v2 + 136LL))(v2) * 30.0) * 0.5; v6 = (float)((*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 408) + 136LL))(*((_QWORD *)this + 408)) * 30.0) * 0.5; v7 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 407) + 192LL))(*((_QWORD *)this + 407)) + 4); if ( (float)((float)(v5 + v6) + 5.0) > vabds_f32( v7, *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 408) + 192LL))(*((_QWORD *)this + 408)) + 4)) ) { v8 = *((PlayerObject **)this + 407); if ( *((_BYTE *)v8 + 2500) ) { v9 = *((cocos2d::CCNode **)this + 407); v8 = *((PlayerObject **)this + 408); } else { v9 = *((cocos2d::CCNode **)this + 408); if ( !*((_BYTE *)v9 + 2500) ) return _stack_chk_guard; v5 = v6; } PlayerObject::hardFlipGravity(v8); if ( !*((_BYTE *)this + 12236) ) { v10 = *((_BYTE *)v9 + 2602); v11 = *((_BYTE *)v9 + 2603); v12 = *((_BYTE *)v9 + 2604); v13 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v9 + 192LL))(v9); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v13); v14 = CCCircleWave::create(nullptr, v5 + 2.0, v5 * 4.0, 0.3, 0); v15 = *(_QWORD *)v14; *(_BYTE *)(v14 + 340) = v10; *(_BYTE *)(v14 + 341) = v11; *(_DWORD *)(v14 + 356) = 4; v16 = (CCCircleWave *)v14; *(_BYTE *)(v14 + 342) = v12; (*(void (__fastcall **)(__int64, _BYTE *))(v15 + 184))(v14, v17); (*(void (__fastcall **)(_QWORD, CCCircleWave *, _QWORD))(**((_QWORD **)this + 490) + 464LL))( *((_QWORD *)this + 490), v16, 0); *((_DWORD *)v16 + 88) = 1; CCCircleWave::followObject(v16, v9, 0); } } } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source