// // GJColorSetupLayer::updateSpriteColor from 0x14035f500 to 0x14035f66a (362 bytes) // // 2 xrefs: // > GJColorSetupLayer::updateSpriteColors @ 0x14035f4a9 // > @ 0x14092129c // // 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 11:30:52 +0000 // __int64 __fastcall GJColorSetupLayer::updateSpriteColor(__int64 a1, __int64 a2, __int64 a3, int a4) { __int64 v5; // rdi void (__fastcall **v6)(__int64, const char *); // rbx cocos2d::CCString *v9; // rax const char *CString; // rax int v11; // r8d __int64 v12; // rcx __int64 ColorAction; // rax __int64 v14; // rbx bool v15; // zf __int64 result; // rax __int64 v17; // rcx __int16 v18; // [rsp+58h] [rbp+20h] BYREF char v19; // [rsp+5Ah] [rbp+22h] v5 = a3 + 360; v6 = *(void (__fastcall ***)(__int64, const char *))(a3 + 360); v9 = cocos2d::CCString::createWithFormat("Col %i", a4); CString = cocos2d::CCString::getCString(v9); (*v6)(v5, CString); v11 = a4; if ( a4 < 0 ) v11 = 0; if ( v11 > 1101 ) v11 = 1101; v12 = *(_QWORD *)(*(_QWORD *)(a1 + 680) + 320LL); if ( *(_QWORD *)(*(_QWORD *)(v12 + 736) + 8LL * v11) && (ColorAction = GJEffectManager::getColorAction(v12, (unsigned int)a4), (v14 = ColorAction) != 0) ) { ColorChannelSprite::updateCopyLabel( a2, *(unsigned int *)(ColorAction + 120), *(unsigned __int8 *)(ColorAction + 126)); ColorChannelSprite::updateOpacity(a2); ColorChannelSprite::updateBlending(a2, *(unsigned __int8 *)(v14 + 84)); v15 = *(_DWORD *)(v14 + 120) == 0; v18 = *(_WORD *)(v14 + 72); v19 = *(_BYTE *)(v14 + 74); if ( !v15 && !*(_BYTE *)(v14 + 126) ) { v18 = -22874; v19 = -90; } return (**(__int64 (__fastcall ***)(__int64, __int16 *))(a2 + 320))(a2 + 320, &v18); } else { (**(void (__fastcall ***)(__int64, __int16 *))(a2 + 320))(a2 + 320, &word_140703460); v17 = *(_QWORD *)(a2 + 600); if ( v17 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v17 + 336LL))(v17, 0); result = ColorChannelSprite::updateOpacity(a2); if ( *(_QWORD *)(a2 + 616) ) return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a2 + 616) + 336LL))(*(_QWORD *)(a2 + 616), 0); } return result; }