// File: /workspace/github_c_makefile_star2_O2/haxlang[P]hax/haxRegexp.c
// Function: RegBranch
static char *
RegBranch(
Hax_Interp *interp,
int *flagp)
{
	Interp *iPtr = (Interp *) interp;
	char *ret;
	char *chain;
	char *latest;
	int flags;

	*flagp = WORST;		/* Tentatively. */

	ret = RegNode(interp, BRANCH);
	chain = NULL;
	while (*iPtr->regparse != '\0' && *iPtr->regparse != '|' && *iPtr->regparse != ')') {
		latest = RegPiece(interp, &flags);
		if (latest == NULL)
			return(NULL);
		*flagp |= flags&HASWIDTH;
		if (chain == NULL)	/* First piece. */
			*flagp |= flags&SPSTART;
		else
			RegTail(interp, chain, latest);
		chain = latest;
	}
	if (chain == NULL)	/* Loop ran zero times. */
		(void) RegNode(interp, NOTHING);

	return(ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r13
movq %rdi, %rbx
andl $0x0, (%rsi)
pushq $0x6
popq %rsi
callq 0x4c9b
movq %rax, 0x18(%rsp)
leaq 0x2a4(%rbx), %r14
xorl %r12d, %r12d
movq %r13, 0x20(%rsp)
movq 0x298(%rbx), %r15
movzbl (%r15), %eax
testl %eax, %eax
je 0x52b1
cmpl $0x29, %eax
je 0x52b1
cmpl $0x7c, %eax
je 0x52b1
leaq 0x1(%r15), %rcx
movq %rcx, 0x298(%rbx)
movzbl (%r15), %eax
leal -0x24(%rax), %edx
cmpl $0xa, %edx
ja 0x4d54
leaq 0xe2bf(%rip), %rcx      # 0x13000
movslq (%rcx,%rdx,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
pushq $0x2
jmp 0x4e6c
cmpl $0x5b, %eax
je 0x4e3d
cmpl $0x5c, %eax
je 0x4e7c
cmpl $0x5e, %eax
je 0x4e67
testl %eax, %eax
je 0x52ec
cmpl $0x3f, %eax
je 0x52e3
cmpl $0x7c, %eax
je 0x52ec
movq %r15, 0x298(%rbx)
movq %r15, %rdi
leaq 0xe435(%rip), %rsi      # 0x131cf
callq 0x42e0
testl %eax, %eax
jle 0x52f5
movq %r12, 0x8(%rsp)
pushq $0x1
popq %r12
pushq $0x3
popq %rbp
cmpl $0x1, %eax
je 0x4f29
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movzbl (%r15,%rcx), %ecx
cmpq $0x3f, %rcx
ja 0x4f23
movabsq $-0x7ffff40000000000, %rdx # imm = 0x80000C0000000000
btq %rcx, %rdx
jae 0x4f23
leal -0x1(%rax), %r12d
xorl %eax, %eax
cmpl $0x1, %r12d
sete %al
leal 0x1(,%rax,2), %ebp
jmp 0x4f29
movq %rbx, %rdi
pushq $0x3
popq %rbp
movl %ebp, %esi
callq 0x4c9b
movq %rax, %r15
jmp 0x50a8
movq %rbx, %rdi
pushq $0x1
popq %rsi
leaq 0x14(%rsp), %rdx
callq 0x493f
testq %rax, %rax
je 0x5316
movq %rax, %r15
movl 0x14(%rsp), %ebp
andl $0x5, %ebp
jmp 0x50b1
cmpb $0x5e, (%rcx)
jne 0x4ec9
movq %rbx, %rdi
pushq $0x5
popq %rsi
callq 0x4c9b
movq %rax, %r15
movq 0x298(%rbx), %rax
incq %rax
movq %rax, 0x298(%rbx)
jmp 0x4ede
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0x4c9b
movq %rax, %r15
xorl %ebp, %ebp
jmp 0x50a8
cmpb $0x0, (%rcx)
je 0x52fe
movq %rbx, %rdi
pushq $0x8
popq %rsi
callq 0x4c9b
movq %rax, %r15
movq 0x298(%rbx), %rcx
movq 0x2a8(%rbx), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, 0x298(%rbx)
cmpq %r14, %rax
je 0x4ef8
movb (%rcx), %cl
leaq 0x1(%rax), %rdx
movq %rdx, 0x2a8(%rbx)
movb %cl, (%rax)
movq 0x2a8(%rbx), %rax
jmp 0x4eff
movq %rbx, %rdi
pushq $0x4
popq %rsi
callq 0x4c9b
movq %rax, %r15
movq 0x298(%rbx), %rax
movzbl (%rax), %ecx
cmpl $0x5d, %ecx
je 0x4fa4
cmpl $0x2d, %ecx
je 0x4fa4
jmp 0x4fd3
incq 0x2b0(%rbx)
cmpq %r14, %rax
je 0x4f17
leaq 0x1(%rax), %rcx
movq %rcx, 0x2a8(%rbx)
movb $0x0, (%rax)
jmp 0x50a5
incq 0x2b0(%rbx)
jmp 0x50a5
movl %eax, %r12d
pushq $0x1
popq %rbp
movq %rbx, %rdi
pushq $0x8
popq %rsi
callq 0x4c9b
movq %rax, %r15
testl %r12d, %r12d
jle 0x4f77
movq 0x298(%rbx), %rcx
movq 0x2a8(%rbx), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, 0x298(%rbx)
cmpq %r14, %rax
je 0x4f6b
movb (%rcx), %cl
leaq 0x1(%rax), %rdx
movq %rdx, 0x2a8(%rbx)
movb %cl, (%rax)
jmp 0x4f72
incq 0x2b0(%rbx)
decl %r12d
jmp 0x4f37
movq 0x2a8(%rbx), %rax
cmpq %r14, %rax
je 0x4f93
leaq 0x1(%rax), %rcx
movq %rcx, 0x2a8(%rbx)
movb $0x0, (%rax)
jmp 0x4f9a
incq 0x2b0(%rbx)
movq 0x8(%rsp), %r12
jmp 0x50a8
leaq 0x1(%rax), %rcx
movq %rcx, 0x298(%rbx)
movq 0x2a8(%rbx), %rcx
cmpq %r14, %rcx
je 0x4fcc
movb (%rax), %al
leaq 0x1(%rcx), %rdx
movq %rdx, 0x2a8(%rbx)
movb %al, (%rcx)
jmp 0x4fd3
incq 0x2b0(%rbx)
movq 0x298(%rbx), %rax
movzbl (%rax), %ecx
cmpl $0x2d, %ecx
jne 0x505b
leaq 0x1(%rax), %rcx
movq %rcx, 0x298(%rbx)
movzbl 0x1(%rax), %ecx
cmpl $0x5d, %ecx
je 0x4ffa
testl %ecx, %ecx
jne 0x5016
movq 0x2a8(%rbx), %rax
cmpq %r14, %rax
je 0x4fcc
leaq 0x1(%rax), %rcx
movq %rcx, 0x2a8(%rbx)
movb $0x2d, (%rax)
jmp 0x4fd3
movzbl -0x1(%rax), %eax
cmpb %cl, %al
jbe 0x504b
jmp 0x52da
movq 0x2a8(%rbx), %rdx
cmpq %r14, %rdx
je 0x5042
leaq 0x1(%rdx), %rsi
movq %rsi, 0x2a8(%rbx)
leal 0x1(%rax), %esi
movb %sil, (%rdx)
jmp 0x5049
incq 0x2b0(%rbx)
incl %eax
cmpl %eax, %ecx
jne 0x5023
incq 0x298(%rbx)
jmp 0x4fd3
testl %ecx, %ecx
je 0x5068
cmpl $0x5d, %ecx
jne 0x4fa4
movq 0x2a8(%rbx), %rcx
cmpq %r14, %rcx
je 0x508b
leaq 0x1(%rcx), %rax
movq %rax, 0x2a8(%rbx)
movb $0x0, (%rcx)
movq 0x298(%rbx), %rax
jmp 0x5092
incq 0x2b0(%rbx)
cmpb $0x5d, (%rax)
jne 0x5307
incq %rax
movq %rax, 0x298(%rbx)
pushq $0x3
popq %rbp
testq %r15, %r15
je 0x5316
movq 0x298(%rbx), %rax
movzbl (%rax), %eax
cmpq $0x3f, %rax
ja 0x5278
movabsq $-0x7ffff40000000000, %rcx # imm = 0x80000C0000000000
btq %rax, %rcx
jae 0x5278
cmpb $0x3f, %al
sete %cl
orb %bpl, %cl
testb $0x1, %cl
je 0x52d1
movq %r12, 0x8(%rsp)
xorl %r12d, %r12d
cmpb $0x2b, %al
setne %r13b
cmpb $0x2a, %al
jne 0x514f
movq %rbx, %rdi
testb $0x2, %bpl
jne 0x51c6
pushq $0x6
popq %rbp
movl %ebp, %esi
movq %r15, %rdx
callq 0x538a
movq %rbx, %rdi
pushq $0x7
popq %rsi
callq 0x4c9b
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x5372
movq %rbx, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x5372
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4c9b
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x51a3
cmpb $0x2b, %al
jne 0x51ca
movq %rbx, %rdi
testb $0x2, %bpl
jne 0x5222
pushq $0x6
popq %rsi
callq 0x4c9b
movq %rax, %rbp
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x5327
movq %rbx, %rdi
pushq $0x7
popq %rsi
callq 0x4c9b
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x5327
movq %rbx, %rdi
pushq $0x6
popq %rsi
callq 0x4c9b
movq %rbx, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x5327
movq %rbx, %rdi
pushq $0x9
popq %rsi
callq 0x4c9b
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x5327
jmp 0x522d
pushq $0xa
jmp 0x5224
cmpb $0x3f, %al
jne 0x522d
movq %rbx, %rdi
pushq $0x6
popq %rbp
movl %ebp, %esi
movq %r15, %rdx
callq 0x538a
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4c9b
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x5327
movq %rbx, %rdi
pushq $0x9
popq %rsi
callq 0x4c9b
movq %rax, %rbp
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x5327
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x5372
jmp 0x522d
pushq $0xb
popq %rsi
movq %r15, %rdx
callq 0x538a
movb %r13b, %r12b
leal (%r12,%r12,2), %ebp
incl %ebp
movq 0x298(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x298(%rbx)
movzbl 0x1(%rax), %eax
cmpq $0x3f, %rax
ja 0x526e
movabsq $-0x7ffff40000000000, %rcx # imm = 0x80000C0000000000
btq %rax, %rcx
movq 0x20(%rsp), %r13
movq 0x8(%rsp), %r12
jae 0x5278
jmp 0x52c8
movq 0x20(%rsp), %r13
movq 0x8(%rsp), %r12
movl %ebp, %eax
andl $0x1, %eax
orl (%r13), %eax
movl %eax, (%r13)
testq %r12, %r12
je 0x52a0
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x5327
movq %r15, %r12
jmp 0x4cfe
andl $-0x4, %ebp
orl %ebp, %eax
movl %eax, (%r13)
movq %r15, %r12
jmp 0x4cfe
testq %r12, %r12
jne 0x52c1
pushq $0x9
popq %rsi
movq %rbx, %rdi
callq 0x4c9b
movq 0x18(%rsp), %rax
jmp 0x5318
leaq 0xdeab(%rip), %rsi      # 0x1317a
jmp 0x530e
leaq 0xde88(%rip), %rsi      # 0x13160
jmp 0x530e
leaq 0xdea4(%rip), %rsi      # 0x13185
jmp 0x530e
leaq 0xdec6(%rip), %rsi      # 0x131b0
jmp 0x530e
leaq 0xdeb0(%rip), %rsi      # 0x131a3
jmp 0x530e
leaq 0xdedf(%rip), %rsi      # 0x131db
jmp 0x530e
leaq 0xdebf(%rip), %rsi      # 0x131c4
jmp 0x530e
leaq 0xde88(%rip), %rsi      # 0x13196
movq %rbx, %rdi
callq 0x4220
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq