//
// DeathMarkerLayer::unmountSection from 0xca0674 to 0xca0740 (204 bytes)
//
// 4 xrefs:
// > DeathMarkerLayer::updateVisibility @ 0xca1ad8
// > DeathMarkerLayer::updateVisibility @ 0xca1bd8
// > DeathMarkerLayer::updateVisibility @ 0xca1c44
// > ??> @ 0x7b568
//
// 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 13:05:59 +0000
//
__int64 __fastcall DeathMarkerLayer::unmountSection(DeathMarkerLayer *this, unsigned int a2)
{
__int64 result; // x0
__int64 v4; // x22
__int64 v5; // x1
unsigned __int64 v6; // x20
__int64 v7; // x0
__int64 v8; // x19
__int64 v9; // x1
__int64 v10; // x1
unsigned int v11; // [xsp+3Ch] [xbp+3Ch] BYREF
v11 = a2;
result = (__int64)std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find(
(_QWORD *)this + 43,
&v11);
v4 = result;
if ( result )
{
v5 = *(_QWORD *)(result + 24);
result = (*(_QWORD *)(result + 32) - v5) >> 2;
if ( result )
{
v6 = 0;
do
{
v7 = *(int *)(v5 + 4 * v6++);
v8 = *((_QWORD *)this + 40) + 80 * v7;
v9 = *(_QWORD *)(v8 + 64);
if ( v9 )
(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)this + 51) + 552LL))(
*((_QWORD *)this + 51),
v9,
0);
v10 = *(_QWORD *)(v8 + 72);
if ( v10 )
(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)this + 52) + 552LL))(
*((_QWORD *)this + 52),
v10,
0);
v5 = *(_QWORD *)(v4 + 24);
result = *(_QWORD *)(v4 + 32) - v5;
}
while ( v6 < result >> 2 );
}
}
return result;
}