//
// sub_100378BB0 from 0x100378bb0 to 0x100378cd8 (296 bytes)
//
// 1 xrefs:
// > sub_100378260 @ 0x100378854
//
// 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:26 +0000
//
void __fastcall sub_100378BB0(__int64 a1)
{
__int64 v2; // x0
const char *v3; // x8
void *v4; // x0
char *CString; // x0
char *v6; // x1
__int64 *v7; // x19
void *__p[2]; // [xsp+8h] [xbp-58h] BYREF
char v9; // [xsp+1Fh] [xbp-41h]
void *v10[2]; // [xsp+20h] [xbp-40h] BYREF
char v11; // [xsp+37h] [xbp-29h]
void *v12[2]; // [xsp+38h] [xbp-28h] BYREF
char v13; // [xsp+4Fh] [xbp-11h]
v2 = GameLevelManager::sharedState();
sub_1000A7734(v2, *(_DWORD *)(*(_QWORD *)(a1 + 696) + 320LL), (__int64)v12);
if ( v13 >= 0 )
v3 = (const char *)v12;
else
v3 = (const char *)v12[0];
v4 = sub_1003065B0(
"Are you sure you want to block %s?\n"
"They will no longer be able to:\n"
"-View your profile.\n"
"-Send you a friend request.\n"
"-Send you messages, and all older messages from them will be deleted.",
v3);
CString = (char *)cocos2d::CCString::getCString((__int64)v4);
sub_100009900(v10, CString);
if ( v11 >= 0 )
v6 = (char *)v10;
else
v6 = (char *)v10[0];
sub_100009900(__p, v6);
v7 = (__int64 *)FLAlertLayer::create(
a1 + 680,
(__int64)"Confirm Block",
(__int64)__p,
(__int64)"Back",
(__int64)"Block",
0,
380.0,
0.0,
1.0);
if ( v9 < 0 )
operator delete(__p[0]);
ButtonSprite::updateBGImage(v7[77], (__int64)"GJ_button_06.png");
(*(void (__fastcall **)(__int64 *, __int64))(*v7 + 72))(v7, 1);
(*(void (__fastcall **)(__int64 *))(*v7 + 1312))(v7);
if ( v11 < 0 )
operator delete(v10[0]);
if ( v13 < 0 )
operator delete(v12[0]);
}