	.file	"extr_ntb_hw_gen1.c_ndev_init_isr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ndev_vec_isr"
.LC1:
	.string	"Using %d msix interrupts\n"
.LC2:
	.string	"ndev_irq_isr"
.LC3:
	.string	"Using msi interrupts\n"
.LC4:
	.string	"Using intx interrupts\n"
	.text
	.p2align 4
	.globl	ndev_init_isr
	.type	ndev_init_isr, @function
ndev_init_isr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 88[rdi]
	mov	DWORD PTR 12[rsp], ecx
	mov	rdi, r12
	mov	DWORD PTR 8[rsp], r8d
	call	dev_to_node@PLT
	mov	edi, DWORD PTR 80[rbx]
	mov	rsi, QWORD PTR 56[rbx]
	mov	r14d, eax
	mov	rax, QWORD PTR 48[rbx]
	mov	DWORD PTR 64[rbx], edi
	add	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR 72[rbx]
	call	[QWORD PTR [rax]]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	ecx, r14d
	mov	esi, 96
	mov	edi, r13d
	call	kcalloc_node@PLT
	mov	QWORD PTR 16[rbx], rax
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 96
	mov	ecx, r14d
	mov	edi, r13d
	call	kcalloc_node@PLT
	mov	QWORD PTR 24[rbx], rax
	mov	rsi, rax
	test	rax, rax
	je	.L3
	test	r13d, r13d
	jle	.L4
	mov	rcx, rax
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR [rcx], edx
	add	edx, 1
	add	rcx, 96
	cmp	r13d, edx
	jne	.L5
.L4:
	mov	ecx, r13d
	mov	edx, r15d
	mov	rdi, r12
	call	pci_enable_msix_range@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L6
	je	.L7
	xor	r13d, r13d
	xor	r14d, r14d
	lea	r15, .LC0[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	add	r14d, 1
	add	r13, 96
	cmp	ebp, r14d
	je	.L7
.L11:
	mov	r8, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR 24[rbx]
	xor	edx, edx
	mov	rcx, r15
	mov	esi, DWORD PTR ndev_vec_isr[rip]
	add	r8, r13
	mov	edi, DWORD PTR 32[rax+r13]
	mov	QWORD PTR 40[r8], rbx
	mov	DWORD PTR 4[r8], r14d
	call	request_irq@PLT
	test	eax, eax
	je	.L8
	lea	eax, -1[r14]
	test	r14d, r14d
	je	.L10
	movsx	rdx, eax
	movsx	r9, r14d
	mov	eax, eax
	sub	r9, rax
	lea	rbp, [rdx+rdx*2]
	lea	r14, [r9+r9*2]
	sal	rbp, 5
	sal	r14, 5
	sub	r14, 192
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR 24[rbx]
	mov	rsi, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 32[rax+rbp]
	add	rsi, rbp
	sub	rbp, 96
	call	free_irq@PLT
	cmp	r14, rbp
	jne	.L13
.L10:
	mov	rdi, r12
	call	pci_disable_msix@PLT
.L6:
	mov	rdi, QWORD PTR 24[rbx]
	call	kfree@PLT
.L3:
	mov	rdi, QWORD PTR 16[rbx]
	call	kfree@PLT
.L2:
	mov	QWORD PTR 24[rbx], 0
	mov	rdi, r12
	mov	QWORD PTR 16[rbx], 0
	call	pci_enable_msi@PLT
	test	eax, eax
	je	.L31
.L14:
	mov	esi, 1
	mov	rdi, r12
	call	pci_intx@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	edx, DWORD PTR IRQF_SHARED[rip]
	mov	r8, rbx
	mov	esi, DWORD PTR ndev_irq_isr[rip]
	lea	rcx, .LC2[rip]
	call	request_irq@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L32
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	esi, DWORD PTR ndev_irq_isr[rip]
	mov	edi, DWORD PTR 4[r12]
	mov	r8, rbx
	xor	edx, edx
	lea	rcx, .LC2[rip]
	call	request_irq@PLT
	lea	rsi, .LC3[rip]
	mov	r14d, eax
	test	eax, eax
	jne	.L33
.L29:
	mov	rdi, r12
	xor	eax, eax
	call	dev_dbg@PLT
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR 8[rbx], 1
	mov	DWORD PTR 12[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	lea	rsi, .LC4[rip]
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, ebp
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	xor	eax, eax
	call	dev_dbg@PLT
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 8[rbx], ebp
	xor	r14d, r14d
	mov	DWORD PTR 12[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, r12
	call	pci_disable_msi@PLT
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	ndev_init_isr, .-ndev_init_isr
	.comm	ndev_vec_isr,4,4
	.comm	ndev_irq_isr,4,4
	.comm	IRQF_SHARED,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ntb_hw_gen1.c_ndev_init_isr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ndev_vec_isr\000"
	.align	2
.LC1:
	.ascii	"Using %d msix interrupts\012\000"
	.align	2
.LC2:
	.ascii	"ndev_irq_isr\000"
	.align	2
.LC3:
	.ascii	"Using msi interrupts\012\000"
	.align	2
.LC4:
	.ascii	"Using intx interrupts\012\000"
	.text
	.align	2
	.global	ndev_init_isr
	.syntax unified
	.arm
	.fpu softvfp
	.type	ndev_init_isr, %function
ndev_init_isr:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, [r0, #52]
	mov	r4, r0
	sub	sp, sp, #12
	mov	r0, r8
	mov	r5, r2
	mov	r6, r1
	mov	r10, r3
	bl	dev_to_node
	mov	r9, r0
	ldr	r3, [r4, #32]
	ldr	r2, [r4, #36]
	ldr	r1, [r3]
	ldr	r0, [r4, #48]
	ldr	r3, [r4, #44]
	ldr	r7, .L32
	add	r1, r1, r2
	ldr	r3, [r3]
	str	r0, [r4, #40]
	blx	r3
	mov	r3, r9
	mov	r0, r5
	mov	r1, #56
	ldr	r2, [r7]
	bl	kcalloc_node
	cmp	r0, #0
	str	r0, [r4, #16]
	beq	.L2
	mov	r1, #56
	mov	r3, r9
	mov	r0, r5
	ldr	r2, [r7]
	bl	kcalloc_node
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r4, #20]
	beq	.L3
	cmp	r5, #0
	ble	.L4
	mov	r2, r0
	mov	r3, #0
.L5:
	str	r3, [r2], #56
	add	r3, r3, #1
	cmp	r5, r3
	bne	.L5
.L4:
	mov	r3, r5
	mov	r2, r6
	mov	r0, r8
	bl	pci_enable_msix_range
	subs	r7, r0, #0
	blt	.L6
	beq	.L7
	mov	r6, #0
	ldr	r9, .L32+4
	mov	r5, r6
	ldr	fp, .L32+8
	b	.L11
.L8:
	add	r5, r5, #1
	cmp	r7, r5
	add	r6, r6, #56
	beq	.L7
.L11:
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #16]
	add	r3, r3, r6
	add	r2, r2, r6
	ldr	r0, [r3, #24]
	str	r4, [r2, #28]
	str	r5, [r2, #4]
	str	r2, [sp]
	mov	r3, fp
	mov	r2, #0
	ldr	r1, [r9]
	bl	request_irq
	cmp	r0, #0
	beq	.L8
	cmp	r5, #0
	sub	r5, r5, #1
	beq	.L10
.L9:
	ldr	r3, [r4, #20]
	rsb	r2, r5, r5, lsl #3
	ldr	r1, [r4, #16]
	add	r3, r3, r2, lsl #3
	ldr	r0, [r3, #24]
	sub	r5, r5, #1
	add	r1, r1, r2, lsl #3
	bl	free_irq
	cmn	r5, #1
	bne	.L9
.L10:
	mov	r0, r8
	bl	pci_disable_msix
.L6:
	ldr	r0, [r4, #20]
	bl	kfree
.L3:
	ldr	r0, [r4, #16]
	bl	kfree
.L2:
	mov	r3, #0
	mov	r0, r8
	str	r3, [r4, #20]
	str	r3, [r4, #16]
	bl	pci_enable_msi
	subs	r2, r0, #0
	ldr	r6, .L32+12
	beq	.L26
.L13:
	mov	r1, #1
	mov	r0, r8
	bl	pci_intx
	ldr	r3, .L32+16
	ldr	r0, [r8, #4]
	ldr	r2, [r3]
	ldr	r1, [r6]
	ldr	r3, .L32+20
	str	r4, [sp]
	bl	request_irq
	subs	r5, r0, #0
	beq	.L30
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	ldr	r1, [r6]
	ldr	r0, [r8, #4]
	ldr	r3, .L32+20
	str	r4, [sp]
	bl	request_irq
	subs	r5, r0, #0
	ldreq	r1, .L32+24
	mov	r0, r8
	bne	.L31
.L28:
	bl	dev_dbg
	mov	r3, #1
	mov	r0, r5
	ldr	r2, [sp, #48]
	str	r3, [r4, #8]
	str	r2, [r4, #12]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	mov	r0, r8
	ldr	r1, .L32+28
	b	.L28
.L7:
	mov	r5, #0
	mov	r0, r8
	mov	r2, r7
	ldr	r1, .L32+32
	bl	dev_dbg
	mov	r0, r5
	str	r7, [r4, #8]
	str	r10, [r4, #12]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	bl	pci_disable_msi
	b	.L13
.L33:
	.align	2
.L32:
	.word	GFP_KERNEL
	.word	ndev_vec_isr
	.word	.LC0
	.word	ndev_irq_isr
	.word	IRQF_SHARED
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC1
	.size	ndev_init_isr, .-ndev_init_isr
	.comm	ndev_vec_isr,4,4
	.comm	ndev_irq_isr,4,4
	.comm	IRQF_SHARED,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
