//
// SmartTemplateCell::onClick from 0x100242c60 to 0x100242d01 (161 bytes)
//
// 1 xrefs:
// > SmartTemplateCell::loadFromObject @ 0x100235000
//
// 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:27:18 +0000
//
__int64 __fastcall SmartTemplateCell::onClick(__int64 a1, __int64 a2, double a3)
{
__int64 result; // rax
__int64 (__fastcall ***v5)(_QWORD, __int64, __int64, __int64, _QWORD); // rdi
__int64 (__fastcall *v6)(_QWORD, __int64, __int64, __int64, _QWORD); // rax
__int64 v7; // rsi
__int64 v8; // rcx
if ( a2 )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 1 )
{
result = *(_QWORD *)(a1 + 416);
v5 = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(result + 632);
if ( !v5 )
return result;
v6 = **v5;
v7 = a1;
v8 = 6;
return v6(v5, v7, 20, v8, 0);
}
if ( !(_DWORD)result )
{
if ( *(_QWORD *)(a1 + 552) )
{
*(_QWORD *)(GameLevelManager::sharedState(a3) + 1528) = *(_QWORD *)(a1 + 552);
result = *(_QWORD *)(a1 + 416);
v5 = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(result + 632);
if ( v5 )
{
v6 = **v5;
v7 = a1;
v8 = 1;
return v6(v5, v7, 20, v8, 0);
}
}
}
}
return result;
}