//
// sub_1006FD710 from 0x1006fd710 to 0x1006fd7d7 (199 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b95e58
//
// 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_1006FD710(__int64 a1, int a2, __int64 a3)
{
_DWORD *v3; // rbx
__int64 result; // rax
__int64 v5; // rdi
size_t v6; // r14
const void *v7; // rsi
__int128 v8; // [rsp+0h] [rbp-30h]
v3 = *(_DWORD **)(a1 + 280);
result = *(_QWORD *)(a1 + 288);
if ( v3 != (_DWORD *)result )
{
v5 = a1 - 320;
v6 = result - (_QWORD)v3 - 19;
while ( *v3 != a2 || v3[1] != 2 )
{
v3 += 4;
v6 -= 16LL;
if ( v3 == (_DWORD *)result )
return result;
}
++v3[2];
*((_BYTE *)v3 + 12) = 0;
v7 = v3 + 4;
if ( v3 + 4 != (_DWORD *)result )
{
*(_QWORD *)&v8 = *(_QWORD *)v3;
DWORD2(v8) = v3[2];
BYTE12(v8) = *((_BYTE *)v3 + 12);
memmove(v3, v7, v6);
*(_QWORD *)((char *)v3 + v6 + 3) = v8;
*(_QWORD *)((char *)v3 + v6 + 8) = *(_QWORD *)((char *)&v8 + 5);
}
return CustomSongWidget::processNextMultiAsset(v5, v7, a3);
}
return result;
}