//
// sub_10051A58C from 0x10051a58c to 0x10051a61c (144 bytes)
//
// 2 xrefs:
// > sub_10051A3B8 @ 0x10051a49c
// > sub_10051A3B8 @ 0x10051a4cc
//
// 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:08 +0000
//
__int64 __fastcall sub_10051A58C(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v5; // x21
__int64 v6; // x20
char v7; // w8
v5 = a2;
if ( a2 == a3 )
return a2;
v6 = a3;
do
{
*(_DWORD *)a4 = *(_DWORD *)v5;
std::string::operator=((std::string *)(a4 + 8), (const std::string *)(v5 + 8));
std::string::operator=((std::string *)(a4 + 32), (const std::string *)(v5 + 32));
v7 = *(_BYTE *)(v5 + 64);
*(_QWORD *)(a4 + 56) = *(_QWORD *)(v5 + 56);
*(_BYTE *)(a4 + 64) = v7;
std::string::operator=((std::string *)(a4 + 72), (const std::string *)(v5 + 72));
a4 += 96;
v5 += 96;
}
while ( v5 != v6 );
return v6;
}