// // LevelPage::ccTouchBegan from 0x8c61e8 to 0x8c6320 (312 bytes) // // 3 xrefs: // > `non-virtual thunk to'LevelPage::ccTouchBegan @ 0x8c6324 // > @ 0x8f2c0 // > @ 0x145d200 // // 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:56:34 +0000 // __int64 __fastcall LevelPage::ccTouchBegan(cocos2d::CCNode *a1, cocos2d::CCTouch *this) { __int64 v3; // x2 __int64 result; // x0 long double v5; // q0 cocos2d *v6; // x0 const cocos2d::CCPoint *v7; // x2 float v8; // s0 GameManager *v9; // x0 GameManager *v10; // x0 GameStatsManager *v11; // x0 GameStatsManager *v12; // x0 GameStatsManager *v13; // x0 GameStatsManager *v14; // x0 __int64 v15; // [xsp+38h] [xbp+38h] BYREF __int64 v16; // [xsp+40h] [xbp+40h] BYREF v3 = *((_QWORD *)a1 + 53); if ( !v3 || !*((_QWORD *)a1 + 70) ) return 0; result = 0; if ( *(_DWORD *)(v3 + 328) - *(_DWORD *)(v3 + 332) == -1 ) { cocos2d::CCTouch::getLocation(&v15, this); cocos2d::CCNode::convertToNodeSpace(&v16, a1, (const cocos2d::CCPoint *)&v15); *(__n128 *)&v5 = cocos2d::CCPoint::operator=(&v15, &v16); v6 = (cocos2d *)(*(__int64 (__fastcall **)(_QWORD, long double))(**((_QWORD **)a1 + 70) + 192LL))( *((_QWORD *)a1 + 70), v5); cocos2d::ccpDistance(v6, (const cocos2d::CCPoint *)&v15, v7); if ( v8 <= 30.0 ) { (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)a1 + 1000LL))(a1, 0); v9 = (GameManager *)LevelPage::playCoinEffect(a1); v10 = (GameManager *)GameManager::sharedState(v9); v11 = (GameStatsManager *)GameManager::reportAchievementWithID(v10, "geometry.ach.secret04", 100, 0); v12 = (GameStatsManager *)GameStatsManager::sharedState(v11); v13 = (GameStatsManager *)GameStatsManager::storeSecretCoin(v12, "secret04"); v14 = (GameStatsManager *)GameStatsManager::sharedState(v13); GameStatsManager::incrementStat(v14, "8"); } return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source