//
// cocos2d::CCApplication::openURL from 0x1001abf38 to 0x1001abfc4 (140 bytes)
//
// 2 xrefs:
// > ??> @ 0x1007aec00
// > ??> @ 0x1007d27a0
//
// 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)
{
NSURL *v2; // x0
NSURL *v3; // x19
UIApplication *v4; // x0
v2 = +[NSURL URLWithString:](
&OBJC_CLASS___NSURL,
"URLWithString:",
-[NSString stringByTrimmingCharactersInSet:](
+[NSString stringWithCString:encoding:](&OBJC_CLASS___NSString, "stringWithCString:encoding:", a2, 1),
"stringByTrimmingCharactersInSet:",
+[NSCharacterSet whitespaceAndNewlineCharacterSet](
&OBJC_CLASS___NSCharacterSet,
"whitespaceAndNewlineCharacterSet")));
if ( v2 )
{
v3 = v2;
v4 = +[UIApplication sharedApplication](&OBJC_CLASS___UIApplication, "sharedApplication");
-[UIApplication openURL:options:completionHandler:](
v4,
"openURL:options:completionHandler:",
v3,
__NSDictionary0__,
0);
}
}