//
// -[iRate resizeAlertView:] from 0x10044cfcc to 0x10044d380 (948 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009cf880
//
// 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:18 +0000
//
void __cdecl -[iRate resizeAlertView:](iRate *self, SEL a2, id a3)
{
id v3; // x19
UIDevice *v4; // x20
NSString *v5; // x21
float v6; // s0
float v7; // s8
void *v8; // x0
void *v9; // x21
__int64 v10; // x27
double v11; // d13
double v12; // d12
void *v13; // x20
void *v14; // x22
double v15; // d0
double v16; // d8
double v17; // d1
double v18; // d10
double v19; // d2
double v20; // d9
double v21; // d3
double v22; // d11
__int64 v23; // x0
id v24; // x23
void *v25; // x24
void *v26; // x25
unsigned int v27; // w26
double v28; // d3
double v29; // d11
double v30; // d3
__int64 v31; // x0
void *v32; // x24
void *v33; // x25
unsigned int v34; // w26
double v35; // d3
double v36; // d3
__int64 v37; // x0
__int64 v38; // x0
void *v39; // x0
__int64 v40; // [xsp+0h] [xbp-160h]
__int64 v41; // [xsp+0h] [xbp-160h]
id obj; // [xsp+8h] [xbp-158h]
__int128 v43; // [xsp+10h] [xbp-150h] BYREF
__int128 v44; // [xsp+20h] [xbp-140h]
__int128 v45; // [xsp+30h] [xbp-130h]
__int128 v46; // [xsp+40h] [xbp-120h]
_BYTE v47[128]; // [xsp+50h] [xbp-110h] BYREF
v3 = objc_retain(a3);
v4 = objc_retainAutoreleasedReturnValue(+[UIDevice currentDevice](&OBJC_CLASS___UIDevice, "currentDevice"));
v5 = objc_retainAutoreleasedReturnValue(-[UIDevice systemVersion](v4, "systemVersion"));
-[NSString floatValue](v5, "floatValue");
v7 = v6;
objc_release(v5);
objc_release(v4);
if ( v7 < 7.0 )
{
v45 = 0u;
v46 = 0u;
v43 = 0u;
v44 = 0u;
obj = objc_retainAutoreleasedReturnValue(objc_msgSend(v3, "subviews"));
v8 = objc_msgSend(obj, "countByEnumeratingWithState:objects:count:", &v43, v47, 16);
if ( !v8 )
goto LABEL_27;
v9 = v8;
v40 = 0;
v10 = *(_QWORD *)v44;
v11 = 0.0;
v12 = 0.0;
while ( 1 )
{
v13 = nullptr;
do
{
if ( *(_QWORD *)v44 != v10 )
objc_enumerationMutation(obj);
v14 = *(void **)(*((_QWORD *)&v43 + 1) + 8LL * (_QWORD)v13);
objc_msgSend(v14, "frame", v40);
v16 = v15;
v18 = v17;
v20 = v19;
v22 = v21;
v23 = objc_opt_class(&OBJC_CLASS___UILabel);
if ( (objc_opt_isKindOfClass(v14, v23) & 1) != 0 )
{
v24 = objc_retain(v14);
v25 = objc_retainAutoreleasedReturnValue(objc_msgSend(v24, "text"));
v26 = objc_retainAutoreleasedReturnValue(objc_msgSend(v3, "title"));
v27 = (unsigned int)objc_msgSend(v25, "isEqualToString:", v26);
objc_release(v26);
objc_release(v25);
if ( v27 )
{
objc_msgSend(v24, "frame");
v29 = v28;
objc_msgSend(v24, "sizeToFit");
objc_msgSend(v24, "frame");
v11 = v30 - v29;
v12 = v30 - v29;
goto LABEL_14;
}
v32 = objc_retainAutoreleasedReturnValue(objc_msgSend(v24, "text"));
v33 = objc_retainAutoreleasedReturnValue(objc_msgSend(v3, "message"));
v34 = (unsigned int)objc_msgSend(v32, "isEqualToString:", v33);
objc_release(v33);
objc_release(v32);
if ( v34 )
{
objc_msgSend(v24, "setLineBreakMode:", 0);
objc_msgSend(v24, "setNumberOfLines:", 0);
objc_msgSend(v24, "setAlpha:", 1.0);
objc_msgSend(v24, "sizeToFit");
objc_msgSend(v24, "frame");
v12 = v12 + v35 - v22;
v18 = v11 + v18;
LABEL_14:
objc_msgSend(v24, "frame");
v22 = v36;
}
objc_release(v24);
LABEL_16:
objc_msgSend(v14, "setFrame:", v16, v18, v20, v22, v41);
goto LABEL_17;
}
v31 = objc_opt_class(&OBJC_CLASS___UITextView);
if ( (objc_opt_isKindOfClass(v14, v31) & 1) != 0 )
{
objc_msgSend(v14, "setAlpha:", 0.0);
goto LABEL_16;
}
v37 = objc_opt_class(&OBJC_CLASS___UIImageView);
if ( (objc_opt_isKindOfClass(v14, v37) & 1) == 0 )
{
v38 = objc_opt_class(&OBJC_CLASS___UIControl);
if ( (objc_opt_isKindOfClass(v14, v38) & 1) != 0 )
v18 = v12 + v18;
goto LABEL_16;
}
if ( v41 >= 1 )
objc_msgSend(v14, "setAlpha:", 0.0);
objc_msgSend(v14, "setFrame:", v16, v18, v20, v22, v41 + 1);
LABEL_17:
v13 = (char *)v13 + 1;
}
while ( v9 != v13 );
v39 = objc_msgSend(obj, "countByEnumeratingWithState:objects:count:", &v43, v47, 16);
v9 = v39;
if ( !v39 )
{
LABEL_27:
objc_release(obj);
objc_msgSend(v3, "frame");
objc_msgSend(v3, "setFrame:");
break;
}
}
}
objc_release(v3);
}