Function at 0x140017a90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov byte [rsp + 0x2f], 0
mov rax, qword [0x14009e098]
cmp rax, 3
jne 0x140017c84
cmp byte [rsp + 0x2f], 0
jne 0x140017c99
mov ecx, dword [0x14008c058]
test ecx, ecx
je 0x140017c9f
dec ecx
call fcn.14008a00c
cmp rax, 2
jb 0x140017ade
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140017b7a
mov ecx, dword [0x14008c058]
test ecx, ecx
je 0x140017cb2
dec ecx
call fcn.14008a00c
test rax, rax
je 0x140017b2c
mov rsi, rax
cmp rax, 1
jne 0x140017b74
lea rax, str.library_std_src_threadlocal.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1400972cd]
lea r9, sym.core::ptr::drop_in_place____::h5d45ce50ddca3128
lea r8, [rsp + 0x30]
mov edx, 0x46
call sym.core::result::unwrap_failed::h79423e584d43a020
ud2
movzx eax, byte [0x14009e150]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140017ce2
mov rsi, rax
lea rax, sym.std::sys::common::thread_local::os_local::destroy_value::h382566231b43ce64
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14008c058]
test ecx, ecx
je 0x140017cc5
dec ecx
mov rdx, rsi
call fcn.14008a004
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x14009e060]
cmp rax, rsi
jne 0x140017bae
mov eax, dword [0x14009e090]
inc eax
jne 0x140017bce
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x140094328]
mov edx, 0x26
call sym.core::option::expect_failed::h007bf6aa81bc4f7e
ud2
lea rcx, [0x14009e058]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x140017c99
mov qword [0x14009e060], rsi
mov eax, 1
mov dword [0x14009e090], eax
mov qword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x46], 0
cmp qword [0x14009e068], 0
jne 0x140017cd8
mov qword [0x14009e068], 0xffffffffffffffff
cmp byte [0x14009e088], 0
jne 0x140017c29
lea rcx, [0x14009e070]
call sym._ZN3std2io8buffered9bufwriter18BufWriter_LT_W_GT_9flush_buf17hba5f554e53f0a433E.llvm.15837262642225002792
test rax, rax
je 0x140017c29
mov rcx, rax
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h5ca44348856e2937E.llvm.15837262642225002792
cmp qword [0x14009e078], 0
je 0x140017c44
mov rcx, qword [0x14009e070]
mov edx, 1
call sym.__rust_dealloc
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x14009e080], xmm1
movups xmmword [0x14009e070], xmm0
inc qword [0x14009e068]
dec dword [0x14009e090]
jne 0x140017c99
mov qword [0x14009e060], 0
lea rcx, [0x14009e058]
call fcn.14008a05c
jmp 0x140017c99
lea rcx, [rsp + 0x2f]
call sym.std::sync::once_lock::OnceLock_T_::initialize::h81b6d324a7246d9a
cmp byte [rsp + 0x2f], 0
je 0x140017ab6
add rsp, 0x50
pop rsi
ret
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h382566231b43ce64
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x140017ac6
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h382566231b43ce64
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x140017aee
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h382566231b43ce64
call sym.std::sys::windows::thread_local_key::StaticKey::init::h561a531895d6e825
mov ecx, eax
jmp 0x140017b6c
call sym.core::cell::panic_already_borrowed::hc32f753397866ffe
jmp 0x140017d6d
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h5459b1f9ef419134
ud2
ud2