//
// sub_10051A308 from 0x10051a308 to 0x10051a3b8 (176 bytes)
//
// 2 xrefs:
// > sub_10051A044 @ 0x10051a128
// > sub_10051A044 @ 0x10051a158
//
// 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_10051A308(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v5; // x20
__int64 v6; // x22
__int64 v7; // x24
if ( a2 == a3 )
return a2;
v5 = a3;
v6 = a2 + 64;
do
{
v7 = v6 - 64;
*(_DWORD *)a4 = *(_DWORD *)(v6 - 64);
std::string::operator=((std::string *)(a4 + 8), (const std::string *)(v6 - 56));
std::string::operator=((std::string *)(a4 + 32), (const std::string *)(v6 - 32));
if ( a4 != v6 - 64 )
sub_10051A3B8(a4 + 56);
a4 += 80;
v6 += 80;
}
while ( v7 + 80 != v5 );
return v5;
}