//
// DeathMarkerLayer::unmountSection from 0x76b0be to 0x76b124 (102 bytes)
//
// 3 xrefs:
// > DeathMarkerLayer::updateVisibility @ 0x76bc78
// > DeathMarkerLayer::updateVisibility @ 0x76bd3e
// > DeathMarkerLayer::updateVisibility @ 0x76bdc0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:11 +0000
//
_DWORD *__fastcall DeathMarkerLayer::unmountSection(DeathMarkerLayer *this, unsigned int a2)
{
_DWORD *result; // r0
_DWORD *v4; // r7
unsigned int i; // r4
int v6; // r2
int v7; // r6
int v8; // r1
int v9; // r1
unsigned int v10; // [sp+4h] [bp-4h] BYREF
v10 = a2;
result = std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find(
(_DWORD *)this + 69,
&v10);
v4 = result;
if ( result )
{
for ( i = 0; ; ++i )
{
v6 = v4[3];
if ( i >= (v4[4] - v6) >> 2 )
break;
v7 = *((_DWORD *)this + 66) + 72 * *(_DWORD *)(v6 + 4 * i);
v8 = *(_DWORD *)(v7 + 64);
if ( v8 )
result = (_DWORD *)(*(int (__fastcall **)(_DWORD, int, _DWORD))(**((_DWORD **)this + 79) + 276))(
*((_DWORD *)this + 79),
v8,
0);
v9 = *(_DWORD *)(v7 + 68);
if ( v9 )
result = (_DWORD *)(*(int (__fastcall **)(_DWORD, int, _DWORD))(**((_DWORD **)this + 80) + 276))(
*((_DWORD *)this + 80),
v9,
0);
}
}
return result;
}