//
// RateStarsLayer::onToggleCoins from 0x5692b8 to 0x569314 (92 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:30 +0000
//
int __fastcall RateStarsLayer::onToggleCoins(RateStarsLayer *this, cocos2d::CCObject *a2, int a3)
{
int v3; // r2
int v4; // r0
int (__fastcall *v5)(int, _DWORD *, int); // r5
_DWORD v7[3]; // [sp+0h] [bp-Ch] BYREF
v7[0] = this;
v7[1] = a2;
v7[2] = a3;
v3 = *((unsigned __int8 *)this + 548) ^ 1;
*((_BYTE *)this + 548) = v3;
v4 = *((_DWORD *)this + 138);
v5 = *(int (__fastcall **)(int, _DWORD *, int))(*(_DWORD *)v4 + 480);
if ( v3 )
{
v3 = 0xFFFF;
LOWORD(v7[0]) = -1;
BYTE2(v7[0]) = -1;
}
else
{
memset(v7, 50, 3);
}
return v5(v4, v7, v3);
}