//
// ProfilePage::isCorrect from 0x10019c6c8 to 0x10019c764 (156 bytes)
//
// 3 xrefs:
// > ProfilePage::loadCommentsFinished @ 0x10019c77c
// > ProfilePage::loadCommentsFailed @ 0x10019c7f8
// > ProfilePage::setupPageInfo @ 0x10019c880
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall ProfilePage::isCorrect(ProfilePage *a1, const char *a2)
{
std::string *p_m_profileKey; // x22
__int64 v4; // x24
void *v5; // x19
int v6; // w10
std::size_t size; // x21
const void *capacitym1; // x0
std::size_t v9; // x22
_QWORD *v10; // x1
size_t v11; // x2
int v12; // w20
_QWORD v15[2]; // [xsp+8h] [xbp-48h] BYREF
char v16; // [xsp+1Fh] [xbp-31h]
p_m_profileKey = &a1->m_profileKey;
sub_100009900(v15, (char *)a2);
v4 = v16;
v5 = (void *)v15[0];
v6 = a1->m_profileKey.m_data.m_short.shortStorage.__elems_[22];
if ( v6 >= 0 )
size = (unsigned __int8)a1->m_profileKey.m_data.m_short.shortStorage.__elems_[22];
else
size = a1->m_profileKey.m_data.m_long.size;
if ( v6 >= 0 )
capacitym1 = p_m_profileKey;
else
capacitym1 = (const void *)a1->m_profileKey.m_data.m_long.capacitym1;
if ( v16 >= 0 )
v9 = v16;
else
v9 = v15[1];
if ( v16 >= 0 )
v10 = v15;
else
v10 = (_QWORD *)v15[0];
if ( v9 >= size )
v11 = size;
else
v11 = v9;
v12 = memcmp(capacitym1, v10, v11);
if ( v4 < 0 )
operator delete(v5);
return v9 == size && v12 == 0;
}