	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_rtu_handler
_cm_rtu_handler:                        ## @cm_rtu_handler
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movq	(%rax), %rbx
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_cm_acquire_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, 16(%r14)
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movq	24(%r15), %rax
	movq	_IB_CM_REP_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_IB_CM_MRA_REP_RCVD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_CM_RECV_DUPLICATES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CM_RTU_COUNTER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	shlq	$2, %rdi
	addq	(%rax,%rcx,8), %rdi
	callq	_atomic_long_inc
	movq	%r15, %rdi
	callq	_cm_deref_id
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_5:
	movq	_IB_CM_ESTABLISHED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movq	16(%r15), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	_ib_cancel_mad
	leaq	8(%r15), %rdi
	callq	_atomic_inc_and_test
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_cm_process_work
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	callq	_cm_deref_id
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_CM_REP_SENT,8,3             ## @IB_CM_REP_SENT
	.comm	_IB_CM_MRA_REP_RCVD,8,3         ## @IB_CM_MRA_REP_RCVD
	.comm	_CM_RECV_DUPLICATES,8,3         ## @CM_RECV_DUPLICATES
	.comm	_CM_RTU_COUNTER,8,3             ## @CM_RTU_COUNTER
	.comm	_IB_CM_ESTABLISHED,8,3          ## @IB_CM_ESTABLISHED
	.no_dead_strip	_cm_rtu_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_rtu_handler
_cm_rtu_handler:                        ; @cm_rtu_handler
	.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, x0
	ldr	x8, [x0, #24]
	ldr	x21, [x8]
	ldp	w1, w0, [x21, #4]
	bl	_cm_acquire_id
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	str	x21, [x20, #16]
	bl	_spin_lock_irq
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _IB_CM_REP_SENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_CM_REP_SENT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IB_CM_MRA_REP_RCVD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IB_CM_MRA_REP_RCVD@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _IB_CM_ESTABLISHED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_CM_ESTABLISHED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	_ib_cancel_mad
	add	x0, x19, #8
	bl	_atomic_inc_and_test
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x19
	mov	x1, x20
	bl	_cm_process_work
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irq
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _CM_RECV_DUPLICATES@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CM_RECV_DUPLICATES@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh12:
	adrp	x9, _CM_RTU_COUNTER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CM_RTU_COUNTER@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_long_inc
	mov	x0, x19
	bl	_cm_deref_id
LBB0_5:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	add	x1, x19, #4
	mov	x0, x20
	bl	_list_add_tail
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_cm_deref_id
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_CM_REP_SENT,8,3             ; @IB_CM_REP_SENT
	.comm	_IB_CM_MRA_REP_RCVD,8,3         ; @IB_CM_MRA_REP_RCVD
	.comm	_CM_RECV_DUPLICATES,8,3         ; @CM_RECV_DUPLICATES
	.comm	_CM_RTU_COUNTER,8,3             ; @CM_RTU_COUNTER
	.comm	_IB_CM_ESTABLISHED,8,3          ; @IB_CM_ESTABLISHED
	.no_dead_strip	_cm_rtu_handler
.subsections_via_symbols
