//
// CurrencyRewardLayer::create from 0x1003bc3e4 to 0x1003bc4d8 (244 bytes)
//
// 7 xrefs:
// > ChallengesPage::claimItem @ 0x100036834
// > PlayLayer::showNewBest @ 0x10014466c
// > DailyLevelPage::claimLevelReward @ 0x100250830
// > RewardUnlockLayer::playRewardEffect @ 0x10025bda8
// > LevelListLayer::onClaimReward @ 0x1002e3324
// > sub_100394E80 @ 0x100394fec
// > GJGarageLayer::dialogClosed @ 0x1003a3a78
//
// 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 11:03:59 +0000
//
void *__fastcall CurrencyRewardLayer::create(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
int a7,
int a8,
float a9,
float a10,
double *a11,
int a12)
{
void *v21; // x19
__int64 v23; // [xsp+10h] [xbp-70h]
__int64 v24; // [xsp+18h] [xbp-68h] BYREF
HIDWORD(v23) = a7;
v21 = operator new(0x280u);
sub_1003C0418();
sub_1000262F4(&v24, a11);
LODWORD(v23) = a12;
if ( (unsigned int)sub_1003BC4EC(v21, a1, a2, a3, a4, a5, a6, HIDWORD(v23), a9, a10, a8, &v24, v23) )
{
cocos2d::CCObject::autorelease((__int64)v21);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v21 + 16LL))(v21);
return nullptr;
}
return v21;
}