//
// sub_100015400 from 0x100015400 to 0x1000154d8 (216 bytes)
//
// 1 xrefs:
// > PlayLayer::destroyPlayer @ 0x100147b1c
//
// 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 10:57:18 +0000
//
void __fastcall sub_100015400(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x9
__int64 v4; // x20
unsigned __int64 v5; // x21
__int64 v6; // x23
void *__p; // [xsp+8h] [xbp-48h] BYREF
void *v8; // [xsp+10h] [xbp-40h]
__int64 v9; // [xsp+18h] [xbp-38h]
if ( *(_QWORD *)(a1 + 320) )
{
v2 = *(_QWORD *)(a1 + 544);
v3 = *(_QWORD *)(a1 + 536);
if ( v2 != v3 )
{
v4 = 0;
v5 = 0;
do
{
if ( (*(_BYTE *)(v3 + v4) & 1) == 0 )
{
v6 = v3 + v4;
__p = nullptr;
v8 = nullptr;
v9 = 0;
sub_100018908(&__p);
(***(void (__fastcall ****)(_QWORD, _QWORD, _QWORD, void **, _QWORD, _QWORD))(a1 + 320))(
*(_QWORD *)(a1 + 320),
*(unsigned int *)(v6 + 4),
*(unsigned __int8 *)(v6 + 8),
&__p,
*(unsigned int *)(v6 + 12),
*(unsigned int *)(v6 + 16));
if ( __p )
{
v8 = __p;
operator delete(__p);
}
v2 = *(_QWORD *)(a1 + 544);
v3 = *(_QWORD *)(a1 + 536);
}
++v5;
v4 += 48;
}
while ( 0xAAAAAAAAAAAAAAABLL * ((v2 - v3) >> 4) > v5 );
}
}
}