//
// cocos2d::CCScene::init from 0x180053990 to 0x1800539d7 (71 bytes)
//
// 42 xrefs:
// > cocos2d::CCTransitionScene::initWithDuration @ 0x18005682a
// > ??> @ 0x1800f4b20
// > ??> @ 0x1800f4eb8
// > ??> @ 0x1800f5248
// > ??> @ 0x1800f55e0
// > ??> @ 0x1800f5970
// > ??> @ 0x1800f5d00
// > ??> @ 0x1800f60b0
// > ??> @ 0x1800f6460
// > ??> @ 0x1800f6810
// > ??> @ 0x1800f6bc0
// > ??> @ 0x1800f6f70
// > ??> @ 0x1800f7320
// > ??> @ 0x1800f76d0
// > ??> @ 0x1800f7a80
// > ??> @ 0x1800f7e20
// > ??> @ 0x1800f81b8
// > ??> @ 0x1800f8550
// > ??> @ 0x1800f88e8
// > ??> @ 0x1800f8c80
// > ??> @ 0x1800f9018
// > ??> @ 0x1800f93b0
// > ??> @ 0x1800f9748
// > ??> @ 0x1800f9ad8
// > ??> @ 0x1800f9e78
// > ??> @ 0x1800fa220
// > ??> @ 0x1800fa5c8
// > ??> @ 0x1800fa970
// > ??> @ 0x1800fad18
// > ??> @ 0x1800fb0c0
// > ??> @ 0x1800fb480
// > ??> @ 0x1800fb818
// > ??> @ 0x1800fbbb8
// > ??> @ 0x1800fbf58
// > ??> @ 0x1800fc2f8
// > ??> @ 0x1800fc698
// > ??> @ 0x1800fca38
// > ??> @ 0x1800fcdd8
// > ??> @ 0x180141704
// > ??> @ 0x180141714
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc568
//
// This function is hookable on this platform (idp: pc, 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 11:21:46 +0000
//
bool __fastcall cocos2d::CCScene::init(cocos2d::CCScene *this)
{
struct cocos2d::CCDirector *v2; // rax
__int64 v3; // rbx
__int64 v4; // rax
char v6; // [rsp+38h] [rbp+10h] BYREF
v2 = cocos2d::CCDirector::sharedDirector();
if ( v2 )
{
v3 = *(_QWORD *)this;
cocos2d::CCDirector::getWinSize(v2, &v6);
(*(void (__fastcall **)(cocos2d::CCScene *, __int64))(v3 + 312))(this, v4);
LOBYTE(v2) = 1;
}
return (char)v2;
}