//
// NewsPopup::newsImageFailed from 0xb8c318 to 0xb8c410 (248 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'NewsPopup::newsImageFailed @ 0xb8c414
// > ??> @ 0xa8610
// > ??> @ 0x14d6370
//
// 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:02:34 +0000
//
__int64 __fastcall NewsPopup::newsImageFailed(int *a1, __int64 a2)
{
char v4; // w0
signed int v5; // w23
__int64 v6; // x0
__int64 v7; // x1
int v8; // w20
__int64 v10; // [xsp+40h] [xbp+40h] BYREF
__int64 v11; // [xsp+48h] [xbp+48h]
void *v12; // [xsp+50h] [xbp+50h]
std::__tree::__emplace_unique_key_args(
(__int64)(a1 + 198),
a2,
(_QWORD *)a2);
v10 = 0;
v4 = *(_BYTE *)a2;
v11 = 0;
v12 = nullptr;
v5 = a1[176];
if ( (v4 & 1) != 0 )
{
std::string::__init(&v10, *(void **)(a2 + 16), *(_QWORD *)(a2 + 8));
}
else
{
v6 = *(_QWORD *)a2;
v7 = *(_QWORD *)(a2 + 8);
v12 = *(void **)(a2 + 16);
v10 = v6;
v11 = v7;
}
v8 = (unsigned __int8)NewsPopup::pageReferencesImage((__int64)a1, v5, (__int64)&v10);
if ( (v10 & 1) != 0 )
operator delete(v12);
if ( v8 )
NewsPopup::rebuildPage((NewsPopup *)a1, a1[176]);
return _stack_chk_guard;
}