//
// MusicDownloadManager::pathForNewsImage from 0x140493430 to 0x140493504 (212 bytes)
//
// 5 xrefs:
// > MusicDownloadManager::onDownloadNewsFeedCompleted @ 0x14049208c
// > MusicDownloadManager::isNewsImageDownloaded @ 0x14049354c
// > MusicDownloadManager::onDownloadNewsImageCompleted @ 0x140493b52
// > NewsPopup::rebuildPage @ 0x14049f467
// > ??> @ 0x140928ee0
//
// 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:51 +0000
//
// Hidden C++ exception states: #wind=3
CHAR *__fastcall MusicDownloadManager::pathForNewsImage(__int64 a1, CHAR *a2, void **a3)
{
__int64 v5; // rax
const CHAR *v6; // rcx
void *v7; // rdx
v5 = cocos2d::CCFileUtils::sharedFileUtils(a1);
(*(void (__fastcall **)(__int64, CHAR *))(*(_QWORD *)v5 + 136LL))(v5, a2);
sub_140044D80(a2, "news", 4u);
v6 = a2;
if ( *((_QWORD *)a2 + 3) > 0xFu )
v6 = *(const CHAR **)a2;
CreateDirectoryA(v6, nullptr);
sub_140044D80(a2, "/", 1u);
v7 = a3;
if ( (unsigned __int64)a3[3] > 0xF )
v7 = *a3;
sub_140044D80(a2, v7, (size_t)a3[2]);
sub_14003D310((__int64)a3);
return a2;
}