// // ThreadOptionsPopup::onLeave from 0xc6bde8 to 0xc6bf90 (424 bytes) // // 3 xrefs: // > @ 0xc56c8 // > ThreadOptionsPopup::init @ 0xc7f6c4 // > @ 0x1545c60 // // 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 13:05:27 +0000 // __int64 __fastcall ThreadOptionsPopup::onLeave(ThreadOptionsPopup *this, cocos2d::CCObject *a2) { int v3; // w19 __int64 v4; // x0 __int64 v5; // x2 _BOOL4 v6; // w0 const char *v7; // x1 cocos2d::CCString *v8; // x0 const char *CString; // x1 size_t v10; // x0 ButtonSprite **v11; // x19 cocos2d::CCString *v13; // x0 char *v14; // [xsp+38h] [xbp+38h] __int64 v15[2]; // [xsp+40h] [xbp+40h] BYREF void *v16; // [xsp+50h] [xbp+50h] v3 = *(_DWORD *)(*((_QWORD *)this + 129) + 200LL); v4 = GJAccountManager::sharedState(_stack_chk_guard); v5 = *((_QWORD *)this + 129); v6 = v3 == *(_DWORD *)(v4 + 352) - *(_DWORD *)(v4 + 356); if ( *(_DWORD *)(v5 + 208) != 1 ) { v7 = "a member"; if ( v6 ) goto LABEL_3; LABEL_11: v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Leave this group chat?\n" "You can only rejoin if %s invites you back.", v7); CString = (const char *)cocos2d::CCString::getCString(v13); goto LABEL_5; } if ( !v6 ) { v7 = "the owner"; goto LABEL_11; } v7 = "the new owner"; LABEL_3: if ( *(int *)(v5 + 168) <= 1 ) { CString = "Leave this group chat?\nYou are the last member, so the group chat will end."; } else { v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"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.", v7); CString = (const char *)cocos2d::CCString::getCString(v8); } LABEL_5: v14 = (char *)CString; v15[0] = 0; v15[1] = 0; v16 = nullptr; v10 = strlen(CString); std::string::__init(v15, v14, v10); v11 = (ButtonSprite **)FLAlertLayer::create( (__int64)this + 1024, (cocos2d::CCLabelBMFont *)"Leave Group Chat", (char *)v15, (ButtonSprite *)"Back", (ButtonSprite *)"Leave", 0, 380.0, 0.0, 1.0); if ( (v15[0] & 1) != 0 ) operator delete(v16); (*((void (__fastcall **)(ButtonSprite **, __int64))*v11 + 9))(v11, 3); ButtonSprite::updateBGImage(v11[77], "GJ_button_06.png"); (*((void (__fastcall **)(ButtonSprite **))*v11 + 164))(v11); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source