// // PlayLayer::updateAttempts from 0x4022f0 to 0x402446 (342 bytes) // // 1 xrefs: // > PlayLayer::resetLevel @ 0x41298a // // 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:25 +0000 // int __fastcall PlayLayer::updateAttempts(PlayLayer *this) { GameManager *v2; // r5 GameManager *v3; // r0 GameManager *v4; // r5 GameManager *v5; // r0 GameManager *v6; // r5 cocos2d::CCString *v7; // r0 int CString; // r0 cocos2d::CCDirector *v9; // r0 GameManager *WinSize; // r0 int v11; // r7 int (__fastcall *v12)(int, _BYTE *); // r8 GameManager *v13; // r0 int result; // r0 GameManager *v15; // r0 int (*v16)(void); // r3 float v17[2]; // [sp+4h] [bp-14h] BYREF _BYTE v18[8]; // [sp+Ch] [bp-Ch] BYREF ++*((_DWORD *)this + 2647); v2 = (GameManager *)GameManager::sharedState(this); v3 = (GameManager *)GameManager::sharedState(v2); *((_DWORD *)v2 + 199) = *((_DWORD *)v3 + 199) + 1; v4 = (GameManager *)GameManager::sharedState(v3); v5 = (GameManager *)GameManager::sharedState(v4); *((_DWORD *)v4 + 200) = *((_DWORD *)v5 + 200) + 1; if ( !*((_BYTE *)this + 10784) ) { v6 = (GameManager *)GameManager::sharedState(v5); *((_DWORD *)v6 + 201) = *(_DWORD *)(GameManager::sharedState(v6) + 804) + 1; } v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Attempt %i", *((const char **)this + 2647)); CString = cocos2d::CCString::getCString(v7); v9 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 2975) + 464))( *((_DWORD *)this + 2975), CString); cocos2d::CCDirector::sharedDirector(v9); WinSize = (GameManager *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v17); if ( *((_DWORD *)this + 2647) != 1 || *((_BYTE *)this + 10614) ) { v11 = *((_DWORD *)this + 2975); v12 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v18, (float)(*((float *)this + 212) + (float)(v17[0] * 0.5)) + 50.0, (float)(*((float *)this + 213) + (float)(v17[1] * 0.5)) + 85.0); WinSize = (GameManager *)v12(v11, v18); } if ( *((_BYTE *)this + 11707) || *((_BYTE *)this + 10784) && (v15 = (GameManager *)GameManager::sharedState(WinSize), (WinSize = (GameManager *)GameManager::getGameVariable(v15, "0134")) != nullptr) || (v13 = (GameManager *)GameManager::sharedState(WinSize), (result = GameManager::getGameVariable(v13, "0135")) != 0) ) { v16 = *(int (**)(void))(**((_DWORD **)this + 2975) + 172); } else { if ( *((int *)this + 2647) <= 0 ) return result; v16 = *(int (**)(void))(**((_DWORD **)this + 2975) + 172); } return v16(); }
GD Web Decomp Icon

GD Web Decomp

Raw Source