// // GJGarageLayer::updateRate from 0x50aab4 to 0x50abea (310 bytes) // // 1 xrefs: // > `non-virtual thunk to'GJGarageLayer::updateRate @ 0x50abfc // // 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:51:27 +0000 // int __fastcall GJGarageLayer::updateRate(GJGarageLayer *this) { int v2; // r0 int result; // r0 GameManager *v4; // r0 cocos2d::CCString *v5; // r0 const char *CString; // r9 cocos2d::CCString *v7; // r0 cocos2d::CCSprite *v8; // r6 cocos2d::CCSpriteFrameCache *v9; // r0 int v10; // r5 void (__fastcall *v11)(int, int); // r8 cocos2d::CCSpriteFrameCache *v12; // r0 int v13; // r0 const char *v14; // r1 int v15; // r6 void (__fastcall *v16)(int, char *); // r8 int v17; // r0 void (__fastcall *v18)(int, char *); // r2 int (__fastcall *v19)(int, char *); // r2 GameManager *v20; // r0 char v21; // [sp+4h] [bp-10h] BYREF char v22; // [sp+5h] [bp-Fh] char v23; // [sp+6h] [bp-Eh] v2 = GameManager::sharedState(this); if ( *(_BYTE *)(v2 + 488) && *((_DWORD *)this + 91) ) { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_001.png", &byte_9[4]); CString = (const char *)cocos2d::CCString::getCString(v5); v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_2_001.png", &byte_9[4]); v8 = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v7); v9 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 91) + 292))( *((_DWORD *)this + 91), 1); v10 = *((_DWORD *)this + 91); v11 = *(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 580); v12 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v9); v13 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, CString); v11(v10, v13); v15 = cocos2d::CCSprite::createWithSpriteFrameName(v8, v14); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 91) + 232))(*((_DWORD *)this + 91), v15, -1); v16 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v21, *(float *)(*((_DWORD *)this + 91) + 344) * 0.5, *(float *)(*((_DWORD *)this + 91) + 348) * 0.5); v16(v15, &v21); v17 = *((_DWORD *)this + 91); v18 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v17 + 480); v21 = -81; v22 = -81; v23 = -81; v18(v17, &v21); v19 = *(int (__fastcall **)(int, char *))(*(_DWORD *)v15 + 480); v21 = -1; v22 = -1; v23 = -1; v20 = (GameManager *)v19(v15, &v21); v2 = GameManager::sharedState(v20); *(_DWORD *)(v2 + 736) = 0; } result = GameManager::sharedState((GameManager *)v2); if ( *(_BYTE *)(result + 489) ) { result = *((_DWORD *)this + 90); if ( result ) { v4 = (GameManager *)(*(int (__fastcall **)(int, int))(*(_DWORD *)result + 292))(result, 1); result = GameManager::sharedState(v4); *(_DWORD *)(result + 736) = 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source