//
// sub_1003D0444 from 0x1003d0444 to 0x1003d04a0 (92 bytes)
//
// 5 xrefs:
// > GameStatsManager::getBaseCurrencyForLevel @ 0x1003d0550
// > sub_1003D0824 @ 0x1003d08ec
// > sub_1003D0824 @ 0x1003d0a10
// > GameStatsManager::getAwardedDiamondsForLevel @ 0x1003d0c9c
// > sub_1003D0D94 @ 0x1003d0e18
//
// 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:04:10 +0000
//
_QWORD *__usercall sub_1003D0444@(_DWORD *a1@, _QWORD *a2@)
{
int v3; // w8
int v4; // w9
bool v5; // vf
int v6; // w8
void *v7; // x0
char *CString; // x1
v3 = a1[230];
v4 = a1[231];
v5 = __OFSUB__(v3, v4);
v6 = v3 - v4;
if ( (v6 < 0) ^ v5 | (v6 == 0) )
v6 = a1[82] - a1[83];
v7 = sub_1003065B0("%i", v6);
CString = (char *)cocos2d::CCString::getCString((__int64)v7);
return sub_100009900(a2, CString);
}