//
// sub_10037DFF0 from 0x10037dff0 to 0x10037e098 (168 bytes)
//
// 2 xrefs:
// > EditorUI::showTextAlert @ 0x100163bc4
// > GJKeybindManager::handleGlobalAudioAction @ 0x10018bdc0
//
// 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:03:29 +0000
//
__int64 __fastcall sub_10037DFF0(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
const void *v8; // x0
void *v9; // x0
if ( a1 && a3 )
{
v8 = (const void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1);
if ( v8 )
{
v9 = __dynamic_cast(
v8,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&off_100936668,
0);
if ( v9 )
{
sub_10037E098(a3, v9);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 568LL))(a1, a2, 1);
}
}
(*(void (__fastcall **)(__int64, __int64, __int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, a3, a4, a2);
}
return a3;
}