// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movl $0x1, -0x34(%rbp)
movq -0x18(%rbp), %rdi
leaq 0x10bc1(%rip), %rsi     # 0x23c73
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1311b
movq -0x20(%rbp), %rdi
leaq 0x10bb1(%rip), %rsi     # 0x23c78
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1311b
movq -0x28(%rbp), %rdi
leaq 0xff7d(%rip), %rsi      # 0x23059
callq 0xd1e0
cmpl $0x0, %eax
jne 0x130ef
movq -0x30(%rbp), %rax
movb $0x0, (%rax)
jmp 0x13116
movq -0x28(%rbp), %rdi
leaq 0xff8d(%rip), %rsi      # 0x23087
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1310d
movq -0x30(%rbp), %rax
movb $0x1, (%rax)
jmp 0x13114
movl $0x0, -0x34(%rbp)
jmp 0x13116
jmp 0x132d2
movq -0x18(%rbp), %rdi
leaq 0x10ef8(%rip), %rsi     # 0x2401e
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1315e
movq -0x20(%rbp), %rdi
leaq 0x10f85(%rip), %rsi     # 0x240c0
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1315e
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
addq $0x11, %rsi
callq 0x13300
movl %eax, -0x34(%rbp)
jmp 0x132d0
movq -0x18(%rbp), %rdi
leaq 0x10eb8(%rip), %rsi     # 0x24021
callq 0xd1e0
cmpl $0x0, %eax
jne 0x131a1
movq -0x20(%rbp), %rdi
leaq 0x10f42(%rip), %rsi     # 0x240c0
callq 0xd1e0
cmpl $0x0, %eax
jne 0x131a1
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
addq $0x12, %rsi
callq 0x13300
movl %eax, -0x34(%rbp)
jmp 0x132ce
movq -0x18(%rbp), %rdi
leaq 0x10e72(%rip), %rsi     # 0x2401e
callq 0xd1e0
cmpl $0x0, %eax
jne 0x131e4
movq -0x20(%rbp), %rdi
leaq 0x10f09(%rip), %rsi     # 0x240ca
callq 0xd1e0
cmpl $0x0, %eax
jne 0x131e4
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
addq $0x13, %rsi
callq 0x13300
movl %eax, -0x34(%rbp)
jmp 0x132cc
movq -0x18(%rbp), %rdi
leaq 0x10e32(%rip), %rsi     # 0x24021
callq 0xd1e0
cmpl $0x0, %eax
jne 0x13227
movq -0x20(%rbp), %rdi
leaq 0x10ec6(%rip), %rsi     # 0x240ca
callq 0xd1e0
cmpl $0x0, %eax
jne 0x13227
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
addq $0x14, %rsi
callq 0x13300
movl %eax, -0x34(%rbp)
jmp 0x132ca
movq -0x18(%rbp), %rdi
leaq 0x10dec(%rip), %rsi     # 0x2401e
callq 0xd1e0
cmpl $0x0, %eax
jne 0x13267
movq -0x20(%rbp), %rdi
leaq 0x10e90(%rip), %rsi     # 0x240d7
callq 0xd1e0
cmpl $0x0, %eax
jne 0x13267
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
addq $0x1, %rsi
callq 0x13390
movl %eax, -0x34(%rbp)
jmp 0x132c8
movq -0x18(%rbp), %rdi
leaq 0x10daf(%rip), %rsi     # 0x24021
callq 0xd1e0
cmpl $0x0, %eax
jne 0x132a7
movq -0x20(%rbp), %rdi
leaq 0x10e50(%rip), %rsi     # 0x240d7
callq 0xd1e0
cmpl $0x0, %eax
jne 0x132a7
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
addq $0x9, %rsi
callq 0x13390
movl %eax, -0x34(%rbp)
jmp 0x132c6
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq 0x10e39(%rip), %rdi     # 0x240ef
movb $0x0, %al
callq 0xd140
movl $0x0, -0x4(%rbp)
jmp 0x132f0
jmp 0x132c8
jmp 0x132ca
jmp 0x132cc
jmp 0x132ce
jmp 0x132d0
jmp 0x132d2
cmpl $0x1, -0x34(%rbp)
je 0x132ea
movq -0x28(%rbp), %rsi
leaq 0x10e3c(%rip), %rdi     # 0x2411f
movb $0x0, %al
callq 0xd140
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)