//
// SFXBrowser::updateShareItem from 0x6c3a18 to 0x6c3ac6 (174 bytes)
//
// 3 xrefs:
// > SFXBrowser::updateSelectionUI @ 0x6c590e
// > SFXBrowser::sfxFoldersPicked @ 0x6c8df2
// > SFXBrowser::sfxFoldersPicked @ 0x6c8ed4
//
// 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:56:53 +0000
//
GameManager *__fastcall SFXBrowser::updateShareItem(GameManager *this, int a2, int a3)
{
GameManager *v3; // r6
GameManager *v4; // r0
int v5; // r4
int v6; // r7
int v7; // r0
_BOOL4 v8; // r4
int v9; // r0
int (__fastcall *v10)(int, _DWORD *, _DWORD); // r2
_DWORD v11[3]; // [sp+0h] [bp-Ch] BYREF
v11[0] = this;
v11[1] = a2;
v11[2] = a3;
v3 = this;
if ( *((_DWORD *)this + 164) )
{
this = (GameManager *)GameManager::sharedState(this);
if ( *((_DWORD *)this + 102) )
{
this = (GameManager *)GameManager::sharedState(this);
if ( *(_DWORD *)(*((_DWORD *)this + 102) + 2084) )
{
v4 = (GameManager *)GameManager::sharedState(this);
v5 = *(_DWORD *)(*((_DWORD *)v4 + 102) + 2084);
v6 = *(_DWORD *)(v5 + 476);
v8 = v6
&& (v7 = GameManager::sharedState(v4), v6 == *(_DWORD *)(v7 + 464) - *(_DWORD *)(v7 + 468))
&& *(_DWORD *)(v5 + 488) != 0;
v9 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)v3 + 164) + 536))(*((_DWORD *)v3 + 164));
v10 = *(int (__fastcall **)(int, _DWORD *, _DWORD))(*(_DWORD *)v9 + 480);
if ( v8 )
{
LOWORD(v11[0]) = -106;
BYTE2(v11[0]) = -106;
}
else
{
LOWORD(v11[0]) = -1;
BYTE2(v11[0]) = -1;
}
return (GameManager *)v10(v9, v11, v10);
}
}
}
return this;
}