//
// RewardUnlockLayer::dRewardUnlockLayer from 0x140561b40 to 0x140561c25 (229 bytes)
//
// 3 xrefs:
// > sub_140567E04 @ 0x140567e0b
// > ??> @ 0x1407db8f8
// > ??> @ 0x14092c48c
//
// 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:15 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall RewardUnlockLayer::dRewardUnlockLayer(_QWORD *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
cocos2d::CCObject *v5; // rcx
*Block = &RewardUnlockLayer::`vftable';
Block[40] = &RewardUnlockLayer::`vftable';
Block[41] = &RewardUnlockLayer::`vftable';
Block[42] = &RewardUnlockLayer::`vftable';
Block[43] = &RewardUnlockLayer::`vftable';
Block[44] = &RewardUnlockLayer::`vftable';
Block[51] = &RewardUnlockLayer::`vftable';
Block[54] = &RewardUnlockLayer::`vftable';
Block[68] = &RewardUnlockLayer::`vftable';
Block[83] = &RewardUnlockLayer::`vftable';
v4 = (cocos2d::CCObject *)Block[85];
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = (cocos2d::CCObject *)Block[88];
if ( v5 )
cocos2d::CCObject::release(v5);
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}