// // ProfilePage::FLAlert_Clicked from 0x8fcb78 to 0x8fcdb4 (572 bytes) // // 3 xrefs: // > `non-virtual thunk to'ProfilePage::FLAlert_Clicked @ 0x8fcdb8 // > @ 0xb3b20 // > @ 0x11a69a0 // // 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 ProfilePage::FLAlert_Clicked(ProfilePage *a1, FLAlertLayer *a2, bool a3) { GameLevelManager *v4; // x0 UploadActionPopup *m_popupDelegate; // x0 __int64 v6; // x2 void *v7; // x3 GameLevelManager *v8; // x0 unsigned int *v9; // x2 int v10; // w0 unsigned int *v11; // x2 __int64 v13; // [xsp+50h] [xbp+50h] BYREF if ( a3 ) { if ( a2->getTag(a2) == 1 ) { GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate; v4 = GameLevelManager::sharedState(); if ( !GameLevelManager::deleteSentFriendRequest(v4, a1->m_accountID) ) return; sub_D153B8((int)&v13, "Removing Friend Request..."); m_popupDelegate = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate); a1->m_popupDelegate = m_popupDelegate; v6 = v13; v7 = (void *)(v13 - 24); if ( (__int64 *)(v13 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v13 - 8); do v10 = __ldaxr(v11); while ( __stlxr(v10 - 1, v11) ); goto LABEL_15; } goto LABEL_22; } } else { if ( a2->getTag(a2) != 2 ) { if ( a2->getTag(a2) == 3 ) { GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate; ProfilePage::blockUser(a1); } return; } GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate; v8 = GameLevelManager::sharedState(); if ( !GameLevelManager::removeFriend(v8, a1->m_accountID) ) return; sub_D153B8((int)&v13, "Removing Friend..."); m_popupDelegate = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate); a1->m_popupDelegate = m_popupDelegate; v6 = v13; v7 = (void *)(v13 - 24); if ( (__int64 *)(v13 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v9 = (unsigned int *)(v13 - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); goto LABEL_15; } LABEL_22: v10 = *(_DWORD *)(v6 - 8); *(_DWORD *)(v6 - 8) = v10 - 1; LABEL_15: if ( v10 <= 0 ) operator delete(v7); m_popupDelegate = a1->m_popupDelegate; } } m_popupDelegate->show(m_popupDelegate); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source