Function at 0x140015ff0
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 0x140016254
mov byte [rsp + 0x2e], 0
mov rax, qword [0x140049090]
cmp rax, 3
jne 0x140016023
cmp byte [rsp + 0x2e], 0
je 0x140016034
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 0x14001601d
mov ecx, dword [0x14003c098]
test ecx, ecx
je 0x140016090
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400160a9
mov rsi, rax
cmp byte [rax + 8], 0
je 0x1400160a9
add rsi, 9
mov rax, qword [0x140049058]
cmp rax, rsi
jne 0x140016193
mov eax, dword [0x140049088]
inc eax
jne 0x1400161b3
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x1400426c8]
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 0x14001604b
mov ecx, dword [0x14003c098]
test ecx, ecx
je 0x1400160f7
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001610f
mov rsi, rax
cmp rax, 1
jne 0x140016179
lea rax, [0x140042390]
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 0x1400160bf
movzx eax, byte [0x140049040]
mov rcx, qword [0x1400490f0]
test rcx, rcx
jne 0x14001613a
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140016299
mov rcx, rax
mov qword [0x1400490f0], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140016299
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 [0x14003c098]
test ecx, ecx
je 0x140016241
dec ecx
mov rdx, rsi
call fcn.140039aa4
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x140049058]
cmp rax, rsi
je 0x140016068
lea rcx, [0x140049050]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x14001601d
mov qword [0x140049058], rsi
mov eax, 1
mov dword [0x140049088], eax
mov qword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x46], 0
cmp qword [0x140049060], 0
jne 0x14001626e
mov qword [0x140049060], 0xffffffffffffffff
lea rcx, [0x140049068]
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 [0x140049078], xmm1
movups xmmword [0x140049068], xmm0
inc qword [0x140049060]
dec dword [0x140049088]
jne 0x14001601d
mov qword [0x140049058], 0
lea rcx, [0x140049050]
call fcn.140039af4
nop
add rsp, 0x50
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
jmp 0x140016171
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, [0x140042310]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedlibrary_std_srcio_stdio.rs
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