//
// DeathMarkerLayer::mountSection from 0x76bb58 to 0x76bc12 (186 bytes)
//
// 2 xrefs:
// > DeathMarkerLayer::updateVisibility @ 0x76bd7a
// > DeathMarkerLayer::updateVisibility @ 0x76bdd6
//
// 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
//
void __fastcall DeathMarkerLayer::mountSection(DeathMarkerLayer *this, unsigned int a2)
{
_DWORD *v3; // r7
unsigned int v4; // r6
int v5; // r8
int v6; // r2
_DWORD *v7; // r4
int v8; // r1
int v9; // r0
float v10; // r1
unsigned int v11; // [sp+4h] [bp-8h] BYREF
v11 = a2;
v3 = std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find(
(_DWORD *)this + 69,
&v11);
if ( v3 )
{
v4 = 0;
v5 = 0;
while ( 1 )
{
v6 = v3[3];
if ( v4 >= (v3[4] - v6) >> 2 )
break;
v7 = (_DWORD *)(*((_DWORD *)this + 66) + 72 * *(_DWORD *)(v6 + 4 * v4));
if ( !v7[16] )
DeathMarkerLayer::buildCell((int)this, *((_DWORD *)this + 66) + 72 * *(_DWORD *)(v6 + 4 * v4));
v8 = v7[16];
if ( v8 )
(*(void (__fastcall **)(_DWORD, int, bool))(**((_DWORD **)this + 79) + 232))(
*((_DWORD *)this + 79),
v8,
v7[12] == 4);
v9 = v7[17];
if ( v9 )
{
v5 = 1;
if ( *((_BYTE *)this + 349) )
v10 = -0.5;
else
v10 = 0.5;
(*(void (__fastcall **)(int, float))(*(_DWORD *)v9 + 64))(v9, COERCE_FLOAT(LODWORD(v10)));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 80) + 228))(*((_DWORD *)this + 80), v7[17]);
}
++v4;
}
if ( v5 )
DeathMarkerLayer::resolveBadgeCollisions(this);
}
}