//
// sub_10037A374 from 0x10037a374 to 0x10037a4b8 (324 bytes)
//
// 1 xrefs:
// > GJMessagePopup::loadFromGJMessage @ 0x10037a008
//
// 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 11:03:27 +0000
//
void __fastcall sub_10037A374(__int64 a1)
{
__int64 v2; // x8
__int128 *v3; // x8
const char *p_dst; // x8
void *v5; // x0
char *CString; // x0
char *v7; // x1
__int64 *v8; // x19
void *__p[2]; // [xsp+10h] [xbp-60h] BYREF
char v10; // [xsp+27h] [xbp-49h]
void *v11[2]; // [xsp+28h] [xbp-48h] BYREF
char v12; // [xsp+3Fh] [xbp-31h]
__int128 __dst; // [xsp+40h] [xbp-30h] BYREF
__int64 v14; // [xsp+50h] [xbp-20h]
v2 = *(_QWORD *)(a1 + 712);
if ( *(char *)(v2 + 399) < 0 )
{
sub_1000097D0(&__dst, *(void **)(v2 + 376), *(_QWORD *)(v2 + 384));
}
else
{
v3 = (__int128 *)(v2 + 376);
__dst = *v3;
v14 = *((_QWORD *)v3 + 2);
}
p_dst = (const char *)&__dst;
if ( v14 < 0 )
p_dst = (const char *)__dst;
v5 = sub_1003065B0(
"Are you sure you want to block %s?\n"
"%s will no longer be able to:\n"
"- View your profile\n"
"- Send messages\n"
"- Send friend requests\n"
"- Messages from this user will be removed",
p_dst,
p_dst);
CString = (char *)cocos2d::CCString::getCString((__int64)v5);
sub_100009900(v11, CString);
if ( v12 >= 0 )
v7 = (char *)v11;
else
v7 = (char *)v11[0];
sub_100009900(__p, v7);
v8 = (__int64 *)FLAlertLayer::create(
a1 + 680,
(__int64)"Confirm Block",
(__int64)__p,
(__int64)"Back",
(__int64)"Block",
0,
380.0,
0.0,
1.0);
if ( v10 < 0 )
operator delete(__p[0]);
ButtonSprite::updateBGImage(v8[77], (__int64)"GJ_button_06.png");
(*(void (__fastcall **)(__int64 *, __int64))(*v8 + 72))(v8, 1);
(*(void (__fastcall **)(__int64 *))(*v8 + 1312))(v8);
if ( v12 < 0 )
operator delete(v11[0]);
if ( SHIBYTE(v14) < 0 )
operator delete((void *)__dst);
}