//
// cocos2d::CCApplication::openURL from 0x10032a230 to 0x10032a2d5 (165 bytes)
//
// 2 xrefs:
// > ??> @ 0x100914a30
// > ??> @ 0x100986b78
//
// 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
//
void __fastcall cocos2d::CCApplication::openURL(cocos2d::CCApplication *a1, const char *a2)
{
NSString *v2; // rbx
NSCharacterSet *v3; // rax
NSString *v4; // rax
NSURL *v5; // 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);
v5 = +[NSURL URLWithString:](&OBJC_CLASS___NSURL, "URLWithString:", v4);
if ( v5 )
{
v6 = v5;
v7 = +[NSWorkspace sharedWorkspace](&OBJC_CLASS___NSWorkspace, "sharedWorkspace");
-[NSWorkspace openURL:](v7, "openURL:", v6);
}
}