//
// DeathMarkerLayer::mountSection from 0xca1884 to 0xca19b4 (304 bytes)
//
// 3 xrefs:
// > DeathMarkerLayer::updateVisibility @ 0xca1b50
// > DeathMarkerLayer::updateVisibility @ 0xca1c08
// > ??> @ 0xf0748
//
// 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::mountSection(DeathMarkerLayer *this, unsigned int a2)
{
__int64 result; // x0
__int64 v4; // x22
__int64 v5; // x1
unsigned __int64 v6; // x20
int v7; // w23
__int64 v8; // x0
__int64 v9; // x19
long double v10; // q0
__int64 v11; // x0
unsigned int v12; // [xsp+4Ch] [xbp+4Ch] BYREF
v12 = 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,
&v12);
v4 = result;
if ( result )
{
v5 = *(_QWORD *)(result + 24);
result = (*(_QWORD *)(result + 32) - v5) >> 2;
if ( result )
{
v6 = 0;
v7 = 0;
do
{
v8 = 80LL * *(int *)(v5 + 4 * v6);
v9 = *((_QWORD *)this + 40) + v8;
if ( *(_QWORD *)(v9 + 64)
|| (DeathMarkerLayer::buildCell((__int64)this, *((_QWORD *)this + 40) + v8), *(_QWORD *)(v9 + 64)) )
{
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 51) + 464LL))(*((_QWORD *)this + 51));
}
v11 = *(_QWORD *)(v9 + 72);
LODWORD(v10) = -0.5;
if ( v11 )
{
if ( !*((_BYTE *)this + 449) )
LODWORD(v10) = 0.5;
(*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v11 + 128LL))(v11, v10);
v7 = 1;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 52) + 456LL))(
*((_QWORD *)this + 52),
*(_QWORD *)(v9 + 72));
}
v5 = *(_QWORD *)(v4 + 24);
++v6;
result = *(_QWORD *)(v4 + 32) - v5;
}
while ( v6 < result >> 2 );
if ( v7 )
return DeathMarkerLayer::resolveBadgeCollisions(this);
}
}
return result;
}