//
// GJRateLevelLayer::onToggleCoins from 0x5646a0 to 0x5646fa (90 bytes)
//
// 1 xrefs:
// > GJRateLevelLayer::init @ 0x565d38
//
// 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:27 +0000
//
int __fastcall GJRateLevelLayer::onToggleCoins(GJRateLevelLayer *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 + 748) ^ 1;
*((_BYTE *)this + 748) = v3;
v4 = *((_DWORD *)this + 188);
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);
}