//
// ScrollableContentLayer::persistScrollOffset from 0x6e4a80 to 0x6e4b2c (172 bytes)
//
// 6 xrefs:
// > KeybindingsLayer::showTab @ 0x997114
// > KeybindingsLayer::~KeybindingsLayer @ 0x998170
// > DeathHistogram::persistScroll @ 0xc99300
// > EditorSoundsLayer::showTab @ 0xcd6834
// > EditorSoundsLayer::~EditorSoundsLayer @ 0xcd792c
// > ??> @ 0x70498
//
// 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 12:51:42 +0000
//
_QWORD *__fastcall ScrollableContentLayer::persistScrollOffset(__int64 a1, __int64 a2)
{
unsigned __int8 v4; // w0
_QWORD *result; // x0
v4 = atomic_load((unsigned __int8 *)&byte_155C370);
if ( (v4 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_155C370) )
{
qword_155C378 = 0;
qword_155C380 = 0;
qword_155C388 = 0;
qword_155C390 = 0;
dword_155C398 = 1.0;
_cxa_guard_release((__guard *)&byte_155C370);
__cxa_atexit((void (*)(void *))std::unordered_map::~unordered_map, &qword_155C378, &unk_1548000);
}
result = std::unordered_map::operator[]((__int64)&qword_155C378, a2);
*(_DWORD *)result = *(_DWORD *)(a1 + 436);
return result;
}