// File: /workspace/github_c_makefile_star2_O2/phase[P]o/libregexp/regcomp.c
// Function: evaluntil
static	void
evaluntil(int pri)
{
	Node *op1, *op2;
	Reinst *inst1, *inst2;

	while(pri==RBRA || atorp[-1]>=pri){
		switch(popator()){
		default:
			rcerror("unknown operator in evaluntil");
			break;
		case LBRA:		/* must have been RBRA */
			op1 = popand('(');
			inst2 = newinst(RBRA);
			inst2->r.subid = *subidp;
			op1->last->l.next = inst2;
			inst1 = newinst(LBRA);
			inst1->r.subid = *subidp;
			inst1->l.next = op1->first;
			pushand(inst1, inst2);
			return;
		case OR:
			op2 = popand('|');
			op1 = popand('|');
			inst2 = newinst(NOP);
			op2->last->l.next = inst2;
			op1->last->l.next = inst2;
			inst1 = newinst(OR);
			inst1->r.right = op1->first;
			inst1->l.left = op2->first;
			pushand(inst1, inst2);
			break;
		case CAT:
			op2 = popand(0);
			op1 = popand(0);
			op1->last->l.next = op2->first;
			pushand(op1->first, op2->last);
			break;
		case STAR:
			op2 = popand('*');
			inst1 = newinst(OR);
			op2->last->l.next = inst1;
			inst1->r.right = op2->first;
			pushand(inst1, inst1);
			break;
		case PLUS:
			op2 = popand('+');
			inst1 = newinst(OR);
			op2->last->l.next = inst1;
			inst1->r.right = op2->first;
			pushand(op2->first, inst1);
			break;
		case QUEST:
			op2 = popand('?');
			inst1 = newinst(OR);
			inst2 = newinst(NOP);
			inst1->l.left = inst2;
			inst1->r.right = op2->first;
			op2->last->l.next = inst2;
			pushand(inst1, inst2);
			break;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x6bde(%rip), %r12      # 0xd190
movl $0xffffff7e, %r13d      # imm = 0xFFFFFF7E
leaq 0x1ef9(%rip), %r14      # 0x84b8
movq 0x6c1a(%rip), %rax      # 0xd1e0
cmpl $0x81, %ebx
je 0x65d7
cmpl %ebx, -0x4(%rax)
jl 0x6788
cmpq %r12, %rax
jbe 0x6800
addq $-0x4, 0x6da8(%rip)     # 0xd390
leaq -0x4(%rax), %rcx
movq %rcx, 0x6bed(%rip)      # 0xd1e0
movl -0x4(%rax), %eax
addl %r13d, %eax
cmpl $0x5, %eax
ja 0x680c
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
movq %r12, %r13
pushq $0x7c
popq %r12
movl %r12d, %edi
callq 0x690e
movq %rax, %r15
movl %r12d, %edi
movq %r13, %r12
movl $0xffffff7e, %r13d      # imm = 0xFFFFFF7E
callq 0x690e
movq 0x6a5b(%rip), %rsi      # 0xd090
movl $0xc2, (%rsi)
leaq 0x18(%rsi), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi)
movq 0x8(%r15), %rcx
movq %rsi, 0x10(%rcx)
movq 0x8(%rax), %rcx
movq %rsi, 0x10(%rcx)
movl $0x83, 0x18(%rsi)
leaq 0x30(%rsi), %rcx
movups %xmm0, 0x20(%rsi)
movq %rcx, 0x6a24(%rip)      # 0xd090
movq (%rax), %rax
movq %rax, 0x20(%rsi)
movq (%r15), %rax
movq %rax, 0x28(%rsi)
callq 0x68d8
jmp 0x65bf
pushq $0x2b
popq %rdi
callq 0x690e
movq 0x69fd(%rip), %rsi      # 0xd090
movl $0x83, (%rsi)
leaq 0x18(%rsi), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi)
movq %rcx, 0x69e5(%rip)      # 0xd090
movq 0x8(%rax), %rcx
movq %rsi, 0x10(%rcx)
movq (%rax), %rdi
movq %rdi, 0x8(%rsi)
callq 0x68d8
jmp 0x65bf
xorl %edi, %edi
callq 0x690e
movq %rax, %r15
xorl %edi, %edi
callq 0x690e
movq (%r15), %rcx
movq 0x8(%rax), %rdx
movq %rcx, 0x10(%rdx)
movq (%rax), %rdi
movq 0x8(%r15), %rsi
callq 0x68d8
jmp 0x65bf
pushq $0x2a
popq %rdi
callq 0x690e
movq 0x6990(%rip), %rdi      # 0xd090
movl $0x83, (%rdi)
leaq 0x18(%rdi), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq %rcx, 0x6978(%rip)      # 0xd090
movq 0x8(%rax), %rcx
movq %rdi, 0x10(%rcx)
movq (%rax), %rax
movq %rax, 0x8(%rdi)
movq %rdi, %rsi
callq 0x68d8
jmp 0x65bf
pushq $0x3f
popq %rdi
callq 0x690e
movq 0x694d(%rip), %rdi      # 0xd090
movl $0x83, (%rdi)
leaq 0x18(%rdi), %rsi
andq $0x0, 0x8(%rdi)
movl $0xc2, 0x18(%rdi)
leaq 0x30(%rdi), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movq %rcx, 0x6925(%rip)      # 0xd090
movq %rsi, 0x10(%rdi)
movq (%rax), %rcx
movq %rcx, 0x8(%rdi)
movq 0x8(%rax), %rax
movq %rsi, 0x10(%rax)
callq 0x68d8
jmp 0x65bf
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x28
popq %rdi
callq 0x690e
movq 0x68ea(%rip), %rsi      # 0xd090
movl $0x81, (%rsi)
leaq 0x18(%rsi), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi)
movq 0x6bd2(%rip), %rcx      # 0xd390
movl (%rcx), %edx
movl %edx, 0x8(%rsi)
movq 0x8(%rax), %rdx
movq %rsi, 0x10(%rdx)
movl $0x82, 0x18(%rsi)
leaq 0x30(%rsi), %rdx
movups %xmm0, 0x20(%rsi)
movq %rdx, 0x68af(%rip)      # 0xd090
movl (%rcx), %ecx
movl %ecx, 0x20(%rsi)
movq (%rax), %rax
movq %rax, 0x28(%rsi)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x68d8
leaq 0x1e5f(%rip), %rdi      # 0x8666
callq 0x6836
leaq 0x1e35(%rip), %rdi      # 0x8648
callq 0x6818