//
// MusicDownloadManager::isNewsImageDownloaded from 0x56ed64 to 0x56ee10 (172 bytes)
//
// 3 xrefs:
// > NewsPopup::prefetchPageImages @ 0x6c1ae2
// > NewsPopup::rebuildPage @ 0x6c2366
// > NewsPopup::onBlockClicked @ 0x6c2880
//
// 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:52:35 +0000
//
int __fastcall MusicDownloadManager::isNewsImageDownloaded(cocos2d::CCFileUtils *a1, int a2)
{
char *v2; // r8
int v5; // r9
int (__fastcall *v6)(int, int *); // r10
size_t v7; // r0
int v8; // r8
int v10[3]; // [sp+0h] [bp-28h] BYREF
char v11; // [sp+Ch] [bp-1Ch] BYREF
char v12; // [sp+Dh] [bp-1Bh] BYREF
char *v13; // [sp+14h] [bp-14h]
int v14[3]; // [sp+18h] [bp-10h] BYREF
v5 = cocos2d::CCFileUtils::sharedFileUtils(a1);
v6 = *(int (__fastcall **)(int, int *))(*(_DWORD *)v5 + 80);
std::string::basic_string(v10, a2);
MusicDownloadManager::pathForNewsImage((MusicDownloadManager *)&v11, (int)a1, (unsigned __int8 *)v10);
if ( (v11 & 1) == 0 )
v2 = &v12;
v14[0] = 0;
if ( (v11 & 1) != 0 )
v2 = v13;
v14[1] = 0;
v14[2] = 0;
v7 = strlen(v2);
std::string::__init(v14, v2, v7);
v8 = v6(v5, v14);
std::string::~string((int)v14);
std::string::~string((int)&v11);
std::string::~string((int)v10);
return v8;
}