//
// RateStarsModLayer::onToggleCoins from 0xcfc670 to 0xcfc6fc (140 bytes)
//
// 3 xrefs:
// > ??> @ 0xb64a0
// > RateStarsModLayer::init @ 0xcfd298
// > ??> @ 0x15453e0
//
// This function is hookable on this platform (idp: arm, 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 13:06:51 +0000
//
__int64 __fastcall RateStarsModLayer::onToggleCoins(RateStarsModLayer *this, cocos2d::CCObject *a2)
{
__int64 v2; // x2
int v3; // w1
void (__fastcall *v4)(__int64, _BYTE *); // x3
_BYTE v6[8]; // [xsp+20h] [xbp+20h] BYREF
v2 = *((_QWORD *)this + 91);
v3 = *((unsigned __int8 *)this + 720) ^ 1;
*((_BYTE *)this + 720) ^= 1u;
v4 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v2 + 960LL);
if ( v3 )
{
v6[0] = -1;
v6[1] = -1;
v6[2] = -1;
}
else
{
memset(v6, 50, 3);
}
v4(v2, v6);
return _stack_chk_guard;
}