// File: /workspace/github_c_makefile_star2_O3/intel[P]pf-bb-config/fpga_5gnr/fpga_5gnr_cfg_parser.c
// Function: fpga_handler
static int
fpga_handler(void *user, const char *section,
	     const char *name, const char *value)
{
	struct fpga_5gnr_fec_conf *fpga_conf =
			(struct fpga_5gnr_fec_conf *) user;
	int ret = 1;

	if (!strcmp(section, MODE) && !strcmp(name, PFMODE)) {
		if (!strcmp(value, ZERO))
			fpga_conf->pf_mode_en = false;
		else if (!strcmp(value, ONE))
			fpga_conf->pf_mode_en = true;
		else
			ret = 0;
	} else if (!strcmp(section, UL) && !strcmp(name, BANDWIDTH)) {
		ret = parse_number8(value, &fpga_conf->ul_bandwidth);
	} else if (!strcmp(section, DL) && !strcmp(name, BANDWIDTH)) {
		ret = parse_number8(value, &fpga_conf->dl_bandwidth);
	} else if (!strcmp(section, UL) && !strcmp(name, LOAD_BALANCE)) {
		ret = parse_number8(value, &fpga_conf->ul_load_balance);
	} else if (!strcmp(section, DL) && !strcmp(name, LOAD_BALANCE)) {
		ret = parse_number8(value, &fpga_conf->dl_load_balance);
	} else if (!strcmp(section, UL) && !strcmp(name, QUEUE_MAP)) {
		ret = parse_array8(value, fpga_conf->vf_ul_queues_number);
	} else if (!strcmp(section, DL) && !strcmp(name, QUEUE_MAP)) {
		ret = parse_array8(value, fpga_conf->vf_dl_queues_number);
	} else {
		printf("ERROR: Section (%s) or name (%s) is not valid.\n",
		       section, name);
		return 0;
	}
	if (ret != 1)
		printf("Error: Conversion of value (%s) failed.\n", value);

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
leaq 0xae6f(%rip), %rsi      # 0x1bbe3
movq %r12, %rdi
callq 0xd1f0
testl %eax, %eax
jne 0x10d97
leaq 0xae61(%rip), %rsi      # 0x1bbe8
movq %r15, %rdi
callq 0xd1f0
testl %eax, %eax
je 0x10e32
movzbl (%r12), %eax
cmpl $0x44, %eax
je 0x10dff
cmpl $0x55, %eax
jne 0x10e0f
cmpb $0x4c, 0x1(%r12)
jne 0x10e0f
cmpb $0x0, 0x2(%r12)
jne 0x10e0f
leaq 0xb2bf(%rip), %rsi      # 0x1c07c
movq %r15, %rdi
callq 0xd1f0
testl %eax, %eax
je 0x10eb4
leaq 0xb2b2(%rip), %rsi      # 0x1c086
movq %r15, %rdi
callq 0xd1f0
testl %eax, %eax
je 0x10ec0
leaq 0xb2a8(%rip), %rsi      # 0x1c093
movq %r15, %rdi
callq 0xd1f0
testl %eax, %eax
jne 0x10e0f
incq %r14
jmp 0x10e92
cmpb $0x4c, 0x1(%r12)
jne 0x10e0f
cmpb $0x0, 0x2(%r12)
je 0x10e55
leaq 0xb295(%rip), %rdi      # 0x1c0ab
xorl %r14d, %r14d
movq %r12, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xd150
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movzbl (%rbx), %eax
xorl %ebp, %ebp
cmpl $0x31, %eax
je 0x10e9f
cmpl $0x30, %eax
jne 0x10ee6
cmpb $0x0, 0x1(%rbx)
jne 0x10ee6
movb $0x0, (%r14)
jmp 0x10ea9
leaq 0xb220(%rip), %rsi      # 0x1c07c
movq %r15, %rdi
callq 0xd1f0
testl %eax, %eax
je 0x10eba
leaq 0xb217(%rip), %rsi      # 0x1c086
movq %r15, %rdi
callq 0xd1f0
testl %eax, %eax
je 0x10ec6
leaq 0xb211(%rip), %rsi      # 0x1c093
movq %r15, %rdi
callq 0xd1f0
testl %eax, %eax
jne 0x10e0f
addq $0x9, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10f53
jmp 0x10ed5
cmpb $0x0, 0x1(%rbx)
jne 0x10ee6
movb $0x1, (%r14)
movl $0x1, %r14d
jmp 0x10e26
addq $0x11, %r14
jmp 0x10eca
addq $0x12, %r14
jmp 0x10eca
addq $0x13, %r14
jmp 0x10eca
addq $0x14, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10eff
movl %eax, %ebp
movl $0x1, %r14d
cmpl $0x1, %eax
je 0x10e26
leaq 0xb1ee(%rip), %rdi      # 0x1c0db
movq %rbx, %rsi
xorl %eax, %eax
callq 0xd150
movl %ebp, %r14d
jmp 0x10e26