// File: /workspace/github_c_makefile_star2_O3/oridb[P]mc/6/ra.c
// Function: freezemoves
static void
freezemoves(Isel *s, Loc *u)
{
	size_t i;
	Insn **ml;
	Insn *m;
	size_t nml;
	size_t idx;
	Loc *v;

	nml = nodemoves(s, u->reg.id, &ml);
	for (i = 0; i < nml; i++) {
		m = ml[i];
		if (getalias(s, m->args[0]->reg.id) == getalias(s, u->reg.id))
			v = locmap[getalias(s, m->args[1]->reg.id)];
		else
			v = locmap[getalias(s, m->args[0]->reg.id)];

		if (!mldel(&s->mactive, &s->nmactive, s->mactiveset, m))
			mldel(&s->wlmove, &s->nwlmove, s->wlmoveset, m);

		lappend(&s->mfrozen, &s->nmfrozen, m);
		if (!moverelated(s, v->reg.id) && istrivial(s, v->reg.id)) {
			if (!wlfind(s->wlfreeze, s->nwlfreeze, v->reg.id, &idx))
				die("Reg %zd not in freeze wl\n", v->reg.id);
			wldel(s, &s->wlfreeze, &s->nwlfreeze, idx);
			wlput(&s->wlsimp, &s->nwlsimp, v);
		}

	}
	lfree(&ml, &nml);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %r14
movq %rsi, 0x58(%rsp)
movq 0x10(%rsi), %rsi
leaq 0x10(%rsp), %rdx
callq 0xe4ac
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0xe8a7
movq %rax, %r15
movq 0x10(%rsp), %rax
movq %rax, 0x50(%rsp)
leaq 0x448(%r14), %rax
movq %rax, 0x48(%rsp)
leaq 0x450(%r14), %rax
movq %rax, 0x40(%rsp)
leaq 0x460(%r14), %rax
movq %rax, 0x30(%rsp)
leaq 0x468(%r14), %rax
movq %rax, 0x28(%rsp)
leaq 0x430(%r14), %rax
movq %rax, 0x38(%rsp)
leaq 0x438(%r14), %rbx
leaq 0x480(%r14), %rax
movq %rax, (%rsp)
leaq 0x488(%r14), %rax
movq %rax, 0x8(%rsp)
leaq 0x490(%r14), %rax
movq %rax, 0x20(%rsp)
leaq 0x498(%r14), %rax
movq %rax, 0x18(%rsp)
xorl %ebp, %ebp
movq 0x50(%rsp), %rax
movq (%rax,%rbp,8), %r12
movq 0x10(%r12), %rax
movq 0x10(%rax), %rax
movq 0x3d0(%r14), %rcx
movq 0x3e8(%r14), %rdx
movq %rax, %rsi
cmpq %rcx, %rax
jae 0xe775
movq %rax, %rsi
movq (%rdx,%rsi,8), %rdi
testq %rdi, %rdi
je 0xe775
movq 0x10(%rdi), %rsi
cmpq %rcx, %rsi
jb 0xe763
movq 0x58(%rsp), %rdi
movq 0x10(%rdi), %rdi
cmpq %rcx, %rdi
jae 0xe792
movq (%rdx,%rdi,8), %r8
testq %r8, %r8
je 0xe792
movq 0x10(%r8), %rdi
jmp 0xe77e
cmpq %rdi, %rsi
jne 0xe7b4
movq 0x18(%r12), %rax
movq 0x10(%rax), %rax
cmpq %rcx, %rax
jae 0xe7c8
movq (%rdx,%rax,8), %rsi
testq %rsi, %rsi
je 0xe7c8
movq 0x10(%rsi), %rax
jmp 0xe7a0
cmpq %rcx, %rax
jae 0xe7c8
movq (%rdx,%rax,8), %rsi
testq %rsi, %rsi
je 0xe7c8
movq 0x10(%rsi), %rax
jmp 0xe7b4
leaq 0x526b1(%rip), %rcx     # 0x60e80
movq (%rcx), %rcx
movq (%rcx,%rax,8), %r13
movq 0x440(%r14), %rdx
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq %r12, %rcx
callq 0xe8d6
testl %eax, %eax
jne 0xe80c
movq 0x458(%r14), %rdx
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %r12, %rcx
callq 0xe8d6
movq 0x38(%rsp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2ceff
movq 0x10(%r13), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0xe0c8
testl %eax, %eax
jne 0xe89b
movq 0x3d8(%r14), %rdi
movq %r12, %rsi
callq 0xe08c
testl %eax, %eax
je 0xe89b
movq 0x8(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0xe8c5
movq (%rsp), %rcx
movq (%rcx), %rcx
xorl %edx, %edx
movq (%rcx,%rdx,8), %rsi
cmpq %r12, 0x10(%rsi)
je 0xe86c
incq %rdx
cmpq %rdx, %rax
jne 0xe858
jmp 0xe8c5
movq $0x0, 0x8(%rsi)
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x2cfcc
movq 0x20(%rsp), %r12
movq %r12, %rdi
movq 0x18(%rsp), %rsi
movq %r13, %rdx
callq 0x2ceff
movq %r12, 0x8(%r13)
incq %rbp
cmpq %r15, %rbp
jne 0xe738
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x2d0c7
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x23785(%rip), %rdi     # 0x32051
movq %r12, %rsi
xorl %eax, %eax
callq 0x13844