//
// sub_1004D6A28 from 0x1004d6a28 to 0x1004d6a8c (100 bytes)
//
// 2 xrefs:
// > sub_1004D64B8 @ 0x1004d6500
// > sub_1004D64B8 @ 0x1004d6568
//
// 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:06:31 +0000
//
__int64 __fastcall sub_1004D6A28(__int64 result, __int64 a2, int a3)
{
int v4; // w8
__int16 v5; // [xsp+Ch] [xbp-14h] BYREF
char v6; // [xsp+Eh] [xbp-12h]
if ( a3 )
v4 = -1;
else
v4 = 8224125;
v5 = v4;
v6 = BYTE2(v4);
if ( result )
result = sub_100224488(result, (__int64)&v5);
if ( a2 )
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)a2 + 1072LL))(a2, &v5);
return result;
}