//
// ScrollableContentLayer::restoreScrollOffset from 0x6e5b04 to 0x6e5be4 (224 bytes)
//
// 4 xrefs:
// > KeybindingsLayer::showTab @ 0x997354
// > DeathHistogram::restoreScroll @ 0xc99310
// > EditorSoundsLayer::showTab @ 0xcd6a74
// > ??> @ 0x9bdb8
//
// 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:43 +0000
//
__int64 __fastcall ScrollableContentLayer::restoreScrollOffset(ScrollableContentLayer *a1, __int64 a2)
{
unsigned __int8 v4; // w0
__int64 *v5; // x0
v4 = atomic_load((unsigned __int8 *)&byte_155C370);
if ( (v4 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_155C370) )
{
qword_155C378 = 0;
dword_155C398 = 1.0;
qword_155C380 = 0;
qword_155C388 = 0;
qword_155C390 = 0;
_cxa_guard_release((__guard *)&byte_155C370);
__cxa_atexit((void (*)(void *))std::unordered_map::~unordered_map, &qword_155C378, &unk_1548000);
v5 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
&qword_155C378,
a2);
if ( !v5 )
return 0;
LABEL_3:
ScrollableContentLayer::scrollTo(a1, *((float *)v5 + 10));
return 1;
}
v5 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
&qword_155C378,
a2);
if ( v5 )
goto LABEL_3;
return 0;
}