	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_drep_handler
_cm_drep_handler:                       ## @cm_drep_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	16(%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, 8(%r14)
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movq	24(%r15), %rax
	movq	_IB_CM_DREQ_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_IB_CM_DREQ_RCVD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	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	%r15, %rdi
	callq	_cm_enter_timewait
	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_DREQ_SENT,8,3            ## @IB_CM_DREQ_SENT
	.comm	_IB_CM_DREQ_RCVD,8,3            ## @IB_CM_DREQ_RCVD
	.no_dead_strip	_cm_drep_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_drep_handler
_cm_drep_handler:                       ; @cm_drep_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, #16]
	ldr	x21, [x8]
	ldp	w1, w0, [x21, #4]
	bl	_cm_acquire_id
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	str	x21, [x20, #8]
	bl	_spin_lock_irq
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _IB_CM_DREQ_SENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_CM_DREQ_SENT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IB_CM_DREQ_RCVD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IB_CM_DREQ_RCVD@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	mov	x0, x19
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
	bl	_cm_enter_timewait
	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:
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_cm_deref_id
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_CM_DREQ_SENT,8,3            ; @IB_CM_DREQ_SENT
	.comm	_IB_CM_DREQ_RCVD,8,3            ; @IB_CM_DREQ_RCVD
	.no_dead_strip	_cm_drep_handler
.subsections_via_symbols
