//
// sub_140567E20 from 0x140567e20 to 0x140567ed8 (184 bytes)
//
// 3 xrefs:
// > sub_1405723B8 @ 0x1405723bf
// > ??> @ 0x1407dd510
// > ??> @ 0x14092c5a0
//
// 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:34:17 +0000
//
cocos2d::CCLayer *__fastcall sub_140567E20(cocos2d::CCLayer *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
*(_QWORD *)Block = &SecretRewardsLayer::`vftable';
*((_QWORD *)Block + 40) = &SecretRewardsLayer::`vftable';
*((_QWORD *)Block + 41) = &SecretRewardsLayer::`vftable';
*((_QWORD *)Block + 42) = &SecretRewardsLayer::`vftable';
*((_QWORD *)Block + 43) = &SecretRewardsLayer::`vftable';
*((_QWORD *)Block + 44) = &SecretRewardsLayer::`vftable';
*((_QWORD *)Block + 51) = &SecretRewardsLayer::`vftable';
*((_QWORD *)Block + 52) = &SecretRewardsLayer::`vftable';
v4 = *((cocos2d::CCObject **)Block + 58);
if ( v4 )
cocos2d::CCObject::release(v4);
cocos2d::CCLayer::~CCLayer(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}