//
// sub_10014DFE4 from 0x10014dfe4 to 0x10014e014 (48 bytes)
//
// 15 xrefs:
// > PlayLayer::createObjectsFromSetupFinished @ 0x1001452c8
// > sub_10014DF7C @ 0x10014df9c
// > sub_1001D5C9C @ 0x1001d5d40
// > sub_1002EE870 @ 0x1002ee8d4
// > sub_1002EE870 @ 0x1002ee8f0
// > sub_1002EE9C0 @ 0x1002eeadc
// > sub_1002EE9C0 @ 0x1002eeae8
// > sub_1002EE9C0 @ 0x1002eeaf4
// > sub_1002EE9C0 @ 0x1002eedc8
// > sub_1002EE9C0 @ 0x1002eedd4
// > sub_1002EE9C0 @ 0x1002eede0
// > sub_1002EE9C0 @ 0x1002ef29c
// > sub_1002EE9C0 @ 0x1002ef2a8
// > sub_1002EF9FC @ 0x1002efa68
// > sub_1002EF9FC @ 0x1002efab4
//
// 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:59:38 +0000
//
_QWORD *__fastcall sub_10014DFE4(_QWORD *result, unsigned __int64 a2)
{
unsigned __int64 v2; // x9
v2 = (__int64)(result[1] - *result) >> 3;
if ( a2 > v2 )
return (_QWORD *)sub_10014E014();
if ( a2 < v2 )
result[1] = *result + 8 * a2;
return result;
}