//
// ShaderLayer::resetTargetContainer from 0xb2c954 to 0xb2c9dc (136 bytes)
//
// 2 xrefs:
// > ShaderLayer::visit @ 0xb2e594
// > ??> @ 0x8cf20
//
// 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:41 +0000
//
__int64 __fastcall ShaderLayer::resetTargetContainer(__int64 this)
{
__int64 v1; // x2
float *v2; // x19
__int64 v3; // x20
v1 = *(_QWORD *)(this + 1128);
if ( v1 )
{
v2 = (float *)this;
v3 = *(_QWORD *)(v1 + 3904);
if ( *(int *)(this + 1068) <= 1 )
v3 = *(_QWORD *)(v1 + 3896);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 184LL))(v3, this + 1136);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 160LL))(v3, 1.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 360LL))(v3, v2[286]);
return (*(__int64 (__fastcall **)(float *, float))(*(_QWORD *)v2 + 360LL))(v2, 0.0);
}
return this;
}