	.file	"extr_smartpqi_intr.c_deregister_pqi_msix.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IN\n"
.LC1:
	.string	"OUT\n"
	.text
	.p2align 4
	.globl	deregister_pqi_msix
	.type	deregister_pqi_msix, @function
deregister_pqi_msix:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, DWORD PTR [rdi]
	mov	r13d, DWORD PTR 48[rdi]
	lea	rdi, .LC0[rip]
	call	DBG_FUNC@PLT
	mov	rsi, QWORD PTR 40[rbp]
	lea	edx, 0[0+rbx*4]
	mov	rdi, rbp
	call	os_mem_free@PLT
	mov	QWORD PTR 40[rbp], 0
	test	ebx, ebx
	jle	.L6
	lea	eax, -1[rbx]
	xor	ebx, ebx
	lea	r12, 4[0+rax*4]
	mov	rax, QWORD PTR 8[rbp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 16[rbp]
	mov	esi, DWORD PTR SYS_RES_IRQ[rip]
	mov	edi, r13d
	mov	edx, DWORD PTR [rax+rbx]
	call	bus_release_resource@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR [rax+r14], 0
.L3:
	add	rbx, 4
	cmp	r12, rbx
	je	.L6
.L5:
	mov	rcx, QWORD PTR [rax+rbx*2]
	lea	r14, [rbx+rbx]
	test	rcx, rcx
	je	.L3
	mov	rax, QWORD PTR 24[rbp]
	cmp	QWORD PTR [rax+rbx*2], 0
	je	.L4
	mov	rax, QWORD PTR 32[rbp]
	mov	rsi, rcx
	mov	edi, r13d
	mov	edx, DWORD PTR [rax+rbx]
	call	bus_teardown_intr@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR FALSE[rip]
	mov	QWORD PTR [rax+r14], rdx
	mov	rax, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR [rax+r14]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	pop	rbx
	.cfi_def_cfa_offset 40
	lea	rdi, .LC1[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	DBG_FUNC@PLT
	.cfi_endproc
.LFE0:
	.size	deregister_pqi_msix, .-deregister_pqi_msix
	.comm	SYS_RES_IRQ,4,4
	.comm	FALSE,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_smartpqi_intr.c_deregister_pqi_msix.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IN\012\000"
	.align	2
.LC1:
	.ascii	"OUT\012\000"
	.text
	.align	2
	.global	deregister_pqi_msix
	.syntax unified
	.arm
	.fpu softvfp
	.type	deregister_pqi_msix, %function
deregister_pqi_msix:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r4, #0
	ldr	r7, [r0]
	ldr	r0, .L16
	ldr	r8, [r5, #24]
	bl	DBG_FUNC
	mov	r0, r5
	ldr	r1, [r5, #20]
	lsl	r2, r7, #2
	bl	os_mem_free
	cmp	r7, r4
	str	r4, [r5, #20]
	ble	.L5
	mov	r10, r4
	ldr	r2, [r5, #4]
	ldr	r9, .L16+4
	ldr	fp, .L16+8
	b	.L2
.L4:
	ldr	r2, [r5, #8]
	mov	r0, r8
	ldr	r2, [r2, r6]
	ldr	r1, [r9]
	bl	bus_release_resource
	ldr	r2, [r5, #4]
	str	r10, [r2, r6]
.L3:
	add	r4, r4, #1
	cmp	r7, r4
	beq	.L5
.L2:
	ldr	r3, [r2, r4, lsl #2]
	lsl	r6, r4, #2
	cmp	r3, #0
	beq	.L3
	ldr	r2, [r5, #12]
	ldr	r2, [r2, r4, lsl #2]
	cmp	r2, #0
	beq	.L4
	ldr	r2, [r5, #16]
	mov	r1, r3
	ldr	r2, [r2, r6]
	mov	r0, r8
	bl	bus_teardown_intr
	ldr	r3, [r5, #4]
	ldr	r1, [fp]
	ldr	r2, [r5, #12]
	ldr	r3, [r3, r6]
	str	r1, [r2, r6]
	b	.L4
.L5:
	ldr	r0, .L16+12
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	DBG_FUNC
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	SYS_RES_IRQ
	.word	FALSE
	.word	.LC1
	.size	deregister_pqi_msix, .-deregister_pqi_msix
	.comm	SYS_RES_IRQ,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
