//
// SetupTriggerPopup::toggleBG from 0x67687c to 0x6768bc (64 bytes)
//
// 3 xrefs:
// > UIPOptionsLayer::init @ 0x5d8440
// > UIOptionsLayer::init @ 0x5dc75c
// > TouchControlEditLayer::init @ 0x7a4262
//
// 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:55:56 +0000
//
int __fastcall SetupTriggerPopup::toggleBG(SetupTriggerPopup *this, int a2)
{
int v4; // r0
int result; // r0
v4 = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 240))(*((_DWORD *)this + 115), 1);
if ( v4 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 172))(v4, a2);
result = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 240))(*((_DWORD *)this + 115), 3);
if ( result )
return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 172))(result, a2);
return result;
}