//
// sub_10045D780 from 0x10045d780 to 0x10045d7f0 (112 bytes)
//
// 3 xrefs:
// > sub_10045CE68 @ 0x10045d024
// > SetupPulsePopup::colorSelectClosed @ 0x10045de04
// > SetupPulsePopup::textChanged @ 0x10045e8a8
//
// 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:27 +0000
//
__int64 __fastcall sub_10045D780(__int64 a1)
{
__int64 v2; // x0
__int64 result; // x0
unsigned int v4; // w20
__int64 v5; // x0
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
return sub_10042235C(v2, *(_DWORD *)(a1 + 1268));
result = *(_QWORD *)(a1 + 688);
if ( result )
{
result = sub_1002E757C(result);
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = sub_1002E75A0(*(_QWORD *)(a1 + 688), v4);
sub_10042235C(v5, *(_DWORD *)(a1 + 1268));
++v4;
result = sub_1002E757C(*(_QWORD *)(a1 + 688));
}
while ( v4 < (unsigned int)result );
}
}
return result;
}