// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x20(%rbp), %rdx
callq 0x14bd0
movq %rax, -0x30(%rbp)
movq $0x0, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x157ee
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
callq 0x112a0
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x112a0
movq %rax, %rcx
movq -0x48(%rbp), %rax
cmpq %rcx, %rax
jne 0x15679
leaq 0x67354(%rip), %rax     # 0x7c9a0
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x10(%rax), %rsi
callq 0x112a0
movq %rax, %rcx
movq -0x50(%rbp), %rax
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
jmp 0x156ab
leaq 0x67320(%rip), %rax     # 0x7c9a0
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
callq 0x112a0
movq %rax, %rcx
movq -0x58(%rbp), %rax
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
addq $0x448, %rdi            # imm = 0x448
movq -0x8(%rbp), %rsi
addq $0x450, %rsi            # imm = 0x450
movq -0x8(%rbp), %rax
movq 0x440(%rax), %rdx
movq -0x28(%rbp), %rcx
callq 0x15810
cmpl $0x0, %eax
jne 0x15704
movq -0x8(%rbp), %rdi
addq $0x460, %rdi            # imm = 0x460
movq -0x8(%rbp), %rsi
addq $0x468, %rsi            # imm = 0x468
movq -0x8(%rbp), %rax
movq 0x458(%rax), %rdx
movq -0x28(%rbp), %rcx
callq 0x15810
movq -0x8(%rbp), %rdi
addq $0x430, %rdi            # imm = 0x430
movq -0x8(%rbp), %rsi
addq $0x438, %rsi            # imm = 0x438
movq -0x28(%rbp), %rdx
callq 0x48290
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x145d0
cmpl $0x0, %eax
jne 0x157db
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x14530
cmpl $0x0, %eax
je 0x157db
movq -0x8(%rbp), %rax
movq 0x480(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x488(%rax), %rsi
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rdx
leaq -0x38(%rbp), %rcx
callq 0x14b00
cmpl $0x0, %eax
jne 0x15799
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rsi
leaq 0x3862c(%rip), %rdi     # 0x4ddbe
movb $0x0, %al
callq 0x1df20
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x480, %rsi            # imm = 0x480
movq -0x8(%rbp), %rdx
addq $0x488, %rdx            # imm = 0x488
movq -0x38(%rbp), %rcx
callq 0x14b80
movq -0x8(%rbp), %rdi
addq $0x490, %rdi            # imm = 0x490
movq -0x8(%rbp), %rsi
addq $0x498, %rsi            # imm = 0x498
movq -0x40(%rbp), %rdx
callq 0x14590
jmp 0x157dd
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x155f1
leaq -0x20(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x48580
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)