// // GJRequestCell::loadFromScore from 0x42e804 to 0x42ea50 (588 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x434206 // // 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:48:12 +0000 // int __fastcall GJRequestCell::loadFromScore(GJRequestCell *this, GJUserScore *a2) { int result; // r0 cocos2d::CCMenuItem *v5; // r1 cocos2d::CCObject *v6; // r0 int v7; // r5 float v8; // s15 GameLevelManager *v9; // r0 GameLevelManager *v10; // r0 int v11; // r0 const char *v12; // r1 int v13; // r8 int v14; // r7 char *v15; // r0 int v16; // r9 int v17; // r10 void (__fastcall *v18)(int, _DWORD *); // r11 const char *v19; // r1 int v20; // r9 const char *v21; // r1 int v22; // r10 cocos2d::CCNodeRGBA *v23; // r0 int v24; // r3 int v25; // r9 int (__fastcall *v26)(int, _BYTE *); // r10 _BYTE v27[8]; // [sp+18h] [bp-34h] BYREF ProfilePage *(__fastcall *v28)(ProfilePage *, cocos2d::CCObject *, bool); // [sp+20h] [bp-2Ch] int v29; // [sp+24h] [bp-28h] GameLevelManager *(__fastcall *v30)(GameLevelManager *, cocos2d::CCObject *); // [sp+28h] [bp-24h] int v31; // [sp+2Ch] [bp-20h] _DWORD v32[2]; // [sp+30h] [bp-1Ch] BYREF int v33[3]; // [sp+38h] [bp-14h] BYREF result = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1); if ( a2 ) { cocos2d::CCObject::retain(a2); v6 = *((cocos2d::CCObject **)this + 105); if ( v6 ) cocos2d::CCObject::release(v6); *((_DWORD *)this + 105) = a2; *((_BYTE *)this + 428) = *((_DWORD *)a2 + 130) == 4; v7 = cocos2d::CCMenu::create(nullptr, v5); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v7 + 92))(v7, &unk_D2B804); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v7); v8 = *((float *)this + 101); v28 = GJRequestCell::onViewProfile; v29 = 0; v9 = GJCompactUserCell::buildUserRow( *((_DWORD *)this + 105), *((GJUserScore **)this + 103), v7, (int)this, (int)GJRequestCell::onViewProfile, 0, v8 * 0.5, 0, 0); if ( *((_BYTE *)this + 428) ) { v9 = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 240))( *((_DWORD *)this + 103), 100); if ( v9 ) v9 = (GameLevelManager *)(*(int (__fastcall **)(GameLevelManager *, int))(*(_DWORD *)v9 + 264))(v9, 1); } v10 = (GameLevelManager *)GameLevelManager::sharedState(v9); v11 = GameLevelManager::friendRequestFromAccountID(v10, *(_DWORD *)(*((_DWORD *)this + 105) + 296)); v13 = v11; if ( v11 ) { std::string::basic_string(v33, v11 + 276); if ( (v33[0] & 1) != 0 ) v14 = v33[1]; else v14 = (int)LOBYTE(v33[0]) >> 1; std::string::~string((int)v33); if ( v14 ) v15 = "accountBtn_messages_001.png"; else v15 = "accountBtn_requests_001.png"; } else { v15 = "accountBtn_requests_001.png"; } v16 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v15, v12); (*(void (__fastcall **)(int, int))(*(_DWORD *)v16 + 80))(v16, 1057803469); v30 = GJRequestCell::onViewFriendRequest; v31 = 0; v17 = CCMenuItemSpriteExtra::create(v16, 0, (int)this, (int)GJRequestCell::onViewFriendRequest, 0); CCMenuItemSpriteExtra::setSizeMult(v17, 1.6); (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 228))(v7, v17); v18 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v17 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, *((float *)this + 100) - 52.0, *((float *)this + 101) * 0.5); v18(v17, v32); v20 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v19); v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v21); (*(void (__fastcall **)(int, int))(*(_DWORD *)v20 + 80))(v20, 1060320051); (*(void (__fastcall **)(int, int))(*(_DWORD *)v22 + 80))(v22, 1060320051); v32[0] = GJRequestCell::onToggle; v32[1] = 0; v23 = CCMenuItemToggler::create(v22, v20, (int)this, (int)GJRequestCell::onToggle, 0); v24 = *((_DWORD *)this + 105); *((_DWORD *)this + 106) = v23; CCMenuItemToggler::toggle(v23, *(unsigned __int8 *)(v24 + 557)); CCMenuItemToggler::setSizeMult(*((CCMenuItemToggler **)this + 106), 1.3); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v7 + 228))(v7, *((_DWORD *)this + 106)); v25 = *((_DWORD *)this + 106); v26 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v25 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, *((float *)this + 100) - 22.0, *((float *)this + 101) * 0.5); result = v26(v25, v27); if ( v13 ) { if ( *(_BYTE *)(v13 + 301) ) return (*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 106) + 172))(*((_DWORD *)this + 106), 0); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source