// // PlayLayer::applyEnterEffect from 0x401464 to 0x401886 (1058 bytes) // // 1 xrefs: // > PlayLayer::updateVisibility @ 0x4072fa // // 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:47:24 +0000 // int __fastcall PlayLayer::applyEnterEffect(PlayLayer *this, GameObject *a2, int a3, int a4) { float *v5; // r7 float v9; // s16 cocos2d::CCDirector *v10; // r0 _BOOL4 v11; // r2 __int16 v12; // r3 const cocos2d::CCPoint *v13; // r0 int result; // r0 float v15; // s15 float v16; // s14 int v17; // r3 float v18; // s15 float v19; // s15 __int16 v20; // r3 float v21; // r1 float v22; // s14 int (__fastcall *v23)(GameObject *, float *); // r10 float v24; // s15 float v25; // s14 float v26; // s15 float v27; // r2 int v28; // r5 float v29[2]; // [sp+Ch] [bp-1Ch] BYREF _BYTE v30[8]; // [sp+14h] [bp-14h] BYREF float v31; // [sp+1Ch] [bp-Ch] BYREF float v32; // [sp+20h] [bp-8h] v5 = (float *)((char *)this + 11860); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, (PlayLayer *)((char *)this + 11860)); v9 = COERCE_FLOAT(PlayLayer::getRelativeModNew((int)this, &v31, 70.0, 0.0, 0, a4)); v10 = (cocos2d::CCDirector *)GameObject::ignoreEnter(a2); if ( v10 ) v11 = 1; else v11 = v9 == 1.0; if ( a4 ) v12 = *((_WORD *)a2 + 436); else v12 = *((_WORD *)a2 + 437); if ( v12 == -1 || a3 == -14 && v12 != -14 ) { if ( v11 ) { v13 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *, int))(*(_DWORD *)a2 + 96))(a2, v12 + 1); result = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, v13); if ( *v5 != v31 || *((float *)this + 2966) != v32 ) result = (*(int (__fastcall **)(GameObject *, float *))(*(_DWORD *)a2 + 92))(a2, v5); if ( *((_BYTE *)a2 + 880) ) { *((_BYTE *)a2 + 880) = 0; if ( !*((_BYTE *)a2 + 832) || *((_BYTE *)a2 + 833) ) { (*(void (__fastcall **)(GameObject *, int))(*(_DWORD *)a2 + 720))(a2, 1065353216); return (*(int (__fastcall **)(GameObject *, int))(*(_DWORD *)a2 + 724))(a2, 1065353216); } } return result; } if ( a4 ) *((_WORD *)a2 + 436) = a3; else *((_WORD *)a2 + 437) = a3; switch ( a3 ) { case -13: case -12: cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v31); v19 = 0.0; if ( (float)(*((float *)this + 250) + (float)(v32 * 0.5)) < *((float *)this + 2966) ) v19 = 180.0; if ( a3 == -13 ) v19 = v19 + 180.0; goto LABEL_35; case -11: v18 = vcvts_n_f32_s32(rand(), 0x1Fu); v19 = (float)((float)(v18 + v18) - 1.0) * 180.0; LABEL_35: *((float *)a2 + 216) = v19; break; case -10: case -9: cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v31); v15 = *((float *)this + 250) + (float)(v32 * 0.5); v16 = *((float *)this + 2966); if ( a3 == -10 ) { if ( v15 >= v16 ) v17 = -1036779520; else v17 = -1022951424; } else if ( v15 >= v16 ) { v17 = 1110704128; } else { v17 = 1124532224; } *((_DWORD *)a2 + 216) = v17; break; default: break; } LABEL_40: if ( a4 ) goto LABEL_41; LABEL_42: v20 = *((_WORD *)a2 + 437); goto LABEL_43; } if ( !v11 ) goto LABEL_40; *((_BYTE *)a2 + 880) = 1; if ( !a4 ) { *((_WORD *)a2 + 437) = -1; goto LABEL_42; } *((_WORD *)a2 + 436) = -1; LABEL_41: v20 = *((_WORD *)a2 + 436); LABEL_43: switch ( v20 ) { case -13: case -12: case -11: case -10: case -9: cocos2d::ccpForAngle((cocos2d *)v29, (float)(*((float *)a2 + 216) - 90.0) * 0.017453); v23 = *(int (__fastcall **)(GameObject *, float *))(*(_DWORD *)a2 + 92); v24 = (float)(1.0 - v9) * 100.0; v21 = v24 * v29[0]; v22 = v29[1]; goto LABEL_50; case -8: v25 = 100.0; v23 = *(int (__fastcall **)(GameObject *, float *))(*(_DWORD *)a2 + 92); v26 = 1.0 - v9; goto LABEL_48; case -7: v25 = -100.0; v23 = *(int (__fastcall **)(GameObject *, float *))(*(_DWORD *)a2 + 92); v26 = 1.0 - v9; LABEL_48: v27 = 0.0; v21 = v26 * v25; goto LABEL_51; case -6: v21 = 0.0; v22 = -100.0; v23 = *(int (__fastcall **)(GameObject *, float *))(*(_DWORD *)a2 + 92); v24 = 1.0 - v9; goto LABEL_50; case -5: v21 = 0.0; v22 = 100.0; v23 = *(int (__fastcall **)(GameObject *, float *))(*(_DWORD *)a2 + 92); v24 = 1.0 - v9; LABEL_50: v27 = v24 * v22; LABEL_51: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, v21, v27); cocos2d::CCPoint::operator+(&v31, v5, v30); result = v23(a2, &v31); goto LABEL_58; case -4: if ( *((_BYTE *)a2 + 832) ) { v28 = *((unsigned __int8 *)a2 + 833); if ( !*((_BYTE *)a2 + 833) ) goto LABEL_57; } (*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)a2 + 720))(a2, (float)((float)(1.0 - v9) * 0.75) + 1.0); (*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)a2 + 724))(a2, (float)((float)(1.0 - v9) * 0.75) + 1.0); break; case -3: if ( *((_BYTE *)a2 + 832) ) { v28 = *((unsigned __int8 *)a2 + 833); if ( !*((_BYTE *)a2 + 833) ) goto LABEL_57; } (*(void (__fastcall **)(GameObject *, float))(*(_DWORD *)a2 + 720))(a2, COERCE_FLOAT(LODWORD(v9))); (*(void (__fastcall **)(GameObject *, float))(*(_DWORD *)a2 + 724))(a2, COERCE_FLOAT(LODWORD(v9))); break; default: v28 = 1; goto LABEL_57; } v28 = 0; LABEL_57: result = (*(int (__fastcall **)(GameObject *, float *))(*(_DWORD *)a2 + 92))(a2, v5); if ( v28 ) { LABEL_58: if ( !*((_BYTE *)a2 + 832) || *((_BYTE *)a2 + 833) ) { (*(void (__fastcall **)(GameObject *, int))(*(_DWORD *)a2 + 720))(a2, 1065353216); result = (*(int (__fastcall **)(GameObject *, int))(*(_DWORD *)a2 + 724))(a2, 1065353216); } } if ( v9 == 0.0 ) { *((_BYTE *)a2 + 880) = 1; if ( a4 ) *((_WORD *)a2 + 436) = -1; else *((_WORD *)a2 + 437) = -1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source