//
// -[iRate appStoreID] from 0x1003a423c to 0x1003a42b4 (120 bytes)
//
// 3 xrefs:
// > -[iRate ratingsURL] @ 0x1003a4128
// > -[iRate ratingsURL] @ 0x1003a41ac
// > ??> @ 0x100847728
//
// 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
//
unsigned __int64 __cdecl -[iRate appStoreID](iRate *self, SEL a2)
{
unsigned __int64 result; // x0
NSUserDefaults *v3; // x19
id v4; // x20
void *v5; // x21
result = self->_appStoreID;
if ( !result )
{
v3 = objc_retainAutoreleasedReturnValue(+[NSUserDefaults standardUserDefaults](&OBJC_CLASS___NSUserDefaults, "standardUserDefaults"));
v4 = objc_retainAutoreleasedReturnValue(-[NSUserDefaults objectForKey:](v3, "objectForKey:", CFSTR("iRateAppStoreID")));
v5 = objc_msgSend(v4, "unsignedIntegerValue");
objc_release(v4);
objc_release(v3);
return (unsigned __int64)v5;
}
return result;
}