// // GJBaseGameLayer::checkRepellPlayer from 0x596074 to 0x59620c (408 bytes) // // 1 xrefs: // > GJBaseGameLayer::update @ 0x5be0d8 // // 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:53:09 +0000 // int __fastcall GJBaseGameLayer::checkRepellPlayer(int this) { int v1; // r4 int v2; // r3 float v3; // s17 float v4; // s16 float v5; // s18 cocos2d::CCNode *v6; // r5 int v7; // r7 char v8; // r11 char v9; // r10 const cocos2d::CCPoint *v10; // r0 CCCircleWave *v11; // r0 CCCircleWave *v12; // r6 int v13; // r3 bool v14; // [sp+4h] [bp-20h] char v15; // [sp+Ch] [bp-18h] _BYTE v16[8]; // [sp+14h] [bp-10h] BYREF v1 = this; if ( *(_BYTE *)(this + 866) ) { this = *(_DWORD *)(this + 2076); if ( *(_BYTE *)(this + 1955) ) { v2 = *(_DWORD *)(v1 + 2080); if ( *(_BYTE *)(v2 + 1955) ) { if ( !*(_BYTE *)(*(_DWORD *)(v1 + 2084) + 280) && *(unsigned __int8 *)(this + 1959) == *(unsigned __int8 *)(v2 + 1959) ) { v3 = (float)(COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)this + 68))(this)) * 30.0) * 0.5; v4 = (float)(COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 2080) + 68))(*(_DWORD *)(v1 + 2080))) * 30.0) * 0.5; v5 = *(float *)((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 2076) + 96))(*(_DWORD *)(v1 + 2076)) + 4); this = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 2080) + 96))(*(_DWORD *)(v1 + 2080)); if ( fabsf(v5 - *(float *)(this + 4)) < (float)((float)(v3 + v4) + 5.0) ) { v6 = *(cocos2d::CCNode **)(v1 + 2076); this = *(_DWORD *)(v1 + 2080); if ( *((_BYTE *)v6 + 2036) || *(_BYTE *)(this + 2036) ) { if ( !*((_BYTE *)v6 + 2036) && *(_BYTE *)(this + 2036) ) { v3 = v4; v6 = *(cocos2d::CCNode **)(v1 + 2080); this = *(_DWORD *)(v1 + 2076); } this = PlayerObject::hardFlipGravity((PlayerObject *)this); v7 = *(unsigned __int8 *)(v1 + 10612); if ( !*(_BYTE *)(v1 + 10612) ) { v8 = *((_BYTE *)v6 + 2107); v15 = *((_BYTE *)v6 + 2106); v9 = *((_BYTE *)v6 + 2108); v10 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v6 + 96))(v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v10); v11 = CCCircleWave::create( COERCE_CCCIRCLEWAVE_(v3 + 2.0), v3 * 4.0, (cocos2d::CCActionTween *)0x3E99999A, *(float *)&v7, v7, v14); *((_DWORD *)v11 + 74) = 4; v12 = v11; v13 = *(_DWORD *)v11; *((_BYTE *)v11 + 280) = v15; *((_BYTE *)v11 + 281) = v8; *((_BYTE *)v11 + 282) = v9; (*(void (__fastcall **)(CCCircleWave *, _BYTE *))(v13 + 92))(v11, v16); (*(void (__fastcall **)(_DWORD, CCCircleWave *, int))(**(_DWORD **)(v1 + 2436) + 232))( *(_DWORD *)(v1 + 2436), v12, v7); *((_DWORD *)v12 + 73) = 1; return CCCircleWave::followObject(v12, v6, v7); } } } } } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source