// File: /workspace/github_c_makefile_star2_O1/intel[P]pf-bb-config/daemon.c
// Function: cli_channel_event_processor
void cli_channel_event_processor(int fd, void *data)
{
	struct cmdReq *req = (struct cmdReq *)&cmdReq_g;
	struct cmdDef *cmd;

	if (data == NULL) {
		LOG(ERR, "event data is null");
		return;
	}
	if (!unix_channel_srv_rx(fd, req)) {
		if (get_cmd_by_id(req->id, &cmd) == -1)
			return;
		if (cmd->exec != NULL) {
			req->priv = data;
			cmd->exec(cmd, (void *)req);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movl %edi, %ebp
callq 0x19c5d
testq %rbx, %rbx
je 0x19819
leaq 0x1a812(%rip), %r12     # 0x33ed0
movq 0x18(%r12), %r8
leaq 0x4e88(%rip), %rdx      # 0x1e552
leaq 0x4eab(%rip), %r9       # 0x1e57c
movl $0x3, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
movl %ebp, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd390
movl %eax, %r14d
callq 0x19c5d
testl %r14d, %r14d
js 0x1982c
movq 0x18(%r12), %r8
subq $0x8, %rsp
leaq 0x4ea6(%rip), %rdx      # 0x1e5b4
leaq 0x4e67(%rip), %r9       # 0x1e57c
movl $0x3, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
pushq %r14
callq 0x19ca8
addq $0x10, %rsp
leaq 0x21345(%rip), %rsi     # 0x3aa78
movl $0x20, %edx
movl %r14d, %edi
xorl %ecx, %ecx
callq 0xd040
movq %rax, %r15
callq 0x19c5d
testl %r15d, %r15d
js 0x1984d
movq 0x18(%r12), %r8
movswl 0x21318(%rip), %r10d    # 0x3aa78
movswl 0x21312(%rip), %r11d    # 0x3aa7a
leaq 0x4e8b(%rip), %rdx      # 0x1e5fa
leaq 0x4e06(%rip), %r9       # 0x1e57c
xorl %r15d, %r15d
movl $0x3, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x19ca8
addq $0x10, %rsp
movl %r14d, %edi
callq 0xd1a0
movswl 0x212d7(%rip), %ebp     # 0x3aa78
leaq 0x1a2a8(%rip), %rax     # 0x33a50
cmpl %ebp, (%rax)
je 0x197bf
incq %r15
subq $-0x80, %rax
cmpq $0x8, %r15
jne 0x197a8
movl $0x8, %r15d
movl %r15d, %eax
shlq $0x7, %rax
leaq 0x1a283(%rip), %rcx     # 0x33a50
leaq (%rcx,%rax), %r14
movl (%rax,%rcx), %r15d
callq 0x19c5d
cmpl $-0x1, %r15d
je 0x19876
movq 0x18(%r12), %r8
leaq 0x4(%r14), %r10
movl (%r14), %r11d
leaq 0x4e4d(%rip), %rdx      # 0x1e644
leaq 0x4e6d(%rip), %r9       # 0x1e66b
movl $0x3, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x19ca8
addq $0x10, %rsp
jmp 0x19892
leaq 0x1a6b0(%rip), %rcx     # 0x33ed0
movq (%rcx), %r8
leaq 0x4c98(%rip), %rdx      # 0x1e4c2
jmp 0x19837
movq (%r12), %r8
leaq 0x4d59(%rip), %rdx      # 0x1e590
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x19ca8
movq (%r12), %r8
leaq 0x4d81(%rip), %rdx      # 0x1e5d9
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
movl %r14d, %edi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xd1a0
movq (%r12), %r8
leaq 0x4d9c(%rip), %rdx      # 0x1e61d
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
movl %ebp, %r9d
xorl %eax, %eax
callq 0x19ca8
cmpl $-0x1, %r15d
je 0x198bc
movq 0x70(%r14), %rax
testq %rax, %rax
je 0x198bc
movq %rbx, 0x211d8(%rip)     # 0x3aa80
leaq 0x211c9(%rip), %rsi     # 0x3aa78
movq %r14, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmpq *%rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq