	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_dup_rep_handler
_cm_dup_rep_handler:                    ## @cm_dup_rep_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	$0, -24(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_cm_acquire_id
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_CM_RECV_DUPLICATES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CM_REP_COUNTER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	shlq	$2, %rdi
	addq	(%rax,%rcx,8), %rdi
	callq	_atomic_long_inc
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	leaq	-24(%rbp), %rdx
	callq	_cm_alloc_response_msg
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	16(%r14), %rax
	movq	_IB_CM_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	-24(%rbp), %rax
	movq	(%rax), %rdi
	movl	4(%r14), %ecx
	movl	8(%r14), %edx
	movq	%r14, %rsi
	callq	_cm_format_rtu
	jmp	LBB0_6
LBB0_4:
	movq	_IB_CM_MRA_REP_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	-24(%rbp), %rax
	movq	(%rax), %rdi
	movq	_CM_MSG_RESPONSE_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%r14), %ecx
	movl	4(%r14), %r9d
	movl	8(%r14), %r8d
	movq	%r14, %rsi
	callq	_cm_format_mra
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	-24(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ib_post_send_mad
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
LBB0_8:
	movq	-24(%rbp), %rdi
	callq	_cm_free_msg
LBB0_9:
	movq	%r14, %rdi
	callq	_cm_deref_id
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_RECV_DUPLICATES,8,3         ## @CM_RECV_DUPLICATES
	.comm	_CM_REP_COUNTER,8,3             ## @CM_REP_COUNTER
	.comm	_IB_CM_ESTABLISHED,8,3          ## @IB_CM_ESTABLISHED
	.comm	_IB_CM_MRA_REP_SENT,8,3         ## @IB_CM_MRA_REP_SENT
	.comm	_CM_MSG_RESPONSE_REP,4,2        ## @CM_MSG_RESPONSE_REP
	.no_dead_strip	_cm_dup_rep_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_dup_rep_handler
_cm_dup_rep_handler:                    ; @cm_dup_rep_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldp	w1, w0, [x8]
	bl	_cm_acquire_id
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _CM_RECV_DUPLICATES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CM_RECV_DUPLICATES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh3:
	adrp	x9, _CM_REP_COUNTER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CM_REP_COUNTER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_long_inc
	ldp	x1, x0, [x20]
	add	x2, sp, #8
	bl	_cm_alloc_response_msg
	cbnz	w0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _IB_CM_ESTABLISHED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_CM_ESTABLISHED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
	ldp	w3, w2, [x19, #4]
	mov	x1, x19
	bl	_cm_format_rtu
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x9, _IB_CM_MRA_REP_SENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_CM_MRA_REP_SENT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
Lloh12:
	adrp	x8, _CM_MSG_RESPONSE_REP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CM_MSG_RESPONSE_REP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldp	w4, w3, [x19, #8]
	ldr	w5, [x19, #4]
	mov	x1, x19
	bl	_cm_format_mra
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irq
	ldr	x0, [sp, #8]
	mov	x1, #0
	bl	_ib_post_send_mad
	cbnz	w0, LBB0_8
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irq
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_cm_free_msg
LBB0_9:
	mov	x0, x19
	bl	_cm_deref_id
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_RECV_DUPLICATES,8,3         ; @CM_RECV_DUPLICATES
	.comm	_CM_REP_COUNTER,8,3             ; @CM_REP_COUNTER
	.comm	_IB_CM_ESTABLISHED,8,3          ; @IB_CM_ESTABLISHED
	.comm	_IB_CM_MRA_REP_SENT,8,3         ; @IB_CM_MRA_REP_SENT
	.comm	_CM_MSG_RESPONSE_REP,4,2        ; @CM_MSG_RESPONSE_REP
	.no_dead_strip	_cm_dup_rep_handler
.subsections_via_symbols
