//
// sub_1008DFAD0 from 0x1008dfad0 to 0x1008dfb43 (115 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:37:45 +0000
//
__int64 __fastcall sub_1008DFAD0(__int64 a1)
{
__int64 v2; // rax
__int64 result; // rax
__int64 v4; // rdi
const char *v5; // rsi
v2 = EditorSFXManager::sharedState(a1);
result = sub_1008E3440(v2, *(unsigned int *)(a1 + 1024));
v4 = *(_QWORD *)(a1 + 1032);
if ( v4 )
{
v5 = "GJ_button_04.png";
if ( !(_DWORD)result )
v5 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v4, (__int64)v5);
return (*(__int64 (__fastcall **)(_QWORD, double, float))(**(_QWORD **)(*(_QWORD *)(a1 + 1032) + 632LL) + 248LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1032) + 632LL),
0.0,
-1.5);
}
return result;
}