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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
jmp 0x100a303e
cmp byte [ebp - 0x38], 0
je 0x100a32a5
mov ecx, dword [ebp - 0x10]
mov eax, edi
mov edx, 2
lock cmpxchg dword [ecx], edx
je 0x100a321a
mov edi, eax
test eax, eax
je 0x100a302a
cmp edi, 1
je 0x100a3020
cmp edi, 3
je 0x100a3245
mov eax, edi
and eax, 3
cmp eax, 2
je 0x100a307e
jmp 0x100a32d3
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x100a3210
mov eax, dword [0x101631c8]
test eax, eax
je 0x100a31b3
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x100a30b0
cmp dword [eax + 4], 0
mov ebx, eax
je 0x100a30b0
add ebx, 8
jmp 0x100a3150
mov eax, dword [0x101631c8]
test eax, eax
je 0x100a31c2
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x100a30e0
mov esi, eax
cmp eax, 1
jne 0x100a3122
jmp 0x100a3282
movzx eax, byte [0x1022a138]
mov ecx, 0xc
mov edx, 4
call sym.___rust_alloc
test eax, eax
je 0x100a3296
mov dword [eax], 0x101631c8
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x101631c8]
test eax, eax
je 0x100a31d1
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea ebx, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x100a3150
test ecx, ecx
je 0x100a3150
lock dec dword [ecx]
jne 0x100a3150
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
nop word [eax + eax]
mov esi, dword [ebx]
test esi, esi
jne 0x100a316a
xor ecx, ecx
call sym.std::thread::Thread::new::h891e011230b4b9a2
cmp dword [ebx], 0
mov esi, eax
jne 0x100a324d
mov dword [ebx], esi
lock inc dword [esi]
jle 0x100a3280
mov ecx, dword [ebp - 0x10]
mov eax, edi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x1a]
add eax, 0xfffffffe
mov dword [ebp - 0x18], eax
mov eax, edi
lock cmpxchg dword [ecx], edx
je 0x100a31e5
mov edi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100a3070
lock dec dword [eax]
jne 0x100a3070
mov ecx, dword [ebp - 0x1c]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x100a3070
mov ecx, 0x101631c8
call dbg.init
jmp 0x100a308c
mov ecx, 0x101631c8
call dbg.init
jmp 0x100a30be
mov ecx, 0x101631c8
call dbg.init
jmp 0x100a311b
call dbg.park
movzx eax, byte [ebp - 0x14]
test al, al
je 0x100a31e0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100a3210
lock dec dword [eax]
jne 0x100a3210
mov ecx, dword [ebp - 0x1c]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
jmp 0x100a303e
mov eax, dword [ebp + 0xc]
cmp edi, 1
mov dword [ebp - 0x34], 3
sete byte [ebp - 0x30]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp + 8]
call eax
add esp, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
call dbg.drop
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x34], 0x101c0b64
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srccharmethods.rs_
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x34]
mov edx, 0x101c0bbc
call dbg.panic_fmt
ud2
mov ecx, 0x101c1348
mov edx, 0x5e
push 0x101c13a8
call dbg.expect_failed
mov ecx, 4
mov edx, 0xc
call dbg.handle_alloc_error
mov dword [ebp - 0x34], str.Once_instance_has_previously_been_poisoned
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srccharmethods.rs_
mov dword [ebp - 0x28], 0
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x34]
call dbg.panic_fmt
mov ecx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNING
mov edx, 0x40
push dword [ebp + 0x10]
call dbg.panic
mov edi, eax
mov ecx, dword [ebp - 0x10]
mov edx, 1
call dbg.drop
jmp 0x100a331f
push edi
call sym.__Unwind_Resume
nop word cs:[eax + eax]
nop