// // MapSelectLayer::checkTouchMonster from 0x63f940 to 0x63fca2 (866 bytes) // // 1 xrefs: // > MapSelectLayer::ccTouchBegan @ 0x63fd2a // // 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:55:27 +0000 // int __fastcall MapSelectLayer::checkTouchMonster(int a1, cocos2d *a2) { unsigned int v2; // r6 int v4; // r5 int *v5; // r4 int v6; // r10 const cocos2d::CCPoint *v7; // r2 int v8; // r1 int v9; // r2 unsigned __int8 v10; // r3 FMODAudioEngine *v11; // r0 int v12; // r0 FMODAudioEngine *v13; // r8 int v14; // r0 bool v15; // r2 cocos2d::CCParticleSystem *v16; // r10 void (__fastcall *v17)(cocos2d::CCParticleSystem *, float *); // r8 CCCircleWave *v18; // r0 CCCircleWave *v19; // r10 int v20; // r3 int v21; // r2 cocos2d::CCRenderTexture *v22; // r9 const cocos2d::CCPoint *v23; // r0 cocos2d::CCRenderTexture *v24; // r1 int v25; // r0 int v26; // r9 int v27; // r0 float v28; // s16 float v29; // s20 float v30; // r0 bool v32; // [sp+0h] [bp-7Ch] void (__fastcall *v34)(int *, float *); // [sp+44h] [bp-38h] _BYTE v35[8]; // [sp+48h] [bp-34h] BYREF _BYTE v36[8]; // [sp+50h] [bp-2Ch] BYREF int v37[3]; // [sp+58h] [bp-24h] BYREF float v38[4]; // [sp+64h] [bp-18h] BYREF v2 = 0; v4 = 0; while ( v2 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 364)) ) { v5 = (int *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 364), v2); v6 = (*(int (__fastcall **)(int *))(*v5 + 96))(v5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, 0.0, 5.0); cocos2d::CCPoint::operator+(v35, v6, v38); if ( COERCE_FLOAT(cocos2d::ccpDistance(a2, (const cocos2d::CCPoint *)v35, v7)) >= 20.0 ) { ++v2; } else { v11 = (FMODAudioEngine *)GJMapObject::touchMonster((int)v5, v8, v9, v10); if ( v5[76] <= 9 ) { ++v2; v4 = 1; } else { v12 = FMODAudioEngine::sharedEngine(v11); memset(v37, 0, sizeof(v37)); v13 = (FMODAudioEngine *)v12; std::string::__init(v37, "explode_11.ogg", 0xEu); v14 = rand(); FMODAudioEngine::playEffect( v13, (int)v37, COERCE_INT( (float)((float)((float)((float)((float)v14 * 4.6566e-10) + (float)((float)v14 * 4.6566e-10)) - 1.0) * 0.05) + 0.95), 0, COERCE_INT(0.5)); std::string::~string((int)v37); v16 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"explodeEffect.plist", nullptr, v15); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v16 + 784))(v16, 2); (*(void (__fastcall **)(_DWORD, cocos2d::CCParticleSystem *, int))(**(_DWORD **)(a1 + 324) + 232))( *(_DWORD *)(a1 + 324), v16, 1); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v16 + 792))(v16, 1); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, _BYTE *))(*(_DWORD *)v16 + 92))(v16, v35); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v16 + 80))(v16, 1050253722); v17 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v16 + 680); memset(v38, 0, sizeof(v38)); v38[3] = 1.0; v38[0] = 1.0; v17(v16, v38); cocos2d::CCParticleSystem::resetSystem(v16); v18 = CCCircleWave::create( (CCCircleWave *)0x41200000, 1109393408, (cocos2d::CCActionTween *)0x3ECCCCCD, 0.0, v32); *((_BYTE *)v18 + 280) = -1; v19 = v18; v20 = *(_DWORD *)v18; *((_BYTE *)v18 + 281) = 0; *((_BYTE *)v18 + 282) = 0; (*(void (__fastcall **)(CCCircleWave *, _BYTE *))(v20 + 92))(v18, v35); (*(void (__fastcall **)(_DWORD, CCCircleWave *, _DWORD))(**(_DWORD **)(a1 + 324) + 232))( *(_DWORD *)(a1 + 324), v19, 0); v22 = (cocos2d::CCRenderTexture *)cocos2d::CCRenderTexture::create( (cocos2d::CCRenderTexture *)&word_32, (int)&word_32, v21); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5[69] + 172))(v5[69], 0); v23 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int *))(*v5 + 96))(v5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, v23); v34 = *(void (__fastcall **)(int *, float *))(*v5 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, 25.0, 25.0); v34(v5, v38); cocos2d::CCRenderTexture::beginWithClear(v22, 0.0, 0.0, 0.0, 0.0); (*(void (__fastcall **)(int *))(*v5 + 376))(v5); cocos2d::CCRenderTexture::end(v22); (*(void (__fastcall **)(int *, _BYTE *))(*v5 + 92))(v5, v36); v25 = ExplodeItemNode::create(v22, v24); *(_DWORD *)(v25 + 276) = -1027080192; v26 = v25; (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 324) + 232))(*(_DWORD *)(a1 + 324), v25, 101); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v26 + 92))(v26, v36); v38[3] = 1.0; v38[0] = 1.0; v38[1] = 1.0; v38[2] = 1.0; v27 = rand(); v28 = (float)((float)((float)((float)v27 * 4.6566e-10) + (float)((float)v27 * 4.6566e-10)) - 1.0) * 3.0; rand(); v29 = COERCE_FLOAT(roundf()); rand(); v30 = COERCE_FLOAT(roundf()); v4 = 1; ExplodeItemNode::createSprites( v26, (int)(float)(v29 + 4.0), (int)(float)(v30 + 4.0), COERCE_INT(v28 * 0.5), v28, 4.0, 2.0, 6.4, 0.0, SLOBYTE(v38[0]), SLODWORD(v38[1]), SLODWORD(v38[2]), SLODWORD(v38[3]), SLOBYTE(v38[0]), SLODWORD(v38[1]), SLODWORD(v38[2]), SLODWORD(v38[3]), 1); (*(void (__fastcall **)(int *, int))(*v5 + 264))(v5, 1); cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(a1 + 364), v2, 1); } } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source