//
// RewardUnlockLayer::create from 0x619f68 to 0x61a022 (186 bytes)
//
// 18 xrefs:
// > GameManager::rewardedVideoHidden @ 0x415790
// > GameManager::rewardedVideoHidden @ 0x415814
// > LevelBrowserLayer::claimRecallChest @ 0x4a902c
// > SupportLayer::onGetReward @ 0x5399fe
// > DailyLevelPage::claimLevelReward @ 0x607c2a
// > GauntletSelectLayer::onPlay @ 0x60b042
// > GJShopLayer::dialogClosed @ 0x61163e
// > RewardsPage::onReward @ 0x61a0a4
// > SecretLayer3::onChest01 @ 0x61bb1c
// > SecretLayer3::onChest02 @ 0x61bbc0
// > SecretLayer4::onChest01 @ 0x621440
// > FollowRewardPage::onSpecialItem @ 0x630542
// > SecretRewardsLayer::onSpecialItem @ 0x6cdb5a
// > SecretRewardsLayer::onGoldChest @ 0x6cdcda
// > SecretRewardsLayer::onSelectItem @ 0x6cdebc
// > GJPathRewardPopup::onClaim @ 0x6d1700
// > SecretLayer5::claimOnlineReward @ 0x6e4c50
// > NotificationsPage::notificationRewardFinished @ 0x743fb0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:58 +0000
//
FLAlertLayer *__fastcall RewardUnlockLayer::create(RewardUnlockLayer *this, RewardsPage *a2, RewardsPage *a3)
{
FLAlertLayer *v5; // r4
int v6; // r3
int *v7; // r0
v5 = (FLAlertLayer *)operator new(0x234u);
FLAlertLayer::FLAlertLayer(v5);
*(_DWORD *)v5 = &off_CC61F8;
*((_DWORD *)v5 + 66) = &off_CC64A4;
*((_DWORD *)v5 + 67) = &off_CC64DC;
*((_DWORD *)v5 + 68) = &off_CC64E8;
*((_DWORD *)v5 + 69) = &off_CC64F8;
*((_DWORD *)v5 + 70) = &off_CC650C;
*((_DWORD *)v5 + 79) = &off_CC6524;
*((_DWORD *)v5 + 83) = &off_CC6564;
*((_DWORD *)v5 + 110) = &off_CC6574;
*((_DWORD *)v5 + 130) = &off_CC6598;
*((_DWORD *)v5 + 131) = 0;
*((_DWORD *)v5 + 132) = 0;
*((_DWORD *)v5 + 133) = 0;
*((_DWORD *)v5 + 134) = 0;
*((_BYTE *)v5 + 540) = 0;
*((_BYTE *)v5 + 541) = 0;
*((_DWORD *)v5 + 136) = 0;
*((_DWORD *)v5 + 140) = 0;
if ( RewardUnlockLayer::init((cocos2d::CCArray **)v5, this, a2) )
{
cocos2d::CCObject::autorelease(v5);
}
else
{
v6 = *(_DWORD *)v5;
v7 = (int *)v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v6 + 8))(v7);
}
return v5;
}