//
// AccountReviewPopup::adminCloseCaseFinished from 0xc47b7c to 0xc47d94 (536 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AccountReviewPopup::adminCloseCaseFinished @ 0xc47d9c
// > ??> @ 0xc6070
// > ??> @ 0x14e7998
//
// 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:05:01 +0000
//
__int64 __fastcall AccountReviewPopup::adminCloseCaseFinished(
AccountReviewPopup *this,
int a2,
int a3,
unsigned __int8 a4)
{
int v5; // w21
int v7; // w0
_QWORD *v8; // x0
__int64 v9; // x5
__int64 v10; // x0
__int64 v11; // x3
const char *v12; // x1
char v13; // w2
cocos2d::CCAction *v14; // x0
__int64 v16[3]; // [xsp+40h] [xbp+40h] BYREF
_QWORD v17[2]; // [xsp+58h] [xbp+58h] BYREF
void *v18; // [xsp+68h] [xbp+68h]
_QWORD v19[2]; // [xsp+70h] [xbp+70h] BYREF
void *v20; // [xsp+80h] [xbp+80h]
v5 = a4;
if ( *((_DWORD *)this + 210) == a2 )
{
PagedListPopup::fadeLoading(this);
v7 = *((unsigned __int8 *)this + 1232);
*((_BYTE *)this + 1248) = 1;
if ( v7 && (*((int *)this + 251) > 0 || *((int *)this + 254) > 0 || !*((_DWORD *)this + 229)) )
{
if ( a3 <= 0 )
{
if ( !v5 )
{
sub_C40F58("Already closed", 1.6);
goto LABEL_14;
}
LABEL_18:
sub_C40F58("Case closed", 1.6);
LABEL_14:
v14 = (cocos2d::CCAction *)cocos2d::CCCallFunc::create(this, AccountReviewPopup::closeAfterDone, 0);
cocos2d::CCNode::runAction(this, v14);
return _stack_chk_guard;
}
}
else if ( a3 <= 0 )
{
goto LABEL_18;
}
sub_C3FA54((char *)(unsigned int)a3, (__int64)"item", v16);
v8 = std::string::insert(v16, 0, "Case closed, ");
v9 = v8[1];
v17[0] = *v8;
v17[1] = v9;
v18 = (void *)v8[2];
*v8 = 0;
v8[1] = 0;
v8[2] = 0;
v10 = std::string::append((__int64)v17, " cleared");
v11 = *(_QWORD *)(v10 + 8);
v19[0] = *(_QWORD *)v10;
v19[1] = v11;
v12 = (char *)v19 + 1;
v20 = *(void **)(v10 + 16);
*(_QWORD *)v10 = 0;
*(_QWORD *)(v10 + 8) = 0;
v13 = v19[0];
*(_QWORD *)(v10 + 16) = 0;
if ( (v13 & 1) != 0 )
v12 = (const char *)v20;
sub_C40F58(v12, 1.6);
if ( (v19[0] & 1) != 0 )
operator delete(v20);
if ( (v17[0] & 1) != 0 )
operator delete(v18);
if ( (v16[0] & 1) != 0 )
operator delete((void *)v16[2]);
goto LABEL_14;
}
return _stack_chk_guard;
}