//
// sub_C409A8 from 0xc409a8 to 0xc40b14 (364 bytes)
//
// 2 xrefs:
// > AccountReviewPopup::buildHistoryRows @ 0xc48a74
// > AccountReviewPopup::updateCard @ 0xc49dc8
//
// 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 13:04:57 +0000
//
__int64 *__usercall sub_C409A8@(int a1@, __int64 *a2@)
{
const char *v3; // x1
char *v4; // x2
cocos2d::CCString *v5; // x0
const char *CString; // x0
size_t v7; // x0
const char *v9; // x1
char *v10; // x2
char *v11; // [xsp+28h] [xbp+28h]
if ( a1 <= 0 )
{
*a2 = 0;
a2[1] = 0;
a2[2] = 0;
std::string::__init(a2, &byte_11B8890, 0);
}
else
{
if ( a1 % 1440 )
{
if ( a1 == 60 * (a1 / 60) )
{
v3 = (const char *)(unsigned int)(a1 / 60);
if ( (_DWORD)v3 == 1 )
v4 = &byte_11B8890;
else
v4 = "s";
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i Hour%s", v3, v4);
}
else
{
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i Min",
(const char *)(unsigned int)a1);
}
}
else
{
v9 = (const char *)(unsigned int)(a1 / 1440);
if ( (_DWORD)v9 == 1 )
v10 = &byte_11B8890;
else
v10 = "s";
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i Day%s", v9, v10);
}
CString = (const char *)cocos2d::CCString::getCString(v5);
*a2 = 0;
a2[1] = 0;
a2[2] = 0;
v11 = (char *)CString;
v7 = strlen(CString);
std::string::__init(a2, v11, v7);
}
return a2;
}