//
// RewardUnlockLayer::create from 0xa89d1c to 0xa89ef0 (468 bytes)
//
// 19 xrefs:
// > GameManager::rewardedVideoHidden @ 0x718b4c
// > GameManager::rewardedVideoHidden @ 0x718c14
// > LevelBrowserLayer::claimRecallChest @ 0x7fc9cc
// > SupportLayer::onGetReward @ 0x901248
// > DailyLevelPage::claimLevelReward @ 0xa6ef04
// > GauntletSelectLayer::onPlay @ 0xa738e4
// > GJShopLayer::dialogClosed @ 0xa7d0b4
// > RewardsPage::onReward @ 0xa89fdc
// > SecretLayer3::onChest01 @ 0xa8c29c
// > SecretLayer3::onChest02 @ 0xa8c3c4
// > SecretLayer4::onChest01 @ 0xa947f8
// > FollowRewardPage::onSpecialItem @ 0xaaafc0
// > SecretRewardsLayer::onSpecialItem @ 0xb9e8b4
// > SecretRewardsLayer::onGoldChest @ 0xb9eb88
// > SecretRewardsLayer::onSelectItem @ 0xb9ee90
// > GJPathRewardPopup::onClaim @ 0xba3c90
// > SecretLayer5::claimOnlineReward @ 0xbc6494
// > NotificationsPage::notificationRewardFinished @ 0xc5fdf8
// > ??> @ 0xca048
//
// 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:00:36 +0000
//
__int64 __fastcall RewardUnlockLayer::create(RewardUnlockLayer *this, RewardsPage *a2, RewardsPage *a3)
{
int v3; // w21
__int64 v5; // x19
v3 = (int)this;
v5 = operator new(0x2E8u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v5);
*(_QWORD *)(v5 + 552) = 0;
*(_QWORD *)v5 = &off_1419A40;
*(_QWORD *)(v5 + 320) = off_1419F90;
*(_QWORD *)(v5 + 328) = &off_141A000;
*(_QWORD *)(v5 + 336) = off_141A018;
*(_QWORD *)(v5 + 344) = off_141A038;
*(_QWORD *)(v5 + 352) = off_141A060;
*(_QWORD *)(v5 + 408) = &off_141A090;
*(_QWORD *)(v5 + 432) = &off_141A110;
*(_QWORD *)(v5 + 544) = off_141A130;
*(_QWORD *)(v5 + 560) = 0;
*(_QWORD *)(v5 + 568) = 0;
*(_BYTE *)(v5 + 576) = 0;
*(_QWORD *)(v5 + 584) = 0;
*(_DWORD *)(v5 + 592) = 0;
*(_BYTE *)(v5 + 596) = 0;
*(_BYTE *)(v5 + 597) = 0;
*(_BYTE *)(v5 + 598) = 0;
*(_BYTE *)(v5 + 599) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 600));
*(_DWORD *)(v5 + 632) = -1;
*(_DWORD *)(v5 + 640) = -1;
*(_QWORD *)(v5 + 608) = 0;
*(_QWORD *)(v5 + 616) = 0;
*(_QWORD *)(v5 + 624) = 0;
*(_BYTE *)(v5 + 636) = 0;
*(_BYTE *)(v5 + 637) = 0;
*(_BYTE *)(v5 + 644) = 0;
*(_BYTE *)(v5 + 656) = 0;
*(_DWORD *)(v5 + 648) = 0;
*(_DWORD *)(v5 + 652) = 0;
*(_QWORD *)(v5 + 672) = 0;
*(_QWORD *)v5 = &off_1498A70;
*(_QWORD *)(v5 + 320) = off_1498FC8;
*(_QWORD *)(v5 + 328) = &off_1499038;
*(_QWORD *)(v5 + 336) = off_1499050;
*(_QWORD *)(v5 + 344) = off_1499070;
*(_QWORD *)(v5 + 352) = off_1499098;
*(_QWORD *)(v5 + 408) = &off_14990C8;
*(_QWORD *)(v5 + 432) = &off_1499148;
*(_QWORD *)(v5 + 544) = off_1499168;
*(_QWORD *)(v5 + 664) = &off_14991B0;
*(_QWORD *)(v5 + 680) = 0;
*(_QWORD *)(v5 + 688) = 0;
*(_DWORD *)(v5 + 696) = 0;
*(_BYTE *)(v5 + 700) = 0;
*(_BYTE *)(v5 + 701) = 0;
*(_QWORD *)(v5 + 704) = 0;
*(_DWORD *)(v5 + 736) = 0;
if ( (unsigned __int8)RewardUnlockLayer::init((cocos2d::CCArray **)v5, v3, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
return v5;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 16LL))(v5);
return 0;
}
}