//
// sub_1006FD030 from 0x1006fd030 to 0x1006fd0ff (207 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b95e30
//
// This function is hookable on this platform (idp: pc, 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 12:35:56 +0000
//
__int64 __fastcall sub_1006FD030(__int64 a1, int a2)
{
__int64 result; // rax
__int64 v3; // r14
__m128 v4; // xmm0
__m128 v5; // xmm2
_BYTE v6[56]; // [rsp-38h] [rbp-38h] BYREF
result = *(unsigned int *)(a1 + 184);
LOBYTE(result) = (_DWORD)result != a2 || (_DWORD)result == 0;
if ( !(_BYTE)result )
{
v3 = *(_QWORD *)(a1 + 144);
v4 = (__m128)*(unsigned int *)(*(_QWORD *)(a1 + 136) + 432LL);
v4.f32[0] = v4.f32[0] + -4.0;
v5 = v4;
v5.f32[0] = fminf(v4.f32[0] * 0.0, v4.f32[0]);
sub_100278270((__int64)v6, 0.0, 0.0, v5, (__m128)0x41000000u);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v3 + 1136LL))(v3, v6);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 136) + 344LL))(*(_QWORD *)(a1 + 136), 1);
cocos2d::CCNode::unschedule(a1 - 320, (__int64)CustomSongWidget::updateDownloadProgress, 0);
return cocos2d::CCNode::schedule_1(
a1 - 320,
(__int64)CustomSongWidget::updateDownloadProgress,
0,
COERCE_DOUBLE(1023969417));
}
return result;
}