// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/common/ir.c
// Function: subtilis_ir_parse_rules
void subtilis_ir_parse_rules(const subtilis_ir_rule_raw_t *raw,
			     subtilis_ir_rule_t *parsed, size_t count,
			     subtilis_error_t *err)
{
	size_t i;
	size_t j;
	const char *rule;

	for (i = 0; i < count; i++) {
		rule = raw[i].text;
		j = 0;
		while (
		    j < SUBTILIS_IR_MAX_MATCHES &&
		    (rule = prv_parse_match(rule, &parsed[i].matches[j], err)))
			j++;
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		if (j == 0) {
			subtilis_error_set_assertion_failed(err);
			return;
		}
		parsed[i].action = raw[i].action;
		parsed[i].matches_count = j;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rcx, 0x18(%rsp)
movq %rdx, 0xa8(%rsp)
movq %rsi, 0xa0(%rsp)
movq %rdi, 0x98(%rsp)
xorl %r13d, %r13d
movabsq $0x100002600, %r15      # imm = 0x100002600
cmpq 0xa8(%rsp), %r13
je 0x2c130
movq %r13, %rax
shlq $0x4, %rax
movq 0x98(%rsp), %rcx
leaq (%rcx,%rax), %rdx
movq %rdx, 0xb0(%rsp)
movq (%rcx,%rax), %r12
imulq $0x150, %r13, %rbx      # imm = 0x150
addq 0xa0(%rsp), %rbx
xorl %r14d, %r14d
cmpq $0x5, %r14
je 0x2c078
movq %r14, %rbp
shlq $0x6, %rbp
addq %rbx, %rbp
movzbl (%r12), %eax
cmpq $0x20, %rax
ja 0x2bc45
btq %rax, %r15
jae 0x2bc3c
incq %r12
jmp 0x2bc26
testq %rax, %rax
je 0x2c0e6
movq %r13, (%rsp)
xorl %r13d, %r13d
testb %al, %al
je 0x2bc72
cmpq $0x1f, %r13
ja 0x2bc72
cmpb $0x20, %al
ja 0x2bc63
movzbl %al, %ecx
btq %rcx, %r15
jb 0x2bc72
movb %al, 0x50(%rsp,%r13)
movb 0x1(%r12,%r13), %al
incq %r13
jmp 0x2bc4c
movq %r14, 0x8(%rsp)
movq %rbx, %r14
movb $0x0, 0x50(%rsp,%r13)
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
leaq 0x4257e(%rip), %rsi     # 0x6e20d
pushq $0x6
popq %rdx
callq 0x121e0
addq %r13, %r12
testl %eax, %eax
je 0x2bcd4
movq %rbx, %rdi
leaq 0x41578(%rip), %rsi     # 0x6d220
pushq $0x5
popq %rdx
callq 0x121e0
testl %eax, %eax
je 0x2bcf3
movq 0x50(%rsp), %r13
movabsq $0x3233696c6c6163, %rax # imm = 0x3233696C6C6163
cmpq %rax, %r13
movq %r14, %rbx
jne 0x2bd03
movl $0x3, (%rbp)
jmp 0x2bd3a
movl $0x1, (%rbp)
addq $0x8, %rbp
leaq 0x56(%rsp), %rdi
movq %rbp, %rsi
movq 0x18(%rsp), %rdx
callq 0x2c4fe
jmp 0x2bcfa
movl $0x2, (%rbp)
movq (%rsp), %r13
movq %r14, %rbx
jmp 0x2bd3e
leaq 0x50(%rsp), %rdi
leaq 0x42505(%rip), %rsi     # 0x6e214
pushq $0x6
popq %rdx
callq 0x121e0
testl %eax, %eax
je 0x2bd33
movabsq $0x7274706c6c6163, %rax # imm = 0x7274706C6C6163
cmpq %rax, %r13
jne 0x2bd4b
movl $0x5, (%rbp)
jmp 0x2bd3a
movl $0x4, (%rbp)
movq (%rsp), %r13
movq 0x8(%rsp), %r14
incq %r14
jmp 0x2bc12
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
leaq 0x424c0(%rip), %rsi     # 0x6e21a
pushq $0xb
popq %rdx
callq 0x121e0
testl %eax, %eax
je 0x2bd97
movq %rbx, %rdi
leaq 0x424b5(%rip), %rsi     # 0x6e225
pushq $0x9
popq %rdx
callq 0x121e0
testl %eax, %eax
je 0x2bda3
movabsq $0x6c6c6163737973, %rax # imm = 0x6C6C6163737973
cmpq %rax, %r13
movq %r14, %rbx
jne 0x2bdaf
movl $0x8, (%rbp)
jmp 0x2bd3a
movl $0x6, (%rbp)
jmp 0x2bcfa
movl $0x7, (%rbp)
jmp 0x2bcfa
leaq 0x70e62(%rip), %r13     # 0x9cc18
xorl %eax, %eax
leaq 0x50(%rsp), %rdi
movq 0x8(%rsp), %r14
cmpq $0x9d, %rax
je 0x2c08b
movq %rax, 0x10(%rsp)
movq -0x8(%r13), %rsi
callq 0x12160
testl %eax, %eax
je 0x2bdf3
movq 0x10(%rsp), %rax
incq %rax
addq $0x10, %r13
leaq 0x50(%rsp), %rdi
jmp 0x2bdc2
andl $0x0, (%rbp)
movq 0x10(%rsp), %rax
movl %eax, 0x8(%rbp)
andq $0x0, 0x30(%rsp)
andl $0x0, 0x48(%rsp)
orq $-0x1, 0x40(%rsp)
movl (%r13), %eax
imulq $0x18, %rax, %rax
leaq 0x41d31(%rip), %rcx     # 0x6db50
leaq (%rcx,%rax), %rdx
movq %rdx, 0x28(%rsp)
movq (%rax,%rcx), %rdi
xorl %r8d, %r8d
movq (%rsp), %r13
movq %rdi, 0x38(%rsp)
cmpq %rdi, %r8
je 0x2bd43
leaq 0x1(%r12), %rax
movzbl (%r12), %edx
cmpq $0x20, %rdx
ja 0x2be5f
btq %rdx, %r15
jae 0x2be5f
incq %r12
incq %rax
jmp 0x2be46
xorl %ecx, %ecx
testb %dl, %dl
je 0x2be8d
cmpq $0x1f, %rcx
ja 0x2be8d
cmpb $0x2c, %dl
ja 0x2be7f
movzbl %dl, %esi
btq %rsi, %r15
jb 0x2be8d
cmpq $0x2c, %rsi
je 0x2be90
movb %dl, 0x70(%rsp,%rcx)
incq %rcx
movb (%rax), %dl
incq %rax
jmp 0x2be61
decq %rax
movq %rax, %r12
movb $0x0, 0x70(%rsp,%rcx)
movzwl 0x70(%rsp), %eax
cmpw $0x2a, %ax
jne 0x2beae
andl $0x0, 0x30(%rbp,%r8,4)
jmp 0x2c070
movl %eax, 0x20(%rsp)
movq %r8, 0x10(%rsp)
leaq 0x70(%rsp), %rdi
leaq 0x4234a(%rip), %rsi     # 0x6e20d
pushq $0x6
popq %rdx
callq 0x121e0
testl %eax, %eax
je 0x2bf70
movl 0x20(%rsp), %esi
cmpb $0x72, %sil
movq 0x10(%rsp), %rdx
je 0x2bfd9
movzbl %sil, %eax
cmpl $0x66, %eax
je 0x2bfc8
cmpl $0x23, %eax
jne 0x2c0b1
movq 0x28(%rsp), %rax
cmpl $0x2, 0x8(%rax,%rdx,4)
jne 0x2c0c6
callq 0x12040
movq %rax, 0x20(%rsp)
andl $0x0, (%rax)
leaq 0x71(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0xa
popq %rdx
callq 0x12250
movq 0x30(%rsp), %rdx
movl $0x582, %ecx            # imm = 0x582
cmpb $0x0, (%rdx)
jne 0x2c0d2
movq 0x20(%rsp), %rdx
cmpl $0x0, (%rdx)
jne 0x2c0d2
cmpq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
ja 0x2c0d2
movq 0x10(%rsp), %r8
movl %eax, 0x10(%rbp,%r8,8)
movl $0x1, 0x30(%rbp,%r8,4)
jmp 0x2c06b
movq 0x28(%rsp), %rax
movq 0x10(%rsp), %rcx
cmpl $0x4, 0x8(%rax,%rcx,4)
jne 0x2c0aa
leaq 0x76(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movq 0x18(%rsp), %r13
movq %r13, %rdx
callq 0x2c4fe
cmpl $0x0, (%r13)
movq (%rsp), %r13
jne 0x2c0e6
movq 0x40(%rsp), %rax
movq 0x10(%rsp), %r8
movq %rax, 0x10(%rbp,%r8,8)
movl 0x48(%rsp), %eax
movl %eax, 0x30(%rbp,%r8,4)
jmp 0x2c06b
movq 0x28(%rsp), %rax
cmpl $0x1, 0x8(%rax,%rdx,4)
je 0x2bfe9
jmp 0x2c0bf
movq 0x28(%rsp), %rax
cmpl $0x0, 0x8(%rax,%rdx,4)
jne 0x2c0b8
shrl $0x8, %esi
pushq $0x2
popq %rax
leaq 0x72(%rsp), %rcx
cmpb $0x5f, %sil
je 0x2c00e
movzbl %sil, %eax
testl %eax, %eax
je 0x2c0cd
pushq $0x1
popq %rax
leaq 0x71(%rsp), %rcx
movq %rcx, 0x20(%rsp)
movl %eax, 0x30(%rbp,%rdx,4)
callq 0x12040
movq %rax, 0x90(%rsp)
andl $0x0, (%rax)
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0xa
popq %rdx
callq 0x12250
movq 0x30(%rsp), %rdx
movl $0x5a3, %ecx            # imm = 0x5A3
cmpb $0x0, (%rdx)
jne 0x2c0d2
movq 0x90(%rsp), %rdx
cmpl $0x0, (%rdx)
jne 0x2c0d2
cmpq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
ja 0x2c0d2
movq 0x10(%rsp), %r8
movq %rax, 0x10(%rbp,%r8,8)
movq 0x38(%rsp), %rdi
incq %r8
jmp 0x2be38
movq 0x18(%rsp), %rax
cmpl $0x0, (%rax)
pushq $0x5
popq %r14
je 0x2c0f5
jmp 0x2c130
movq 0x18(%rsp), %rdi
pushq $0xf
popq %rsi
leaq 0x41d06(%rip), %rdx     # 0x6dda0
movl $0x5f1, %ecx            # imm = 0x5F1
callq 0x1429e
movq (%rsp), %r13
jmp 0x2c0e6
movl $0x572, %ecx            # imm = 0x572
jmp 0x2c0d2
movl $0x5aa, %ecx            # imm = 0x5AA
jmp 0x2c0d2
movl $0x58b, %ecx            # imm = 0x58B
jmp 0x2c0d2
movl $0x591, %ecx            # imm = 0x591
jmp 0x2c0d2
movl $0x57c, %ecx            # imm = 0x57C
jmp 0x2c0d2
movl $0x596, %ecx            # imm = 0x596
movq 0x18(%rsp), %rdi
pushq $0xf
popq %rsi
leaq 0x41cbf(%rip), %rdx     # 0x6dda0
callq 0x1429e
movq 0x18(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x2c130
testq %r14, %r14
je 0x2c117
movq 0xb0(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x148(%rbx)
movq %r14, 0x140(%rbx)
incq %r13
jmp 0x2bbd3
leaq 0x41c82(%rip), %rdx     # 0x6dda0
pushq $0xf
popq %rsi
movq 0x18(%rsp), %rdi
movl $0x60c, %ecx            # imm = 0x60C
callq 0x1429e
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq