// // cocos2d::CCDirector::setNextScene from 0xd49ea0 to 0xd4a014 (372 bytes) // // 2 xrefs: // > cocos2d::CCDirector::drawScene @ 0xd4a214 // > @ 0xe8fd8 // // 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:07:37 +0000 // __int64 __fastcall cocos2d::CCDirector::setNextScene(cocos2d::CCDirector *this) { _DWORD *v2; // x20 const void *v3; // x0 int v4; // w22 const void *v5; // x21 __int64 result; // x0 __int64 v7; // x0 v2 = *((_DWORD **)this + 34); if ( v2 ) { if ( _dynamic_cast( *((const void **)this + 34), (const struct __class_type_info *)&`typeinfo for'cocos2d::CCScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTransitionScene, 0) ) { v3 = *((const void **)this + 35); v4 = 1; if ( v3 ) { v4 = 1; if ( _dynamic_cast( v3, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTransitionScene, 0) ) { goto LABEL_5; } } goto LABEL_13; } v5 = *((const void **)this + 35); if ( !v5 ) { v4 = 0; LABEL_13: (*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v2 + 728LL))(v2); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 34) + 720LL))(*((_QWORD *)this + 34)); if ( *((_BYTE *)this + 288) ) { v7 = *((_QWORD *)this + 34); if ( !v7 ) goto LABEL_6; (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 736LL))(v7); } v2 = *((_DWORD **)this + 34); if ( !v2 ) goto LABEL_6; LABEL_5: cocos2d::CCObject::release(v2); LABEL_6: v5 = *((const void **)this + 35); goto LABEL_7; } } else { v5 = *((const void **)this + 35); if ( !v5 ) { v4 = 0; goto LABEL_7; } } v4 = 0; if ( !_dynamic_cast( v5, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCScene, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTransitionScene, 0) ) { if ( v2 ) goto LABEL_13; LABEL_7: *((_QWORD *)this + 34) = v5; result = cocos2d::CCObject::retain((__int64)v5); *((_QWORD *)this + 35) = 0; if ( v4 ) return result; goto LABEL_8; } if ( v2 ) goto LABEL_5; *((_QWORD *)this + 34) = v5; cocos2d::CCObject::retain((__int64)v5); *((_QWORD *)this + 35) = 0; LABEL_8: result = *((_QWORD *)this + 34); if ( result ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)result + 704LL))(result); return (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 34) + 712LL))(*((_QWORD *)this + 34)); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source