//
// NewsPopup::pageReferencesImage from 0x14049fb10 to 0x14049fc1a (266 bytes)
//
// 3 xrefs:
// > NewsPopup::newsImageDownloaded @ 0x1404a04cc
// > NewsPopup::newsImageFailed @ 0x1404a0564
// > ??> @ 0x1409293d8
//
// This function is hookable on this platform (idp: pc, 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:32:56 +0000
//
char __fastcall NewsPopup::pageReferencesImage(__int64 a1, int a2, const void **a3)
{
__int64 v4; // r9
int v5; // esi
__int64 v6; // rbx
__int64 v7; // rbp
unsigned __int64 v8; // r14
size_t *v9; // rbx
const void *v10; // r15
const void *v11; // rdx
const void *v12; // rcx
size_t v13; // r8
if ( a2 < 0
|| (v4 = *(_QWORD *)(a1 + 680), a2 >= (int)((*(_QWORD *)(a1 + 688) - v4) / 96))
|| (v5 = 0, v6 = *(_QWORD *)(96LL * a2 + v4 + 72), v7 = (*(_QWORD *)(96LL * a2 + v4 + 80) - v6) / 120, (int)v7 <= 0) )
{
LABEL_13:
sub_14003D310((__int64)a3);
return 0;
}
else
{
v8 = (unsigned __int64)a3[3];
v9 = (size_t *)(v6 + 40);
v10 = a3[2];
while ( 1 )
{
v11 = a3;
if ( v8 > 0xF )
v11 = *a3;
v12 = v9;
if ( v9[3] > 0xF )
v12 = (const void *)*v9;
v13 = v9[2];
if ( (const void *)v13 == v10 && (!v13 || !memcmp(v12, v11, v13)) )
break;
++v5;
v9 += 15;
if ( v5 >= (int)v7 )
goto LABEL_13;
}
sub_14003D310((__int64)a3);
return 1;
}
}