	.file	"extr_hns_enet.c_hns_nic_free_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hns_nic_free_irq, @function
hns_nic_free_irq:
.LFB0:
	.cfi_startproc
	endbr64
	add	edi, edi
	test	edi, edi
	jle	.L7
	lea	eax, -1[rdi]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rbp, 8[0+rax*8]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	mov	rdx, QWORD PTR [rsi]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 8
	cmp	rbp, rbx
	je	.L11
.L4:
	mov	rax, QWORD PTR [rdx+rbx]
	mov	rcx, QWORD PTR RCB_IRQ_INITED[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L3
	mov	edi, DWORD PTR 8[rax]
	xor	esi, esi
	call	irq_set_affinity_hint@PLT
	mov	rsi, QWORD PTR [r12]
	add	rsi, rbx
	mov	rax, QWORD PTR [rsi]
	mov	edi, DWORD PTR 8[rax]
	call	free_irq@PLT
	mov	rdx, QWORD PTR [r12]
	mov	rcx, QWORD PTR RCB_IRQ_NOT_INITED[rip]
	mov	rax, QWORD PTR [rdx+rbx]
	add	rbx, 8
	mov	QWORD PTR [rax], rcx
	cmp	rbp, rbx
	jne	.L4
.L11:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE0:
	.size	hns_nic_free_irq, .-hns_nic_free_irq
	.comm	RCB_IRQ_NOT_INITED,8,8
	.comm	RCB_IRQ_INITED,8,8
	.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_hns_enet.c_hns_nic_free_irq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hns_nic_free_irq, %function
hns_nic_free_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	lsl	r5, r0, #1
	cmp	r5, #0
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r8, r1
	mov	r4, #0
	ldr	lr, [r1]
	ldr	r7, .L8
	ldr	r9, .L8+4
	b	.L4
.L3:
	add	r4, r4, #1
	cmp	r4, r5
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r3, [lr, r4, lsl #2]
	ldr	r2, [r7]
	ldr	ip, [r3]
	lsl	r6, r4, #2
	cmp	ip, r2
	bne	.L3
	mov	r1, #0
	ldr	r0, [r3, #4]
	bl	irq_set_affinity_hint
	ldr	r1, [r8]
	ldr	r3, [r1, r4, lsl #2]
	add	r1, r1, r6
	ldr	r0, [r3, #4]
	bl	free_irq
	ldr	lr, [r8]
	ldr	r2, [r9]
	ldr	r3, [lr, r4, lsl #2]
	str	r2, [r3]
	b	.L3
.L9:
	.align	2
.L8:
	.word	RCB_IRQ_INITED
	.word	RCB_IRQ_NOT_INITED
	.size	hns_nic_free_irq, .-hns_nic_free_irq
	.comm	RCB_IRQ_NOT_INITED,4,4
	.comm	RCB_IRQ_INITED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
