//
// GJBaseGameLayer::shouldUseSubstepForButton from 0x10014ada0 to 0x10014ae70 (208 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall GJBaseGameLayer::shouldUseSubstepForButton(GJBaseGameLayer *a1, float a2)
{
std::__vector_base
::pointer begin; // r15
std::__vector_base::pointer end; // r14
double v4; // xmm2_8
double v5; // xmm1_8
std::__vector_base::pointer v6; // r15
double m_timestamp; // xmm0_8
bool result; // al
double v10; // [rsp-30h] [rbp-30h]
double v11; // [rsp-28h] [rbp-28h]
if ( !a1->m_clickBetweenSteps )
return 0;
begin = a1->m_queuedButtons.__begin_;
end = a1->m_queuedButtons.__end_;
if ( begin == end )
return 0;
v4 = a1->m_timestamp + a2;
v5 = a2 * 0.5 + a1->m_timestamp;
v6 = begin + 1;
v10 = v5;
v11 = v4;
while ( 1 )
{
m_timestamp = v6[-1].m_timestamp;
if ( m_timestamp >= v5 && v4 > m_timestamp )
{
v4 = v11;
v5 = v10;
if ( GJBaseGameLayer::buttonIsRelevant(a1, v6 - 1) )
break;
}
result = 0;
if ( m_timestamp < v4 && v6++ != end )
continue;
return result;
}
return 1;
}