//
// GJUINode::toggleModeB from 0x3fd35e to 0x3fd39c (62 bytes)
//
// 4 xrefs:
// > GJUINode::init @ 0x3fd508
// > GJUINode::loadFromConfig @ 0x3fd64e
// > UIOptionsLayer::valueDidChange @ 0x5dd902
// > TouchControlEditLayer::valueDidChange @ 0x7a4e82
//
// 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:47:21 +0000
//
cocos2d::CCSpriteFrameCache *__fastcall GJUINode::toggleModeB(cocos2d::CCSpriteFrameCache *this, int a2)
{
cocos2d::CCSpriteFrameCache *v2; // r4
v2 = this;
if ( *((_DWORD *)this + 67) )
{
*((_BYTE *)this + 317) = a2;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 66) + 172))(*((_DWORD *)this + 66), a2 ^ 1);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)v2 + 67) + 172))(
*((_DWORD *)v2 + 67),
*((unsigned __int8 *)v2 + 317) ^ 1);
return GJUINode::updateButtonFrames(v2);
}
return this;
}