//
// sub_1000534B8 from 0x1000534b8 to 0x100053518 (96 bytes)
//
// 3 xrefs:
// > sub_1000514CC @ 0x100051528
// > GJUINode::init @ 0x1000532f8
// > TouchControlEditLayer::valueDidChange @ 0x10052d928
//
// 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 10:57:44 +0000
//
__int64 __fastcall sub_1000534B8(__int64 result, int a2)
{
__int64 v2; // x19
if ( *(_QWORD *)(result + 328) )
{
v2 = result;
*(_BYTE *)(result + 381) = a2;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(result + 320) + 344LL))(*(_QWORD *)(result + 320), a2 ^ 1u);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v2 + 328) + 344LL))(
*(_QWORD *)(v2 + 328),
(*(_BYTE *)(v2 + 381) & 1) == 0);
return sub_100053690(v2);
}
return result;
}