//
// sub_1004A2CB8 from 0x1004a2cb8 to 0x1004a2dac (244 bytes)
//
// 1 xrefs:
// > sub_1000480C8 @ 0x1000480dc
//
// 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:06:03 +0000
//
__int64 sub_1004A2CB8()
{
__int64 result; // x0
float v1; // s8
double v2; // d0
int v3; // w8
UIUserInterfaceIdiom v4; // x0
float v5; // s0
result = (unsigned int)dword_1009D46F8;
if ( dword_1009D46F8 == -1 )
{
v1 = 1.0;
if ( (objc_opt_respondsToSelector(+[UIScreen mainScreen](&OBJC_CLASS___UIScreen, "mainScreen"), "scale") & 1) != 0 )
{
-[UIScreen scale](+[UIScreen mainScreen](&OBJC_CLASS___UIScreen, "mainScreen"), "scale");
v1 = v2;
}
if ( (objc_opt_respondsToSelector(
+[UIDevice currentDevice](&OBJC_CLASS___UIDevice, "currentDevice"),
"userInterfaceIdiom")
& 1) != 0
&& (void *)-[UIDevice userInterfaceIdiom](
+[UIDevice currentDevice](&OBJC_CLASS___UIDevice, "currentDevice"),
"userInterfaceIdiom") == (void *)1 )
{
v3 = 1124335616;
}
else
{
if ( (objc_opt_respondsToSelector(
+[UIDevice currentDevice](&OBJC_CLASS___UIDevice, "currentDevice"),
"userInterfaceIdiom")
& 1) != 0 )
{
v4 = -[UIDevice userInterfaceIdiom](
+[UIDevice currentDevice](&OBJC_CLASS___UIDevice, "currentDevice"),
"userInterfaceIdiom");
v5 = 160.0;
if ( v4 == UIUserInterfaceIdiomPhone )
v5 = 163.0;
goto LABEL_13;
}
v3 = 1126367232;
}
v5 = *(float *)&v3;
LABEL_13:
dword_1009D46F8 = (int)(float)(v1 * v5);
return (unsigned int)dword_1009D46F8;
}
return result;
}