//
// sub_10006698C from 0x10006698c to 0x1000669d4 (72 bytes)
//
// 6 xrefs:
// > HardStreak::updateStroke @ 0x1000661c0
// > HardStreak::updateStroke @ 0x100066234
// > LevelEditorLayer::didRotateGameplay @ 0x100404364
// > LevelEditorLayer::postUpdate @ 0x1004057e8
// > LevelEditorLayer::postUpdate @ 0x1004058e0
// > sub_100405938 @ 0x100405a60
//
// 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:56 +0000
//
__int64 __fastcall sub_10006698C(__int64 a1, double *a2)
{
unsigned __int64 v3; // x20
__int64 result; // x0
v3 = *(_QWORD *)(a1 + 8);
if ( v3 >= *(_QWORD *)(a1 + 16) )
{
result = sub_100066F0C(a1);
}
else
{
sub_1000262F4(*(_QWORD **)(a1 + 8), a2);
result = v3 + 8;
*(_QWORD *)(a1 + 8) = v3 + 8;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}