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

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x1400174dd
mov byte [rsp + 0x37], 0
mov rax, qword [0x140638080]
cmp rax, 3
jne 0x140017489
cmp byte [rsp + 0x37], 0
jne 0x14001749e
mov ecx, dword [0x14004a0e8]
test ecx, ecx
je 0x1400174a4
dec ecx
call fcn.140047574
cmp rax, 2
jb 0x1400172cd
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140017367
mov ecx, dword [0x14004a0e8]
test ecx, ecx
je 0x1400174b7
dec ecx
call fcn.140047574
test rax, rax
je 0x140017319
mov rsi, rax
cmp rax, 1
jne 0x140017361
lea rax, [0x140623be8]
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 + 0x38]
mov edx, 0x46
call dbg.unwrap_failed
movzx eax, byte [0x140638120]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400174fc
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14004a0e8]
test ecx, ecx
je 0x1400174ca
dec ecx
mov rdx, rsi
call fcn.14004756c
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x140638048]
cmp rax, rsi
jne 0x140017399
mov eax, dword [0x140638078]
inc eax
jne 0x1400173b9
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, str.f_b_
mov edx, 0x26
call dbg.expect_failed
lea rcx, [0x140638040]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x14001749e
mov qword [0x140638048], rsi
mov eax, 1
mov dword [0x140638078], eax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x50], 0
mov byte [rsp + 0x55], 0
mov dword [rsp + 0x51], 0
cmp qword [0x140638050], 0
jne 0x1400174f5
mov qword [0x140638050], 0xffffffffffffffff
cmp byte [0x140638070], 0
jne 0x14001742e
lea rcx, [0x140638058]
call dbg.flush_buf<std::io::stdio::StdoutRaw>
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14001742e
lea rcx, [rsp + 0x58]
call dbg.drop_in_place<std::io::error::Error>
cmp qword [0x140638058], 0
je 0x140017449
mov rcx, qword [0x140638060]
mov edx, 1
call sym.__rust_dealloc
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x140638068], xmm1
movups xmmword [0x140638058], xmm0
inc qword [0x140638050]
dec dword [0x140638078]
jne 0x14001749e
mov qword [0x140638048], 0
lea rcx, [0x140638040]
call fcn.1400475cc
jmp 0x14001749e
lea rcx, [rsp + 0x37]
call sym.std::sync::once_lock::OnceLock_T_::initialize::hb48b2a4c2a855c36
cmp byte [rsp + 0x37], 0
je 0x1400172a5
add rsp, 0x60
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x1400172b5
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x1400172dd
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x140017359
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
call dbg.panic_already_borrowed
ud2
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
mov rsi, rax
cmp qword [0x140638058], 0
je 0x140017529
mov rcx, qword [0x140638060]
mov edx, 1
call sym.__rust_dealloc
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x140638068], xmm1
movups xmmword [0x140638058], xmm0
inc qword [0x140638050]
jmp 0x140017582
dec dword [0x140638078]
jne 0x1400175a1
mov qword [0x140638048], 0
lea rcx, [0x140638040]
call fcn.1400475cc
mov rcx, rsi
call dbg._Unwind_Resume
cmp qword [rsp + 0x38], 0
je 0x1400175c0
mov rcx, qword [rsp + 0x40]
mov edx, 1
call sym.__rust_dealloc
call dbg.panic_in_cleanup
int3