//
// -[iRate delegate] from 0x10044a8ec to 0x10044a970 (132 bytes)
//
// 2 xrefs:
// > sub_1001F9348 @ 0x1001f935c
// > ??> @ 0x1009cf508
//
// 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
//
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));
}