//
// MessagesProfilePage::loadMessagesFailed from 0x100213d00 to 0x100213d89 (137 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ae5da8
//
// 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:26:59 +0000
//
unsigned __int8 __fastcall MessagesProfilePage::loadMessagesFailed(__int64 a1, const char *a2, int a3)
{
unsigned __int8 result; // al
__int64 v6; // rdi
const char *v7; // rsi
double v8; // xmm0_8
result = sub_100213920(a1, a2);
if ( result )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 752) + 344LL))(*(_QWORD *)(a1 + 752), 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 792) + 344LL))(*(_QWORD *)(a1 + 792), 1);
v6 = *(_QWORD *)(a1 + 736);
v7 = "Something went wrong";
if ( a3 == -2 )
v7 = "Nothing found";
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v6 + 928LL))(v6, v7);
v8 = (*(double (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 736) + 344LL))(*(_QWORD *)(a1 + 736), 1);
return (unsigned __int8)sub_100212C00(a1, v8);
}
return result;
}