//
// sub_1004C6460 from 0x1004c6460 to 0x1004c64d4 (116 bytes)
//
// 2 xrefs:
// > EditorSFXActionConfigLayer::init @ 0x1004c6368
// > sub_1004C641C @ 0x1004c645c
//
// 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 11:06:22 +0000
//
__int64 __fastcall sub_1004C6460(__int64 a1, __n128 a2)
{
__int64 v3; // x0
int v4; // w8
__int64 result; // x0
const char *v6; // x1
v3 = EditorSFXManager::sharedState(a2);
v4 = sub_1004C8360(v3, *(unsigned int *)(a1 + 1024));
result = *(_QWORD *)(a1 + 1032);
if ( result )
{
if ( v4 )
v6 = "GJ_button_04.png";
else
v6 = "GJ_button_02.png";
ButtonSprite::updateBGImage(result, (__int64)v6);
return (*(__int64 (__fastcall **)(_QWORD, float, float))(**(_QWORD **)(*(_QWORD *)(a1 + 1032) + 632LL) + 248LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1032) + 632LL),
0.0,
-1.5);
}
return result;
}