Function at 0x1401ddb50
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
mov rsi, rcx
mov rax, qword [rcx]
lea rbx, [rsp + 0x2a]
mov r14d, 2
lea r15, [0x14024e198]
jmp 0x1401ddba7
test bpl, bpl
je 0x1401dde59
mov rax, r12
lock cmpxchg qword [rsi], r14
je 0x1401ddda8
mov r12, rax
test rax, rax
je 0x1401ddb99
cmp r12, 1
je 0x1401ddb90
cmp r12, 3
je 0x1401dddd9
mov eax, r12d
and eax, 3
cmp eax, 2
je 0x1401ddbdf
jmp 0x1401dde94
mov eax, r12d
and eax, 3
cmp eax, 2
jne 0x1401ddda0
mov ecx, dword [0x14024e1b0]
test ecx, ecx
je 0x1401ddd36
dec ecx
call fcn.140241db8
cmp rax, 2
jb 0x1401ddc10
mov r13, rax
cmp qword [rax + 8], 0
je 0x1401ddc10
add r13, 0x10
jmp 0x1401ddcc0
mov ecx, dword [0x14024e1b0]
test ecx, ecx
je 0x1401ddd45
dec ecx
call fcn.140241db8
test rax, rax
je 0x1401ddc40
mov rdi, rax
cmp rax, 1
jne 0x1401ddc85
jmp 0x1401dde32
movzx eax, byte [0x14039c1d0]
mov ecx, 0x18
mov edx, 8
call fcn.14001ec10
test rax, rax
je 0x1401dde4a
mov rdi, rax
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x14024e1b0]
test ecx, ecx
je 0x1401ddd54
dec ecx
mov rdx, rdi
call fcn.140241dc0
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 0x1401ddcc0
test rcx, rcx
je 0x1401ddcc0
lock dec qword [rcx]
jne 0x1401ddcc0
call fcn.1401de0d0
nop word cs:[rax + rax]
mov rdi, qword [r13]
test rdi, rdi
jne 0x1401ddce2
xor ecx, ecx
call fcn.1401dd800
mov rdi, rax
cmp qword [r13], 0
jne 0x1401dddee
mov qword [r13], rdi
lock inc qword [rdi]
jle 0x1401dde30
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 0x1401ddd75
mov r12, rax
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1401ddbd0
lock dec qword [rax]
jne 0x1401ddbd0
mov rcx, qword [rsp + 0x28]
call fcn.1401de0d0
jmp 0x1401ddbd0
mov rcx, r15
call fcn.1401de120
mov ecx, eax
jmp 0x1401ddbef
mov rcx, r15
call fcn.1401de120
mov ecx, eax
jmp 0x1401ddc20
mov rcx, r15
call fcn.1401de120
mov ecx, eax
jmp 0x1401ddc7d
call fcn.1401de290
movzx eax, byte [rsp + 0x38]
test al, al
je 0x1401ddd70
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1401ddda0
lock dec qword [rax]
jne 0x1401ddda0
mov rcx, qword [rsp + 0x28]
call fcn.1401de0d0
nop dword [rax + rax]
mov rax, qword [rsi]
jmp 0x1401ddba7
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]
mov rcx, rsi
call fcn.1401ddf00
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.Pi1_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str.called__Result::unwrap____on_an__Err__value
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rdx, str.pi1_
lea rcx, [rsp + 0x40]
call fcn.1400bd510
ud2
lea rcx, [0x1403173c8]
lea r8, [0x140317428]
mov edx, 0x5e
call fcn.1400c46a0
mov ecx, 8
mov edx, 0x18
call fcn.14003eff0
lea rax, str.Once_instance_has_previously_been_poisoned
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str.called__Result::unwrap____on_an__Err__value
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0xf0]
call fcn.1400bd510
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.1400be6a0
mov rbx, rax
mov edx, 1
mov rcx, rsi
call fcn.1401ddf00
jmp 0x1401ddef7
mov rcx, rbx
call fcn.140242260
int3