//
// NewsPopup::pageReferencesImage from 0x6c1938 to 0x6c19da (162 bytes)
//
// 2 xrefs:
// > NewsPopup::newsImageFailed @ 0x6c27b2
// > NewsPopup::newsImageDownloaded @ 0x6c2bee
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:51 +0000
//
int __fastcall NewsPopup::pageReferencesImage(int a1, int a2, unsigned __int8 *a3)
{
int v4; // r4
int v5; // r2
char *v6; // r0
int v7; // r3
int v8; // lr
size_t v9; // r2
int v10; // r1
int v11; // r3
int v13; // r1
int v14; // r6
int v15; // r0
char *v16; // r4
int v17; // r7
unsigned __int8 *v18; // r1
char *v19; // r0
unsigned __int8 *v20; // r2
int v21; // t1
if ( a2 >= 0 )
{
v4 = *(_DWORD *)(a1 + 528);
if ( a2 < -858993459 * ((*(_DWORD *)(a1 + 532) - v4) >> 3) )
{
v13 = v4 + 40 * a2;
v14 = 0;
v15 = *(_DWORD *)(v13 + 28);
v16 = (char *)(v15 + 17);
v17 = -991146299 * ((*(_DWORD *)(v13 + 32) - v15) >> 2);
while ( v14 < v17 )
{
v5 = (unsigned __int8)*(v16 - 1);
v6 = v16;
v7 = *a3;
v8 = v5 & 1;
if ( (v5 & 1) != 0 )
v9 = *(_DWORD *)(v16 + 3);
else
v9 = v5 >> 1;
v10 = v7 & 1;
if ( (v7 & 1) != 0 )
v11 = *((_DWORD *)a3 + 1);
else
v11 = v7 >> 1;
if ( v9 == v11 )
{
if ( v8 )
v6 = *(char **)(v16 + 7);
if ( v10 )
v18 = *((unsigned __int8 **)a3 + 2);
else
v18 = a3 + 1;
if ( !v8 )
{
v19 = v6 - 1;
v20 = &v18[v9];
while ( v18 != v20 )
{
v21 = (unsigned __int8)*++v19;
if ( v21 != *v18 )
goto LABEL_11;
++v18;
}
return 1;
}
if ( !std::char_traits::compare(v6, v18, v9) )
return 1;
}
LABEL_11:
++v14;
v16 += 52;
}
}
}
return 0;
}