// // ThreadOptionsPopup::onLeave from 0x74b9a4 to 0x74ba9c (248 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:58:47 +0000 // int __fastcall ThreadOptionsPopup::onLeave(ThreadOptionsPopup *this, cocos2d::CCObject *a2) { int v3; // r5 int v4; // r0 int v5; // r4 int v6; // r3 const char *v7; // r1 char *v8; // r0 cocos2d::CCString *v9; // r0 const char *CString; // r6 size_t v11; // r0 char **v12; // r4 int v14[3]; // [sp+18h] [bp-10h] BYREF v3 = *(_DWORD *)(*((_DWORD *)this + 180) + 132); v4 = GJAccountManager::sharedState(this); v5 = *(_DWORD *)(v4 + 284) - *(_DWORD *)(v4 + 280) + (v3 == *(_DWORD *)(v4 + 280) - *(_DWORD *)(v4 + 284)) + *(_DWORD *)(v4 + 280) - *(_DWORD *)(v4 + 284); v6 = *((_DWORD *)this + 180); if ( *(_DWORD *)(v6 + 140) == 1 ) { if ( !v5 ) { v7 = "the owner"; LABEL_6: v8 = "Leave this group chat?\nYou can only rejoin if %s invites you back."; goto LABEL_11; } v7 = "the new owner"; } else { if ( !v5 ) { v7 = "a member"; goto LABEL_6; } v7 = "a member"; } if ( *(int *)(v6 + 116) <= 1 ) { CString = "Leave this group chat?\nYou are the last member, so the group chat will end."; goto LABEL_13; } v8 = "Leave this group chat?\n" "Ownership will pass to the member who\n" "has been here the longest.\n" "You can only rejoin if %s invites you back."; LABEL_11: v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v8, v7); CString = (const char *)cocos2d::CCString::getCString(v9); LABEL_13: memset(v14, 0, sizeof(v14)); v11 = strlen(CString); std::string::__init(v14, CString, v11); v12 = (char **)FLAlertLayer::create( (int)this + 716, (cocos2d::CCLabelBMFont *)"Leave Group Chat", (int)v14, (ButtonSprite *)"Back", (ButtonSprite *)"Leave", 380.0, 0, 0, 1.0); std::string::~string((int)v14); (*((void (__fastcall **)(char **, int))*v12 + 9))(v12, 3); ButtonSprite::updateBGImage(v12[121], "GJ_button_06.png"); return (*((int (__fastcall **)(char **))*v12 + 164))(v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source