	.file	"extr_ib_cm.c_ib_cm_insert_listen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ib_cm_insert_listen
	.type	ib_cm_insert_listen, @function
ib_cm_insert_listen:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	xor	edx, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ib_create_cm_id@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	xor	esi, esi
	lea	rdi, cm[rip]
	call	spin_lock_irqsave@PLT
	cmp	DWORD PTR IB_CM_ASSIGN_SERVICE_ID[rip], r13d
	je	.L3
	mov	rdi, rbp
	mov	esi, r13d
	call	cm_find_listen@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L3
	cmp	QWORD PTR [r12], rbx
	jne	.L4
	cmp	QWORD PTR 8[r12], 0
	je	.L5
.L4:
	lea	rdi, cm[rip]
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	edi, DWORD PTR EINVAL[rip]
	neg	edi
.L13:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	edx, edx
	mov	esi, r13d
	mov	rdi, r12
	call	__ib_cm_listen@PLT
	xor	esi, esi
	lea	rdi, cm[rip]
	mov	ebp, eax
	call	spin_unlock_irqrestore@PLT
	test	ebp, ebp
	je	.L1
	mov	rdi, r12
	call	ib_destroy_cm_id@PLT
	mov	edi, ebp
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdi, 20[rax]
	call	atomic_inc@PLT
	add	DWORD PTR 16[rbp], 1
	xor	esi, esi
	lea	rdi, cm[rip]
	call	spin_unlock_irqrestore@PLT
	mov	rdi, r12
	mov	r12, rbp
	call	ib_destroy_cm_id@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ib_cm_insert_listen, .-ib_cm_insert_listen
	.comm	cm,4,4
	.comm	IB_CM_ASSIGN_SERVICE_ID,4,4
	.comm	EINVAL,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_ib_cm.c_ib_cm_insert_listen.c"
	.text
	.align	2
	.global	ib_cm_insert_listen
	.syntax unified
	.arm
	.fpu softvfp
	.type	ib_cm_insert_listen, %function
ib_cm_insert_listen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r2, #0
	mov	r7, r1
	mov	r6, r0
	bl	ib_create_cm_id
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L14
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r1, #0
	ldr	r0, .L15
	bl	spin_lock_irqsave
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L3
	mov	r0, r6
	mov	r1, r5
	bl	cm_find_listen
	subs	r6, r0, #0
	beq	.L3
	ldr	r3, [r4]
	cmp	r3, r7
	bne	.L4
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L5
.L4:
	mov	r1, #0
	ldr	r0, .L15
	bl	spin_unlock_irqrestore
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L15+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	ERR_PTR
.L3:
	mov	r1, r5
	mov	r2, #0
	mov	r0, r4
	bl	__ib_cm_listen
	mov	r5, r0
	mov	r1, #0
	ldr	r0, .L15
	bl	spin_unlock_irqrestore
	cmp	r5, #0
	beq	.L1
	mov	r0, r4
	bl	ib_destroy_cm_id
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	ERR_PTR
.L5:
	add	r0, r6, #12
	bl	atomic_inc
	ldr	r3, [r6, #8]
	mov	r1, #0
	add	r3, r3, #1
	str	r3, [r6, #8]
	ldr	r0, .L15
	bl	spin_unlock_irqrestore
	mov	r0, r4
	bl	ib_destroy_cm_id
	mov	r4, r6
	b	.L1
.L16:
	.align	2
.L15:
	.word	cm
	.word	IB_CM_ASSIGN_SERVICE_ID
	.word	EINVAL
	.size	ib_cm_insert_listen, .-ib_cm_insert_listen
	.comm	cm,4,4
	.comm	IB_CM_ASSIGN_SERVICE_ID,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
