//
// cocos2d::CCDirector::checkSceneReference from 0x7ca950 to 0x7ca96c (28 bytes)
//
// 4 xrefs:
// > cocos2d::CCDirector::replaceScene @ 0x7ca9ae
// > cocos2d::CCDirector::popScene @ 0x7caa2e
// > cocos2d::CCDirector::popSceneWithTransition @ 0x7caa76
// > cocos2d::CCDirector::popToSceneStackLevel @ 0x7cab26
//
// 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 12:00:30 +0000
//
int __fastcall cocos2d::CCDirector::checkSceneReference(int this)
{
int v1; // r4
v1 = this;
if ( *(_DWORD *)(this + 88) )
{
this = cocos2d::CCArray::lastObject(*(cocos2d::CCArray **)(this + 232));
if ( *(_DWORD *)(v1 + 88) == this )
*(_DWORD *)(v1 + 88) = 0;
}
return this;
}