//
// CurrencyRewardLayer::create from 0x1007a5b40 to 0x1007a5bff (191 bytes)
//
// 7 xrefs:
// > PlayLayer::showNewBest @ 0x1000b5bc6
// > RewardUnlockLayer::playRewardEffect @ 0x10021d61c
// > DailyLevelPage::claimLevelReward @ 0x10023243f
// > LevelListLayer::onClaimReward @ 0x10035f187
// > GJGarageLayer::dialogClosed @ 0x10036fb67
// > ChallengesPage::claimItem @ 0x10039e842
// > EndLevelLayer::playEndEffect @ 0x1004c34c1
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
CurrencyRewardLayer *__fastcall CurrencyRewardLayer::create(
int a1,
int a2,
int a3,
int a4,
CurrencySpriteType a5,
int a6,
CurrencySpriteType a7,
int a8,
cocos2d::CCPoint a9,
double *a10,
float a11,
float a12)
{
CurrencyRewardLayer *v13; // rbx
__int64 v15; // [rsp+2Ch] [rbp-44h] BYREF
float v16; // [rsp+34h] [rbp-3Ch]
float x; // [rsp+38h] [rbp-38h]
CurrencySpriteType v18; // [rsp+3Ch] [rbp-34h]
int v19; // [rsp+40h] [rbp-30h]
int v20; // [rsp+44h] [rbp-2Ch]
v16 = a11;
x = a9.x;
v18 = a5;
v19 = a4;
v20 = a3;
v13 = (CurrencyRewardLayer *)operator new(0x280u);
sub_1007AA870(v13, *(double *)&a9, a11, a12);
sub_10028CC60(&v15, a10);
if ( CurrencyRewardLayer::init(
v13,
a1,
a2,
v20,
v19,
v18,
a6,
a7,
a8,
(cocos2d::CCPoint)LODWORD(x),
(CurrencyRewardType)&v15,
v16,
a12) )
{
cocos2d::CCObject::autorelease(v13);
}
else
{
((void (__fastcall *)(CurrencyRewardLayer *))v13->~CurrencyRewardLayer_0)(v13);
return nullptr;
}
return v13;
}