//
// sub_140080E00 from 0x140080e00 to 0x140080ee5 (229 bytes)
//
// 8 xrefs:
// > ScrollableContentLayer::restoreScrollOffset @ 0x140081015
// > DeathTrackerPopup::onToggleGlobal @ 0x14010d9a3
// > DeathTrackerPopup::onClose @ 0x14010e809
// > EditorSoundsLayer::dEditorSoundsLayer @ 0x14019c8ed
// > EditorSoundsLayer::showTab @ 0x14019e201
// > KeybindingsLayer::dKeybindingsLayer @ 0x1403d54d3
// > KeybindingsLayer::showTab @ 0x1403d78d7
// > ??> @ 0x140912050
//
// This function is hookable on this platform (idp: pc, 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 11:25:55 +0000
//
// Hidden C++ exception states: #wind=3
int *sub_140080E00()
{
_QWORD *v0; // rax
if ( dword_14090D4B0 > *(_DWORD *)(*(_QWORD *)NtCurrentTeb()->ThreadLocalStoragePointer + 4LL) )
{
sub_140677B5C(&dword_14090D4B0);
if ( dword_14090D4B0 == -1 )
{
dword_14090D470 = 0;
qword_14090D478 = 0;
qword_14090D480 = 0;
v0 = operator new(0x38u);
*v0 = v0;
v0[1] = v0;
qword_14090D478 = (__int64)v0;
qword_14090D488 = 0;
xmmword_14090D490 = 0;
qword_14090D4A0 = 7;
qword_14090D4A8 = 8;
dword_14090D470 = 1065353216;
sub_14003F200((__int64)&qword_14090D488, 0x10u, (unsigned __int64)v0);
atexit(sub_1406CD140);
Init_thread_footer(&dword_14090D4B0);
}
}
return &dword_14090D470;
}