Function at 0x140012cb0
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 0x140012f14
mov byte [rsp + 0x2f], 0
mov rax, qword [0x140045080]
cmp rax, 3
jne 0x140012ce3
cmp byte [rsp + 0x2f], 0
je 0x140012cf4
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 0x140012cdd
mov ecx, dword [0x140038088]
test ecx, ecx
je 0x140012d50
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140012d69
mov rsi, rax
cmp byte [rax + 8], 0
je 0x140012d69
add rsi, 9
mov rax, qword [0x140045048]
cmp rax, rsi
jne 0x140012e53
mov eax, dword [0x140045078]
inc eax
jne 0x140012e73
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x14003dab0]
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 0x140012d0b
mov ecx, dword [0x140038088]
test ecx, ecx
je 0x140012db7
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140012dcf
mov rsi, rax
cmp rax, 1
jne 0x140012e39
lea rax, [0x14003d7a8]
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 0x140012d7f
movzx eax, byte [0x140045030]
mov rcx, qword [0x1400450e0]
test rcx, rcx
jne 0x140012dfa
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140012f35
mov rcx, rax
mov qword [0x1400450e0], rax
mov r8d, 0x10
xor edx, edx
call fcn.14003638c
test rax, rax
je 0x140012f35
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140038088]
test ecx, ecx
je 0x140012f01
dec ecx
mov rdx, rsi
call fcn.1400362ec
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x140045048]
cmp rax, rsi
je 0x140012d28
lea rcx, [0x140045040]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x140012cdd
mov qword [0x140045048], rsi
mov eax, 1
mov dword [0x140045078], eax
mov qword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x46], 0
cmp qword [0x140045050], 0
jne 0x140012f2e
mov qword [0x140045050], 0xffffffffffffffff
lea rcx, [0x140045058]
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 [0x140045068], xmm1
movups xmmword [0x140045058], xmm0
inc qword [0x140045050]
dec dword [0x140045078]
jne 0x140012cdd
mov qword [0x140045048], 0
lea rcx, [0x140045040]
call fcn.140036334
nop
add rsp, 0x50
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x140012e31
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 0x140012f5a
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
ud2