Function at 0x1400881f0
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 [0x1401e4928]
xor ebx, ebx
mov r11, rcx
lea esi, [rbx + 6]
test rdx, rdx
je 0x140088270
mov r8, qword [0x1401e4920]
mov r9, qword [r8]
mov rax, r11
sub r9, r11
movzx ecx, byte [rax]
movzx r10d, byte [rax + r9]
sub ecx, r10d
jne 0x140088246
inc rax
test r10d, r10d
jne 0x140088231
test ecx, ecx
je 0x140088258
inc rbx
add r8, 0x28
cmp rbx, rdx
jb 0x140088228
jmp 0x140088270
lea rdx, str.NaClFaultInject:_found__s_n
mov r8, r11
mov ecx, esi
call fcn.14007e6c4
mov rdx, qword [0x1401e4928]
cmp rbx, rdx
jne 0x14008827c
xor eax, eax
jmp 0x14008849e
mov r12, qword [0x1401e4920]
lea r15, [rbx + rbx*4]
lea rbp, str.b:core_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 0x1400883a4
lea rdx, str.NaClFaultInject:_thread_specific_counter_n
call fcn.14007e6c4
cmp rbx, qword [0x1401e4928]
jb 0x1400882da
lea rax, str.counter_ix___gNaClNumFaultInjectInfo
mov r9d, 0x167
mov r8, rbp
mov rdx, r14
mov ecx, 0xfffffffc
mov qword [rsp + 0x20], rax
call fcn.14007e6c4
cmp dword [0x1401e4948], 0
je 0x140088275
mov ecx, dword [0x1401ee5a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x140088395
mov rdi, qword [0x1401e4928]
mov rcx, rdi
shl rcx, 4
call fcn.1400a26ec
mov rsi, rax
test rax, rax
jne 0x14008833d
lea rax, str.NULL___counters
lea ecx, [rsi - 4]
mov r9d, 0x176
mov r8, rbp
mov rdx, r14
mov qword [rsp + 0x20], rax
call fcn.14007e6c4
mov rdi, qword [0x1401e4928]
test rdi, rdi
je 0x140088357
mov rax, rsi
and qword [rax], 0
and qword [rax + 8], 0
lea rax, [rax + 0x10]
dec rdi
jne 0x140088345
cmp dword [0x1401e4948], 0
je 0x140088395
mov ecx, dword [0x1401ee5a4]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140088395
lea rax, str.status
mov r9d, 0xf5
mov r8, rbp
mov rdx, r14
mov ecx, 0xfffffffc
mov qword [rsp + 0x20], rax
call fcn.14007e6c4
shl rbx, 4
lea rdi, [rbx + rsi]
mov esi, 6
jmp 0x1400883cd
lea rdx, str.NaClFaultInject:_global_counter_n
call fcn.14007e6c4
mov rcx, qword [0x1401e4940]
shl rbx, 4
add rcx, rbx
call fcn.14007f4c0
mov rdi, qword [0x1401e4938]
add rdi, rbx
test rdi, rdi
je 0x140088275
mov r9, qword [rdi + 8]
mov r8, qword [rdi]
lea rdx, str.NaClFaultInject:_counter__I64x__I64x__n
mov ecx, esi
call fcn.14007e6c4
mov rax, qword [rdi]
cmp rax, qword [r12 + r15*8 + 0x18]
jb 0x1400883fc
xor esi, esi
jmp 0x140088485
mov r14, qword [r12 + r15*8 + 0x10]
lea rbp, [rax + rax*2]
cmp dword [r14 + rbp*8], 0
je 0x140088410
xor esi, esi
jmp 0x14008846e
mov r8, qword [r14 + rbp*8 + 8]
lea rdx, str.NaClFaultInject:_should_fail__value__I64x_n
mov ecx, esi
call fcn.14007e6c4
cmp dword [0x1401e4948], 0
mov esi, 1
je 0x14008846e
mov rdx, qword [r14 + rbp*8 + 8]
mov ecx, dword [0x1401ee5a0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14008846e
lea rax, str.status
lea r8, str.b:core_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, 0xf5
mov qword [rsp + 0x20], rax
call fcn.14007e6c4
inc qword [rdi + 8]
mov rax, qword [rdi + 8]
cmp rax, qword [r14 + rbp*8 + 0x10]
jb 0x140088485
and qword [rdi + 8], 0
inc qword [rdi]
cmp dword [r12 + r15*8 + 8], 0
jne 0x14008849c
mov rcx, qword [0x1401e4940]
add rcx, rbx
call fcn.14007f4e8
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