// // GJGarageLayer::updateRate from 0x8b9164 to 0x8b9320 (444 bytes) // // 3 xrefs: // > `non-virtual thunk to'GJGarageLayer::updateRate @ 0x8b9324 // > @ 0xf2860 // > @ 0x145ab98 // // 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:26 +0000 // __int64 __fastcall GJGarageLayer::updateRate(GJGarageLayer *this) { __int64 v2; // x0 cocos2d::CCString *v3; // x0 const char *CString; // x25 cocos2d::CCString *v5; // x0 cocos2d::CCSprite *v6; // x23 cocos2d::CCSpriteFrameCache **v7; // x22 void (__fastcall *v8)(cocos2d::CCSpriteFrameCache **, __int64); // x24 cocos2d::CCSpriteFrameCache *v9; // x0 __int64 v10; // x0 const char *v11; // x1 __int64 v12; // x22 void (__fastcall *v13)(__int64, char *); // x23 __int64 v14; // x0 void (__fastcall *v15)(__int64, char *); // x3 __int64 (__fastcall *v16)(__int64, char *); // x3 GameManager *v17; // x0 __int64 v18; // x0 GameManager *v19; // x0 char v21; // [xsp+50h] [xbp+50h] BYREF char v22; // [xsp+51h] [xbp+51h] char v23; // [xsp+52h] [xbp+52h] v2 = *(unsigned __int8 *)(GameManager::sharedState(_stack_chk_guard) + 684); if ( (_DWORD)v2 ) { v2 = *((_QWORD *)this + 63); if ( v2 ) { v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_001.png", &byte_9[4]); CString = (const char *)cocos2d::CCString::getCString(v3); v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_2_001.png", &byte_9[4]); v6 = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v5); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 63) + 584LL))(*((_QWORD *)this + 63), 1); v7 = *((cocos2d::CCSpriteFrameCache ***)this + 63); v8 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v7 + 145); v9 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v7); v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, CString); v8(v7, v10); v12 = cocos2d::CCSprite::createWithSpriteFrameName(v6, v11); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 63) + 464LL))( *((_QWORD *)this + 63), v12, 0xFFFFFFFFLL); v13 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v12 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v21, *(float *)(*((_QWORD *)this + 63) + 432LL) * 0.5, *(float *)(*((_QWORD *)this + 63) + 436LL) * 0.5); v13(v12, &v21); v14 = *((_QWORD *)this + 63); v15 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v14 + 960LL); v21 = -81; v22 = -81; v23 = -81; v15(v14, &v21); v16 = *(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)v12 + 960LL); v21 = -1; v22 = -1; v23 = -1; v17 = (GameManager *)v16(v12, &v21); v2 = GameManager::sharedState(v17); *(_QWORD *)(v2 + 936) = 0; } } if ( *(_BYTE *)(GameManager::sharedState((GameManager *)v2) + 685) ) { v18 = *((_QWORD *)this + 62); if ( v18 ) { v19 = (GameManager *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 584LL))(v18, 1); *(_QWORD *)(GameManager::sharedState(v19) + 936) = 0; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source