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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], r8
mov ebp, edx
push rcx
nop
pop rsi
mov rax, qword [rcx]
lea rbx, [rsp + 0x2a]
mov r14d, 2
lea r15, [0x1400490d8]
jmp 0x1400172c7
test bpl, bpl
je 0x140017579
mov rax, r12
lock cmpxchg qword [rsi], r14
je 0x1400174c8
mov r12, rax
or rax, rax
je 0x1400172b9
cmp r12, 1
je 0x1400172b0
cmp r12, 3
je 0x1400174f9
mov eax, r12d
and eax, 3
cmp eax, 2
je 0x1400172ff
jmp 0x1400175b4
mov eax, r12d
and eax, 3
cmp eax, 2
jne 0x1400174c0
mov ecx, dword [0x1400490f0]
or ecx, ecx
je 0x140017456
dec ecx
call fcn.14004679c
cmp rax, 2
jb 0x140017330
mov r13, rax
cmp qword [rax + 8], 0
je 0x140017330
add r13, 0x10
jmp 0x1400173e0
mov ecx, dword [0x1400490f0]
test ecx, ecx
je 0x140017465
dec ecx
call fcn.14004679c
or rax, rax
je 0x140017360
push rax
pop rdi
nop
cmp rax, 1
jne 0x1400173a2
jmp 0x140017552
movzx eax, byte [0x14028a128]
mov edx, 0x18
sub ecx, ecx
call fcn.1400370d0
test rax, rax
je 0x14001756a
push rax
nop
pop rdi
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x1400490f0]
test ecx, ecx
je 0x140017474
dec ecx
push rdi
nop
pop rdx
call fcn.140046794
lea r13, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], 0
je 0x1400173e0
test rcx, rcx
je 0x1400173e0
lock dec qword [rcx]
jne 0x1400173e0
call fcn.1400177e0
nop word cs:[rax + rax]
mov rdi, qword [r13]
or rdi, rdi
jne 0x140017402
sub ecx, ecx
call fcn.140016f40
mov rdi, rax
cmp qword [r13], 0
jne 0x14001750e
mov qword [r13], rdi
lock inc qword [rdi]
jle 0x140017550
mov rax, r12
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x28], rdi
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov rax, r12
lock cmpxchg qword [rsi], rbx
je 0x140017495
mov r12, rax
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1400172f0
lock dec qword [rax]
jne 0x1400172f0
mov rcx, qword [rsp + 0x28]
call fcn.1400177e0
jmp 0x1400172f0
mov rcx, r15
call fcn.140017830
mov ecx, eax
jmp 0x14001730f
mov rcx, r15
call fcn.140017830
mov ecx, eax
jmp 0x140017340
mov rcx, r15
call fcn.140017830
mov ecx, eax
jmp 0x14001739a
call fcn.1400179a0
movzx eax, byte [rsp + 0x38]
test al, al
je 0x140017490
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1400174c0
lock dec qword [rax]
jne 0x1400174c0
mov rcx, qword [rsp + 0x28]
call fcn.1400177e0
nop dword [rax + rax]
mov rax, qword [rsi]
jmp 0x1400172c7
cmp r12, 1
mov qword [rsp + 0x40], 3
sete byte [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x78]
call qword [rax + 0x20]
mov rdx, qword [rsp + 0x40]
push rsi
nop
pop rcx
call fcn.140017620
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x80], rdi
lea rax, str.H_a__
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rdx, str.h_a__
lea rcx, [rsp + 0x40]
call fcn.140003f70
ud2
lea rcx, [0x140281308]
lea r8, [0x140281368]
mov edx, 0x5e
call fcn.140005f50
mov ecx, 8
mov edx, 0x18
call fcn.140003420
lea rax, str.X1__
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0xf0]
call fcn.140003f70
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGlibrary_std_src_sys_commononcequeue.rs
mov edx, 0x40
mov r8, qword [rsp + 0xf0]
call fcn.140004dc0
nop
push rax
pop rbx
mov edx, 1
push rsi
pop rcx
nop
call fcn.140017620
jmp 0x140017617
mov rcx, rbx
call fcn.140046e10
int3