// // GJGarageLayer::getItems from 0x8bfd20 to 0x8bff68 (584 bytes) // // 3 xrefs: // > GJGarageLayer::getItems @ 0x8bffbc // > GJGarageLayer::setupPage @ 0x8c0618 // > @ 0x4bcb8 // // 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:30 +0000 // cocos2d::CCArray *__fastcall GJGarageLayer::getItems(__int64 a1, int a2, int a3, int a4, unsigned int a5) { GameManager *v8; // x0 __int64 v9; // x0 cocos2d::CCArray *v10; // x0 int v11; // w21 const char *v12; // x1 __int64 v13; // x24 __int64 BrowserItem; // x0 unsigned int v15; // w19 __int64 v16; // x0 int isIconUnlocked; // w23 GJItemIcon *v18; // x28 float v19; // s9 cocos2d::CCObject *v20; // x27 void (__fastcall *v21)(cocos2d::CCObject *, __int64); // x26 __int64 v22; // x0 void (__fastcall *v23)(GJItemIcon *, int **); // x26 __int64 v24; // x0 float v26; // [xsp+80h] [xbp+80h] cocos2d::CCArray *v27; // [xsp+90h] [xbp+90h] int v29[3]; // [xsp+9Ch] [xbp+9Ch] BYREF int *v30; // [xsp+B0h] [xbp+B0h] BYREF v30 = v29; v29[0] = a4; v8 = (GameManager *)std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( (__int64 **)(a1 + 520), v29, (__int64)&unk_114CA08, &v30); *((_DWORD *)v8 + 8) = a3; v9 = GameManager::sharedState(v8); v10 = (cocos2d::CCArray *)GameManager::iconTypeToUnlockType(v9, v29[0]); v11 = (int)v10; v27 = (cocos2d::CCArray *)cocos2d::CCArray::create(v10); v13 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"playerSquare_001.png", v12); *(_QWORD *)(a1 + 560) = 0; BrowserItem = (unsigned int)(36 * (a3 + 1)); v15 = BrowserItem - 35; if ( (int)BrowserItem <= a2 ) a2 = 36 * (a3 + 1); for ( ; a2 >= (int)v15; ++v15 ) { v16 = GameManager::sharedState((GameManager *)BrowserItem); isIconUnlocked = (unsigned __int8)GameManager::isIconUnlocked(v16, v15, v29[0]); BrowserItem = GJItemIcon::createBrowserItem(v11, v15); v18 = (GJItemIcon *)BrowserItem; if ( BrowserItem ) { v19 = GJItemIcon::scaleForType(v11); (*(void (__fastcall **)(GJItemIcon *))(*(_QWORD *)v18 + 160LL))(v18); v20 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((__int64)v18, 0, a1, (__int64)GJGarageLayer::onSelect, 0); v21 = *(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v20 + 320LL); v22 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL))(v13); v21(v20, v22); v23 = *(void (__fastcall **)(GJItemIcon *, int **))(*(_QWORD *)v18 + 184LL); v26 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v20 + 328LL))(v20) * 0.5; v24 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v20 + 328LL))(v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, v26, *(float *)(v24 + 4) * 0.5); v23(v18, &v30); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v20 + 72LL))(v20, v15); *((_DWORD *)v20 + 124) = v29[0]; cocos2d::CCArray::addObject(v27, v20); BrowserItem = a5; if ( v15 == a5 ) *(_QWORD *)(a1 + 560) = v20; if ( !isIconUnlocked ) BrowserItem = GJItemIcon::changeToLockedState(v18, 1.0 / v19); } } return v27; }
GD Web Decomp Icon

GD Web Decomp

Raw Source