//
// sub_10004D920 from 0x10004d920 to 0x10004d9d8 (184 bytes)
//
// 1 xrefs:
// > GameToolbox::particleStringToStruct @ 0x10004d07c
//
// 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 10:57:42 +0000
//
const void **__fastcall sub_10004D920(const void **result, unsigned __int64 a2)
{
const void **v2; // x19
__int64 v3; // x20
char *v4; // x0
char *v5; // x21
__int64 v6; // x1
char *v7; // x22
size_t v8; // x2
char *v9; // x20
const void *v10; // x8
const void *v11; // x9
_QWORD v12[5]; // [xsp+8h] [xbp-48h] BYREF
if ( 0xAAAAAAAAAAAAAAABLL * (((_BYTE *)result[2] - (_BYTE *)*result) >> 3) < a2 )
{
if ( a2 >= 0xAAAAAAAAAAAAAABLL )
sub_10000A5F8();
v2 = result;
v3 = (_BYTE *)result[1] - (_BYTE *)*result;
v12[4] = result;
v4 = (char *)sub_100017E44((__int64)result, a2);
v5 = &v4[v3];
v7 = &v4[24 * v6];
v8 = (_BYTE *)v2[1] - (_BYTE *)*v2;
v9 = &v4[v3 - v8];
memcpy(v9, *v2, v8);
v10 = *v2;
*v2 = v9;
v2[1] = v5;
v11 = v2[2];
v2[2] = v7;
v12[2] = v10;
v12[3] = v11;
v12[0] = v10;
v12[1] = v10;
return (const void **)sub_100017E88((__int64)v12);
}
return result;
}