//
// AccountBanPopup::banStateShort from 0x762d88 to 0x762e16 (142 bytes)
//
// 3 xrefs:
// > AccountReviewPopup::updateCard @ 0x738906
// > AccountReviewPopup::updateCard @ 0x7389a6
// > AccountReviewPopup::updateCard @ 0x738a9c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:05 +0000
//
AccountBanPopup *__fastcall AccountBanPopup::banStateShort(AccountBanPopup *this, int a2)
{
size_t v2; // r2
AccountBanPopup *v3; // r4
const char *v4; // r1
cocos2d::CCString *v5; // r0
const char *CString; // r0
const char *v7; // r5
size_t v8; // r0
v2 = a2;
v3 = this;
if ( a2 >= 0 )
{
if ( a2 )
{
if ( a2 <= 86399 )
{
if ( a2 < 3600 )
{
if ( a2 <= 119 )
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%im",
(const char *)&dword_0 + 1);
else
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%im",
(const char *)(a2 / 60));
}
else
{
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%ih",
(const char *)(a2 / 3600));
}
}
else
{
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%id",
(const char *)(a2 / 86400));
}
CString = (const char *)cocos2d::CCString::getCString(v5);
*(_DWORD *)v3 = 0;
*((_DWORD *)v3 + 1) = 0;
*((_DWORD *)v3 + 2) = 0;
v7 = CString;
v8 = strlen(CString);
v4 = v7;
v2 = v8;
this = v3;
}
else
{
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v4 = (const char *)&unk_B6B226;
*((_DWORD *)this + 2) = v2;
}
}
else
{
v2 = 4;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v4 = "perm";
*((_DWORD *)this + 2) = 0;
}
std::string::__init((int *)this, v4, v2);
return v3;
}