//
// sub_100502260 from 0x100502260 to 0x100502364 (260 bytes)
//
// 1 xrefs:
// > sub_100501B28 @ 0x10050203c
//
// 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:06:54 +0000
//
__int64 __fastcall sub_100502260(__int64 a1)
{
int v2; // w8
__int64 v3; // x0
void *v4; // x19
__int64 v6; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
v2 = *(unsigned __int8 *)(a1 + 1064);
v3 = *(_QWORD *)(a1 + 1032);
if ( v2 == 1 )
{
sub_1005018F0(v3, *(_QWORD *)(*(_QWORD *)(a1 + 1024) + 56LL));
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
}
if ( *(_BYTE *)(v3 + 791) != 1 )
{
v6 = sub_10052176C(*(_QWORD *)(v3 + 752), *(_QWORD *)(a1 + 1024), a1 + 1040);
if ( v6 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
}
sub_100009900(__p, "Delete this message for everyone?");
v4 = FLAlertLayer::create_1(
a1 + 1016,
(__int64)"Delete Message",
(__int64)__p,
(__int64)"Cancel",
(__int64)"Delete",
380.0);
if ( v8 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 72LL))(v4, 12);
return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v4 + 1312LL))(v4);
}