//
// sub_10042F660 from 0x10042f660 to 0x10042f6b0 (80 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::refreshCounterLabels @ 0x1002988e0
// > GJBaseGameLayer::resetGroupCounters @ 0x100298a08
// > GJBaseGameLayer::resetGroupCounters @ 0x100298a80
// > GJBaseGameLayer::updateSpecialLabels @ 0x10029d080
// > GJBaseGameLayer::updateSpecialLabels @ 0x10029d144
// > GJBaseGameLayer::updatePlatformerTime @ 0x10029d46c
//
// 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:05:05 +0000
//
__int64 __fastcall sub_10042F660(__int64 result, __int64 *a2)
{
__int64 v2; // x19
if ( (*(_BYTE *)(result + 1904) & 1) == 0 )
{
v2 = result;
result = *(_QWORD *)(result + 1840);
if ( result )
{
*(_DWORD *)(result + 512) = *(_DWORD *)(v2 + 1900);
if ( *((char *)a2 + 23) < 0 )
a2 = (__int64 *)*a2;
result = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)result + 928LL))(result, a2);
}
*(_BYTE *)(v2 + 1848) = 0;
}
return result;
}