// File: /workspace/github_c_makefile_star2_O1/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), %rax
movq %rax, 0x10(%rsp)
movl $0x5e, %r12d
leaq 0x22e22(%rip), %rbp     # 0x33ed0
xorl %r15d, %r15d
movq 0x10(%rsp), %rax
movl 0xc80000(%rax,%r15), %r14d
testq %r14, %r14
je 0x11289
movq 0xb0(%rbx), %r13
callq 0x12cd5
movq 0x18(%rbp), %r8
movl %r14d, (%rsp)
movl $0x3, %edi
xorl %esi, %esi
leaq 0xb330(%rip), %rdx      # 0x1c419
movq %rax, %rcx
leaq 0xb345(%rip), %r9       # 0x1c438
xorl %eax, %eax
callq 0x19ca8
cmpq $0x3, %r14
je 0x111aa
cmpl $0x1, %r14d
jne 0x111b9
movq -0x200(%rbx,%r12,8), %rax
movl %eax, 0xc80008(%r13,%r15)
cmpq %rax, (%rbx,%r12,8)
je 0x11186
callq 0x12cd5
movq %rax, 0x20(%rsp)
movq 0x10(%rbp), %rax
movq %rax, 0x18(%rsp)
movq -0x200(%rbx,%r12,8), %rbp
movl %ebp, %edi
callq 0x19fa0
leal -0x5e(%r12), %r9d
movq %rax, 0x8(%rsp)
movq %rbp, (%rsp)
leaq 0x22d75(%rip), %rbp     # 0x33ed0
movl $0x2, %edi
xorl %esi, %esi
leaq 0xb2d9(%rip), %rdx      # 0x1c442
movq 0x20(%rsp), %rcx
movq 0x18(%rsp), %r8
xorl %eax, %eax
callq 0x19ca8
movq -0x200(%rbx,%r12,8), %rax
movq %rax, (%rbx,%r12,8)
movq -0x200(%rbx,%r12,8), %rax
andq $-0x2, %rax
cmpq $0x6, %rax
jne 0x111a4
movq $0x3, -0x200(%rbx,%r12,8)
cmpl $0x3, %r14d
jne 0x111b9
movzwl 0x4fc(%rbx), %eax
movl %eax, 0xc80008(%r13,%r15)
cmpw $0x4, %r14w
je 0x111d0
movzwl %r14w, %eax
cmpl $0x5, %eax
jne 0x111e9
movl $0x500, %eax            # imm = 0x500
jmp 0x111d5
movl $0x540, %eax            # imm = 0x540
addq %rbx, %rax
movl %r14d, %ecx
shrl $0x10, %ecx
movl (%rax,%rcx,4), %eax
movl %eax, 0xc80008(%r13,%r15)
cmpl $0x2, %r14d
jne 0x1122c
cmpq $0x3, -0x200(%rbx,%r12,8)
jne 0x1122c
movq $0x4, -0x200(%rbx,%r12,8)
callq 0x12cd5
movq 0x10(%rbp), %r8
leal -0x5e(%r12), %r9d
movl $0x2, %edi
xorl %esi, %esi
leaq 0xb251(%rip), %rdx      # 0x1c473
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
callq 0x12cd5
movq 0x18(%rbp), %r8
movl $0x3, %edi
xorl %esi, %esi
leaq 0xa2e1(%rip), %rdx      # 0x1b524
movq %rax, %rcx
leaq 0xb1eb(%rip), %r9       # 0x1c438
xorl %eax, %eax
callq 0x19ca8
callq 0x12cd5
movq 0x18(%rbp), %r8
leal -0x5e(%r12), %ecx
movl %r14d, 0x8(%rsp)
movl %ecx, (%rsp)
movl $0x3, %edi
xorl %esi, %esi
leaq 0xaedc(%rip), %rdx      # 0x1c154
movq %rax, %rcx
leaq 0xaeef(%rip), %r9       # 0x1c171
xorl %eax, %eax
callq 0x19ca8
incq %r12
addq $0x100, %r15            # imm = 0x100
cmpq $0x1000, %r15           # imm = 0x1000
jne 0x110b1
movq 0xb0(%rbx), %rax
movq %rax, 0x10(%rsp)
movl 0xc84208(%rax), %ebp
leaq 0x21127(%rip), %r12     # 0x323e0
xorl %r13d, %r13d
leaq 0xb1d3(%rip), %r14      # 0x1c496
xorl %r15d, %r15d
btl %r15d, %ebp
jae 0x1130a
movzbl %r13b, %r13d
cmpb $0x0, 0x9(%r12)
movl $0x1, %eax
cmovnel %eax, %r13d
callq 0x12cd5
leaq 0x22be5(%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 0x19ca8
incq %r15
addq $0x10, %r12
cmpq $0x20, %r15
jne 0x112c6
movq 0x10(%rsp), %rax
testl $0x1, 0xb80028(%rax)
je 0x1134f
callq 0x12cd5
leaq 0x22b9c(%rip), %rcx     # 0x33ed0
movq (%rcx), %r8
leaq 0xb176(%rip), %rdx      # 0x1c4b4
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
movb $0x1, %r13b
movq 0x10(%rsp), %rax
movl 0xc84004(%rax), %ebp
leaq 0x2127f(%rip), %r12     # 0x325e0
leaq 0xb165(%rip), %r14      # 0x1c4cd
xorl %r15d, %r15d
btl %r15d, %ebp
jae 0x1139c
callq 0x12cd5
leaq 0x22b53(%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 0x19ca8
incq %r15
addq $0x10, %r12
cmpq $0x20, %r15
jne 0x1136b
testb $0x1, %r13b
je 0x114e1
movq 0x10(%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 0x114e1
callq 0x12cd5
leaq 0x22ac3(%rip), %rcx     # 0x33ed0
movq (%rcx), %r8
leaq 0xb0d5(%rip), %rdx      # 0x1c4ec
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
movq %rbx, %rdi
movl $0x5, %esi
callq 0x1a35f
cmpl $0x0, 0x4f0(%rbx)
je 0x114e1
movq 0x10(%rsp), %rax
movl $0xffffffff, 0xc84004(%rax) # imm = 0xFFFFFFFF
movl 0x4f4(%rbx), %ebp
callq 0x12cd5
leaq 0x22a70(%rip), %rcx     # 0x33ed0
movq 0x10(%rcx), %r8
cmpl $0x1, %ebp
jne 0x11496
leaq 0xb08f(%rip), %rdx      # 0x1c4ff
movl $0x2, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
movq %rbx, %rdi
callq 0x1a247
testl %eax, %eax
je 0x114e1
leaq 0xb083(%rip), %rbx      # 0x1c517
jmp 0x114c1
leaq 0xb099(%rip), %rdx      # 0x1c536
movl $0x2, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
movq %rbx, %rdi
callq 0x1a161
testl %eax, %eax
je 0x114e1
leaq 0xb097(%rip), %rbx      # 0x1c558
callq 0x12cd5
leaq 0x22a03(%rip), %rcx     # 0x33ed0
movq (%rcx), %r8
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq