//
// sub_10051B1FC from 0x10051b1fc to 0x10051b2a8 (172 bytes)
//
// 20 xrefs:
// > FriendsProfilePage::getUserListFailed @ 0x1002737e8
// > sub_100503A98 @ 0x100503d4c
// > sub_100503A98 @ 0x100503dcc
// > FriendPickerPopup::getUserListFailed @ 0x100503fc0
// > sub_1005059D4 @ 0x100505b44
// > LevelPickerPopup::loadLevelsFinished @ 0x100506040
// > LevelPickerPopup::loadLevelsFailed @ 0x100506264
// > sub_100507288 @ 0x1005078e4
// > InvitesPopup::buildRows @ 0x10050fec8
// > InvitesPopup::threadInvitesFailed @ 0x1005101b8
// > sub_1005101BC @ 0x1005101e8
// > ReportQueuePopup::adminReportQueueFinished @ 0x1005237fc
// > ReportQueuePopup::adminReportQueueFailed @ 0x100524564
// > sub_10053053C @ 0x100530e98
// > AccountReviewPopup::adminReportedContentFinished @ 0x1005452f8
// > AccountReviewPopup::adminReportedContentFailed @ 0x100546658
// > AccountReviewPopup::adminAbuseInfoFinished @ 0x1005467a8
// > AccountReviewPopup::adminAbuseInfoFailed @ 0x100547974
// > AccountReviewPopup::adminUserHistoryFinished @ 0x100547a9c
// > AccountReviewPopup::adminUserHistoryFailed @ 0x10054909c
//
// 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:07:08 +0000
//
__int64 __fastcall sub_10051B1FC(__int64 a1, const char *a2)
{
__int64 v4; // x0
void *v5; // x0
v4 = *(_QWORD *)(a1 + 760);
if ( v4 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 520LL))(v4);
*(_QWORD *)(a1 + 760) = 0;
}
v5 = cocos2d::CCLabelBMFont::create_1(a2, "chatFont.fnt");
*(_QWORD *)(a1 + 760) = v5;
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v5 + 160LL))(v5, 0.6);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 760) + 1072LL))(*(_QWORD *)(a1 + 760), a1 + 768);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 760) + 1024LL))(
*(_QWORD *)(a1 + 760),
*(unsigned __int8 *)(a1 + 771));
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 760) + 184LL))(*(_QWORD *)(a1 + 760), a1 + 712);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 760));
}