//
// sub_1004C4800 from 0x1004c4800 to 0x1004c4891 (145 bytes)
//
// 1 xrefs:
// > sub_1004C4730 @ 0x1004c47c7
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
id __fastcall sub_1004C4800(__int64 a1)
{
id v1; // rax
id v2; // rax
id v3; // r14
NSArray *v4; // rax
id v5; // rax
id v6; // rax
v1 = objc_alloc((Class)&OBJC_CLASS___NSData);
v2 = objc_msgSend(v1, "initWithContentsOfURL:", *(_QWORD *)(a1 + 32));
v3 = objc_autorelease(v2);
v4 = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, 1u, 1);
v5 = -[NSArray objectAtIndex:](v4, "objectAtIndex:", 0);
v6 = objc_msgSend(v5, "stringByAppendingPathComponent:", *(_QWORD *)(a1 + 40));
return objc_msgSend(v3, "writeToFile:atomically:", v6, 1);
}