// // PlayLayer::applyEnterEffect from 0x6f5980 to 0x6f5eac (1324 bytes) // // 2 xrefs: // > PlayLayer::updateVisibility @ 0x701104 // > @ 0xb5ab0 // // 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:51:50 +0000 // __int64 __fastcall PlayLayer::applyEnterEffect(PlayLayer *this, GameObject *a2, int a3, unsigned __int8 a4) { char *v4; // x21 int v8; // w22 float v9; // s0 float v10; // s8 char v11; // w0 _BOOL4 v12; // w1 int v13; // w0 cocos2d::CCDirector *v14; // x0 int v15; // w0 cocos2d *v16; // x0 const cocos2d::CCPoint *v18; // x0 int v19; // w0 cocos2d::CCDirector *v20; // x0 float v21; // s1 float v22; // s0 cocos2d::CCDirector *v23; // x0 float v24; // s0 float v25; // s0 float v26; // s1 void (__fastcall *v27)(GameObject *, __int64 *); // x24 float v28; // s2 float v29; // s1 __int64 v30; // [xsp+70h] [xbp+70h] BYREF _BYTE v31[8]; // [xsp+78h] [xbp+78h] BYREF __int64 v32; // [xsp+80h] [xbp+80h] BYREF v4 = (char *)this + 14268; v8 = a4; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, (PlayLayer *)((char *)this + 14268)); PlayLayer::getRelativeModNew((float *)this, (float *)&v32, 70.0, 0.0, 0, v8); v10 = v9; v11 = GameObject::ignoreEnter(a2); v12 = 1; if ( !v11 ) v12 = v10 == 1.0; if ( v8 ) v13 = *((__int16 *)a2 + 504); else v13 = *((__int16 *)a2 + 505); if ( v13 != -1 && (v13 == -14 || a3 != -14) ) { if ( v12 ) { *((_BYTE *)a2 + 1016) = 1; v15 = -1; if ( v8 ) *((_WORD *)a2 + 504) = -1; else *((_WORD *)a2 + 505) = -1; LABEL_16: v16 = (cocos2d *)(unsigned int)(v15 + 13); switch ( (int)v16 ) { case 0: case 1: case 2: case 3: case 4: cocos2d::ccpForAngle(&v30, v16, (float)(*((float *)a2 + 250) - 90.0) * 0.017453); v27 = *(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)a2 + 184LL); v28 = *((float *)&v30 + 1); v26 = (float)(1.0 - v10) * 100.0; v25 = v26 * *(float *)&v30; goto LABEL_53; case 5: v29 = 0.0; v27 = *(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)a2 + 184LL); v25 = (float)(1.0 - v10) * 100.0; goto LABEL_54; case 6: v29 = 0.0; v27 = *(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)a2 + 184LL); v25 = (float)(1.0 - v10) * -100.0; goto LABEL_54; case 7: v26 = 1.0 - v10; v27 = *(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)a2 + 184LL); v25 = 0.0; v28 = -100.0; goto LABEL_53; case 8: v25 = 0.0; v26 = 1.0 - v10; v27 = *(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)a2 + 184LL); v28 = 100.0; LABEL_53: v29 = v26 * v28; LABEL_54: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v25, v29); cocos2d::CCPoint::operator+(&v32, v4); v27(a2, &v32); goto LABEL_18; case 9: if ( !*((_BYTE *)a2 + 968) || *((_BYTE *)a2 + 969) ) { (*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)a2 + 1440LL))( a2, (float)((float)(1.0 - v10) * 0.75) + 1.0); (*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)a2 + 1448LL))( a2, (float)((float)(1.0 - v10) * 0.75) + 1.0); } goto LABEL_51; case 10: if ( !*((_BYTE *)a2 + 968) || *((_BYTE *)a2 + 969) ) { (*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)a2 + 1440LL))(a2, v10); (*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)a2 + 1448LL))(a2, v10); } LABEL_51: (*(void (__fastcall **)(GameObject *, char *))(*(_QWORD *)a2 + 184LL))(a2, v4); break; default: (*(void (__fastcall **)(GameObject *, char *))(*(_QWORD *)a2 + 184LL))(a2, v4); LABEL_18: if ( !*((_BYTE *)a2 + 968) || *((_BYTE *)a2 + 969) ) { (*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)a2 + 1440LL))(a2, 1.0); (*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)a2 + 1448LL))(a2, 1.0); } break; } if ( v10 == 0.0 ) { *((_BYTE *)a2 + 1016) = 1; if ( v8 ) *((_WORD *)a2 + 504) = -1; else *((_WORD *)a2 + 505) = -1; } return _stack_chk_guard; } LABEL_28: if ( v8 ) v15 = *((__int16 *)a2 + 504); else v15 = *((__int16 *)a2 + 505); goto LABEL_16; } if ( !v12 ) { if ( v8 ) *((_WORD *)a2 + 504) = a3; else *((_WORD *)a2 + 505) = a3; v14 = (cocos2d::CCDirector *)(unsigned int)(a3 + 13); switch ( a3 ) { case -13: case -12: v23 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::getWinSize(&v32, v23); if ( (float)(*((float *)this + 302) + (float)(*((float *)&v32 + 1) * 0.5)) < *((float *)this + 3568) ) v24 = 180.0; else v24 = 0.0; if ( a3 == -13 ) *((float *)a2 + 250) = v24 + 180.0; else *((float *)a2 + 250) = v24; break; case -11: *((float *)a2 + 250) = (float)((float)((float)((float)rand() * 4.6566e-10) * 2.0) + -1.0) * 180.0; break; case -10: case -9: v20 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::getWinSize(&v32, v20); v21 = *((float *)this + 3568); v22 = *((float *)this + 302) + (float)(*((float *)&v32 + 1) * 0.5); if ( a3 == -10 ) { if ( v22 >= v21 ) *((_DWORD *)a2 + 250) = -1036779520; else *((_DWORD *)a2 + 250) = -1022951424; } else if ( v22 >= v21 ) { *((_DWORD *)a2 + 250) = 1110704128; } else { *((_DWORD *)a2 + 250) = 1124532224; } break; default: goto LABEL_28; } goto LABEL_28; } v18 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 192LL))(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, v18); if ( *((float *)this + 3567) != *(float *)&v32 || *((float *)this + 3568) != *((float *)&v32 + 1) ) (*(void (__fastcall **)(GameObject *, char *))(*(_QWORD *)a2 + 184LL))(a2, v4); if ( *((_BYTE *)a2 + 1016) ) { v19 = *((unsigned __int8 *)a2 + 968); *((_BYTE *)a2 + 1016) = 0; if ( !v19 || *((_BYTE *)a2 + 969) ) { (*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)a2 + 1440LL))(a2, 1.0); (*(void (__fastcall **)(GameObject *, float))(*(_QWORD *)a2 + 1448LL))(a2, 1.0); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source