//
// sub_10040360C from 0x10040360c to 0x10040367c (112 bytes)
//
// 6 xrefs:
// > EditorUI::createLoop @ 0x10047af94
// > EditorUI::createLoop @ 0x10047b044
// > EditorUI::createGradientFromSelection @ 0x10047b2d4
// > EditorUI::createGradientFromSelection @ 0x10047b310
// > EditorUI::createGradientFromSelection @ 0x10047b34c
// > EditorUI::createGradientFromSelection @ 0x10047b388
//
// 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:04:40 +0000
//
__int64 __fastcall sub_10040360C(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // x0
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1600LL))(a2, a3);
if ( (_DWORD)result == 1 )
return (*(__int64 (__fastcall **)(__int64, __int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(a1, a2, a3, 0);
return result;
}