//
// sub_1008F3580 from 0x1008f3580 to 0x1008f3758 (472 bytes)
//
// 3 xrefs:
// > EditorSoundBrowserLayer::onConfigViewClicked @ 0x1008f1aab
// > sub_1008F1AD0 @ 0x1008f1aff
// > sub_1008F9520 @ 0x1008f9566
//
// 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:57 +0000
//
char *__fastcall sub_1008F3580(__int64 a1, unsigned int a2, __int64 a3)
{
char *v4; // rbx
v4 = (char *)operator new(0x4E0u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v4);
*(_QWORD *)v4 = off_100BB5A98;
*((_QWORD *)v4 + 40) = off_100BB60F0;
*((_QWORD *)v4 + 41) = &off_100BB6160;
*((_QWORD *)v4 + 42) = off_100BB6178;
*((_QWORD *)v4 + 43) = off_100BB6198;
*((_QWORD *)v4 + 44) = off_100BB61C0;
*((_QWORD *)v4 + 51) = off_100BB61F0;
*((_QWORD *)v4 + 54) = off_100BB6270;
*((_QWORD *)v4 + 68) = off_100BB6290;
*((_QWORD *)v4 + 83) = &off_100BB62D8;
*((_QWORD *)v4 + 84) = off_100BB62F0;
*((_QWORD *)v4 + 127) = off_100BB6310;
*((_QWORD *)v4 + 128) = off_100BB6330;
*((_QWORD *)v4 + 129) = &off_100BB6350;
*((_QWORD *)v4 + 130) = &off_100BB6368;
*((_QWORD *)v4 + 131) = &off_100BB6380;
*((_QWORD *)v4 + 132) = &off_100BB6398;
*((_QWORD *)v4 + 133) = off_100BB63B0;
*((_QWORD *)v4 + 134) = &off_100BB63D0;
*((_QWORD *)v4 + 135) = off_100BB63E8;
*((_QWORD *)v4 + 136) = 0;
*((_DWORD *)v4 + 274) = 0;
*((_OWORD *)v4 + 69) = 0;
*(_DWORD *)(v4 + 1119) = 0;
*(_OWORD *)(v4 + 1128) = 0;
*(_OWORD *)(v4 + 1144) = 0;
*(_OWORD *)(v4 + 1160) = 0;
*(_OWORD *)(v4 + 1176) = 0;
*(_OWORD *)(v4 + 1192) = 0;
*(_OWORD *)(v4 + 1208) = 0;
*(_OWORD *)(v4 + 1224) = 0;
*((_QWORD *)v4 + 155) = 0;
if ( (unsigned __int8)sub_1008F3770(v4, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}