// File: /workspace/github_c_makefile_star2_O3/intel[P]pf-bb-config/vrb1/vrb1_cfg_app.c
// Function: vrb1_irq_handler
int
vrb1_irq_handler(void *dev)
{
	hw_device *accel_pci_dev = (hw_device *)dev;
	uint8_t *bar0addr = accel_pci_dev->bar0Addr;
	uint32_t vf_index, status;
	/* No infoRing data available */

	/* Check first VF2PF comms */
	for (vf_index = 0; vf_index < VRB1_NUM_VFS; vf_index++) {
		status = vrb1_reg_read(bar0addr, HWPfHiVfToPfDbellVf +
				BB_ACC_PF_TO_VF_DBELL_REG_OFFSET * vf_index);
		if (status != 0) {
			vrb1_pfvf(dev, vf_index, status);
			LOG(DEBUG, "door bell %d %d", vf_index, status);
		}
	}
	/* Check for device error */
	vrb1_device_error(dev, VRB1_ITR_UNDEFINED);
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0xb0(%rdi), %r13
movl $0x5e, %ebp
xorl %r15d, %r15d
movl 0xc80000(%r13,%r15), %r14d
testq %r14, %r14
je 0x11202
movq 0xb0(%rbx), %r12
callq 0x12bf7
leaq 0x22e94(%rip), %rcx     # 0x33ed0
movq 0x18(%rcx), %r8
movl %r14d, (%rsp)
movl $0x3, %edi
xorl %esi, %esi
leaq 0xb3db(%rip), %rdx      # 0x1c42d
movq %rax, %rcx
leaq 0xb3f0(%rip), %r9       # 0x1c44c
xorl %eax, %eax
callq 0x199b4
cmpq $0x3, %r14
je 0x11114
cmpl $0x1, %r14d
jne 0x11125
movq -0x200(%rbx,%rbp,8), %rax
movl %eax, 0xc80008(%r12,%r15)
cmpq %rax, (%rbx,%rbp,8)
je 0x110f5
callq 0x12bf7
movq %rax, 0x18(%rsp)
leaq 0x22e32(%rip), %rax     # 0x33ed0
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
movq %r13, %r12
movq -0x200(%rbx,%rbp,8), %r13
movl %r13d, %edi
callq 0x19cac
leal -0x5e(%rbp), %r9d
movq %rax, 0x8(%rsp)
movq %r13, (%rsp)
movq %r12, %r13
movl $0x2, %edi
xorl %esi, %esi
leaq 0xb37e(%rip), %rdx      # 0x1c456
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %r8
xorl %eax, %eax
callq 0x199b4
movq -0x200(%rbx,%rbp,8), %rax
movq %rax, (%rbx,%rbp,8)
andq $-0x2, %rax
cmpq $0x6, %rax
jne 0x1119e
movq $0x3, -0x200(%rbx,%rbp,8)
jmp 0x1119e
movzwl 0x4fc(%rbx), %eax
movl %eax, 0xc80008(%r12,%r15)
jmp 0x1119e
cmpw $0x4, %r14w
je 0x1113c
movzwl %r14w, %eax
cmpl $0x5, %eax
jne 0x11155
movl $0x500, %eax            # imm = 0x500
jmp 0x11141
movl $0x540, %eax            # imm = 0x540
addq %rbx, %rax
movl %r14d, %ecx
shrl $0x10, %ecx
movl (%rax,%rcx,4), %eax
movl %eax, 0xc80008(%r12,%r15)
cmpl $0x2, %r14d
jne 0x1119e
cmpq $0x3, -0x200(%rbx,%rbp,8)
jne 0x1119e
movq $0x4, -0x200(%rbx,%rbp,8)
callq 0x12bf7
leaq 0x22d52(%rip), %rcx     # 0x33ed0
movq 0x10(%rcx), %r8
leal -0x5e(%rbp), %r9d
movl $0x2, %edi
xorl %esi, %esi
leaq 0xb2f3(%rip), %rdx      # 0x1c487
movq %rax, %rcx
xorl %eax, %eax
callq 0x199b4
callq 0x12bf7
leaq 0x22d26(%rip), %r12     # 0x33ed0
movq 0x18(%r12), %r8
movl $0x3, %edi
xorl %esi, %esi
leaq 0xa367(%rip), %rdx      # 0x1b524
movq %rax, %rcx
leaq 0xb285(%rip), %r9       # 0x1c44c
xorl %eax, %eax
callq 0x199b4
callq 0x12bf7
movq 0x18(%r12), %r8
leal -0x5e(%rbp), %ecx
movl %r14d, 0x8(%rsp)
movl %ecx, (%rsp)
movl $0x3, %edi
xorl %esi, %esi
leaq 0xaf77(%rip), %rdx      # 0x1c168
movq %rax, %rcx
leaq 0xaf8a(%rip), %r9       # 0x1c185
xorl %eax, %eax
callq 0x199b4
incq %rbp
addq $0x100, %r15            # imm = 0x100
cmpq $0x1000, %r15           # imm = 0x1000
jne 0x11018
movq 0xb0(%rbx), %rax
movq %rax, 0x18(%rsp)
movl 0xc84208(%rax), %ebp
leaq 0x211ae(%rip), %r12     # 0x323e0
xorl %r13d, %r13d
leaq 0xb26e(%rip), %r14      # 0x1c4aa
xorl %r15d, %r15d
btl %r15d, %ebp
jae 0x11275
orb 0x9(%r12), %r13b
callq 0x12bf7
leaq 0x22c7a(%rip), %rcx     # 0x33ed0
movq (%rcx), %r8
movq (%r12), %rcx
movq %rcx, (%rsp)
xorl %edi, %edi
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
movl %r15d, %r9d
xorl %eax, %eax
callq 0x199b4
incq %r15
addq $0x10, %r12
cmpq $0x20, %r15
jne 0x1123f
movq 0x18(%rsp), %rax
testl $0x1, 0xb80028(%rax)
je 0x112ba
callq 0x12bf7
leaq 0x22c31(%rip), %rcx     # 0x33ed0
movq (%rcx), %r8
leaq 0xb21f(%rip), %rdx      # 0x1c4c8
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x199b4
movb $0x1, %r13b
movq 0x18(%rsp), %rax
movl 0xc84004(%rax), %ebp
leaq 0x21314(%rip), %r12     # 0x325e0
leaq 0xb20e(%rip), %r14      # 0x1c4e1
xorl %r15d, %r15d
btl %r15d, %ebp
jae 0x11307
callq 0x12bf7
leaq 0x22be8(%rip), %rcx     # 0x33ed0
movq (%rcx), %r8
movq (%r12), %rcx
movq %rcx, (%rsp)
xorl %edi, %edi
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
movl %r15d, %r9d
xorl %eax, %eax
callq 0x199b4
incq %r15
addq $0x10, %r12
cmpq $0x20, %r15
jne 0x112d6
testb $0x1, %r13b
je 0x1144c
movq 0x18(%rsp), %rcx
movl $0x0, 0xc84204(%rcx)
movl $0x30, 0x810000(%rcx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0xb80800(%rcx)
movl $0x2000, 0xb80804(%rcx) # imm = 0x2000
movl %eax, 0xa00040(%rcx)
movl %eax, 0xa00048(%rcx)
movl %eax, 0xa00050(%rcx)
cmpq $0x5, 0xf0(%rbx)
je 0x1144c
callq 0x12bf7
leaq 0x22b58(%rip), %rcx     # 0x33ed0
movq (%rcx), %r8
leaq 0xb17e(%rip), %rdx      # 0x1c500
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x199b4
movq %rbx, %rdi
movl $0x5, %esi
callq 0x1a06b
cmpl $0x0, 0x4f0(%rbx)
je 0x1144c
movq 0x18(%rsp), %rax
movl $0xffffffff, 0xc84004(%rax) # imm = 0xFFFFFFFF
movl 0x4f4(%rbx), %ebp
callq 0x12bf7
leaq 0x22b05(%rip), %rcx     # 0x33ed0
movq 0x10(%rcx), %r8
cmpl $0x1, %ebp
jne 0x11401
leaq 0xb138(%rip), %rdx      # 0x1c513
movl $0x2, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x199b4
movq %rbx, %rdi
callq 0x19f53
testl %eax, %eax
je 0x1144c
leaq 0xb12c(%rip), %rbx      # 0x1c52b
jmp 0x1142c
leaq 0xb142(%rip), %rdx      # 0x1c54a
movl $0x2, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x199b4
movq %rbx, %rdi
callq 0x19e6d
testl %eax, %eax
je 0x1144c
leaq 0xb140(%rip), %rbx      # 0x1c56c
callq 0x12bf7
leaq 0x22a98(%rip), %rcx     # 0x33ed0
movq (%rcx), %r8
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x199b4
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq