//
// -[iRate delegate] from 0x1003a3e44 to 0x1003a3ec8 (132 bytes)
//
// 2 xrefs:
// > PlatformToolbox::openAppPage @ 0x10016b918
// > ??> @ 0x100847680
//
// 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
//
iRateDelegate *__cdecl -[iRate delegate](iRate *self, SEL a2)
{
id WeakRetained; // x20
UIApplication *v4; // x20
id v5; // x21
WeakRetained = objc_loadWeakRetained((id *)&self->_delegate);
objc_release(WeakRetained);
if ( !WeakRetained )
{
v4 = objc_retainAutoreleasedReturnValue(+[UIApplication sharedApplication](&OBJC_CLASS___UIApplication, "sharedApplication"));
v5 = objc_retainAutoreleasedReturnValue(-[UIApplication delegate](v4, "delegate"));
objc_storeWeak((id *)&self->_delegate, v5);
objc_release(v5);
objc_release(v4);
}
return (iRateDelegate *)objc_autoreleaseReturnValue(objc_loadWeakRetained((id *)&self->_delegate));
}