//
// CurrencyRewardLayer::create from 0x10031e6e8 to 0x10031e7dc (244 bytes)
//
// 7 xrefs:
// > ChallengesPage::claimItem @ 0x100032d34
// > PlayLayer::showNewBest @ 0x10011b670
// > DailyLevelPage::claimLevelReward @ 0x1001bab98
// > RewardUnlockLayer::playRewardEffect @ 0x1001c61f0
// > LevelListLayer::onClaimReward @ 0x1002461dc
// > EndLevelLayer::playEndEffect @ 0x1002f86c8
// > GJGarageLayer::dialogClosed @ 0x100306d60
//
// 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,
__int64 *a10,
float a11,
float a12)
{
float y; // s8
float x; // s9
CurrencyRewardLayer *v21; // x19
float v22; // s2
float v23; // s3
CurrencyRewardType v25; // [xsp+4h] [xbp-7Ch]
__int64 v27; // [xsp+18h] [xbp-68h] BYREF
cocos2d::CCPoint v28; // 0:s0.4,4:s1.4
y = a9.y;
x = a9.x;
v21 = (CurrencyRewardLayer *)operator new(0x280u);
sub_10032271C();
sub_1000229B8(&v27, a10);
v28.x = x;
v28.y = y;
if ( CurrencyRewardLayer::init(v21, a1, a2, a3, a4, a5, a6, a7, a8, v28, v25, v22, v23) )
{
cocos2d::CCObject::autorelease(v21);
}
else
{
((void (__fastcall *)(CurrencyRewardLayer *))v21->~CurrencyRewardLayer_0)(v21);
return nullptr;
}
return v21;
}