// File: /workspace/github_c_makefile_star2_O1/ccxvii[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), %ecx
leal -0x100(%rcx), %eax
cmpl $0x8, %eax
ja 0x2a745
leaq 0x1745(%rip), %rcx      # 0x2be44
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
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 0x2a969
cmpl $0x2e, %ecx
jne 0x2a785
movq %rbx, %rdi
callq 0x1b447
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 0x2a971
cmpl $0x28, 0xa8(%rbx)
jne 0x2a8be
movq %rbx, %rdi
callq 0x1b447
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 0x2a98e
leal 0x1(%rax), %ecx
movl %ecx, 0x24(%rbx)
movb %al, 0x3(%r14)
movq %rbx, %rdi
callq 0x1bb0e
movq %rax, 0x10(%r14)
movzbl 0x3(%r14), %eax
movq %r14, 0x28(%rbx,%rax,8)
jmp 0x2a960
movq 0x10(%rbx), %r14
leaq 0x20(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0xd, (%r14)
jmp 0x2a87d
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 0x2a97c
cmpl 0x24(%rbx), %eax
jge 0x2a97c
movq 0x28(%rbx,%rax,8), %rcx
testq %rcx, %rcx
je 0x2a97c
movb %al, 0x3(%r14)
movq %rcx, 0x10(%r14)
jmp 0x2a969
movq 0x10(%rbx), %r14
leaq 0x20(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0xc, (%r14)
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x4(%r14)
movl $0x0, 0x1(%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 0x2a969
cmpl $0x103, 0xa8(%rbx)      # imm = 0x103
jne 0x2a8ec
movq %rbx, %rdi
callq 0x1b447
movq %rbx, %rdi
callq 0x1bb0e
cmpl $0x29, 0xa8(%rbx)
jne 0x2a985
movq %rax, %r14
jmp 0x2a969
cmpl $0x104, 0xa8(%rbx)      # imm = 0x104
jne 0x2a912
movq %rbx, %rdi
callq 0x1b447
movq 0x10(%rbx), %r14
leaq 0x20(%r14), %rax
movq %rax, 0x10(%rbx)
movb $0x8, (%r14)
jmp 0x2a936
cmpl $0x105, 0xa8(%rbx)      # imm = 0x105
jne 0x2a997
movq %rbx, %rdi
callq 0x1b447
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 0x1bb0e
movq %rax, 0x10(%r14)
cmpl $0x29, 0xa8(%rbx)
jne 0x2a985
movq %rbx, %rdi
callq 0x1b447
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xa9a0(%rip), %rax      # 0x35323
jmp 0x2a99e
leaq 0xa9c0(%rip), %rax      # 0x3534c
jmp 0x2a99e
leaq 0xa9a5(%rip), %rax      # 0x3533a
jmp 0x2a99e
leaq 0x9212(%rip), %rax      # 0x33bb0
movq %rax, 0xc0(%rbx)
addq $0xc8, %rbx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3320