// // SimplePlayer::updateColors from 0x100357c90 to 0x100357f0b (635 bytes) // // 21 xrefs: // > GJBaseGameLayer::playExitDualEffect @ 0x1001074e4 // > CommentCell::loadFromComment @ 0x10022d8c3 // > GJScoreCell::loadFromScore @ 0x10022fa29 // > GJLevelScoreCell::loadFromScore @ 0x100230fbb // > GJThreadCell::loadFromThread @ 0x100232cdc // > GJCompactUserCell::buildUserRow @ 0x10023f518 // > MapSelectLayer::init @ 0x10025227b // > GJGarageLayer::updatePlayerColors @ 0x1003542df // > GJGarageLayer::updatePlayerColors @ 0x10035434d // > GJGarageLayer::onSelect @ 0x100357680 // > GJGarageLayer::toggleGlow @ 0x100358128 // > SimplePlayer::setColors @ 0x100358207 // > SimplePlayer::setColor @ 0x100359e12 // > sub_100359E20 @ 0x100359e49 // > SimplePlayer::setSecondColor @ 0x100359e72 // > GJItemIcon::init @ 0x10035a84f // > GJItemIcon::darkenStoreItem @ 0x10035acd4 // > CharacterColorPage::updateIconColors @ 0x10073d14b // > ProfilePage::loadPageFromUserInfo @ 0x1008a0320 // > ThreadViewPopup::mountVirtualRow @ 0x1009389dc // > sub_10094E620 @ 0x10094e6f2 // // 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:28:52 +0000 // __int64 __fastcall SimplePlayer::updateColors(__int64 a1) { unsigned __int8 *v2; // rax unsigned __int8 v3; // r12 unsigned __int8 v4; // r15 unsigned __int8 v5; // r14 unsigned __int8 *v6; // rax unsigned __int8 v7; // dl unsigned __int8 v8; // si unsigned __int8 v9; // r13 char v10; // cl unsigned __int8 v11; // r15 unsigned __int8 v12; // r14 bool v13; // al char v14; // cl bool v15; // r12 __int64 v16; // rax __int64 v17; // rdi unsigned __int8 v18; // al __int64 v19; // rsi __int64 v20; // rdx __int64 v21; // rdi __int64 v22; // rcx __int64 result; // rax __int64 v24; // rdi __int64 v25; // rdi __int64 v26; // rdi __int64 v27; // rdi unsigned __int8 v28; // [rsp+8h] [rbp-38h] unsigned __int8 v29; // [rsp+Ch] [rbp-34h] unsigned __int8 v30; // [rsp+13h] [rbp-2Dh] unsigned __int16 v31; // [rsp+14h] [rbp-2Ch] BYREF unsigned __int8 v32; // [rsp+16h] [rbp-2Ah] v2 = (unsigned __int8 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 600) + 944LL))(*(_QWORD *)(a1 + 600)); v3 = *v2; v4 = v2[1]; v5 = v2[2]; v6 = (unsigned __int8 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 608) + 944LL))(*(_QWORD *)(a1 + 608)); v7 = *v6; v8 = v6[1]; v9 = v6[2]; v29 = v3; v28 = v4; v10 = v4 | v3; v11 = v5; v12 = v8; v13 = (v9 | (unsigned __int8)(v8 | *v6)) == 0; v14 = v11 | v10; v15 = v14 == 0; v30 = v7; if ( v14 && v9 | (unsigned __int8)(v8 | v7) || (v9 | (unsigned __int8)(v8 | v7)) != 0 && v14 == 0 ) { LOBYTE(v31) = v7; HIBYTE(v31) = v8; v32 = v9; } else if ( v14 == 0 || !v13 ) { v32 = -1; v31 = -1; } else { LOBYTE(v31) = v29; HIBYTE(v31) = v28; v32 = v11; } v16 = GameToolbox::strongColor((v32 << 16) | (unsigned int)v31); v31 = v16; v32 = BYTE2(v16); if ( *(_BYTE *)(a1 + 668) == 1 ) { v32 = *(_BYTE *)(a1 + 671); v31 = *(_WORD *)(a1 + 669); } (*(void (__fastcall **)(_QWORD, unsigned __int16 *))(**(_QWORD **)(a1 + 624) + 960LL))(*(_QWORD *)(a1 + 624), &v31); v17 = *(_QWORD *)(a1 + 624); v18 = 1; if ( !v15 ) v18 = *(_BYTE *)(a1 + 660); v19 = v18; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v17 + 344LL))(v17, v18); v21 = *(_QWORD *)(a1 + 640); v22 = v29; result = v9; if ( v21 ) { GJRobotSprite::updateColor01(v21, (v11 << 16) | v29 | (v28 << 8)); GJRobotSprite::updateColor02(*(_QWORD *)(a1 + 640), (v9 << 16) | v30 | (v12 << 8)); v19 = (v32 << 16) | (unsigned int)v31; result = GJRobotSprite::updateGlowColor(*(_QWORD *)(a1 + 640), v19, 1); v22 = v29; } v24 = *(_QWORD *)(a1 + 648); if ( v24 ) { GJRobotSprite::updateColor01(v24, (v11 << 16) | (unsigned int)v22 | (v28 << 8)); GJRobotSprite::updateColor02(*(_QWORD *)(a1 + 648), (v9 << 16) | v30 | (v12 << 8)); v19 = (v32 << 16) | (unsigned int)v31; result = GJRobotSprite::updateGlowColor(*(_QWORD *)(a1 + 648), v19, 1); } if ( v15 ) { v25 = *(_QWORD *)(a1 + 640); LABEL_18: if ( v25 ) result = GJRobotSprite::showGlow(v25, v19, v20, v22); v26 = *(_QWORD *)(a1 + 648); if ( v26 ) return GJRobotSprite::showGlow(v26, v19, v20, v22); return result; } v25 = *(_QWORD *)(a1 + 640); if ( *(_BYTE *)(a1 + 660) == 1 ) goto LABEL_18; if ( v25 ) result = GJRobotSprite::hideGlow(v25, v19, v20, v22); v27 = *(_QWORD *)(a1 + 648); if ( v27 ) return GJRobotSprite::hideGlow(v27, v19, v20, v22); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source