	.file	"extr_ib_mad.c_ib_mad_remove_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Couldn't close port %d for agents\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Couldn't close port %d\n"
	.text
	.p2align 4
	.type	ib_mad_remove_device, @function
ib_mad_remove_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, .LC1[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	rdma_start_port@PLT
	mov	ebx, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, ebx
	mov	rdi, rbp
	call	ib_mad_port_close@PLT
	test	rax, rax
	jne	.L16
.L4:
	add	ebx, 1
.L2:
	mov	rdi, rbp
	call	rdma_end_port@PLT
	cmp	eax, ebx
	jl	.L17
	mov	esi, ebx
	mov	rdi, rbp
	call	rdma_cap_ib_mad@PLT
	test	eax, eax
	je	.L4
	mov	esi, ebx
	mov	rdi, rbp
	call	ib_agent_port_close@PLT
	test	rax, rax
	je	.L5
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	edx, ebx
	call	dev_err@PLT
	mov	esi, ebx
	mov	rdi, rbp
	call	ib_mad_port_close@PLT
	test	rax, rax
	je	.L4
.L16:
	mov	edx, ebx
	mov	rsi, r12
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ib_mad_remove_device, .-ib_mad_remove_device
	.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_ib_mad.c_ib_mad_remove_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Couldn't close port %d for agents\012\000"
	.align	2
.LC1:
	.ascii	"Couldn't close port %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ib_mad_remove_device, %function
ib_mad_remove_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	rdma_start_port
	ldr	r6, .L18
	mov	r4, r0
	ldr	r7, .L18+4
	b	.L2
.L5:
	mov	r1, r4
	mov	r0, r5
	bl	ib_mad_port_close
	cmp	r0, #0
	bne	.L17
.L4:
	add	r4, r4, #1
.L2:
	mov	r0, r5
	bl	rdma_end_port
	cmp	r0, r4
	poplt	{r4, r5, r6, r7, r8, pc}
	mov	r1, r4
	mov	r0, r5
	bl	rdma_cap_ib_mad
	cmp	r0, #0
	beq	.L4
	mov	r1, r4
	mov	r0, r5
	bl	ib_agent_port_close
	cmp	r0, #0
	beq	.L5
	mov	r2, r4
	mov	r1, r7
	mov	r0, r5
	bl	dev_err
	b	.L5
.L17:
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	bl	dev_err
	b	.L4
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	.LC0
	.size	ib_mad_remove_device, .-ib_mad_remove_device
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
