// File: /workspace/github_c_makefile_star2_O0/intel[P]pf-bb-config/vrb1/vrb1_cfg_parser.c
// Function: vrb1_range_check
int
vrb1_range_check(struct vrb1_conf *vrb1_conf)
{
	uint16_t totalQgs = vrb1_conf->q_ul_4g.num_qgroups +
			vrb1_conf->q_ul_5g.num_qgroups +
			vrb1_conf->q_dl_4g.num_qgroups +
			vrb1_conf->q_dl_5g.num_qgroups +
			vrb1_conf->q_fft.num_qgroups;
	if (totalQgs > VRB1_NUM_QGRPS) {
		printf("ERROR: Number of Qgroups %d > %d\n",
				totalQgs, VRB1_NUM_QGRPS);
		return -1;
	}
	if (vrb1_conf->num_vf_bundles > VRB1_NUM_VFS) {
		printf("ERROR: Number of VFs bundle %d > %d\n",
				vrb1_conf->num_vf_bundles, VRB1_NUM_VFS);
		return -1;
	}
	if (vrb1_queue_range_check(vrb1_conf->q_ul_4g) != 0)
		return -1;
	if (vrb1_queue_range_check(vrb1_conf->q_dl_4g) != 0)
		return -1;
	if (vrb1_queue_range_check(vrb1_conf->q_ul_5g) != 0)
		return -1;
	if (vrb1_queue_range_check(vrb1_conf->q_dl_5g) != 0)
		return -1;
	if (vrb1_queue_range_check(vrb1_conf->q_fft) != 0)
		return -1;
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzwl 0x6(%rax), %eax
movq -0x10(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
addl %ecx, %eax
movq -0x10(%rbp), %rcx
movzwl 0xc(%rcx), %ecx
addl %ecx, %eax
movq -0x10(%rbp), %rcx
movzwl 0x18(%rcx), %ecx
addl %ecx, %eax
movq -0x10(%rbp), %rcx
movzwl 0x1e(%rcx), %ecx
addl %ecx, %eax
movw %ax, -0x12(%rbp)
movzwl -0x12(%rbp), %eax
cmpl $0x10, %eax
jle 0x1678c
movzwl -0x12(%rbp), %esi
leaq 0xd478(%rip), %rdi      # 0x23bec
movl $0x10, %edx
movb $0x0, %al
callq 0xd140
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x168d1
movq -0x10(%rbp), %rax
movzwl 0x4(%rax), %eax
cmpl $0x10, %eax
jle 0x167c0
movq -0x10(%rbp), %rax
movzwl 0x4(%rax), %esi
leaq 0xd466(%rip), %rdi      # 0x23c0e
movl $0x10, %edx
movb $0x0, %al
callq 0xd140
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x168d1
movq -0x10(%rbp), %rax
movw 0xa(%rax), %cx
movw %cx, -0x1c(%rbp)
movl 0x6(%rax), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %ecx
movl -0x1c(%rbp), %eax
movl %ecx, %edi
shlq $0x20, %rax
orq %rax, %rdi
callq 0x16670
cmpl $0x0, %eax
je 0x167f7
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x168d1
movq -0x10(%rbp), %rax
movw 0x10(%rax), %cx
movw %cx, -0x24(%rbp)
movl 0xc(%rax), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl -0x24(%rbp), %eax
movl %ecx, %edi
shlq $0x20, %rax
orq %rax, %rdi
callq 0x16670
cmpl $0x0, %eax
je 0x1682e
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x168d1
movq -0x10(%rbp), %rax
movw 0x16(%rax), %cx
movw %cx, -0x2c(%rbp)
movl 0x12(%rax), %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %ecx
movl -0x2c(%rbp), %eax
movl %ecx, %edi
shlq $0x20, %rax
orq %rax, %rdi
callq 0x16670
cmpl $0x0, %eax
je 0x16862
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x168d1
movq -0x10(%rbp), %rax
movw 0x1c(%rax), %cx
movw %cx, -0x34(%rbp)
movl 0x18(%rax), %eax
movl %eax, -0x38(%rbp)
movl -0x38(%rbp), %ecx
movl -0x34(%rbp), %eax
movl %ecx, %edi
shlq $0x20, %rax
orq %rax, %rdi
callq 0x16670
cmpl $0x0, %eax
je 0x16896
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x168d1
movq -0x10(%rbp), %rax
movw 0x22(%rax), %cx
movw %cx, -0x3c(%rbp)
movl 0x1e(%rax), %eax
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %ecx
movl -0x3c(%rbp), %eax
movl %ecx, %edi
shlq $0x20, %rax
orq %rax, %rdi
callq 0x16670
cmpl $0x0, %eax
je 0x168ca
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x168d1
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)