//
// sub_10045DBDC from 0x10045dbdc to 0x10045dc48 (108 bytes)
//
// 2 xrefs:
// > sub_10045D2B8 @ 0x10045d2ec
// > sub_10045D30C @ 0x10045d35c
//
// 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_10045DBDC(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x8
unsigned int v3; // w20
v1 = result;
v2 = *(_QWORD *)(result + 680);
if ( v2 )
{
*(_BYTE *)(v2 + 1634) = *(_BYTE *)(result + 1265);
}
else
{
result = *(_QWORD *)(result + 688);
if ( result )
{
result = sub_1002E757C(result);
if ( (_DWORD)result )
{
v3 = 0;
do
{
*(_BYTE *)(sub_1002E75A0(*(_QWORD *)(v1 + 688), v3++) + 1634) = *(_BYTE *)(v1 + 1265);
result = sub_1002E757C(*(_QWORD *)(v1 + 688));
}
while ( v3 < (unsigned int)result );
}
}
}
return result;
}