//
// cocos2d::CCApplication::openURL from 0x100315940 to 0x1003159e5 (165 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1c850
// > ??> @ 0x100b9add8
//
// 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 12:28:40 +0000
//
NSURL *__fastcall cocos2d::CCApplication::openURL(__int64 a1, __int64 a2)
{
NSString *v2; // rbx
NSCharacterSet *v3; // rax
NSString *v4; // rax
NSURL *result; // rax
NSURL *v6; // rbx
NSWorkspace *v7; // rax
v2 = +[NSString stringWithCString:encoding:](&OBJC_CLASS___NSString, "stringWithCString:encoding:", a2, 4);
v3 = +[NSCharacterSet whitespaceAndNewlineCharacterSet](
&OBJC_CLASS___NSCharacterSet,
"whitespaceAndNewlineCharacterSet");
v4 = -[NSString stringByTrimmingCharactersInSet:](v2, "stringByTrimmingCharactersInSet:", v3);
result = +[NSURL URLWithString:](&OBJC_CLASS___NSURL, "URLWithString:", v4);
if ( result )
{
v6 = result;
v7 = +[NSWorkspace sharedWorkspace](&OBJC_CLASS___NSWorkspace, "sharedWorkspace");
return (NSURL *)-[NSWorkspace openURL:](v7, "openURL:", v6);
}
return result;
}