//
// GJUINode::toggleModeB from 0x6efc14 to 0x6efc84 (112 bytes)
//
// 6 xrefs:
// > GJUINode::init @ 0x6efea8
// > GJUINode::loadFromConfig @ 0x6f0074
// > UIOptionsLayer::valueDidChange @ 0xa2e914
// > UIOptionsLayer::valueDidChange @ 0xa2e92c
// > TouchControlEditLayer::valueDidChange @ 0xd074a8
// > ??> @ 0x6a6f0
//
// 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 12:51:47 +0000
//
__int64 __fastcall GJUINode::toggleModeB(__int64 this, unsigned __int8 a2)
{
__int64 v2; // x3
__int64 v3; // x19
if ( *(_QWORD *)(this + 328) )
{
v2 = *(_QWORD *)(this + 320);
*(_BYTE *)(this + 381) = a2;
v3 = this;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, a2 ^ 1u);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v3 + 328) + 344LL))(
*(_QWORD *)(v3 + 328),
*(unsigned __int8 *)(v3 + 381) ^ 1u);
return GJUINode::updateButtonFrames((GJUINode *)v3);
}
return this;
}