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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rdx, qword [0x14020d310]
xor ebx, ebx
mov r11, rcx
lea esi, [rbx + 6]
test rdx, rdx
je 0x14008414c
mov r8, qword [0x14020d308]
mov r9, qword [r8]
mov rax, r11
sub r9, r11
movzx ecx, byte [rax]
movzx r10d, byte [rax + r9]
sub ecx, r10d
jne 0x140084122
inc rax
test r10d, r10d
jne 0x14008410d
test ecx, ecx
je 0x140084134
inc rbx
add r8, 0x28
cmp rbx, rdx
jb 0x140084104
jmp 0x14008414c
lea rdx, str.NaClFaultInject:_found__s_n
mov r8, r11
mov ecx, esi
call fcn.14007a9a0
mov rdx, qword [0x14020d310]
cmp rbx, rdx
jne 0x140084158
xor eax, eax
jmp 0x14008437a
mov r12, qword [0x14020d308]
lea r15, [rbx + rbx*4]
lea rbp, str.c:core_no_admin_src_native_client_src_trusted_fault_injection_fault_injection.c
cmp dword [r12 + r15*8 + 8], 0
lea r14, str.Fatal_error_in_file__s__line__d:____s__n
mov ecx, esi
je 0x140084280
lea rdx, str.NaClFaultInject:_thread_specific_counter_n
call fcn.14007a9a0
cmp rbx, qword [0x14020d310]
jb 0x1400841b6
lea rax, str.counter_ix___gNaClNumFaultInjectInfo
mov r9d, 0x168
mov r8, rbp
mov rdx, r14
mov ecx, 0xfffffffc
mov qword [rsp + 0x20], rax
call fcn.14007a9a0
cmp dword [0x14020d300], 0
je 0x140084151
mov ecx, dword [0x140216f84]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x140084271
mov rdi, qword [0x14020d310]
mov rcx, rdi
shl rcx, 4
call fcn.14009ea04
mov rsi, rax
test rax, rax
jne 0x140084219
lea rax, str.NULL___counters
lea ecx, [rsi - 4]
mov r9d, 0x177
mov r8, rbp
mov rdx, r14
mov qword [rsp + 0x20], rax
call fcn.14007a9a0
mov rdi, qword [0x14020d310]
test rdi, rdi
je 0x140084233
mov rax, rsi
and qword [rax], 0
and qword [rax + 8], 0
lea rax, [rax + 0x10]
dec rdi
jne 0x140084221
cmp dword [0x14020d300], 0
je 0x140084271
mov ecx, dword [0x140216f84]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140084271
lea rax, str.status
mov r9d, 0xf6
mov r8, rbp
mov rdx, r14
mov ecx, 0xfffffffc
mov qword [rsp + 0x20], rax
call fcn.14007a9a0
shl rbx, 4
lea rdi, [rbx + rsi]
mov esi, 6
jmp 0x1400842a9
lea rdx, str.NaClFaultInject:_global_counter_n
call fcn.14007a9a0
mov rcx, qword [0x14020d2f8]
shl rbx, 4
add rcx, rbx
call fcn.14007a950
mov rdi, qword [0x14020d2f0]
add rdi, rbx
test rdi, rdi
je 0x140084151
mov r9, qword [rdi + 8]
mov r8, qword [rdi]
lea rdx, str.NaClFaultInject:_counter__I64x__I64x__n
mov ecx, esi
call fcn.14007a9a0
mov rax, qword [rdi]
cmp rax, qword [r12 + r15*8 + 0x18]
jb 0x1400842d8
xor esi, esi
jmp 0x140084361
mov r14, qword [r12 + r15*8 + 0x10]
lea rbp, [rax + rax*2]
cmp dword [r14 + rbp*8], 0
je 0x1400842ec
xor esi, esi
jmp 0x14008434a
mov r8, qword [r14 + rbp*8 + 8]
lea rdx, str.NaClFaultInject:_should_fail__value__I64x_n
mov ecx, esi
call fcn.14007a9a0
cmp dword [0x14020d300], 0
mov esi, 1
je 0x14008434a
mov rdx, qword [r14 + rbp*8 + 8]
mov ecx, dword [0x140216f80]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14008434a
lea rax, str.status
lea r8, str.c:core_no_admin_src_native_client_src_trusted_fault_injection_fault_injection.c
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea ecx, [rsi - 5]
mov r9d, 0xf6
mov qword [rsp + 0x20], rax
call fcn.14007a9a0
inc qword [rdi + 8]
mov rax, qword [rdi + 8]
cmp rax, qword [r14 + rbp*8 + 0x10]
jb 0x140084361
and qword [rdi + 8], 0
inc qword [rdi]
cmp dword [r12 + r15*8 + 8], 0
jne 0x140084378
mov rcx, qword [0x14020d2f8]
add rcx, rbx
call fcn.14007a978
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret