//
// GJShopLayer::updateCurrencyCounter from 0x1403b1fd0 to 0x1403b2039 (105 bytes)
//
// 2 xrefs:
// > GJShopLayer::rewardedVideoFinished @ 0x1403b1f81
// > ??> @ 0x140923bf4
//
// This function is hookable on this platform (idp: pc, 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:31:23 +0000
//
__int64 __fastcall GJShopLayer::updateCurrencyCounter(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rbx
int Stat; // eax
void *v6; // [rsp+30h] [rbp+8h]
v2 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v6 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v2 = qword_14090BFE0;
}
v3 = *(_QWORD *)(a1 + 440);
Stat = GameStatsManager::getStat(v2, &word_140737D98);
return CCCounterLabel::setTargetCount(v3, Stat);
}