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

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [rcx]
test byte [rax], 1
mov byte [rax], 0
je 0x14002108d
mov byte [rsp + 0x37], 0
mov rax, qword [0x140057048]
cmp rax, 3
jne 0x140020e63
cmp byte [rsp + 0x37], 0
je 0x140020e74
add rsp, 0x60
pop rsi
ret
lea rcx, [rsp + 0x37]
call sym.std::sync::once_lock::OnceLock_T_::initialize::h15b889a82f174601
cmp byte [rsp + 0x37], 0
jne 0x140020e5d
mov ecx, dword [0x140045068]
test ecx, ecx
je 0x140020ed0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140020ee9
mov rsi, rax
cmp byte [rax + 8], 0
je 0x140020ee9
add rsi, 9
mov rax, qword [0x140057058]
cmp rax, rsi
jne 0x140020fcc
mov eax, dword [0x140057088]
inc eax
jne 0x140020fec
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sys_common_remutex.rs
lea r8, [0x14004f5d8]
mov edx, 0x26
call dbg.expect_failed
ud2
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140020e8b
mov ecx, dword [0x140045068]
test ecx, ecx
je 0x140020f37
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140020f4f
mov rsi, rax
cmp rax, 1
jne 0x140020fb2
lea rax, [0x14004eef8]
mov qword [rsp + 0x20], rax
lea rcx, [0x14004ee93]
lea r9, dbg.drop_in_place_mut_std::io::Write::write_fmt::Adapter_alloc::vec::Vec_u8__alloc::alloc::Global___
lea r8, [rsp + 0x38]
mov edx, 0x46
call dbg.unwrap_failed
ud2
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140020eff
mov rcx, qword [0x1400570e8]
test rcx, rcx
jne 0x140020f73
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400210d2
mov rcx, rax
mov qword [0x1400570e8], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400210d2
mov rsi, rax
mov byte [rax + 8], 0
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov ecx, dword [0x140045068]
test ecx, ecx
je 0x14002107a
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x140057058]
cmp rax, rsi
je 0x140020ea8
lea rcx, [0x140057050]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x140020e5d
mov qword [0x140057058], rsi
mov eax, 1
mov dword [0x140057088], eax
mov qword [rsp + 0x40], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x56], 0
cmp qword [0x140057060], 0
jne 0x1400210a7
mov qword [0x140057060], 0xffffffffffffffff
lea rcx, [0x140057068]
call dbg.drop_in_place<std::io::buffered::linewriter::LineWriter<std::io::stdio::StdoutRaw>>
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x140057078], xmm1
movups xmmword [0x140057068], xmm0
inc qword [0x140057060]
dec dword [0x140057088]
jne 0x140020e5d
mov qword [0x140057058], 0
lea rcx, [0x140057050]
call fcn.140042eac
nop
add rsp, 0x60
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x140020faa
lea rcx, str.called__Option::unwrap____on_a__None__valueinternal_error:_entered_unreachable_code_rustc_69f9c33d71c871fc16ac445211281c6e7a340943library_alloc_srccollections_btree_navigate.rs
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
ud2
lea rax, [0x14004f178]
mov qword [rsp + 0x20], rax
lea rcx, [0x14004f147]
lea r9, dbg.drop_in_place_mut_std::io::Write::write_fmt::Adapter_alloc::vec::Vec_u8__alloc::alloc::Global___
lea r8, [rsp + 0x38]
mov edx, 0x10
call dbg.unwrap_failed
ud2
mov ecx, 0x10
mov edx, 8
call dbg.handle_alloc_error
ud2