//
// GJBaseGameLayer::togglePlayerStreakBlend from 0x10011a310 to 0x10011a35a (74 bytes)
//
// 1 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x10008b31d
//
// 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:24:35 +0000
//
unsigned __int8 __fastcall GJBaseGameLayer::togglePlayerStreakBlend(__int64 a1, unsigned __int8 a2, unsigned __int8 a3)
{
unsigned __int8 result; // al
result = *(_BYTE *)(a1 + 812) == a2;
if ( ((a3 ^ 1) & result) == 0 )
{
*(_BYTE *)(a1 + 812) = a2;
PlayerObject::updateStreakBlend(*(_QWORD *)(a1 + 3256), a2);
return PlayerObject::updateStreakBlend(*(_QWORD *)(a1 + 3264), a2);
}
return result;
}