// File: /workspace/github_c_makefile_star2_O1/erikdubbelboer[P]discnt/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 0x49a8a
movq %r15, %rdi
callq 0x12250
testq %rax, %rax
je 0x49a8a
movq %rax, %rbp
movq 0x8(%r14), %r13
testq %r13, %r13
jne 0x49905
cmpl $0x1, (%r14)
jne 0x49902
movq %r14, %rdi
callq 0x4ed9b
movq %rax, %r13
movq %rax, 0x8(%r14)
jmp 0x49905
xorl %r13d, %r13d
movq 0x28(%r14), %r12
testq %r12, %r12
jne 0x49919
movq %r14, %rdi
callq 0x34a5f
movq %rax, %r12
leaq 0x1(%rbp), %rsi
testq %r12, %r12
movq %rsi, 0x8(%rsp)
jne 0x4992e
xorl %ebp, %ebp
jmp 0x499e7
cmpq $0x3800, %rsi           # imm = 0x3800
ja 0x4994b
testq %r13, %r13
jne 0x4996e
movq %r12, %rdi
xorl %edx, %edx
callq 0x3b19e
jmp 0x499e4
leaq 0x3abde(%rip), %rax     # 0x84530
cmpq %rsi, (%rax)
jae 0x4998f
movq %r14, %rdi
movq %r12, %rsi
movq 0x8(%rsp), %rdx
xorl %ecx, %ecx
movq %r13, %r8
callq 0x48064
jmp 0x499e4
cmpq $0x1000, %rsi           # imm = 0x1000
ja 0x49aec
shrq $0x3, %rbp
leaq 0xfe7a(%rip), %rax      # 0x59800
movzbl (%rax,%rbp), %eax
jmp 0x49af4
testq %r13, %r13
je 0x499da
leaq 0x3b435(%rip), %rax     # 0x84dd0
cmpq %rsi, (%rax)
jb 0x499da
movq %rsi, %rdi
callq 0x4aaf4
movl %eax, %eax
leaq 0xf6cf(%rip), %rcx      # 0x59080
movq (%rcx,%rax,8), %rdx
shlq $0x5, %rax
leaq (%rax,%r13), %rsi
addq $0x20, %rsi
movl 0x10(%rsi), %eax
testl %eax, %eax
jne 0x49bbd
movl $0xffffffff, 0x8(%rsi)  # imm = 0xFFFFFFFF
xorl %ebp, %ebp
jmp 0x49bd4
movq %r12, %rdi
xorl %edx, %edx
callq 0x3b463
movq %rax, %rbp
testq %rbp, %rbp
je 0x49a8a
leaq 0x3aca9(%rip), %r13     # 0x846a0
movq (%r13), %rax
notq %rax
andq %rbp, %rax
cmpq %rax, %rbp
jne 0x49a13
movq %rbp, %rdi
callq 0x48ccc
movq %rax, %r12
jmp 0x49a16
movq (%rax), %r12
movq (%r13), %rax
notq %rax
andq %rbp, %rax
movq %rbp, %rcx
subq %rax, %rcx
jne 0x49a32
movq %rbp, %rdi
callq 0x48cd7
jmp 0x49a73
shrq $0xc, %rcx
leaq 0x3ab0b(%rip), %rdx     # 0x84548
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 0x49a66
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x49a73
movl %ecx, %eax
leaq 0xf611(%rip), %rcx      # 0x59080
movq (%rcx,%rax,8), %rax
movq 0x8(%rsp), %rdx
lock
xaddq %rax, 0x58(%r12)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x12520
movq (%rbx), %rdi
callq 0x12960
cmpb $0x1, 0x20(%rbx)
jne 0x49ab2
leaq 0x40(%rbx), %rdi
callq 0x50da9
testq %rax, %rax
je 0x49aba
movb $0x0, 0x20(%rbx)
movq $0x0, 0x20(%r14)
movq (%rbx), %rdi
callq 0x125c0
movq $0x0, 0x20(%r14)
movq (%rbx), %rdi
callq 0x125c0
leaq 0x3acf7(%rip), %r15     # 0x847c8
movq %r15, %rdi
callq 0x12960
movq %r14, %rdi
movq %rbx, %rsi
callq 0x49dbb
movq %r15, %rdi
callq 0x125c0
movq %rsi, %rdi
callq 0x4aaf4
movl %eax, %r8d
movq %r8, %rax
shlq $0x5, %rax
leaq (%rax,%r13), %rcx
addq $0x20, %rcx
leaq 0xf573(%rip), %rax      # 0x59080
movq (%rax,%r8,8), %r9
movl 0x10(%rcx), %eax
testl %eax, %eax
jne 0x49b23
movl $0xffffffff, 0x8(%rcx)  # imm = 0xFFFFFFFF
xorl %ebp, %ebp
jmp 0x49b3a
decl %eax
movl %eax, 0x10(%rcx)
cmpl 0x8(%rcx), %eax
jge 0x49b30
movl %eax, 0x8(%rcx)
movq 0x18(%rcx), %rdx
movl %eax, %eax
movq (%rdx,%rax,8), %rbp
testq %rbp, %rbp
jne 0x49b6f
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rcx, 0x10(%rsp)
movq %r9, %rbp
movq %r8, %r12
callq 0x4ebc2
movq %r12, %r8
movq %rbp, %r9
movq 0x10(%rsp), %rcx
movq %rax, %rbp
testq %rax, %rax
je 0x49927
leaq 0x39bbb(%rip), %rax     # 0x83731
cmpb $0x1, (%rax)
jne 0x49b99
leaq (%r8,%r8,2), %rsi
shlq $0x5, %rsi
addq 0x2443e(%rip), %rsi     # 0x6dfc8
movq %rbp, %rdi
xorl %edx, %edx
movq %rcx, %r12
callq 0x3afbb
jmp 0x49bb5
leaq 0x39ba3(%rip), %rax     # 0x83743
cmpb $0x1, (%rax)
jne 0x49bb8
movq %rbp, %rdi
xorl %esi, %esi
movq %r9, %rdx
movq %rcx, %r12
callq 0x12380
movq %r12, %rcx
incq (%rcx)
jmp 0x49c2b
decl %eax
movl %eax, 0x10(%rsi)
cmpl 0x8(%rsi), %eax
jge 0x49bca
movl %eax, 0x8(%rsi)
movq 0x18(%rsi), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %rbp
testq %rbp, %rbp
jne 0x49bf3
movq %r12, %rdi
movq %rdx, %rsi
xorl %edx, %edx
callq 0x3b463
movq %rax, %rbp
testq %rax, %rax
jne 0x49c2b
jmp 0x49927
leaq 0x39b37(%rip), %rax     # 0x83731
cmpb $0x1, (%rax)
jne 0x49c0c
movq %rbp, %rdi
movq %rsi, %r12
movl $0xa5, %esi
jmp 0x49c20
leaq 0x39b30(%rip), %rax     # 0x83743
cmpb $0x1, (%rax)
jne 0x49c28
movq %rbp, %rdi
movq %rsi, %r12
xorl %esi, %esi
callq 0x12380
movq %r12, %rsi
incq (%rsi)
movl 0x18(%r13), %eax
incl %eax
movl %eax, 0x18(%r13)
cmpl $0xe4, %eax
jne 0x499e7
movq %r14, %rdi
movq %r13, %rsi
callq 0x4e7cd
jmp 0x499e7