//
// sub_100306AC0 from 0x100306ac0 to 0x100306bcc (268 bytes)
//
// 17 xrefs:
// > sub_1000A2D08 @ 0x1000a2ee8
// > sub_1000A42E0 @ 0x1000a45f0
// > sub_10013632C @ 0x10013635c
// > CommentCell::onBulkSelectToggle @ 0x100138908
// > sub_10013A030 @ 0x10013a060
// > sub_10013A4DC @ 0x10013a51c
// > sub_10013B024 @ 0x10013b054
// > LocalLevelManager::postFileResults @ 0x100261ac4
// > sub_1004F94F0 @ 0x1004f9544
// > MemberListPopup::threadUpdateFinished @ 0x100508c88
// > NewThreadPopup::threadSendFinished @ 0x10050c180
// > ThreadOptionsPopup::threadUpdateFinished @ 0x10050e03c
// > sub_10050E554 @ 0x10050e608
// > RenameThreadPopup::threadUpdateFinished @ 0x10051146c
// > sub_100531F3C @ 0x100531ff0
// > AccountBanPopup::onClose @ 0x10053ff44
// > AccountReviewPopup::onClose @ 0x100540c20
//
// 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 11:03:08 +0000
//
__int64 __fastcall sub_100306AC0(__int64 a1, const char *a2, __int64 a3)
{
__int64 v6; // x0
_QWORD *v7; // x22
__int64 result; // x0
unsigned int *v9; // x9
__int64 v10; // x8
_QWORD *v11; // x23
unsigned __int64 v12; // x24
__int64 v13; // x22
const char *v14; // x0
__int64 v15; // x0
_QWORD *v16; // x0
v6 = sub_1002E757C(*(_QWORD *)(a1 + 56));
v7 = sub_1002E7510(v6);
result = sub_1002E7570((__int64)v7, *(_QWORD *)(a1 + 56));
if ( v7 )
{
v9 = (unsigned int *)v7[7];
v10 = *v9;
if ( (_DWORD)v10 )
{
v11 = *((_QWORD **)v9 + 2);
v12 = (unsigned __int64)&v11[v10 - 1];
do
{
v13 = *v11;
if ( !*v11 )
break;
if ( (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v13 + 104LL))(*v11) != a3 )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 104LL))(v13);
if ( a3 )
{
if ( result )
continue;
}
}
v14 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 96LL))(v13);
result = strcmp(a2, v14);
if ( !(_DWORD)result )
{
v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 112LL))(v13);
if ( (_DWORD)v15 )
{
v16 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager(v15);
result = (*(__int64 (__fastcall **)(_QWORD, __int64, const char *))(*(_QWORD *)*v16 + 88LL))(*v16, a1, a2);
}
else
{
result = sub_100306BCC(v13, a3);
}
}
++v11;
}
while ( (unsigned __int64)v11 <= v12 );
}
}
return result;
}