// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/jemalloc/src/prof.c
// Function: je_prof_tdata_reinit
prof_tdata_t *
prof_tdata_reinit(tsd_t *tsd, prof_tdata_t *tdata)
{
	uint64_t thr_uid = tdata->thr_uid;
	uint64_t thr_discrim = tdata->thr_discrim + 1;
	char *thread_name = (tdata->thread_name != NULL) ?
	    prof_thread_name_alloc(tsd, tdata->thread_name) : NULL;
	bool active = tdata->active;

	prof_tdata_detach(tsd, tdata);
	return (prof_tdata_init_impl(tsd, thr_uid, thr_discrim, thread_name,
	    active));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rsi), %r15
testq %r15, %r15
je 0x31fba
movq %r15, %rdi
callq 0x101c0
testq %rax, %rax
je 0x31fba
movq %rax, %rbp
movq 0x8(%r14), %r13
testq %r13, %r13
jne 0x31ce9
cmpl $0x1, (%r14)
jne 0x31ce6
movq %r14, %rdi
callq 0x374cf
movq %rax, %r13
movq %rax, 0x8(%r14)
jmp 0x31ce9
xorl %r13d, %r13d
movq 0x28(%r14), %r12
testq %r12, %r12
jne 0x31d06
movq %r14, %rdi
callq 0x1c83a
movq %rax, %r12
testq %rax, %rax
je 0x31fba
leaq 0x1(%rbp), %rcx
cmpq $0x3800, %rcx           # imm = 0x3800
movq %rcx, 0x8(%rsp)
ja 0x31d2f
testq %r13, %r13
jne 0x31d50
movq %r12, %rdi
movq %rcx, %rsi
xorl %edx, %edx
callq 0x2351e
jmp 0x31dbd
leaq 0x2580a(%rip), %rax     # 0x57540
cmpq %rcx, (%rax)
jae 0x31d6a
movq %r14, %rdi
movq %r12, %rsi
movq %rcx, %rdx
xorl %ecx, %ecx
movq %r13, %r8
callq 0x2fd7c
jmp 0x31dbd
cmpq $0x1000, %rcx           # imm = 0x1000
ja 0x31dce
shrq $0x3, %rbp
leaq 0x10d9c(%rip), %rax     # 0x42b00
movzbl (%rax,%rbp), %eax
jmp 0x31dd6
testq %r13, %r13
je 0x31db0
leaq 0x2606a(%rip), %rax     # 0x57de0
cmpq %rcx, (%rax)
jb 0x31db0
movq %rcx, %rdi
callq 0x32e76
movl %eax, %eax
leaq 0x105f4(%rip), %rcx     # 0x42380
movq (%rcx,%rax,8), %rdx
shlq $0x5, %rax
leaq (%rax,%r13), %rsi
addq $0x20, %rsi
movl 0x10(%rsi), %eax
testl %eax, %eax
jne 0x31e93
orl $-0x1, 0x8(%rsi)
jmp 0x31eaf
movq %r12, %rdi
movq %rcx, %rsi
xorl %edx, %edx
callq 0x236e4
movq %rax, %rbp
testq %rax, %rax
jne 0x31f1d
jmp 0x31fba
movq %rcx, %rdi
callq 0x32e76
movl %eax, %r8d
movq %r8, %rax
shlq $0x5, %rax
leaq (%rax,%r13), %rcx
addq $0x20, %rcx
leaq 0x10591(%rip), %rax     # 0x42380
movq (%rax,%r8,8), %rax
movq %rax, 0x10(%rsp)
movl 0x10(%rcx), %eax
testl %eax, %eax
jne 0x31e05
orl $-0x1, 0x8(%rcx)
jmp 0x31e21
decl %eax
movl %eax, 0x10(%rcx)
cmpl 0x8(%rcx), %eax
jge 0x31e12
movl %eax, 0x8(%rcx)
movq 0x18(%rcx), %rdx
movl %eax, %eax
movq (%rdx,%rax,8), %rbp
testq %rbp, %rbp
jne 0x31e47
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rcx, %r12
movq %r8, %rbp
callq 0x37313
movq %rbp, %r8
movq %r12, %rcx
movq %rax, %rbp
testq %rax, %rax
je 0x31fba
leaq 0x247d3(%rip), %rax     # 0x56621
cmpb $0x1, (%rax)
jne 0x31e6d
imulq $0x60, %r8, %rsi
addq 0x2217a(%rip), %rsi     # 0x53fd8
movq %rbp, %rdi
xorl %edx, %edx
movq %rcx, %r12
callq 0x2339e
jmp 0x31e8b
leaq 0x247bf(%rip), %rax     # 0x56633
cmpb $0x1, (%rax)
jne 0x31e8e
movq %rbp, %rdi
xorl %esi, %esi
movq 0x10(%rsp), %rdx
movq %rcx, %r12
callq 0x10270
movq %r12, %rcx
incq (%rcx)
jmp 0x31f01
decl %eax
movl %eax, 0x10(%rsi)
cmpl 0x8(%rsi), %eax
jge 0x31ea0
movl %eax, 0x8(%rsi)
movq 0x18(%rsi), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %rbp
testq %rbp, %rbp
jne 0x31ec9
movq %r12, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x236e4
movq %rax, %rbp
testq %rax, %rax
jne 0x31f01
jmp 0x31fba
leaq 0x24751(%rip), %rax     # 0x56621
cmpb $0x1, (%rax)
jne 0x31ee2
movq %rbp, %rdi
movq %rsi, %r12
movl $0xa5, %esi
jmp 0x31ef6
leaq 0x2474a(%rip), %rax     # 0x56633
cmpb $0x1, (%rax)
jne 0x31efe
movq %rbp, %rdi
movq %rsi, %r12
xorl %esi, %esi
callq 0x10270
movq %r12, %rsi
incq (%rsi)
movl 0x18(%r13), %eax
incl %eax
movl %eax, 0x18(%r13)
cmpl $0xd3, %eax
jne 0x31f1d
movq %r14, %rdi
movq %r13, %rsi
callq 0x36f85
leaq 0x2578c(%rip), %r13     # 0x576b0
movq (%r13), %rax
notq %rax
andq %rbp, %rax
cmpq %rax, %rbp
jne 0x31f4a
movq %rbp, %rdi
callq 0x311b6
movq %rax, %r12
movq (%r13), %rax
notq %rax
andq %rbp, %rax
jmp 0x31f4d
movq (%rax), %r12
cmpq %rax, %rbp
jne 0x31f5c
movq %rbp, %rdi
callq 0x311c1
jmp 0x31fa3
movq %rbp, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x255eb(%rip), %rdx     # 0x57558
subq (%rdx), %rcx
movq 0x68(%rax,%rcx,8), %rax
movl %eax, %ecx
shrl $0x5, %ecx
movl $0xff, %edx
andl %edx, %ecx
cmpl %edx, %ecx
jne 0x31f96
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x31fa3
movl %ecx, %eax
leaq 0x103e1(%rip), %rcx     # 0x42380
movq (%rcx,%rax,8), %rax
movq 0x8(%rsp), %rdx
lock
xaddq %rax, 0x58(%r12)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x10400
movq (%rbx), %rdi
callq 0x106d0
cmpb $0x1, 0x20(%rbx)
jne 0x31ff8
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x32e20
testb %al, %al
je 0x31fef
andq $0x0, 0x20(%r14)
movq (%rbx), %rdi
callq 0x10440
movq %r14, %rdi
movq %rbx, %rsi
callq 0x32e44
movb $0x0, 0x20(%rbx)
andq $0x0, 0x20(%r14)
movq (%rbx), %rdi
callq 0x10440