//
// SFXBrowser::updateViewItems from 0xb8e09c to 0xb8e1d4 (312 bytes)
//
// 2 xrefs:
// > SFXBrowser::setupList @ 0xb927c0
// > ??> @ 0xa2a90
//
// 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 13:02:35 +0000
//
__int64 __fastcall SFXBrowser::updateViewItems(__int64 this)
{
__int64 v1; // x19
ButtonSprite *v2; // x0
const char *v3; // x1
ButtonSprite *v4; // x0
const char *v5; // x1
__int64 v6; // x0
ButtonSprite *v7; // x0
cocos2d::CCSpriteFrameCache **v8; // x20
__int64 (__fastcall *v9)(cocos2d::CCSpriteFrameCache **, __int64); // x21
cocos2d::CCSpriteFrameCache *v10; // x0
const char *v11; // x1
__int64 v12; // x0
if ( *(_QWORD *)(this + 712) )
{
v1 = this;
v2 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(this + 880) + 1072LL))(*(_QWORD *)(this + 880));
if ( *(_DWORD *)(*(_QWORD *)(v1 + 712) + 140LL) == 1 )
v3 = "GJ_button_02.png";
else
v3 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v2, v3);
v4 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 888) + 1072LL))(*(_QWORD *)(v1 + 888));
if ( *(_DWORD *)(*(_QWORD *)(v1 + 712) + 140LL) == 2 )
v5 = "GJ_button_02.png";
else
v5 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v4, v5);
v6 = *(_QWORD *)(v1 + 896);
if ( v6 )
{
v7 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1072LL))(v6);
if ( *(_DWORD *)(*(_QWORD *)(v1 + 712) + 140LL) == 3 )
ButtonSprite::updateBGImage(v7, "GJ_button_02.png");
else
ButtonSprite::updateBGImage(v7, "GJ_button_01.png");
}
v8 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 904) + 1072LL))(*(_QWORD *)(v1 + 904));
v9 = *((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v8 + 145);
v10 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v8);
if ( *(_DWORD *)(v1 + 1116) == 4 )
v11 = "GJ_mainSFXButton_001.png";
else
v11 = "GJ_customSFXButton_001.png";
v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, v11);
return v9(v8, v12);
}
return this;
}