// File: /workspace/github_c_makefile_star2_O2/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, %r12
movq 0xb0(%rdi), %rax
movq %rax, 0x20(%rsp)
pushq $0x5e
popq %rbp
xorl %r15d, %r15d
movq %rdi, 0x18(%rsp)
cmpq $0x1000, %r15           # imm = 0x1000
je 0x1106c
movq 0x20(%rsp), %rax
movl 0xc80000(%rax,%r15), %ebx
testq %rbx, %rbx
je 0x1105d
movq 0xb0(%r12), %r14
callq 0x1298b
leaq 0x24025(%rip), %rcx     # 0x34ed0
movq 0x18(%rcx), %r8
movl %ebx, (%rsp)
pushq $0x3
popq %rdi
xorl %esi, %esi
leaq 0xb52b(%rip), %rdx      # 0x1c3e9
movq %rax, %rcx
leaq 0xb540(%rip), %r9       # 0x1c408
xorl %eax, %eax
callq 0x19400
cmpq $0x3, %rbx
je 0x10f76
cmpl $0x1, %ebx
jne 0x10f89
movq -0x200(%r12,%rbp,8), %rax
movl %eax, 0xc80008(%r14,%r15)
cmpq %rax, (%r12,%rbp,8)
je 0x10f57
callq 0x1298b
movq %rax, %r12
leaq 0x23fc9(%rip), %rax     # 0x34ed0
movq 0x10(%rax), %r13
movq 0x18(%rsp), %rax
movq -0x200(%rax,%rbp,8), %r14
movl %r14d, %edi
callq 0x196f4
leal -0x5e(%rbp), %r9d
movq %rax, 0x8(%rsp)
movq %r14, (%rsp)
pushq $0x2
popq %rdi
xorl %esi, %esi
leaq 0xb4d9(%rip), %rdx      # 0x1c412
movq %r12, %rcx
movq %r13, %r8
movq 0x18(%rsp), %r12
xorl %eax, %eax
callq 0x19400
movq -0x200(%r12,%rbp,8), %rax
movq %rax, (%r12,%rbp,8)
andq $-0x2, %rax
cmpq $0x6, %rax
jne 0x10ffc
movq $0x3, -0x200(%r12,%rbp,8)
jmp 0x10ffc
movzwl 0x4fc(%r12), %eax
movl %eax, 0xc80008(%r14,%r15)
jmp 0x10ffc
cmpw $0x4, %bx
je 0x10f9e
movzwl %bx, %eax
cmpl $0x5, %eax
jne 0x10fb6
movl $0x500, %eax            # imm = 0x500
jmp 0x10fa3
movl $0x540, %eax            # imm = 0x540
addq %r12, %rax
movl %ebx, %ecx
shrl $0x10, %ecx
movl (%rax,%rcx,4), %eax
movl %eax, 0xc80008(%r14,%r15)
cmpl $0x2, %ebx
jne 0x10ffc
cmpq $0x3, -0x200(%r12,%rbp,8)
jne 0x10ffc
movq $0x4, -0x200(%r12,%rbp,8)
callq 0x1298b
leaq 0x23ef2(%rip), %rcx     # 0x34ed0
movq 0x10(%rcx), %r8
leal -0x5e(%rbp), %r9d
pushq $0x2
popq %rdi
xorl %esi, %esi
leaq 0xb451(%rip), %rdx      # 0x1c443
movq %rax, %rcx
xorl %eax, %eax
callq 0x19400
callq 0x1298b
leaq 0x23ec8(%rip), %r14     # 0x34ed0
movq 0x18(%r14), %r8
pushq $0x3
popq %r13
movl %r13d, %edi
xorl %esi, %esi
leaq 0xa508(%rip), %rdx      # 0x1b524
movq %rax, %rcx
leaq 0xb3e2(%rip), %r9       # 0x1c408
xorl %eax, %eax
callq 0x19400
callq 0x1298b
movq 0x18(%r14), %r8
leal -0x5e(%rbp), %ecx
movl %ebx, 0x8(%rsp)
movl %ecx, (%rsp)
movl %r13d, %edi
xorl %esi, %esi
leaq 0xb0d8(%rip), %rdx      # 0x1c124
movq %rax, %rcx
leaq 0xb0eb(%rip), %r9       # 0x1c141
xorl %eax, %eax
callq 0x19400
addq $0x100, %r15            # imm = 0x100
incq %rbp
jmp 0x10e74
movq 0xb0(%r12), %r12
movl 0xc84208(%r12), %ebp
leaq 0x2235d(%rip), %r13     # 0x333e0
xorl %ebx, %ebx
leaq 0xb3da(%rip), %r14      # 0x1c466
xorl %r15d, %r15d
cmpq $0x20, %r15
je 0x110d3
btl %r15d, %ebp
jae 0x110ca
orb 0x9(%r13), %bl
callq 0x1298b
leaq 0x23e25(%rip), %rcx     # 0x34ed0
movq (%rcx), %r8
movq (%r13), %rcx
movq %rcx, (%rsp)
xorl %edi, %edi
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
movl %r15d, %r9d
xorl %eax, %eax
callq 0x19400
incq %r15
addq $0x10, %r13
jmp 0x1108f
testl $0x1, 0xb80028(%r12)
je 0x11107
callq 0x1298b
leaq 0x23de3(%rip), %rcx     # 0x34ed0
movq (%rcx), %r8
leaq 0xb38d(%rip), %rdx      # 0x1c484
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19400
movb $0x1, %bl
movl 0xc84004(%r12), %ebp
leaq 0x224ca(%rip), %r13     # 0x335e0
leaq 0xb380(%rip), %r14      # 0x1c49d
xorl %r15d, %r15d
cmpq $0x20, %r15
je 0x11160
btl %r15d, %ebp
jae 0x11157
callq 0x1298b
leaq 0x23d98(%rip), %rcx     # 0x34ed0
movq (%rcx), %r8
movq (%r13), %rcx
movq %rcx, (%rsp)
xorl %edi, %edi
xorl %esi, %esi
movq %r14, %rdx
movq %rax, %rcx
movl %r15d, %r9d
xorl %eax, %eax
callq 0x19400
incq %r15
addq $0x10, %r13
jmp 0x11120
testb $0x1, %bl
movq 0x18(%rsp), %r14
je 0x1129c
movl $0x0, 0xc84204(%r12)
movl $0x30, 0x810000(%r12)
pushq $-0x1
popq %rax
movl %eax, 0xb80800(%r12)
movl $0x2000, 0xb80804(%r12) # imm = 0x2000
movl %eax, 0xa00040(%r12)
movl %eax, 0xa00048(%r12)
movl %eax, 0xa00050(%r12)
cmpq $0x5, 0xf0(%r14)
je 0x1129c
callq 0x1298b
leaq 0x23d01(%rip), %rcx     # 0x34ed0
movq (%rcx), %r8
leaq 0xb2e3(%rip), %rdx      # 0x1c4bc
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19400
pushq $0x5
popq %rsi
movq %r14, %rdi
callq 0x19a78
cmpl $0x0, 0x4f0(%r14)
je 0x1129c
movl $0xffffffff, 0xc84004(%r12) # imm = 0xFFFFFFFF
movl 0x4f4(%r14), %ebx
callq 0x1298b
leaq 0x23cb1(%rip), %rcx     # 0x34ed0
movq 0x10(%rcx), %r8
cmpl $0x1, %ebx
jne 0x11253
leaq 0xb2a0(%rip), %rdx      # 0x1c4cf
pushq $0x2
popq %rdi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19400
movq %r14, %rdi
callq 0x1996c
testl %eax, %eax
je 0x1129c
leaq 0xb296(%rip), %rbx      # 0x1c4e7
jmp 0x1127c
leaq 0xb2ac(%rip), %rdx      # 0x1c506
pushq $0x2
popq %rdi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19400
movq %r14, %rdi
callq 0x1988f
testl %eax, %eax
je 0x1129c
leaq 0xb2ac(%rip), %rbx      # 0x1c528
callq 0x1298b
leaq 0x23c48(%rip), %rcx     # 0x34ed0
movq (%rcx), %r8
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x19400
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq