//
// sub_14003D400 from 0x14003d400 to 0x14003d452 (82 bytes)
//
// 2 xrefs:
// > CurrencySprite::init @ 0x14013df79
// > ??> @ 0x14090f0a4
//
// 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:25:28 +0000
//
void __fastcall sub_14003D400(__int64 a1, void *a2, __int64 a3)
{
void *v3; // rax
v3 = a2;
if ( (unsigned __int64)(a3 + 1) >= 0x1000 )
{
if ( (unsigned __int64)a2 - *((_QWORD *)a2 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v3 = *((void **)a2 - 1);
}
j_j_free(v3);
}