// File: /workspace/github_c_makefile_star2_O3/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 $0xc8, %rsp
movq %rdx, 0xc0(%rsp)
testq %rdx, %rdx
je 0x2d822
movq %rcx, %r11
movq %rdi, %r15
movabsq $0x7274703233696c, %rbx # imm = 0x7274703233696C
movl $0x6562616c, %r14d      # imm = 0x6562616C
movl $0x6c6c6163, %edi       # imm = 0x6C6C6163
movabsq $0x100002600, %rbp      # imm = 0x100002600
xorl %r8d, %r8d
movq %rsi, 0x18(%rsp)
movq %r15, 0x48(%rsp)
movq %r8, %rax
shlq $0x4, %rax
leaq (%r15,%rax), %r9
movq (%r15,%rax), %r12
imulq $0x150, %r8, %r10       # imm = 0x150
addq %rsi, %r10
xorl %ecx, %ecx
movq %rcx, %r13
shlq $0x6, %r13
addq %r10, %r13
movzbl (%r12), %eax
cmpq $0x20, %rax
ja 0x2d1b1
btq %rax, %rbp
jae 0x2d1a8
incq %r12
jmp 0x2d192
testq %rax, %rax
je 0x2d7d9
movq %rcx, 0x8(%rsp)
xorl %ecx, %ecx
cmpb $0x20, %al
ja 0x2d1c5
movzbl %al, %edx
btq %rdx, %rbp
jb 0x2d1e4
movb %al, 0x60(%rsp,%rcx)
leaq 0x1(%rcx), %rdx
movb 0x1(%r12,%rcx), %al
testb %al, %al
je 0x2d1df
cmpq $0x1f, %rcx
movq %rdx, %rcx
jb 0x2d1b8
addq %rdx, %r12
jmp 0x2d1ea
addq %rcx, %r12
movq %rcx, %rdx
movb $0x0, 0x60(%rsp,%rdx)
movl 0x60(%rsp), %eax
xorl %r14d, %eax
movzwl 0x64(%rsp), %ecx
xorl $0x5f6c, %ecx           # imm = 0x5F6C
orl %eax, %ecx
je 0x2d235
movl 0x60(%rsp), %eax
xorl %edi, %eax
movzbl 0x64(%rsp), %ecx
orl %eax, %ecx
je 0x2d28d
movq 0x60(%rsp), %rax
movabsq $0x3233696c6c6163, %rcx # imm = 0x3233696C6C6163
cmpq %rcx, %rax
jne 0x2d29a
movl $0x3, (%r13)
jmp 0x2d332
movl $0x1, (%r13)
addq $0x8, %r13
leaq 0x66(%rsp), %rdi
movq %r13, %rsi
movq %r11, %rdx
movq %r8, %r13
movq %r9, %r14
movq %r10, %rbx
movq %r11, %r15
callq 0x2dc7d
movq %r15, %r11
movq %rbx, %r10
movq %r14, %r9
movq %r13, %r8
movl $0x6c6c6163, %edi       # imm = 0x6C6C6163
movq 0x18(%rsp), %rsi
movq 0x48(%rsp), %r15
movabsq $0x7274703233696c, %rbx # imm = 0x7274703233696C
movl $0x6562616c, %r14d      # imm = 0x6562616C
jmp 0x2d332
movl $0x2, (%r13)
jmp 0x2d332
movl 0x60(%rsp), %ecx
xorl %edi, %ecx
movzwl 0x64(%rsp), %edx
xorl $0x72, %edx
orl %ecx, %edx
je 0x2d2c2
leaq 0x3a38f7f7(%rbx), %rcx
cmpq %rcx, %rax
jne 0x2d2cc
movl $0x5, (%r13)
jmp 0x2d332
movl $0x4, (%r13)
jmp 0x2d332
movq 0x60(%rsp), %rcx
movabsq $0x703233696c6c6163, %rdx # imm = 0x703233696C6C6163
xorq %rdx, %rcx
movq 0x63(%rsp), %rdx
xorq %rbx, %rdx
orq %rcx, %rdx
je 0x2d320
movq 0x60(%rsp), %rcx
movabsq $0x727470726c6c6163, %rdx # imm = 0x727470726C6C6163
xorq %rdx, %rcx
movzbl 0x68(%rsp), %edx
orq %rcx, %rdx
je 0x2d32a
movabsq $0x6c6c6163737973, %rcx # imm = 0x6C6C6163737973
cmpq %rcx, %rax
jne 0x2d349
movl $0x8, (%r13)
jmp 0x2d332
movl $0x6, (%r13)
jmp 0x2d332
movl $0x7, (%r13)
movq 0x8(%rsp), %rcx
incq %rcx
cmpq $0x5, %rcx
jne 0x2d188
jmp 0x2d728
movq %r10, 0x20(%rsp)
movq %r9, 0x28(%rsp)
movq %r8, 0x30(%rsp)
movq %r11, 0x10(%rsp)
leaq 0x6f8b4(%rip), %rbx     # 0x9cc18
xorl %r15d, %r15d
movq -0x8(%rbx), %rsi
leaq 0x60(%rsp), %rdi
callq 0x12160
testl %eax, %eax
je 0x2d38e
incq %r15
addq $0x10, %rbx
cmpq $0x9d, %r15
jne 0x2d367
jmp 0x2d73c
xorl %eax, %eax
movl %eax, (%r13)
movl %r15d, 0x8(%r13)
movq $0x0, 0x50(%rsp)
movl %eax, 0x88(%rsp)
movq $-0x1, 0x80(%rsp)
movl (%rbx), %eax
leaq (%rax,%rax,2), %rax
leaq 0x467df(%rip), %rcx     # 0x73ba0
movq (%rcx,%rax,8), %rdx
movq %rdx, 0xb8(%rsp)
testq %rdx, %rdx
movl $0x6c6c6163, %edi       # imm = 0x6C6C6163
je 0x2d6fb
leaq (%rcx,%rax,8), %rax
movq %rax, 0x40(%rsp)
xorl %edx, %edx
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %rsi
movq 0x48(%rsp), %r15
movabsq $0x7274703233696c, %rbx # imm = 0x7274703233696C
movq 0x30(%rsp), %r8
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x8(%rsp), %rcx
movq %rdx, 0x38(%rsp)
movzbl (%r12), %eax
cmpq $0x20, %rax
ja 0x2d437
btq %rax, %rbp
jae 0x2d42e
incq %r12
jmp 0x2d418
testq %rax, %rax
jne 0x2d437
xorl %edx, %edx
jmp 0x2d47d
xorl %ecx, %ecx
cmpb $0x2c, %al
ja 0x2d450
movzbl %al, %edx
btq %rdx, %rbp
jb 0x2d472
cmpq $0x2c, %rdx
je 0x2d6f0
movb %al, 0x90(%rsp,%rcx)
leaq 0x1(%rcx), %rdx
movb 0x1(%r12,%rcx), %al
testb %al, %al
je 0x2d46d
cmpq $0x1f, %rcx
movq %rdx, %rcx
jb 0x2d439
addq %rdx, %r12
jmp 0x2d478
addq %rcx, %r12
movq %rcx, %rdx
movq 0x8(%rsp), %rcx
movb $0x0, 0x90(%rsp,%rdx)
movzwl 0x90(%rsp), %eax
cmpw $0x2a, %ax
jne 0x2d4a6
movq 0x38(%rsp), %rdx
movl $0x0, 0x30(%r13,%rdx,4)
jmp 0x2d6da
movl 0x90(%rsp), %ecx
xorl %r14d, %ecx
movzwl 0x94(%rsp), %edx
xorl $0x5f6c, %edx           # imm = 0x5F6C
orl %ecx, %edx
je 0x2d582
cmpb $0x72, %al
movq 0x38(%rsp), %rdx
je 0x2d60b
movzbl %al, %ecx
cmpl $0x66, %ecx
je 0x2d5fa
cmpl $0x23, %ecx
jne 0x2d781
movq 0x40(%rsp), %rax
cmpl $0x2, 0x8(%rax,%rdx,4)
jne 0x2d788
callq 0x12040
movq %rax, 0x58(%rsp)
movl $0x0, (%rax)
leaq 0x91(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movl $0xa, %edx
callq 0x12250
movq 0x50(%rsp), %rdx
movl $0x582, %ecx            # imm = 0x582
cmpb $0x0, (%rdx)
jne 0x2d773
movq 0x58(%rsp), %rdx
cmpl $0x0, (%rdx)
movq 0x18(%rsp), %rsi
movl $0x6c6c6163, %edi       # imm = 0x6C6C6163
movq 0x30(%rsp), %r8
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x10(%rsp), %r11
jne 0x2d7a2
cmpq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
ja 0x2d7a2
movq 0x38(%rsp), %rdx
movl %eax, 0x10(%r13,%rdx,8)
movl $0x1, 0x30(%r13,%rdx,4)
jmp 0x2d6d5
movq 0x40(%rsp), %rax
movq 0x38(%rsp), %rcx
cmpl $0x4, 0x8(%rax,%rcx,4)
jne 0x2d77a
leaq 0x96(%rsp), %rdi
leaq 0x80(%rsp), %rsi
movq %r11, %rdx
callq 0x2dc7d
movq 0x10(%rsp), %r11
cmpl $0x0, (%r11)
jne 0x2d7bb
movq 0x80(%rsp), %rax
movq 0x38(%rsp), %rdx
movq %rax, 0x10(%r13,%rdx,8)
movl 0x88(%rsp), %eax
movl %eax, 0x30(%r13,%rdx,4)
movq 0x18(%rsp), %rsi
movl $0x6c6c6163, %edi       # imm = 0x6C6C6163
movq 0x30(%rsp), %r8
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r10
jmp 0x2d6d5
movq 0x40(%rsp), %rcx
cmpl $0x1, 0x8(%rcx,%rdx,4)
je 0x2d61b
jmp 0x2d78f
movq 0x40(%rsp), %rcx
cmpl $0x0, 0x8(%rcx,%rdx,4)
jne 0x2d796
shrl $0x8, %eax
movl $0x2, %ecx
leaq 0x92(%rsp), %rsi
movq 0x38(%rsp), %rdx
cmpb $0x5f, %al
je 0x2d64c
movzbl %al, %eax
testl %eax, %eax
je 0x2d79d
movl $0x1, %ecx
leaq 0x91(%rsp), %rsi
movq %rsi, 0x58(%rsp)
movl %ecx, 0x30(%r13,%rdx,4)
callq 0x12040
movq %rax, 0xb0(%rsp)
movl $0x0, (%rax)
movq 0x58(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movl $0xa, %edx
callq 0x12250
movq 0x50(%rsp), %rdx
movl $0x5a3, %ecx            # imm = 0x5A3
cmpb $0x0, (%rdx)
jne 0x2d773
movq 0xb0(%rsp), %rdx
cmpl $0x0, (%rdx)
movq 0x18(%rsp), %rsi
movl $0x6c6c6163, %edi       # imm = 0x6C6C6163
movq 0x30(%rsp), %r8
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x10(%rsp), %r11
jne 0x2d7a2
cmpq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
ja 0x2d7a2
movq 0x38(%rsp), %rdx
movq %rax, 0x10(%r13,%rdx,8)
movq 0x8(%rsp), %rcx
incq %rdx
cmpq 0xb8(%rsp), %rdx
jne 0x2d413
jmp 0x2d337
addq %rcx, %r12
incq %r12
jmp 0x2d475
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %rsi
movq 0x48(%rsp), %r15
movabsq $0x7274703233696c, %rbx # imm = 0x7274703233696C
movq 0x30(%rsp), %r8
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r10
jmp 0x2d332
movl $0x5, %ecx
cmpl $0x0, (%r11)
je 0x2d7e4
jmp 0x2d822
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl $0xf, %esi
leaq 0x466a0(%rip), %rdx     # 0x73df0
movl $0x5f1, %ecx            # imm = 0x5F1
callq 0x145a4
movq %rbx, %r11
movq 0x18(%rsp), %rsi
movq 0x48(%rsp), %r15
movabsq $0x7274703233696c, %rbx # imm = 0x7274703233696C
jmp 0x2d7c0
movq 0x10(%rsp), %r11
jmp 0x2d7a2
movl $0x572, %ecx            # imm = 0x572
jmp 0x2d7a2
movl $0x5aa, %ecx            # imm = 0x5AA
jmp 0x2d7a2
movl $0x57c, %ecx            # imm = 0x57C
jmp 0x2d7a2
movl $0x591, %ecx            # imm = 0x591
jmp 0x2d7a2
movl $0x58b, %ecx            # imm = 0x58B
jmp 0x2d7a2
movl $0x596, %ecx            # imm = 0x596
movq %r11, %rdi
movl $0xf, %esi
leaq 0x4663f(%rip), %rdx     # 0x73df0
callq 0x145a4
movq 0x10(%rsp), %r11
movq 0x18(%rsp), %rsi
movl $0x6c6c6163, %edi       # imm = 0x6C6C6163
movq 0x30(%rsp), %r8
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x8(%rsp), %rcx
cmpl $0x0, (%r11)
jne 0x2d822
testq %rcx, %rcx
je 0x2d809
movq 0x8(%r9), %rax
movq %rax, 0x148(%r10)
movq %rcx, 0x140(%r10)
incq %r8
cmpq 0xc0(%rsp), %r8
jne 0x2d16d
jmp 0x2d822
leaq 0x465e0(%rip), %rdx     # 0x73df0
movq %r11, %rdi
movl $0xf, %esi
movl $0x60c, %ecx            # imm = 0x60C
callq 0x145a4
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq