	.file	"extr_irq.c_sn_irq_unfixup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sn_irq_unfixup
	.type	sn_irq_unfixup, @function
sn_irq_unfixup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	SN_PCIDEV_BUSSOFT@PLT
	test	eax, eax
	jne	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.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
.L15:
	.cfi_restore_state
	mov	rdi, rbp
	call	SN_PCIDEV_INFO@PLT
	mov	r12, QWORD PTR [rax]
	test	r12, r12
	je	.L1
	cmp	QWORD PTR [r12], 0
	mov	rdi, r12
	je	.L16
	call	unregister_intr_pda@PLT
	lea	rdi, sn_irq_info_lock[rip]
	call	spin_lock@PLT
	lea	rdi, 12[r12]
	call	list_del_rcu@PLT
	lea	rdi, sn_irq_info_lock[rip]
	call	spin_unlock@PLT
	mov	rdx, QWORD PTR [r12]
	mov	rax, QWORD PTR sn_irq_lh[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	list_empty@PLT
	test	rax, rax
	jne	.L17
.L6:
	mov	esi, DWORD PTR sn_irq_info_free[rip]
	lea	rdi, 8[r12]
	call	call_rcu@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	pci_dev_put@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, QWORD PTR [r12]
	call	free_irq_vector@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	kfree@PLT
	.cfi_endproc
.LFE0:
	.size	sn_irq_unfixup, .-sn_irq_unfixup
	.comm	sn_irq_lh,8,8
	.comm	sn_irq_info_lock,4,4
	.comm	sn_irq_info_free,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_irq.c_sn_irq_unfixup.c"
	.text
	.align	2
	.global	sn_irq_unfixup
	.syntax unified
	.arm
	.fpu softvfp
	.type	sn_irq_unfixup, %function
sn_irq_unfixup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	SN_PCIDEV_BUSSOFT
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r5
	bl	SN_PCIDEV_INFO
	ldr	r4, [r0]
	cmp	r4, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r4]
	mov	r0, r4
	cmp	r3, #0
	beq	.L15
	bl	unregister_intr_pda
	ldr	r0, .L17
	bl	spin_lock
	add	r0, r4, #8
	bl	list_del_rcu
	ldr	r0, .L17
	bl	spin_unlock
	ldr	r3, .L17+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r0, [r3, r2, lsl #2]
	bl	list_empty
	cmp	r0, #0
	bne	.L16
.L6:
	ldr	r3, .L17+8
	add	r0, r4, #4
	ldr	r1, [r3]
	bl	call_rcu
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	pci_dev_put
.L16:
	ldr	r0, [r4]
	bl	free_irq_vector
	b	.L6
.L15:
	pop	{r4, r5, r6, lr}
	b	kfree
.L18:
	.align	2
.L17:
	.word	sn_irq_info_lock
	.word	sn_irq_lh
	.word	sn_irq_info_free
	.size	sn_irq_unfixup, .-sn_irq_unfixup
	.comm	sn_irq_lh,4,4
	.comm	sn_irq_info_lock,4,4
	.comm	sn_irq_info_free,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
