// // PlayLayer::updateAttempts from 0x6f6d44 to 0x6f6f24 (480 bytes) // // 2 xrefs: // > PlayLayer::resetLevel @ 0x7116b0 // > @ 0x5a400 // // 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:51 +0000 // __int64 __fastcall PlayLayer::updateAttempts(PlayLayer *this) { char *v2; // x21 GameManager *v3; // x22 GameManager *v4; // x0 GameManager *v5; // x22 cocos2d::CCString *v6; // x0 __int64 CString; // x0 cocos2d::CCDirector *v8; // x0 cocos2d::CCDirector *v9; // x0 __int64 v10; // x22 void (__fastcall *v11)(__int64, _BYTE *); // x23 unsigned __int64 GameVariable; // x0 GameManager *v13; // x0 GameManager *v15; // x0 GameManager *v16; // x22 __int64 v17; // [xsp+58h] [xbp+58h] BYREF _BYTE v18[8]; // [xsp+60h] [xbp+60h] BYREF v2 = (char *)this + 12288; ++*((_DWORD *)this + 3053); v3 = (GameManager *)GameManager::sharedState(_stack_chk_guard); v4 = (GameManager *)(unsigned int)(*(_DWORD *)(GameManager::sharedState(v3) + 1008) + 1); *((_DWORD *)v3 + 252) = (_DWORD)v4; v5 = (GameManager *)GameManager::sharedState(v4); *((_DWORD *)v5 + 253) = *(_DWORD *)(GameManager::sharedState(v5) + 1012) + 1; if ( !v2[256] ) { v16 = (GameManager *)GameManager::sharedState((GameManager *)(unsigned __int8)v2[256]); *((_DWORD *)v16 + 254) = *(_DWORD *)(GameManager::sharedState(v16) + 1016) + 1; } v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Attempt %i", (const char *)*((unsigned int *)this + 3053)); CString = cocos2d::CCString::getCString(v6); v8 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 1791) + 928LL))( *((_QWORD *)this + 1791), CString); v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8); cocos2d::CCDirector::getWinSize(&v17, v9); if ( *((_DWORD *)this + 3053) != 1 || *((_BYTE *)this + 12238) ) { v10 = *((_QWORD *)this + 1791); v11 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v10 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v18, (float)(*((float *)this + 248) + (float)(*(float *)&v17 * 0.5)) + 50.0, (float)(*((float *)this + 249) + (float)(*((float *)&v17 + 1) * 0.5)) + 85.0); v11(v10, v18); } if ( v2[1735] || (GameVariable = (unsigned __int8)v2[256], v2[256]) && (v13 = (GameManager *)GameManager::sharedState((GameManager *)GameVariable), GameVariable = (unsigned __int8)GameManager::getGameVariable(v13, "0134"), (_BYTE)GameVariable) || (v15 = (GameManager *)GameManager::sharedState((GameManager *)GameVariable), (unsigned __int8)GameManager::getGameVariable(v15, "0135")) ) { (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 1791) + 344LL))(*((_QWORD *)this + 1791), 0); } else if ( *((int *)this + 3053) > 0 ) { (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 1791) + 344LL))(*((_QWORD *)this + 1791), 1); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source