// // GJBaseGameLayer::checkRepellPlayer from 0x1403424e0 to 0x1403427ad (717 bytes) // // 4 xrefs: // > GJBaseGameLayer::update @ 0x1403415bf // > @ 0x1408b78cc // > @ 0x1408b7924 // > @ 0x14091fd9c // // This function is hookable on this platform (idp: pc, 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 11:30:40 +0000 // void __fastcall GJBaseGameLayer::checkRepellPlayer(__int64 a1) { _BYTE *v2; // rcx __int64 v3; // rdx double v4; // xmm0_8 float v5; // xmm9_4 double v6; // xmm0_8 __int64 v7; // rdi __int64 v8; // rbx __int64 v9; // rdx __int64 v10; // rbx cocos2d::CCObject *v11; // r15 __int16 v12; // bx char v13; // di const struct cocos2d::CCPoint *v14; // rax __int64 v15; // rdx __int64 v16; // rcx __int64 v17; // r8 cocos2d::CCObject *v18; // r14 __int64 v19; // rcx cocos2d::CCObject *v20; // rcx __int64 v21; // rbx __int64 v22; // rax char v23; // [rsp+70h] [rbp+8h] BYREF if ( *(_BYTE *)(a1 + 1058) ) { v2 = *(_BYTE **)(a1 + 3512); if ( v2[2499] ) { v3 = *(_QWORD *)(a1 + 3520); if ( *(_BYTE *)(v3 + 2499) ) { if ( !*(_BYTE *)(*(_QWORD *)(a1 + 3528) + 340LL) && v2[2503] == *(_BYTE *)(v3 + 2503) ) { v4 = (*(double (**)(void))(*(_QWORD *)v2 + 128LL))(); v5 = (float)(*(float *)&v4 * 30.0) * 0.5; v6 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3520) + 128LL))(*(_QWORD *)(a1 + 3520)); v7 = *(_QWORD *)(a1 + 3520); v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3512) + 200LL))(*(_QWORD *)(a1 + 3512)); if ( (float)((float)((float)((float)(*(float *)&v6 * 30.0) * 0.5) + v5) + 5.0) > fabs( *(float *)(v8 + 4) - *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 200LL))(v7) + 4)) ) { v10 = *(_QWORD *)(a1 + 3512); if ( *(_BYTE *)(v10 + 2580) ) { v11 = *(cocos2d::CCObject **)(a1 + 3512); v10 = *(_QWORD *)(a1 + 3520); } else { if ( !*(_BYTE *)(*(_QWORD *)(a1 + 3520) + 2580LL) ) return; v11 = *(cocos2d::CCObject **)(a1 + 3520); } LOBYTE(v9) = *(_BYTE *)(v10 + 2503) == 0; PlayerObject::flipGravity(v10, v9); PlayerObject::setYVelocity(v10); if ( !*(_BYTE *)(a1 + 12668) ) { v12 = *((_WORD *)v11 + 1353); v13 = *((_BYTE *)v11 + 2708); v14 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v11 + 200LL))(v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, v14); v18 = CCCircleWave::create(v16, v15, v17, 0, 0); v19 = *(_QWORD *)v18; *((_WORD *)v18 + 170) = v12; *((_DWORD *)v18 + 89) = 4; *((_BYTE *)v18 + 342) = v13; (*(void (__fastcall **)(cocos2d::CCObject *, char *))(v19 + 184))(v18, &v23); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, _QWORD))(**(_QWORD **)(a1 + 4296) + 456LL))( *(_QWORD *)(a1 + 4296), v18, 0); v20 = *((cocos2d::CCObject **)v18 + 40); *((_DWORD *)v18 + 88) = 1; if ( v20 ) cocos2d::CCObject::release(v20); *((_QWORD *)v18 + 40) = v11; cocos2d::CCObject::retain(v11); cocos2d::CCNode::unschedule(v18, CCCircleWave::updatePosition); cocos2d::CCNode::schedule(v18, CCCircleWave::updatePosition); v21 = *(_QWORD *)v18; v22 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v18 + 40) + 200LL))(*((_QWORD *)v18 + 40)); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v21 + 184))(v18, v22); } } } } } } }