//
// sub_C40F58 from 0xc40f58 to 0xc410f4 (412 bytes)
//
// 12 xrefs:
// > AccountReviewPopup::onBans @ 0xc41154
// > AccountReviewPopup::adminClearReportsFailed @ 0xc4118c
// > AccountReviewPopup::deleteFailedTick @ 0xc411b8
// > AccountReviewPopup::adminCloseCaseFailed @ 0xc41218
// > AccountReviewPopup::adminClearReportsFinished @ 0xc47ae8
// > AccountReviewPopup::adminCloseCaseFinished @ 0xc47c98
// > AccountReviewPopup::adminCloseCaseFinished @ 0xc47d00
// > AccountReviewPopup::adminCloseCaseFinished @ 0xc47d18
// > AccountReviewPopup::onJumpRow @ 0xc4eb98
// > AccountReviewPopup::FLAlert_Clicked @ 0xc4f820
// > AccountReviewPopup::FLAlert_Clicked @ 0xc4f8dc
// > AccountReviewPopup::FLAlert_Clicked @ 0xc4f9f4
//
// 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 __fastcall sub_C40F58(const char *a1, float a2)
{
__int64 *v4; // x23
__int64 v5; // x1
void (__fastcall *v6)(__int64 *, __int64, __int64); // x24
size_t v7; // x0
size_t v8; // x19
unsigned __int64 v9; // x0
char *v10; // x3
__int64 v11; // x0
__int64 v13; // [xsp+58h] [xbp+58h] BYREF
size_t v14; // [xsp+60h] [xbp+60h]
void *v15; // [xsp+68h] [xbp+68h]
__int64 v16[2]; // [xsp+70h] [xbp+70h] BYREF
void *v17; // [xsp+80h] [xbp+80h]
v4 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(_stack_chk_guard) + 272);
v5 = *v4;
v13 = 0;
v14 = 0;
v6 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v5 + 464);
v15 = nullptr;
v7 = strlen(a1);
v8 = v7;
if ( v7 > 0xFFFFFFFFFFFFFFEFLL )
sub_63015C();
if ( v7 > 0x16 )
{
v9 = (v7 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v13 = v9 | 1;
v10 = (char *)operator new(v9);
v15 = v10;
v14 = v8;
LABEL_4:
v10 = (char *)memcpy(v10, a1, v8);
goto LABEL_5;
}
LOBYTE(v13) = 2 * v7;
v10 = (char *)&v13 + 1;
if ( v7 )
goto LABEL_4;
LABEL_5:
v10[v8] = 0;
v16[0] = 0;
v16[1] = 0;
v17 = nullptr;
std::string::__init(v16, &byte_11B8890, 0);
v11 = TextAlertPopup::create((char *)&v13, 150, (char *)v16, a2, 0.6);
v6(v4, v11, 1000);
if ( (v16[0] & 1) != 0 )
operator delete(v17);
if ( (v13 & 1) != 0 )
operator delete(v15);
return _stack_chk_guard;
}