//
// CurrencyRewardLayer::incrementCount from 0x100321540 to 0x10032162c (236 bytes)
//
// 1 xrefs:
// > CurrencyRewardLayer::update @ 0x100321378
//
// 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
//
void __fastcall CurrencyRewardLayer::incrementCount(CurrencyRewardLayer *a1, int a2)
{
cocos2d::CCLabelBMFont *m_orbsLabel; // x19
__int128 v4; // kr00_16
unsigned int m_orbs; // [xsp+Ch] [xbp-244h] BYREF
__int128 v6; // [xsp+10h] [xbp-240h] BYREF
void *__p; // [xsp+20h] [xbp-230h]
_BYTE v8[512]; // [xsp+28h] [xbp-228h] BYREF
if ( a1->m_orbsLabel )
{
a1->m_orbs += a2;
CurrencyRewardLayer::pulseSprite(a1, a1->m_orbsSprite);
v6 = xmmword_1006350E0;
__p = v8;
m_orbs = a1->m_orbs;
sub_100009A40((int)&v6, m_orbs, (int)&m_orbs);
m_orbsLabel = a1->m_orbsLabel;
v4 = v6;
if ( *((_QWORD *)&v6 + 1) < (unsigned __int64)(v6 + 1) )
sub_100009ED4((__int64)&v6, v6 + 1);
*((_BYTE *)__p + v4) = 0;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))m_orbsLabel->setString)(m_orbsLabel, __p);
if ( __p != v8 )
{
if ( __p )
operator delete[](__p);
}
}
}