//
// EditorSoundConfigInfoLayer::onViewProfile from 0x1401964f0 to 0x140196584 (148 bytes)
//
// 2 xrefs:
// > EditorSoundConfigInfoLayer::init @ 0x14019277a
// > ??> @ 0x140919508
//
// 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 11:27:45 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall EditorSoundConfigInfoLayer::onViewProfile(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // rcx
__int64 v5; // rax
void *v6; // [rsp+30h] [rbp+8h]
if ( *(_QWORD *)(a1 + 1072) )
{
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v6 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
LOBYTE(a3) = 1;
GameManager::setGameVariable(v4, "0047", a3);
v5 = ProfilePage::create(*(unsigned int *)(*(_QWORD *)(a1 + 1072) + 344LL), 0);
if ( v5 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1064LL))(v5);
}
}