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

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x140013a34
mov byte [rsp + 0x2e], 0
mov rax, qword [0x140049080]
cmp rax, 3
jne 0x140013803
cmp byte [rsp + 0x2e], 0
je 0x140013814
add rsp, 0x50
pop rsi
ret
lea rcx, [rsp + 0x2e]
call sym.std::sync::once_lock::OnceLock_T_::initialize::he7770dcdd210f19f
cmp byte [rsp + 0x2e], 0
jne 0x1400137fd
mov ecx, dword [0x14003b098]
test ecx, ecx
je 0x140013870
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140013889
mov rsi, rax
cmp byte [rax + 8], 0
je 0x140013889
add rsi, 9
mov rax, qword [0x140049048]
cmp rax, rsi
jne 0x140013973
mov eax, dword [0x140049078]
inc eax
jne 0x140013993
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x140041300]
mov edx, 0x26
call dbg.expect_failed
ud2
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14001382b
mov ecx, dword [0x14003b098]
test ecx, ecx
je 0x1400138d7
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400138ef
mov rsi, rax
cmp rax, 1
jne 0x140013959
lea rax, [0x140040f90]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
lea r9, dbg.drop_in_place____
lea r8, [rsp + 0x2f]
mov edx, 0x46
call dbg.unwrap_failed
ud2
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x14001389f
movzx eax, byte [0x140049030]
mov rcx, qword [0x1400490e0]
test rcx, rcx
jne 0x14001391a
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140013a79
mov rcx, rax
mov qword [0x1400490e0], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140013a79
mov rsi, rax
lea rax, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14003b098]
test ecx, ecx
je 0x140013a21
dec ecx
mov rdx, rsi
call fcn.140038f2c
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x140049048]
cmp rax, rsi
je 0x140013848
lea rcx, [0x140049040]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x1400137fd
mov qword [0x140049048], rsi
mov eax, 1
mov dword [0x140049078], eax
mov qword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x46], 0
cmp qword [0x140049050], 0
jne 0x140013a4e
mov qword [0x140049050], 0xffffffffffffffff
lea rcx, [0x140049058]
call dbg.drop_in_place<std::io::buffered::linewriter::LineWriter<std::io::stdio::StdoutRaw>>
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x140049068], xmm1
movups xmmword [0x140049058], xmm0
inc qword [0x140049050]
dec dword [0x140049078]
jne 0x1400137fd
mov qword [0x140049048], 0
lea rcx, [0x140049040]
call fcn.140038f74
nop
add rsp, 0x50
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
jmp 0x140013951
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
ud2
lea rax, [0x140040f10]
mov qword [rsp + 0x20], rax
lea rcx, [0x140040ee0]
lea r9, dbg.drop_in_place____
lea r8, [rsp + 0x2f]
mov edx, 0x10
call dbg.unwrap_failed
ud2
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2