//
// sub_1008DFA20 from 0x1008dfa20 to 0x1008dfac2 (162 bytes)
//
// 1 xrefs:
// > EditorSFXActionConfigLayer::init @ 0x1008df877
//
// 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_1008DFA20(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rsi
__int64 v4; // rdi
_BOOL4 v5; // r14d
__int64 v6; // rdi
__int64 v7; // rax
__int64 result; // rax
__int64 v9; // rdi
const char *v10; // rsi
v2 = EditorSFXManager::sharedState(a1);
v3 = *(unsigned int *)(a1 + 1024);
v4 = v2;
v5 = sub_1008E3440(v2, v3) == 0;
v6 = EditorSFXManager::sharedState(v4);
sub_1008E35A0(v6, *(unsigned int *)(a1 + 1024), v5);
v7 = EditorSFXManager::sharedState(v6);
result = sub_1008E3440(v7, *(unsigned int *)(a1 + 1024));
v9 = *(_QWORD *)(a1 + 1032);
if ( v9 )
{
v10 = "GJ_button_04.png";
if ( !(_DWORD)result )
v10 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v9, (__int64)v10);
return (*(__int64 (__fastcall **)(_QWORD, double, float))(**(_QWORD **)(*(_QWORD *)(a1 + 1032) + 632LL) + 248LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1032) + 632LL),
0.0,
-1.5);
}
return result;
}