//
// sub_45F788 from 0x45f788 to 0x45f7ac (36 bytes)
//
// 2 xrefs:
// > ChainNode::ChainNode @ 0x47c8b6
// > std::__ndk1::vector>::assign @ 0x47cb58
//
// 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:48:52 +0000
//
int __fastcall sub_45F788(int result, int *a2, int *a3)
{
int v4; // r5
int *v6; // r4
int v7; // r1
int v8; // r2
v4 = result;
while ( a2 != a3 )
{
v6 = *(int **)(v4 + 4);
if ( v6 )
{
result = *a2;
v7 = a2[1];
v8 = a2[2];
*v6 = *a2;
v6[1] = v7;
v6[2] = v8;
}
a2 += 3;
*(_DWORD *)(v4 + 4) += 12;
}
return result;
}