//
// ShaderLayer::resetTargetContainer from 0x100271b88 to 0x100271c14 (140 bytes)
//
// 1 xrefs:
// > ShaderLayer::visit @ 0x100273388
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall ShaderLayer::resetTargetContainer(ShaderLayer *a1)
{
GJBaseGameLayer *m_gameLayer; // x8
__int64 v3; // x9
__int64 v4; // x20
m_gameLayer = a1->m_gameLayer;
if ( m_gameLayer )
{
v3 = 3784;
if ( a1->m_state.m_minBlendingLayer > 1 )
v3 = 3792;
v4 = *(__int64 *)((char *)&m_gameLayer->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v3);
(*(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v4 + 184LL))(v4, &a1->m_savedCameraPosition);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 160LL))(v4, 1.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 344LL))(v4, a1->m_savedCameraRotation);
((void (__fastcall *)(ShaderLayer *, float))a1->setRotation)(a1, 0.0);
}
}