// File: /workspace/github_c_makefile_star2_O0/georgeweigt[P]sassafras/sassafras.c
// Function: proc_reg_parse_model_stmt
void
proc_reg_parse_model_stmt(void)
{
	int i;

	noint = 0;

	num_x = 0;
	num_y = 0;

	scan();

	if (token != NAME)
		expected("variable name");

	// look for match in dataset

	for (i = 0; i < dataset->nvar; i++)
		if (strcmp(dataset->spec[i].name, strbuf) == 0)
			break;

	if (i == dataset->nvar) {
		snprintf(errbuf, ERRBUFLEN, "Variable %s not in dataset", strbuf);
		stop(errbuf);
	}

	ytab[num_y++] = i;

	scan();

	if (token != '=')
		expected("equals sign");

	for (;;) {

		scan();

		if ((token == ';' || token == '/') && num_x)
			break;

		if (token != NAME)
			expected("variable name");

		// look for match in dataset

		for (i = 0; i < dataset->nvar; i++)
			if (strcmp(dataset->spec[i].name, strbuf) == 0)
				break;

		if (i == dataset->nvar) {
			snprintf(errbuf, ERRBUFLEN, "Variable %s not in dataset", strbuf);
			stop(errbuf);
		}

		xtab[num_x++] = i;
	}

	if (token == '/')
		proc_reg_parse_model_options();

	scan(); // eat the semicolon
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x0, 0xd3f6(%rip)      # 0x199f8
movl $0x0, 0xd3e4(%rip)      # 0x199f0
movl $0x0, 0xd3de(%rip)      # 0x199f4
callq 0x2d30
cmpl $0x3e9, 0x725f(%rip)    # imm = 0x3E9
je 0xc633
leaq 0x2fc3(%rip), %rdi      # 0xf5f1
callq 0x2670
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
movq 0xb874(%rip), %rcx      # 0x17eb8
cmpl 0x10(%rcx), %eax
jge 0xc682
movq 0xb868(%rip), %rax      # 0x17eb8
addq $0x20, %rax
movslq -0x4(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
leaq 0x7a17(%rip), %rsi      # 0x14080
callq 0x2140
cmpl $0x0, %eax
jne 0xc675
jmp 0xc682
jmp 0xc677
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0xc63a
movl -0x4(%rbp), %eax
movq 0xb82c(%rip), %rcx      # 0x17eb8
cmpl 0x10(%rcx), %eax
jne 0xc6be
leaq 0x7208(%rip), %rdi      # 0x138a0
movl $0x7d0, %esi            # imm = 0x7D0
leaq 0x3290(%rip), %rdx      # 0xf934
leaq 0x79d5(%rip), %rcx      # 0x14080
movb $0x0, %al
callq 0x20c0
leaq 0x71e7(%rip), %rdi      # 0x138a0
callq 0x2790
movl -0x4(%rbp), %edx
movl 0xd32d(%rip), %eax      # 0x199f4
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, 0xd322(%rip)      # 0x199f4
movslq %eax, %rcx
leaq 0xd324(%rip), %rax      # 0x19a00
movl %edx, (%rax,%rcx,4)
callq 0x2d30
cmpl $0x3d, 0x7199(%rip)     # 0x13884
je 0xc6f9
leaq 0x2c29(%rip), %rdi      # 0xf31d
callq 0x2670
jmp 0xc6fb
callq 0x2d30
cmpl $0x3b, 0x717d(%rip)     # 0x13884
je 0xc712
cmpl $0x2f, 0x7174(%rip)     # 0x13884
jne 0xc720
cmpl $0x0, 0xd2d7(%rip)      # 0x199f0
je 0xc720
jmp 0xc7e9
cmpl $0x3e9, 0x715a(%rip)    # imm = 0x3E9
je 0xc738
leaq 0x2ebe(%rip), %rdi      # 0xf5f1
callq 0x2670
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
movq 0xb76f(%rip), %rcx      # 0x17eb8
cmpl 0x10(%rcx), %eax
jge 0xc787
movq 0xb763(%rip), %rax      # 0x17eb8
addq $0x20, %rax
movslq -0x4(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
leaq 0x7912(%rip), %rsi      # 0x14080
callq 0x2140
cmpl $0x0, %eax
jne 0xc77a
jmp 0xc787
jmp 0xc77c
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0xc73f
movl -0x4(%rbp), %eax
movq 0xb727(%rip), %rcx      # 0x17eb8
cmpl 0x10(%rcx), %eax
jne 0xc7c3
leaq 0x7103(%rip), %rdi      # 0x138a0
movl $0x7d0, %esi            # imm = 0x7D0
leaq 0x318b(%rip), %rdx      # 0xf934
leaq 0x78d0(%rip), %rcx      # 0x14080
movb $0x0, %al
callq 0x20c0
leaq 0x70e2(%rip), %rdi      # 0x138a0
callq 0x2790
movl -0x4(%rbp), %edx
movl 0xd224(%rip), %eax      # 0x199f0
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, 0xd219(%rip)      # 0x199f0
movslq %eax, %rcx
leaq 0xbf2f(%rip), %rax      # 0x18710
movl %edx, (%rax,%rcx,4)
jmp 0xc6fb
cmpl $0x2f, 0x7094(%rip)     # 0x13884
jne 0xc7f7
callq 0xc810
callq 0x2d30
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)