	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_cm_insert_listen            ## -- Begin function ib_cm_insert_listen
	.p2align	4, 0x90
_ib_cm_insert_listen:                   ## @ib_cm_insert_listen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	xorl	%edx, %edx
	callq	_ib_create_cm_id
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
LBB0_10:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_cm@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_IB_CM_ASSIGN_SERVICE_ID@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_cm_find_listen
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	cmpq	%r13, (%r15)
	jne	LBB0_5
## %bb.4:
	cmpq	$0, 8(%r15)
	je	LBB0_9
LBB0_5:
	movq	_cm@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	___ib_cm_listen
	movl	%eax, %ebx
	movq	_cm@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.7:
	movq	%r15, %rdi
	callq	_ib_destroy_cm_id
	movl	%ebx, %edi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_9:
	movq	%rax, %r12
	movq	%rax, %rdi
	addq	$20, %rdi
	callq	_atomic_inc
	incl	16(%r12)
	movq	_cm@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_ib_destroy_cm_id
	movq	%r12, %r15
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_cm,4,2                         ## @cm
	.comm	_IB_CM_ASSIGN_SERVICE_ID,4,2    ## @IB_CM_ASSIGN_SERVICE_ID
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_cm_insert_listen            ; -- Begin function ib_cm_insert_listen
	.p2align	2
_ib_cm_insert_listen:                   ; @ib_cm_insert_listen
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x2, #0
	bl	_ib_create_cm_id
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x0, _cm@GOTPAGE
Lloh1:
	ldr	x0, [x0, _cm@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _IB_CM_ASSIGN_SERVICE_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_CM_ASSIGN_SERVICE_ID@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_7
; %bb.3:
	mov	x0, x22
	mov	x1, x20
	bl	_cm_find_listen
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x19]
	cmp	x8, x21
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
LBB0_6:
Lloh5:
	adrp	x0, _cm@GOTPAGE
Lloh6:
	ldr	x0, [x0, _cm@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	___ib_cm_listen
	mov	x20, x0
Lloh10:
	adrp	x0, _cm@GOTPAGE
Lloh11:
	ldr	x0, [x0, _cm@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	cbz	w20, LBB0_1
; %bb.8:
	mov	x0, x19
	bl	_ib_destroy_cm_id
	mov	x0, x20
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_10:
	mov	x22, x0
	add	x0, x0, #20
	bl	_atomic_inc
	ldr	w8, [x22, #16]
	add	w8, w8, #1
	str	w8, [x22, #16]
Lloh12:
	adrp	x0, _cm@GOTPAGE
Lloh13:
	ldr	x0, [x0, _cm@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_ib_destroy_cm_id
	mov	x19, x22
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_cm,4,2                         ; @cm
	.comm	_IB_CM_ASSIGN_SERVICE_ID,4,2    ; @IB_CM_ASSIGN_SERVICE_ID
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
