//
// sub_100682704 from 0x100682704 to 0x100682928 (548 bytes)
//
// 2 xrefs:
// > sub_1006825B8 @ 0x1006826e4
// > sub_100682ECC @ 0x1006859ac
//
// 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:11:18 +0000
//
void __fastcall sub_100682704(__int64 a1)
{
int v2; // w1
int v3; // w1
int v4; // w1
int v5; // w1
if ( a1 )
{
sub_1006AD8D4(a1, 0);
sub_1006AD8D4(a1, 1);
v2 = *(_DWORD *)(a1 + 468);
if ( v2 != -1 )
sub_100690E30(a1, v2);
v3 = *(_DWORD *)(a1 + 464);
if ( v3 != -1 )
sub_100690E30(a1, v3);
v4 = *(_DWORD *)(a1 + 472);
if ( v4 != -1 )
sub_100690E30(a1, v4);
v5 = *(_DWORD *)(a1 + 476);
if ( v5 != -1 )
sub_100690E30(a1, v5);
sub_1006A31E8(a1);
off_1009E5FD8(*(void **)(a1 + 368));
*(_QWORD *)(a1 + 368) = 0;
off_1009E5FD8(*(void **)(a1 + 376));
*(_QWORD *)(a1 + 376) = 0;
off_1009E5FD8(*(void **)(a1 + 392));
*(_QWORD *)(a1 + 392) = 0;
off_1009E5FD8(*(void **)(a1 + 384));
*(_QWORD *)(a1 + 384) = 0;
off_1009E5FD8(*(void **)(a1 + 400));
*(_QWORD *)(a1 + 400) = 0;
off_1009E5FD8(*(void **)(a1 + 408));
*(_QWORD *)(a1 + 408) = 0;
off_1009E5FD8(*(void **)(a1 + 832));
*(_QWORD *)(a1 + 832) = 0;
off_1009E5FD8(*(void **)(a1 + 840));
*(_QWORD *)(a1 + 840) = 0;
off_1009E5FD8(*(void **)(a1 + 856));
*(_QWORD *)(a1 + 856) = 0;
off_1009E5FD8(*(void **)(a1 + 848));
*(_QWORD *)(a1 + 848) = 0;
off_1009E5FD8(*(void **)(a1 + 904));
*(_QWORD *)(a1 + 904) = 0;
off_1009E5FD8(*(void **)(a1 + 864));
*(_QWORD *)(a1 + 864) = 0;
off_1009E5FD8(*(void **)(a1 + 872));
*(_QWORD *)(a1 + 872) = 0;
off_1009E5FD8(*(void **)(a1 + 880));
*(_QWORD *)(a1 + 880) = 0;
off_1009E5FD8(*(void **)(a1 + 888));
*(_QWORD *)(a1 + 888) = 0;
off_1009E5FD8(*(void **)(a1 + 896));
*(_QWORD *)(a1 + 896) = 0;
off_1009E5FD8(*(void **)(a1 + 1320));
*(_QWORD *)(a1 + 1320) = 0;
off_1009E5FD8(*(void **)(a1 + 176));
*(_QWORD *)(a1 + 176) = 0;
off_1009E5FD8(*(void **)(a1 + 208));
*(_QWORD *)(a1 + 208) = 0;
off_1009E5FD8(*(void **)(a1 + 936));
*(_QWORD *)(a1 + 936) = 0;
sub_100691DB4(*(_QWORD *)(a1 + 920), 0);
sub_100691DB4(*(_QWORD *)(a1 + 928), 0);
*(_QWORD *)(a1 + 928) = 0;
*(_QWORD *)(a1 + 920) = 0;
off_1009E5FD8(*(void **)(a1 + 1576));
*(_QWORD *)(a1 + 1576) = 0;
sub_1006AD070(a1 + 600);
off_1009E5FD8((void *)a1);
}
}