	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_process_send_error
_cm_process_send_error:                 ## @cm_process_send_error
	.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	%esi, %r14d
	movq	%rdi, %r15
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r15), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	cmpq	%r15, 24(%rbx)
	jne	LBB0_10
## %bb.1:
	movq	(%r15), %rax
	movl	8(%rax), %r13d
	cmpl	%r13d, 8(%rbx)
	jne	LBB0_10
## %bb.2:
	movl	%r14d, %edi
	callq	_ib_wc_status_msg
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_pr_debug_ratelimited
	addl	$-128, %r13d
	cmpl	$5, %r13d
	ja	LBB0_10
## %bb.3:
	leaq	8(%rbx), %r12
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	%rbx, %rdi
	callq	_cm_reset_to_idle
	movq	_IB_CM_REQ_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	callq	_cm_free_msg
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_cm_reset_to_idle
	movq	_IB_CM_REP_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_IB_CM_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_IB_CM_SIDR_REQ_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_cm_enter_timewait
	movq	_IB_CM_DREQ_ERROR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movl	%r14d, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	*16(%rbx)
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_cm_free_msg
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.9:
	movq	%r12, %rdi
	callq	_ib_destroy_cm_id
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CM: failed sending MAD in state %d. (%s)\n"

	.comm	_IB_CM_REQ_ERROR,4,2            ## @IB_CM_REQ_ERROR
	.comm	_IB_CM_REP_ERROR,4,2            ## @IB_CM_REP_ERROR
	.comm	_IB_CM_DREQ_ERROR,4,2           ## @IB_CM_DREQ_ERROR
	.comm	_IB_CM_IDLE,4,2                 ## @IB_CM_IDLE
	.comm	_IB_CM_SIDR_REQ_ERROR,4,2       ## @IB_CM_SIDR_REQ_ERROR
	.no_dead_strip	_cm_process_send_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_process_send_error
_cm_process_send_error:                 ; @cm_process_send_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x19]
	ldr	x22, [x8]
	mov	x0, x22
	bl	_spin_lock_irq
	ldr	x8, [x22, #24]
	cmp	x8, x19
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19]
	ldr	w23, [x8, #8]
	mov	x21, x22
	ldr	w8, [x21, #8]!
	cmp	w8, w23
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_ib_wc_status_msg
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_pr_debug_ratelimited
	sub	w8, w23, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.3:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	x0, x22
	bl	_cm_reset_to_idle
Lloh4:
	adrp	x8, _IB_CM_REQ_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IB_CM_REQ_ERROR@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	x0, x22
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_cm_free_msg
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	mov	x0, x22
	bl	_cm_reset_to_idle
Lloh6:
	adrp	x8, _IB_CM_REP_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_CM_REP_ERROR@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x8, _IB_CM_IDLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_CM_IDLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh11:
	adrp	x8, _IB_CM_SIDR_REQ_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_CM_SIDR_REQ_ERROR@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	x0, x22
	bl	_cm_enter_timewait
Lloh13:
	adrp	x8, _IB_CM_DREQ_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IB_CM_DREQ_ERROR@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	mov	x0, x22
	bl	_spin_unlock_irq
	str	w20, [sp, #8]
	ldr	x8, [x22, #16]
	add	x1, sp, #8
	mov	x0, x21
	blr	x8
	mov	x20, x0
	mov	x0, x19
	bl	_cm_free_msg
	cbz	w20, LBB0_6
; %bb.11:
	mov	x0, x21
	bl	_ib_destroy_cm_id
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CM: failed sending MAD in state %d. (%s)\n"

	.comm	_IB_CM_REQ_ERROR,4,2            ; @IB_CM_REQ_ERROR
	.comm	_IB_CM_REP_ERROR,4,2            ; @IB_CM_REP_ERROR
	.comm	_IB_CM_DREQ_ERROR,4,2           ; @IB_CM_DREQ_ERROR
	.comm	_IB_CM_IDLE,4,2                 ; @IB_CM_IDLE
	.comm	_IB_CM_SIDR_REQ_ERROR,4,2       ; @IB_CM_SIDR_REQ_ERROR
	.no_dead_strip	_cm_process_send_error
.subsections_via_symbols
