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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rbx, rcx
test rcx, rcx
je 0x1400d8c10
lea rax, [rcx + 0x30]
mov edx, dword [rcx + 0x30]
test edx, edx
jle 0x1400d8bd8
lock sub dword [rax], 1
je 0x1400d89b0
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rsi, [0x1404caf30]
lea rbp, [rsp + 0x40]
mov rcx, rsi
call fcn.140341618
mov r8, qword [0x1404caf28]
mov qword [rsp + 0x40], r8
test r8, r8
je 0x1400d8a00
lea rbp, [rsp + 0x40]
mov rax, r8
mov r9, rbp
mov rdx, qword [rax]
mov rcx, rax
mov rax, qword [rax + 8]
cmp rbx, rdx
je 0x1400d8c20
lea r9, [rcx + 8]
test rax, rax
jne 0x1400d89e0
nop dword [rax]
mov rcx, rsi
mov qword [0x1404caf28], r8
xor esi, esi
call fcn.140341260
mov rax, qword [rbx + 0x40]
mov edx, dword [rax + 8]
test edx, edx
je 0x1400d8a40
nop dword [rax]
mov rax, qword [rax]
mov edx, esi
xor r8d, r8d
add esi, 1
mov rcx, qword [rax + rdx*8]
mov rdx, rbx
call fcn.1400d8360
mov rax, qword [rbx + 0x40]
cmp esi, dword [rax + 8]
jb 0x1400d8a20
mov rcx, rbx
xor edi, edi
lea r12, [rsp + 0x38]
call fcn.140341618
pxor xmm0, xmm0
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], 0
movaps xmmword [rsp + 0x50], xmm0
jmp 0x1400d8a99
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x20], 0
call fcn.1400d4a10
mov ecx, 0x10
mov rsi, rax
call fcn.1400e69e0
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov rdi, rax
mov rdx, r12
mov rcx, rbp
call fcn.1400d86f0
test eax, eax
jne 0x1400d8a70
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400d8abe
mov eax, dword [rsp + 0x48]
test eax, eax
jne 0x1400d8c40
mov rsi, rdi
test rdi, rdi
je 0x1400d8aef
nop word cs:[rax + rax]
mov rcx, qword [rsi]
mov r8d, 1
mov rdx, rbx
mov qword [rsp + 0x38], rcx
call fcn.1400d8840
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x1400d8ad0
mov rsi, qword [rbx + 0x50]
test rsi, rsi
je 0x1400d8b1a
nop dword [rax + rax]
mov rdx, qword [rsi]
mov ecx, 0x18
call fcn.1400e6130
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x1400d8b00
mov rsi, qword [rbx + 0x50]
mov rdx, rsi
mov r8d, 8
mov ecx, 0x18
call fcn.1400e74e0
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1400d8c60
mov rcx, rsi
call fcn.1400c99b0
mov rcx, rsi
call fcn.1400c9e50
mov rcx, rbx
call fcn.140341260
mov rcx, qword [rbx + 0x40]
mov edx, 1
call fcn.1400be120
mov rcx, qword [rbx + 0x70]
call fcn.14034efb0
mov rdx, qword [rbx + 0x60]
mov r8d, 0x10
mov ecx, 0x20
call fcn.1400e74e0
mov rcx, qword [rbx + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
mov rbx, rdi
call fcn.14034efb0
test rdi, rdi
je 0x1400d8bb6
nop word [rax + rax]
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call fcn.1400d8360
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400d8ba0
mov r8d, 8
mov rdx, rdi
mov ecx, 0x10
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400e74e0
lea rax, str.g_atomic_int_get__context__ref_count____0
mov qword [rsp + 0x20], rax
lea r9, str.g_main_context_unref
lea r8, [0x14039c3e8]
mov edx, 8
lea rcx, [0x14039c3b0]
call fcn.1400d2190
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14039cb4e]
jmp 0x1400d8bdf
mov qword [r9], rax
mov rdx, rcx
mov ecx, 0x10
call fcn.1400e6130
mov r8, qword [rsp + 0x40]
jmp 0x1400d8a00
mov rdx, qword [rsp + 0x40]
mov r8d, 1
call fcn.1400d8360
mov qword [rsp + 0x58], 0
jmp 0x1400d8abe
lea rax, [0x14039d52b]
mov r9, qword [str.g_hash_table_destroy]
lea r8, [0x14039c3e8]
mov edx, 8
mov qword [rsp + 0x20], rax
lea rcx, [0x14039c3b0]
call fcn.1400d2190
jmp 0x1400d8b4a