// File: /workspace/github_c_makefile_star2_O0/intel[P]pf-bb-config/agx100/agx100_cfg_parser.c
// Function: agx100_handler
static int
agx100_handler(void *user, const char *section,
	     const char *name, const char *value)
{
	struct agx100_conf *agx100_conf =
			(struct agx100_conf *) user;
	int ret = 1;

	if (!strcmp(section, MODE) && !strcmp(name, PFMODE)) {
		if (!strcmp(value, ZERO))
			agx100_conf->pf_mode_en = false;
		else if (!strcmp(value, ONE))
			agx100_conf->pf_mode_en = true;
		else
			ret = 0;
	} else if (!strcmp(section, UL) && !strcmp(name, LOAD_BALANCE)) {
		ret = parse_number8(value, &agx100_conf->ul_load_balance);
	} else if (!strcmp(section, DL) && !strcmp(name, LOAD_BALANCE)) {
		ret = parse_number8(value, &agx100_conf->dl_load_balance);
	} else if (!strcmp(section, UL) && !strcmp(name, QUEUE_MAP)) {
		ret = parse_array8(value, agx100_conf->vf_ul_queues_number);
	} else if (!strcmp(section, DL) && !strcmp(name, QUEUE_MAP)) {
		ret = parse_array8(value, agx100_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 0x57c1(%rip), %rsi      # 0x23c73
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1e51b
movq -0x20(%rbp), %rdi
leaq 0x57b1(%rip), %rsi      # 0x23c78
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1e51b
movq -0x28(%rbp), %rdi
leaq 0x4b7d(%rip), %rsi      # 0x23059
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1e4ef
movq -0x30(%rbp), %rax
movb $0x0, (%rax)
jmp 0x1e516
movq -0x28(%rbp), %rdi
leaq 0x4b8d(%rip), %rsi      # 0x23087
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1e50d
movq -0x30(%rbp), %rax
movb $0x1, (%rax)
jmp 0x1e514
movl $0x0, -0x34(%rbp)
jmp 0x1e516
jmp 0x1e648
movq -0x18(%rbp), %rdi
leaq 0x5af8(%rip), %rsi      # 0x2401e
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1e55e
movq -0x20(%rbp), %rdi
leaq 0x5b8f(%rip), %rsi      # 0x240ca
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1e55e
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
addq $0x11, %rsi
callq 0x1e670
movl %eax, -0x34(%rbp)
jmp 0x1e646
movq -0x18(%rbp), %rdi
leaq 0x5ab8(%rip), %rsi      # 0x24021
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1e5a1
movq -0x20(%rbp), %rdi
leaq 0x5b4c(%rip), %rsi      # 0x240ca
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1e5a1
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
addq $0x12, %rsi
callq 0x1e670
movl %eax, -0x34(%rbp)
jmp 0x1e644
movq -0x18(%rbp), %rdi
leaq 0x5a72(%rip), %rsi      # 0x2401e
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1e5e1
movq -0x20(%rbp), %rdi
leaq 0x5b16(%rip), %rsi      # 0x240d7
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1e5e1
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
addq $0x1, %rsi
callq 0x1e700
movl %eax, -0x34(%rbp)
jmp 0x1e642
movq -0x18(%rbp), %rdi
leaq 0x5a35(%rip), %rsi      # 0x24021
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1e621
movq -0x20(%rbp), %rdi
leaq 0x5ad6(%rip), %rsi      # 0x240d7
callq 0xd1e0
cmpl $0x0, %eax
jne 0x1e621
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
addq $0x9, %rsi
callq 0x1e700
movl %eax, -0x34(%rbp)
jmp 0x1e640
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq 0x5abf(%rip), %rdi      # 0x240ef
movb $0x0, %al
callq 0xd140
movl $0x0, -0x4(%rbp)
jmp 0x1e666
jmp 0x1e642
jmp 0x1e644
jmp 0x1e646
jmp 0x1e648
cmpl $0x1, -0x34(%rbp)
je 0x1e660
movq -0x28(%rbp), %rsi
leaq 0x5ac6(%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
nop