// // GJRequestCell::loadFromScore from 0x100231d80 to 0x1002320d3 (851 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x10022837c // // This function is hookable on this platform (idp: pc, 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:27:11 +0000 // __int64 __fastcall GJRequestCell::loadFromScore(__int64 a1, __int64 a2) { __int64 result; // rax int v4; // edx int v5; // ecx int v6; // r8d int v7; // r9d __int64 v8; // rdi __int64 v9; // r14 double v10; // xmm0_8 __int64 v11; // rax __int64 v12; // rax __int64 v13; // rax __int64 v14; // r15 unsigned int v15; // eax __int64 v16; // rcx const char *v17; // rdi __int64 v18; // r12 __int64 v19; // r12 __int64 v20; // r12 __int64 v21; // r13 char *v22; // rax __int64 v23; // r14 __int128 v24; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1); if ( !a2 ) return result; cocos2d::CCObject::retain(a2); v8 = *(_QWORD *)(a1 + 552); if ( v8 ) cocos2d::CCObject::release(v8); *(_QWORD *)(a1 + 552) = a2; *(_BYTE *)(a1 + 568) = *(_DWORD *)(a2 + 688) == 4; v9 = sub_1008735E0(0, 1, v4, v5, v6, v7); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v9 + 184LL))(v9, &unk_100BE17E0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v9); *(_QWORD *)&v10 = *(unsigned int *)(a1 + 524); *(float *)&v10 = *(float *)&v10 * 0.5; GJCompactUserCell::buildUserRow( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 536), v9, a1, (unsigned int)GJRequestCell::onViewProfile, 0, 0, 0); if ( *(_BYTE *)(a1 + 568) == 1 ) { v11 = (*(__int64 (__fastcall **)(_QWORD, __int64, float))(**(_QWORD **)(a1 + 536) + 480LL))( *(_QWORD *)(a1 + 536), 100, *(float *)&v10); if ( v11 ) v10 = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 528LL))(v11, 1); } v12 = GameLevelManager::sharedState(v10); v13 = GameLevelManager::friendRequestFromAccountID(v12, *(unsigned int *)(*(_QWORD *)(a1 + 552) + 376LL)); v14 = v13; if ( v13 ) { if ( (*(_BYTE *)(v13 + 328) & 1) != 0 ) { sub_10001AD30(&v24, *(const void **)(v13 + 344), *(_QWORD *)(v13 + 336)); v15 = (unsigned __int8)v24; if ( (v24 & 1) == 0 ) goto LABEL_10; } else { __p = *(void **)(v13 + 344); v24 = *(_OWORD *)(v13 + 328); v15 = (unsigned __int8)v24; if ( (v24 & 1) == 0 ) { LABEL_10: v16 = v15 >> 1; LABEL_14: v17 = "accountBtn_messages_001.png"; if ( !v16 ) v17 = "accountBtn_requests_001.png"; if ( (v15 & 1) != 0 ) operator delete(__p); goto LABEL_18; } } v16 = *((_QWORD *)&v24 + 1); goto LABEL_14; } v17 = "accountBtn_requests_001.png"; LABEL_18: v18 = cocos2d::CCSprite::createWithSpriteFrameName(v17); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.55000001); v19 = CCMenuItemSpriteExtra::create(v18, 0, a1, GJRequestCell::onViewFriendRequest, 0); CCMenuItemSpriteExtra::setSizeMult(v19, 1.6); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 456LL))(v9, v19); sub_100278250(&v24, *(float *)(a1 + 520) + -52.0, *(float *)(a1 + 524) * 0.5); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v19 + 184LL))(v19, &v24); v20 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v21 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 160LL))(v20, 0.69999999); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 160LL))(v21, 0.69999999); v22 = CCMenuItemToggler::create(v21, v20, a1, (__int64)GJRequestCell::onToggle, 0); *(_QWORD *)(a1 + 560) = v22; CCMenuItemToggler::toggle((__int64)v22, *(unsigned __int8 *)(*(_QWORD *)(a1 + 552) + 725LL)); CCMenuItemToggler::setSizeMult(*(_QWORD *)(a1 + 560), 1.3); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 456LL))(v9, *(_QWORD *)(a1 + 560)); v23 = *(_QWORD *)(a1 + 560); sub_100278250(&v24, *(float *)(a1 + 520) + -22.0, 0.5 * *(float *)(a1 + 524)); result = (*(__int64 (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v23 + 184LL))(v23, &v24); if ( v14 ) { if ( *(_BYTE *)(v14 + 377) == 1 ) return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 560) + 344LL))(*(_QWORD *)(a1 + 560), 0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source