//
// sub_5C517A from 0x5c517a to 0x5c51ec (114 bytes)
//
// 2 xrefs:
// > std::__ndk1::vector>::assign @ 0x5d1756
// > std::__ndk1::__hash_table>>,std::__ndk1::__unordered_map_hasher>>,std::__ndk1::hash,true>,std::__ndk1::__unordered_map_equal>>,std::__ndk1::equal_to,true>,std::__ndk1::allocator>>>>::__assign_multi>>,void *> *>> @ 0x5d17d4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:52 +0000
//
int __fastcall sub_5C517A(int result, int a2, const void **a3)
{
const void **v3; // r4
int v4; // r5
int v6; // r0
v3 = (const void **)(a2 + 36);
v4 = result;
while ( a3 != v3 - 9 )
{
result = *(_DWORD *)(v4 + 4);
if ( result )
{
v6 = result + 36;
*(_BYTE *)(v6 - 36) = *((_BYTE *)v3 - 36);
*(_DWORD *)(v6 - 32) = *(v3 - 8);
*(_DWORD *)(v6 - 28) = *(v3 - 7);
*(_DWORD *)(v6 - 24) = *(v3 - 6);
*(_BYTE *)(v6 - 20) = *((_BYTE *)v3 - 20);
*(_DWORD *)(v6 - 16) = *(v3 - 4);
*(_DWORD *)(v6 - 12) = *(v3 - 3);
*(_DWORD *)(v6 - 8) = *(v3 - 2);
*(_BYTE *)(v6 - 4) = *((_BYTE *)v3 - 4);
result = std::vector::vector(v6, v3);
}
v3 += 12;
*(_DWORD *)(v4 + 4) += 48;
}
return result;
}