Function at 0x140011de0
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 0x140012044
mov byte [rsp + 0x2f], 0
mov rax, qword [0x140044078]
cmp rax, 3
jne 0x140011e13
cmp byte [rsp + 0x2f], 0
je 0x140011e24
add rsp, 0x50
pop rsi
ret
lea rcx, [rsp + 0x2f]
call sym.std::sync::once_lock::OnceLock_T_::initialize::hf934e738d18e225b
cmp byte [rsp + 0x2f], 0
jne 0x140011e0d
mov ecx, dword [0x140037088]
test ecx, ecx
je 0x140011e80
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140011e99
mov rsi, rax
cmp byte [rax + 8], 0
je 0x140011e99
add rsi, 9
mov rax, qword [0x140044040]
cmp rax, rsi
jne 0x140011f83
mov eax, dword [0x140044070]
inc eax
jne 0x140011fa3
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x14003c7f0]
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, 2
jae 0x140011e3b
mov ecx, dword [0x140037088]
test ecx, ecx
je 0x140011ee7
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140011eff
mov rsi, rax
cmp rax, 1
jne 0x140011f69
lea rax, [0x14003c4e8]
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 + 0x30]
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 0x140011eaf
movzx eax, byte [0x140044160]
mov rcx, qword [0x1400440d8]
test rcx, rcx
jne 0x140011f2a
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140012065
mov rcx, rax
mov qword [0x1400440d8], rax
mov r8d, 0x10
xor edx, edx
call fcn.140035514
test rax, rax
je 0x140012065
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140037088]
test ecx, ecx
je 0x140012031
dec ecx
mov rdx, rsi
call fcn.140035474
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x140044040]
cmp rax, rsi
je 0x140011e58
lea rcx, [0x140044038]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x140011e0d
mov qword [0x140044040], rsi
mov eax, 1
mov dword [0x140044070], eax
mov qword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x46], 0
cmp qword [0x140044048], 0
jne 0x14001205e
mov qword [0x140044048], 0xffffffffffffffff
lea rcx, [0x140044050]
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 [0x140044060], xmm1
movups xmmword [0x140044050], xmm0
inc qword [0x140044048]
dec dword [0x140044070]
jne 0x140011e0d
mov qword [0x140044040], 0
lea rcx, [0x140044038]
call fcn.1400354bc
nop
add rsp, 0x50
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x140011f61
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
ud2
call dbg.panic_already_borrowed
jmp 0x14001208a
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
ud2