//
// sub_100542810 from 0x100542810 to 0x1005428c4 (180 bytes)
//
// 1 xrefs:
// > AccountReviewPopup::init @ 0x1005418dc
//
// 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:07:43 +0000
//
_QWORD *__fastcall sub_100542810(_QWORD *result)
{
_QWORD *v1; // x9
__int64 v2; // x8
_QWORD *v3; // x19
__int64 v4; // x21
__int64 v5; // x10
__int64 v7; // x20
__int64 v8; // x22
v1 = (_QWORD *)result[165];
v2 = result[166] - (_QWORD)v1;
if ( v2 )
{
v3 = result;
v4 = 0;
v5 = v2 >> 3;
if ( (unsigned __int64)(v2 >> 3) <= 1 )
v5 = 1;
do
{
if ( *v1++ )
++v4;
--v5;
}
while ( v5 );
if ( v4 )
{
if ( (int)((unsigned __int64)v2 >> 3) >= 1 )
{
v7 = 0;
v8 = result[170];
do
{
sub_100549F0C(v3, v7, v8 != v4);
v7 = (unsigned int)(v7 + 1);
}
while ( (int)v7 < (int)((v3[166] - v3[165]) >> 3) );
}
return (_QWORD *)sub_100544EF0(v3);
}
}
return result;
}