	.file	"extr_qib_iba7322.c_qib_setup_7322_cleanup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qib_setup_7322_cleanup, @function
qib_setup_7322_cleanup:
.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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	qib_7322_free_irq@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 28[rax]
	call	kfree@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 24[rax]
	call	kfree@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 20[rax]
	call	kfree@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 16[rax]
	call	kfree@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rax]
	call	kfree@PLT
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	jle	.L1
	xor	ebp, ebp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbp, 1
	cmp	DWORD PTR 4[rbx], ebp
	jle	.L1
.L4:
	mov	rax, QWORD PTR 16[rbx]
	mov	r12d, DWORD PTR QSFP_GPIO_MOD_PRS_N[rip]
	mov	r13d, DWORD PTR QSFP_GPIO_PORT2_SHIFT[rip]
	mov	rax, QWORD PTR [rax+rbp*8]
	mov	edi, DWORD PTR [rax]
	call	kfree@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR QIB_HAS_QSFP[rip], eax
	je	.L3
	mov	rax, QWORD PTR 8[rbx]
	xor	r14d, r14d
	add	rbp, 1
	mov	rsi, r14
	lea	rdi, 8[rax]
	call	spin_lock_irqsave@PLT
	mov	ecx, r13d
	mov	edx, r12d
	mov	rax, QWORD PTR 8[rbx]
	sal	edx, cl
	mov	esi, DWORD PTR kr_gpio_mask[rip]
	mov	rdi, rbx
	or	edx, r12d
	not	edx
	and	edx, DWORD PTR 4[rax]
	mov	DWORD PTR 4[rax], edx
	call	qib_write_kreg@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, r14
	lea	rdi, 8[rax]
	call	spin_unlock_irqrestore@PLT
	cmp	DWORD PTR 4[rbx], ebp
	jg	.L4
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	ret
	.cfi_endproc
.LFE0:
	.size	qib_setup_7322_cleanup, .-qib_setup_7322_cleanup
	.comm	kr_gpio_mask,4,4
	.comm	QSFP_GPIO_PORT2_SHIFT,4,4
	.comm	QSFP_GPIO_MOD_PRS_N,4,4
	.comm	QIB_HAS_QSFP,4,4
	.comm	QIB_DCA_ENABLED,4,4
	.comm	DCACtrlA,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_qib_iba7322.c_qib_setup_7322_cleanup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qib_setup_7322_cleanup, %function
qib_setup_7322_cleanup:
	@ 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	r4, r0
	bl	qib_7322_free_irq
	ldr	r3, [r4, #8]
	ldr	r0, [r3, #28]
	bl	kfree
	ldr	r3, [r4, #8]
	ldr	r0, [r3, #24]
	bl	kfree
	ldr	r3, [r4, #8]
	ldr	r0, [r3, #20]
	bl	kfree
	ldr	r3, [r4, #8]
	ldr	r0, [r3, #16]
	bl	kfree
	ldr	r3, [r4, #8]
	ldr	r0, [r3, #12]
	bl	kfree
	ldr	r3, [r4, #4]
	cmp	r3, #0
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r5, #0
	ldr	r10, .L11
	ldr	r9, .L11+4
	ldr	r8, .L11+8
	b	.L4
.L3:
	ldr	r3, [r4, #4]
	cmp	r3, r5
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r3, [r4, #12]
	ldr	r6, [r10]
	ldr	r3, [r3, r5, lsl #2]
	ldr	r7, [r9]
	ldr	r0, [r3]
	bl	kfree
	ldr	r2, [r4]
	ldr	r3, [r8]
	add	r5, r5, #1
	tst	r2, r3
	beq	.L3
	mov	fp, #0
	ldr	r0, [r4, #8]
	mov	r1, fp
	add	r0, r0, #8
	bl	spin_lock_irqsave
	ldr	r0, [r4, #8]
	ldr	r3, .L11+12
	ldr	r2, [r0, #4]
	orr	r6, r6, r6, lsl r7
	bic	r2, r2, r6
	ldr	r1, [r3]
	str	r2, [r0, #4]
	mov	r0, r4
	bl	qib_write_kreg
	ldr	r0, [r4, #8]
	mov	r1, fp
	add	r0, r0, #8
	bl	spin_unlock_irqrestore
	b	.L3
.L12:
	.align	2
.L11:
	.word	QSFP_GPIO_MOD_PRS_N
	.word	QSFP_GPIO_PORT2_SHIFT
	.word	QIB_HAS_QSFP
	.word	kr_gpio_mask
	.size	qib_setup_7322_cleanup, .-qib_setup_7322_cleanup
	.comm	kr_gpio_mask,4,4
	.comm	QSFP_GPIO_PORT2_SHIFT,4,4
	.comm	QSFP_GPIO_MOD_PRS_N,4,4
	.comm	QIB_HAS_QSFP,4,4
	.comm	QIB_DCA_ENABLED,4,4
	.comm	DCACtrlA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
