	.file	"extr_ipoib_verbs.c_ipoib_transport_dev_cleanup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ib_qp_destroy failed\n"
.LC1:
	.string	"ib_cq_destroy (send) failed\n"
.LC2:
	.string	"ib_cq_destroy (recv) failed\n"
	.text
	.p2align 4
	.globl	ipoib_transport_dev_cleanup
	.type	ipoib_transport_dev_cleanup, @function
ipoib_transport_dev_cleanup:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	rdi, QWORD PTR 16[rdi]
	test	rdi, rdi
	je	.L2
	call	ib_destroy_qp@PLT
	test	rax, rax
	jne	.L20
.L3:
	mov	QWORD PTR 16[rbx], 0
	mov	edi, DWORD PTR IPOIB_PKEY_ASSIGNED[rip]
	lea	rsi, 12[rbx]
	call	clear_bit@PLT
.L2:
	mov	edi, DWORD PTR 8[rbx]
	call	ib_destroy_cq@PLT
	test	rax, rax
	jne	.L21
.L4:
	mov	edi, DWORD PTR 4[rbx]
	call	ib_destroy_cq@PLT
	test	rax, rax
	jne	.L22
	mov	rdi, rbx
	call	ipoib_cm_dev_cleanup@PLT
	mov	edi, DWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	ib_dealloc_pd@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, rbx
	lea	rsi, .LC2[rip]
	call	ipoib_warn@PLT
	mov	rdi, rbx
	call	ipoib_cm_dev_cleanup@PLT
	mov	edi, DWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	ib_dealloc_pd@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbx
	call	ipoib_warn@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rsi, .LC0[rip]
	mov	rdi, rbx
	call	ipoib_warn@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ipoib_transport_dev_cleanup, .-ipoib_transport_dev_cleanup
	.comm	IPOIB_PKEY_ASSIGNED,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_ipoib_verbs.c_ipoib_transport_dev_cleanup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ib_qp_destroy failed\012\000"
	.align	2
.LC1:
	.ascii	"ib_cq_destroy (send) failed\012\000"
	.align	2
.LC2:
	.ascii	"ib_cq_destroy (recv) failed\012\000"
	.text
	.align	2
	.global	ipoib_transport_dev_cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipoib_transport_dev_cleanup, %function
ipoib_transport_dev_cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r0, #16]
	cmp	r0, #0
	beq	.L2
	bl	ib_destroy_qp
	cmp	r0, #0
	bne	.L20
.L3:
	mov	r2, #0
	ldr	r3, .L23
	str	r2, [r4, #16]
	ldr	r0, [r3]
	add	r1, r4, #12
	bl	clear_bit
.L2:
	ldr	r0, [r4, #8]
	bl	ib_destroy_cq
	cmp	r0, #0
	bne	.L21
.L4:
	ldr	r0, [r4, #4]
	bl	ib_destroy_cq
	cmp	r0, #0
	bne	.L22
.L5:
	mov	r0, r4
	bl	ipoib_cm_dev_cleanup
	ldr	r0, [r4]
	pop	{r4, lr}
	b	ib_dealloc_pd
.L22:
	mov	r0, r4
	ldr	r1, .L23+4
	bl	ipoib_warn
	b	.L5
.L21:
	mov	r0, r4
	ldr	r1, .L23+8
	bl	ipoib_warn
	b	.L4
.L20:
	mov	r0, r4
	ldr	r1, .L23+12
	bl	ipoib_warn
	b	.L3
.L24:
	.align	2
.L23:
	.word	IPOIB_PKEY_ASSIGNED
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	ipoib_transport_dev_cleanup, .-ipoib_transport_dev_cleanup
	.comm	IPOIB_PKEY_ASSIGNED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
