// File: /workspace/github_c_makefile_star2_O3/ArtifexSoftware[P]mujs/./regexp.c
// Function: parseatom
static Renode *parseatom(struct cstate *g)
{
	Renode *atom;
	if (g->lookahead == L_CHAR) {
		atom = newnode(g, P_CHAR);
		atom->c = g->yychar;
		next(g);
		return atom;
	}
	if (g->lookahead == L_CCLASS) {
		atom = newnode(g, P_CCLASS);
		atom->cc = g->yycc - g->cclass;
		next(g);
		return atom;
	}
	if (g->lookahead == L_NCCLASS) {
		atom = newnode(g, P_NCCLASS);
		atom->cc = g->yycc - g->cclass;
		next(g);
		return atom;
	}
	if (g->lookahead == L_REF) {
		atom = newnode(g, P_REF);
		if (g->yychar == 0 || g->yychar >= g->nsub || !g->sub[g->yychar])
			die(g, "invalid back-reference");
		atom->n = g->yychar;
		atom->x = g->sub[g->yychar];
		next(g);
		return atom;
	}
	if (accept(g, '.'))
		return newnode(g, P_ANY);
	if (accept(g, '(')) {
		atom = newnode(g, P_PAR);
		if (g->nsub == REG_MAXSUB)
			die(g, "too many captures");
		atom->n = g->nsub++;
		atom->x = parsealt(g);
		g->sub[atom->n] = atom;
		if (!accept(g, ')'))
			die(g, "unmatched '('");
		return atom;
	}
	if (accept(g, L_NC)) {
		atom = parsealt(g);
		if (!accept(g, ')'))
			die(g, "unmatched '('");
		return atom;
	}
	if (accept(g, L_PLA)) {
		atom = newnode(g, P_PLA);
		atom->x = parsealt(g);
		if (!accept(g, ')'))
			die(g, "unmatched '('");
		return atom;
	}
	if (accept(g, L_NLA)) {
		atom = newnode(g, P_NLA);
		atom->x = parsealt(g);
		if (!accept(g, ')'))
			die(g, "unmatched '('");
		return atom;
	}
	die(g, "syntax error");
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0xa8(%rdi), %eax
leal -0x100(%rax), %ecx
cmpl $0x8, %ecx
ja 0x2a32b
leaq 0x1b8f(%rip), %rax      # 0x2be74
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x10(%rbx), %r14
leaq 0x20(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0xb, (%r14)
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x4(%r14)
movl $0x0, 0x1(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movl 0xac(%rbx), %eax
movl %eax, 0x4(%r14)
jmp 0x2a51e
cmpl $0x28, %eax
je 0x2a4b7
cmpl $0x2e, %eax
jne 0x2a543
movq %rbx, %rdi
callq 0x1af6c
movq 0x10(%rbx), %r14
leaq 0x20(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0xa, (%r14)
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x4(%r14)
movl $0x0, 0x1(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
jmp 0x2a526
movq %rbx, %rdi
callq 0x1af6c
movq 0x10(%rbx), %r14
leaq 0x20(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0x8, (%r14)
jmp 0x2a48b
movq 0x10(%rbx), %r14
leaq 0x20(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0xc, (%r14)
jmp 0x2a419
movq 0x10(%rbx), %r14
leaq 0x20(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0xe, (%r14)
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x4(%r14)
movl $0x0, 0x1(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movslq 0xac(%rbx), %rax
testq %rax, %rax
je 0x2a53a
cmpl 0x24(%rbx), %eax
jge 0x2a53a
movq 0x28(%rbx,%rax,8), %rcx
testq %rcx, %rcx
je 0x2a53a
movb %al, 0x3(%r14)
movq %rcx, 0x10(%r14)
jmp 0x2a51e
movq 0x10(%rbx), %r14
leaq 0x20(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0xd, (%r14)
xorl %eax, %eax
movl %eax, 0x1(%r14)
movl %eax, 0x4(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movq 0xb0(%rbx), %rax
subq %rbx, %rax
addq $-0x190, %rax           # imm = 0xFE70
shrq $0x3, %rax
imull $0x3e0f83e1, %eax, %eax # imm = 0x3E0F83E1
movl %eax, 0x8(%r14)
jmp 0x2a51e
movq %rbx, %rdi
callq 0x1af6c
movq %rbx, %rdi
callq 0x1b632
cmpl $0x29, 0xa8(%rbx)
jne 0x2a531
movq %rax, %r14
jmp 0x2a51e
movq %rbx, %rdi
callq 0x1af6c
movq 0x10(%rbx), %r14
leaq 0x20(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0x9, (%r14)
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x4(%r14)
movl $0x0, 0x1(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movq %rbx, %rdi
callq 0x1b632
movq %rax, 0x10(%r14)
jmp 0x2a515
movq %rbx, %rdi
callq 0x1af6c
movq 0x10(%rbx), %r14
leaq 0x20(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0x7, (%r14)
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x4(%r14)
movl $0x0, 0x1(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movl 0x24(%rbx), %eax
cmpl $0x10, %eax
je 0x2a54c
leal 0x1(%rax), %ecx
movl %ecx, 0x24(%rbx)
movb %al, 0x3(%r14)
movq %rbx, %rdi
callq 0x1b632
movq %rax, 0x10(%r14)
movzbl 0x3(%r14), %eax
movq %r14, 0x28(%rbx,%rax,8)
cmpl $0x29, 0xa8(%rbx)
jne 0x2a531
movq %rbx, %rdi
callq 0x1af6c
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xae44(%rip), %rax      # 0x3537c
jmp 0x2a553
leaq 0xae12(%rip), %rax      # 0x35353
jmp 0x2a553
leaq 0x9696(%rip), %rax      # 0x33be0
jmp 0x2a553
leaq 0xae17(%rip), %rax      # 0x3536a
movq %rax, 0xc0(%rbx)
addq $0xc8, %rbx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3320