	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_sidr_rep_handler
_cm_sidr_rep_handler:                   ## @cm_sidr_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_cm_acquire_id
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movq	16(%rbx), %rax
	movq	_IB_CM_SIDR_REQ_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_IB_CM_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_ib_cancel_mad
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	%r14, %rdi
	callq	_cm_format_sidr_rep_event
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cm_process_work
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_cm_deref_id
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_5:
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_CM_SIDR_REQ_SENT,8,3        ## @IB_CM_SIDR_REQ_SENT
	.comm	_IB_CM_IDLE,8,3                 ## @IB_CM_IDLE
	.no_dead_strip	_cm_sidr_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_sidr_rep_handler
_cm_sidr_rep_handler:                   ; @cm_sidr_rep_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_cm_acquire_id
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_spin_lock_irq
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x9, _IB_CM_SIDR_REQ_SENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_CM_SIDR_REQ_SENT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _IB_CM_IDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_CM_IDLE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_ib_cancel_mad
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_cm_format_sidr_rep_event
	mov	x0, x20
	mov	x1, x19
	bl	_cm_process_work
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x20
	bl	_cm_deref_id
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_CM_SIDR_REQ_SENT,8,3        ; @IB_CM_SIDR_REQ_SENT
	.comm	_IB_CM_IDLE,8,3                 ; @IB_CM_IDLE
	.no_dead_strip	_cm_sidr_rep_handler
.subsections_via_symbols
