//
// ShaderLayer::resetTargetContainer from 0x683ff4 to 0x684048 (84 bytes)
//
// 1 xrefs:
// > ShaderLayer::visit @ 0x685554
//
// 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:56:03 +0000
//
int __fastcall ShaderLayer::resetTargetContainer(int this)
{
_DWORD *v1; // r5
int v2; // r3
int v3; // r4
v1 = (_DWORD *)this;
v2 = *(_DWORD *)(this + 976);
if ( v2 )
{
v3 = *(_DWORD *)(v2 + 2428);
if ( *(int *)(this + 940) <= 1 )
v3 = *(_DWORD *)(v2 + 2424);
(*(void (__fastcall **)(int, int, _DWORD))(*(_DWORD *)v3 + 92))(v3, this + 980, *(_DWORD *)(v2 + 2424));
(*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 80))(v3, 1065353216);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v3 + 180))(v3, v1[247]);
return (*(int (__fastcall **)(_DWORD *, _DWORD))(*v1 + 180))(v1, 0);
}
return this;
}