//
// sub_8F7E2C from 0x8f7e2c to 0x8f7e70 (68 bytes)
//
// 69 xrefs:
// > ProfilePage::onComment @ 0x8f843c
// > ProfilePage::onComment @ 0x8f8458
// > ProfilePage::onComment @ 0x8f8484
// > ProfilePage::onFollow @ 0x8f8718
// > ProfilePage::uploadActionFailed @ 0x8f8828
// > ProfilePage::onSocialPage @ 0x8f8c20
// > ProfilePage::onSocialPage @ 0x8f8c3c
// > ProfilePage::onSocialPage @ 0x8f8c64
// > ProfilePage::onMyLevels @ 0x8f8e70
// > ProfilePage::onMyLists @ 0x8f9020
// > ProfilePage::onInfo @ 0x8f9760
// > ProfilePage::onInfo @ 0x8f977c
// > ProfilePage::onInfo @ 0x8f97a4
// > ProfilePage::onInfo @ 0x8f97c8
// > ProfilePage::onInfo @ 0x8f981c
// > ProfilePage::onInfo @ 0x8f9838
// > ProfilePage::onInfo @ 0x8f9854
// > ProfilePage::onInfo @ 0x8f9870
// > ProfilePage::onInfo @ 0x8f98ac
// > ProfilePage::onInfo @ 0x8f98d0
// > ProfilePage::commentUploadFailed @ 0x8f9a08
// > ProfilePage::uploadActionFinished @ 0x8f9bf8
// > ProfilePage::uploadActionFinished @ 0x8f9c24
// > ProfilePage::onCopyName @ 0x8f9f54
// > ProfilePage::onCopyName @ 0x8f9f70
// > ProfilePage::onCopyName @ 0x8f9f98
// > ProfilePage::onCopyName @ 0x8f9fbc
// > ProfilePage::loadPageFromUserInfo @ 0x8fc2a8
// > ProfilePage::loadPageFromUserInfo @ 0x8fc61c
// > ProfilePage::loadPageFromUserInfo @ 0x8fc76c
// > ProfilePage::loadPageFromUserInfo @ 0x8fc798
// > ProfilePage::loadPageFromUserInfo @ 0x8fc7b8
// > ProfilePage::loadPageFromUserInfo @ 0x8fc7f4
// > ProfilePage::loadPageFromUserInfo @ 0x8fc814
// > ProfilePage::loadPageFromUserInfo @ 0x8fc834
// > ProfilePage::loadPageFromUserInfo @ 0x8fc854
// > ProfilePage::loadPageFromUserInfo @ 0x8fc8b0
// > ProfilePage::loadPageFromUserInfo @ 0x8fc8d0
// > ProfilePage::loadPageFromUserInfo @ 0x8fc908
// > ProfilePage::loadPageFromUserInfo @ 0x8fc950
// > ProfilePage::loadPageFromUserInfo @ 0x8fc998
// > ProfilePage::blockUser @ 0x8fcb6c
// > ProfilePage::FLAlert_Clicked @ 0x8fcda4
// > ProfilePage::showNoAccountError @ 0x8fd0fc
// > ProfilePage::onFriend @ 0x8fd4fc
// > ProfilePage::onFriend @ 0x8fd52c
// > ProfilePage::onFriend @ 0x8fd554
// > ProfilePage::onBlockUser @ 0x8fd7b8
// > ProfilePage::onBlockUser @ 0x8fd7e4
// > ProfilePage::onBlockUser @ 0x8fd800
// > ProfilePage::init @ 0x8fe94c
// > ProfilePage::init @ 0x8fe974
// > ProfilePage::loadPage @ 0x8fee68
// > ProfilePage::commentDeleteFailed @ 0x8ff088
// > ProfilePage::setupPageInfo @ 0x8ff734
// > ProfilePage::setupPageInfo @ 0x8ff760
// > ProfilePage::setupPageInfo @ 0x8ff784
// > DemonInfoPopup::init @ 0x9001b0
// > DemonInfoPopup::init @ 0x9001d8
// > DemonInfoPopup::init @ 0x9001fc
// > DemonInfoPopup::init @ 0x900240
// > DemonInfoPopup::init @ 0x900264
// > DemonInfoPopup::init @ 0x900290
// > StarInfoPopup::init @ 0x900d74
// > StarInfoPopup::init @ 0x900d9c
// > StarInfoPopup::init @ 0x900de4
// > sub_900FBC @ 0x9011e0
// > ProfilePage::onStatInfo @ 0x901bf4
// > ProfilePage::onStatInfo @ 0x901c1c
//
// 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
//
void __fastcall sub_8F7E2C(void *p)
{
unsigned int *v1; // x3
int v2; // w2
int v3; // w2
if ( !&pthread_create )
{
v3 = *((_DWORD *)p + 4);
*((_DWORD *)p + 4) = v3 - 1;
if ( v3 > 0 )
return;
LABEL_7:
operator delete(p);
return;
}
v1 = (unsigned int *)((char *)p + 16);
do
v2 = __ldaxr(v1);
while ( __stlxr(v2 - 1, v1) );
if ( v2 <= 0 )
goto LABEL_7;
}