//
// SetupTriggerPopup::toggleBG from 0xb1af60 to 0xb1afd8 (120 bytes)
//
// 4 xrefs:
// > UIPOptionsLayer::init @ 0xa25e40
// > UIOptionsLayer::init @ 0xa2d0f8
// > TouchControlEditLayer::init @ 0xd06934
// > ??> @ 0xaefe8
//
// 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 13:01:34 +0000
//
__int64 __fastcall SetupTriggerPopup::toggleBG(SetupTriggerPopup *this, unsigned __int8 a2)
{
unsigned int v3; // w20
__int64 v4; // x0
__int64 result; // x0
v3 = a2;
v4 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 480LL))(*((_QWORD *)this + 73), 1);
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, v3);
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 480LL))(*((_QWORD *)this + 73), 3);
if ( result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, v3);
return result;
}