//
// cocos2d::CCApplication::openURL from 0x100240cb4 to 0x100240d40 (140 bytes)
//
// 2 xrefs:
// > ??> @ 0x100906008
// > ??> @ 0x10092b4d8
//
// This function is hookable on this platform (idp: arm, 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:01:24 +0000
//
NSURL *__fastcall cocos2d::CCApplication::openURL(__int64 a1, __int64 a2)
{
NSURL *result; // x0
NSURL *v3; // x19
UIApplication *v4; // x0
result = +[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 ( result )
{
v3 = result;
v4 = +[UIApplication sharedApplication](&OBJC_CLASS___UIApplication, "sharedApplication");
return (NSURL *)-[UIApplication openURL:options:completionHandler:](
v4,
"openURL:options:completionHandler:",
v3,
__NSDictionary0__,
0);
}
return result;
}