//
// -[iRate ratingsURL] from 0x10044ab98 to 0x10044ace4 (332 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009cf598
//
// 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:05:17 +0000
//
NSURL *__cdecl -[iRate ratingsURL](iRate *self, SEL a2)
{
NSURL *ratingsURL; // x0
NSURL *v4; // x19
UIDevice *v5; // x22
NSString *v6; // x23
float v7; // s0
const __CFString *v8; // x24
NSNumber *v9; // x25
NSString *v10; // x21
ratingsURL = self->_ratingsURL;
if ( ratingsURL )
{
v4 = objc_retain(ratingsURL);
}
else
{
if ( !-[iRate appStoreID](self, "appStoreID") && -[iRate verboseLogging](self, "verboseLogging") )
NSLog(&CFSTR("iRate could not find the App Store ID for this application. If the application is not intended for App Stor"
"e release then you must specify a custom ratingsURL.").isa);
v5 = objc_retainAutoreleasedReturnValue(+[UIDevice currentDevice](&OBJC_CLASS___UIDevice, "currentDevice"));
v6 = objc_retainAutoreleasedReturnValue(-[UIDevice systemVersion](v5, "systemVersion"));
-[NSString floatValue](v6, "floatValue");
if ( v7 < 7.0 )
v8 = CFSTR("itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@");
else
v8 = CFSTR("itms-apps://itunes.apple.com/app/id%@");
v9 = objc_retainAutoreleasedReturnValue(
+[NSNumber numberWithUnsignedInteger:](
&OBJC_CLASS___NSNumber,
"numberWithUnsignedInteger:",
-[iRate appStoreID](self, "appStoreID")));
v10 = objc_retainAutoreleasedReturnValue(+[NSString stringWithFormat:](&OBJC_CLASS___NSString, "stringWithFormat:", v8, v9));
v4 = objc_retainAutoreleasedReturnValue(+[NSURL URLWithString:](&OBJC_CLASS___NSURL, "URLWithString:", v10));
objc_release(v10);
objc_release(v9);
objc_release(v6);
objc_release(v5);
}
return objc_autoreleaseReturnValue(v4);
}