//
// MessagesProfilePage::loadMessagesFailed from 0xa49f98 to 0xa4a05c (196 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MessagesProfilePage::loadMessagesFailed @ 0xa4a060
// > ??> @ 0xee318
// > ??> @ 0x148b0c8
//
// 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 13:00:01 +0000
//
__int64 __fastcall MessagesProfilePage::loadMessagesFailed(__int64 a1, const char *a2, int a3)
{
__int64 result; // x0
__int64 v6; // x2
result = MessagesProfilePage::isCorrect((MessagesProfilePage *)a1, a2);
if ( (_BYTE)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);
if ( a3 == -2 )
(*(void (__fastcall **)(_QWORD, const char *))(*(_QWORD *)v6 + 928LL))(*(_QWORD *)(a1 + 736), "Nothing found");
else
(*(void (__fastcall **)(_QWORD, const char *))(*(_QWORD *)v6 + 928LL))(
*(_QWORD *)(a1 + 736),
"Something went wrong");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 736) + 344LL))(*(_QWORD *)(a1 + 736), 1);
return MessagesProfilePage::updateSelectUI((MessagesProfilePage *)a1);
}
return result;
}