//
// sub_180078510 from 0x180078510 to 0x18007856c (92 bytes)
//
// 7 xrefs:
// > sub_1800E80E0 @ 0x1800e80eb
// > sub_1800E8100 @ 0x1800e810b
// > sub_1800E89A0 @ 0x1800e89a7
// > ??> @ 0x180144b90
// > ??> @ 0x180144ba0
// > ??> @ 0x1801492eb
// > ??> @ 0x1801be9f8
//
// 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 11:21:59 +0000
//
void __fastcall sub_180078510(void **a1)
{
_QWORD **v1; // rdx
_QWORD *v3; // rcx
_QWORD *v4; // rbx
v1 = (_QWORD **)*a1;
**((_QWORD **)*a1 + 1) = 0;
v3 = *v1;
if ( *v1 )
{
do
{
v4 = (_QWORD *)*v3;
j_j_free_0(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free_0(*a1);
}