//
// sub_1006F9210 from 0x1006f9210 to 0x1006f92f6 (230 bytes)
//
// 1 xrefs:
// > CustomSongWidget::init @ 0x1006f7a8f
//
// 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:54 +0000
//
void __fastcall sub_1006F9210(__int64 a1)
{
__int64 v1; // rax
unsigned int v2; // ebx
__int128 *v3; // rax
__int64 v4; // rax
__int128 v5; // [rsp+0h] [rbp-50h] BYREF
void *v6; // [rsp+10h] [rbp-40h]
__int128 v7; // [rsp+20h] [rbp-30h] BYREF
void *__p; // [rsp+30h] [rbp-20h]
v1 = *(_QWORD *)(a1 + 336);
if ( !v1 )
return;
v2 = *(_DWORD *)(v1 + 316);
if ( (*(_BYTE *)(v1 + 320) & 1) != 0 )
{
sub_10001AD30(&v5, *(const void **)(v1 + 336), *(_QWORD *)(v1 + 328));
v1 = *(_QWORD *)(a1 + 336);
if ( (*(_BYTE *)(v1 + 344) & 1) != 0 )
goto LABEL_4;
LABEL_6:
v3 = (__int128 *)(v1 + 344);
__p = *((void **)v3 + 2);
v7 = *v3;
goto LABEL_7;
}
v6 = *(void **)(v1 + 336);
v5 = *(_OWORD *)(v1 + 320);
if ( (*(_BYTE *)(v1 + 344) & 1) == 0 )
goto LABEL_6;
LABEL_4:
sub_10001AD30(&v7, *(const void **)(v1 + 360), *(_QWORD *)(v1 + 352));
LABEL_7:
v4 = sub_1009756A0(v2, &v5, &v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
if ( (v7 & 1) != 0 )
operator delete(__p);
if ( (v5 & 1) != 0 )
operator delete(v6);
}