//
// GJUserCell::onUnblockUser from 0x1400bb540 to 0x1400bb746 (518 bytes)
//
// 2 xrefs:
// > GJUserCell::loadFromScore @ 0x1400bb0dd
// > ??> @ 0x1406c7d4c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=4
void GJUserCell::onUnblockUser(GJUserCell *a1, cocos2d::CCObject *a2)
{
GJUserScore *m_userScore; // rdx
const char *v4; // rdx
cocos2d::CCString *v5; // rax
const char *CString; // rax
size_t v7; // rbx
size_t v8; // r8
int v9; // esi
void **v10; // rdx
__int64 v11; // rax
FLAlertLayer *v12; // rbx
void *v13; // rcx
__int128 v14; // [rsp+58h] [rbp-51h] BYREF
__int64 v15; // [rsp+68h] [rbp-41h]
__int64 v16; // [rsp+70h] [rbp-39h]
_BYTE v17[32]; // [rsp+80h] [rbp-29h] BYREF
void *Block[2]; // [rsp+A0h] [rbp-9h] BYREF
__int128 v19; // [rsp+B0h] [rbp+7h]
_QWORD v20[4]; // [rsp+C0h] [rbp+17h] BYREF
m_userScore = a1->m_userScore;
if ( m_userScore && m_userScore->m_accountID > 0 )
{
sub_14003BDB0((__int64)v20, (__int64)&m_userScore->m_userName);
v4 = (const char *)v20;
if ( v20[3] > 0xFu )
v4 = (const char *)v20[0];
v5 = cocos2d::CCString::createWithFormat("Are you sure you want to unblock %s?", v4);
CString = cocos2d::CCString::getCString(v5);
*(_OWORD *)Block = 0;
v19 = 0;
v7 = -1;
v8 = -1;
do
++v8;
while ( CString[v8] );
sub_14003A930(Block, CString, v8);
sub_14003A830((__int64)v20);
v9 = (_DWORD)a1 + 560;
if ( !a1 )
v9 = 0;
v10 = Block;
if ( *((_QWORD *)&v19 + 1) > 0xFu )
v10 = (void **)Block[0];
v14 = 0;
v15 = 0;
v16 = 0;
do
++v7;
while ( *((_BYTE *)v10 + v7) );
sub_14003A930(&v14, v10, v7);
v11 = sub_14003BDB0((__int64)v17, (__int64)&v14);
v12 = FLAlertLayer::create(
v9,
(int)"Unblock user",
v11,
(__int64)"Back",
(__int64)"Unblock",
1133903872,
0,
0,
1065353216);
sub_14003A830((__int64)&v14);
v12->setTag(v12, 1);
ButtonSprite::updateBGImage(v12->m_button2, "GJ_button_05.png");
v12->show(v12);
if ( *((_QWORD *)&v19 + 1) > 0xFu )
{
v13 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v19 + 1) + 1LL) >= 0x1000 )
{
v13 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v13);
}
}
}