// // GJRequestCell::loadFromScore from 0x745310 to 0x745674 (868 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x74d434 // > @ 0xf5d28 // // 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 12:52:46 +0000 // __int64 __fastcall GJRequestCell::loadFromScore(GJRequestCell *this, GJUserScore *a2) { cocos2d::CCObject *v4; // x0 _BOOL8 v5; // x1 __int64 v6; // x20 __int64 v7; // x0 GameLevelManager *v8; // x0 __int64 v9; // x0 const char *v10; // x1 __int64 v11; // x23 char v12; // w0 __int64 v13; // x0 _BOOL4 v14; // w21 char *v15; // x0 __int64 v16; // x24 __int64 v17; // x24 void (__fastcall *v18)(__int64, _BYTE *); // x25 const char *v19; // x1 __int64 v20; // x25 const char *v21; // x1 __int64 v22; // x24 CCMenuItemToggler *v23; // x0 __int64 v24; // x20 void (__fastcall *v25)(__int64, _BYTE *); // x24 _BYTE v27[8]; // [xsp+68h] [xbp+68h] BYREF __int64 v28; // [xsp+70h] [xbp+70h] BYREF const char *v29; // [xsp+78h] [xbp+78h] void *v30; // [xsp+80h] [xbp+80h] (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1); if ( a2 ) { cocos2d::CCObject::retain(a2); v4 = *((cocos2d::CCObject **)this + 69); if ( v4 ) cocos2d::CCObject::release(v4); *((_QWORD *)this + 69) = a2; v5 = *((_DWORD *)a2 + 172) == 4; *((_BYTE *)this + 568) = v5; v6 = cocos2d::CCMenu::create(nullptr, (cocos2d::CCMenuItem *)v5); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v6 + 184LL))(v6, &unk_155C608); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v6); GJCompactUserCell::buildUserRow( *((_QWORD *)this + 69), *((GJUserScore **)this + 67), v6, (__int64)this, (__int64)GJRequestCell::onViewProfile, 0, 0, 0, *((float *)this + 131) * 0.5); v7 = *((unsigned __int8 *)this + 568); if ( *((_BYTE *)this + 568) ) { v7 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 480LL))(*((_QWORD *)this + 67), 100); if ( v7 ) v7 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 528LL))(v7, 1); } v8 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v7); v9 = GameLevelManager::friendRequestFromAccountID(v8, *(_DWORD *)(*((_QWORD *)this + 69) + 376LL)); v11 = v9; if ( !v9 ) goto LABEL_12; v12 = *(_BYTE *)(v9 + 328); v28 = 0; v29 = nullptr; v30 = nullptr; if ( (v12 & 1) != 0 ) { std::string::__init(&v28, *(void **)(v11 + 344), *(_QWORD *)(v11 + 336)); } else { v13 = *(_QWORD *)(v11 + 328); v10 = *(const char **)(v11 + 336); v30 = *(void **)(v11 + 344); v28 = v13; v29 = v10; } if ( (v28 & 1) != 0 ) { v14 = v29 != nullptr; operator delete(v30); } else { v14 = (int)(unsigned __int8)v28 >> 1 != 0; } if ( v14 ) v15 = "accountBtn_messages_001.png"; else LABEL_12: v15 = "accountBtn_requests_001.png"; v16 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v15, v10); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 160LL))(v16, 0.55); v17 = CCMenuItemSpriteExtra::create(v16, 0, (__int64)this, (__int64)GJRequestCell::onViewFriendRequest, 0); CCMenuItemSpriteExtra::setSizeMult(v17, 1.6); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 456LL))(v6, v17); v18 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, *((float *)this + 130) - 52.0, *((float *)this + 131) * 0.5); v18(v17, v27); v20 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v19); v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v21); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 160LL))(v20, 0.7); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, 0.7); v23 = (CCMenuItemToggler *)CCMenuItemToggler::create(v22, v20, (__int64)this, (__int64)GJRequestCell::onToggle, 0); *((_QWORD *)this + 70) = v23; CCMenuItemToggler::toggle(v23, *(_BYTE *)(*((_QWORD *)this + 69) + 725LL)); CCMenuItemToggler::setSizeMult(*((CCMenuItemToggler **)this + 70), 1.3); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 456LL))(v6, *((_QWORD *)this + 70)); v24 = *((_QWORD *)this + 70); v25 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v24 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, *((float *)this + 130) - 22.0, *((float *)this + 131) * 0.5); v25(v24, v27); if ( v11 && *(_BYTE *)(v11 + 377) ) (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 70) + 344LL))(*((_QWORD *)this + 70), 0); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source