	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_dreq_handler
_cm_dreq_handler:                       ## @cm_dreq_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	%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
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_cm_acquire_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	4(%rbx), %rax
	movq	%rax, 24(%r14)
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	(%r12), %r13
	movq	%rbx, %rdi
	callq	_cm_dreq_get_remote_qpn
	cmpq	%rax, %r13
	jne	LBB0_16
## %bb.3:
	movl	24(%r12), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_16
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	48(%r12), %rax
	movl	(%rax), %edi
	movl	40(%r12), %esi
	callq	_ib_cancel_mad
LBB0_8:
	movl	$133, 24(%r12)
	movl	(%rbx), %eax
	movl	%eax, 20(%r12)
	leaq	16(%r12), %rdi
	callq	_atomic_inc_and_test
	testl	%eax, %eax
	je	LBB0_9
## %bb.14:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_cm_process_work
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_1:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_CM_RECV_DUPLICATES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CM_DREQ_COUNTER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	shlq	$2, %rdi
	addq	(%rax,%rcx,8), %rdi
	callq	_atomic_long_inc
	movq	8(%r14), %rdi
	movq	16(%r14), %rsi
	callq	_cm_issue_drep
	jmp	LBB0_18
LBB0_9:
	movq	%r12, %rsi
	addq	$12, %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%r12, %rdi
	callq	_cm_deref_id
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_10:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_CM_RECV_DUPLICATES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CM_DREQ_COUNTER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	shlq	$2, %rdi
	addq	(%rax,%rcx,8), %rdi
	callq	_atomic_long_inc
	movq	8(%r14), %rdi
	movq	16(%r14), %rsi
	callq	_cm_alloc_response_msg_no_ah
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	(%rbx), %rdi
	movl	32(%r12), %ecx
	movl	36(%r12), %edx
	movq	%r12, %rsi
	callq	_cm_format_drep
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	8(%r14), %rdi
	movq	16(%r14), %rsi
	movq	%rbx, %rdx
	callq	_cm_create_response_msg_ah
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ib_post_send_mad
	testl	%eax, %eax
	je	LBB0_17
LBB0_13:
	movq	%rbx, %rdi
	callq	_cm_free_msg
	jmp	LBB0_17
LBB0_5:
	movl	28(%r12), %eax
	movq	_IB_CM_LAP_SENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.6:
	movq	_IB_CM_MRA_LAP_RCVD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_15:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_CM_RECV_DUPLICATES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CM_DREQ_COUNTER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	shlq	$2, %rdi
	addq	(%rax,%rcx,8), %rdi
	callq	_atomic_long_inc
LBB0_16:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
LBB0_17:
	movq	%r12, %rdi
	callq	_cm_deref_id
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_CM_RECV_DUPLICATES,8,3         ## @CM_RECV_DUPLICATES
	.comm	_CM_DREQ_COUNTER,8,3            ## @CM_DREQ_COUNTER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_CM_LAP_SENT,4,2             ## @IB_CM_LAP_SENT
	.comm	_IB_CM_MRA_LAP_RCVD,4,2         ## @IB_CM_MRA_LAP_RCVD
	.no_dead_strip	_cm_dreq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_dreq_handler
_cm_dreq_handler:                       ; @cm_dreq_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	ldp	w1, w0, [x22, #8]
	bl	_cm_acquire_id
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	add	x8, x22, #4
	str	x8, [x20, #24]
	add	x21, x0, #8
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	x23, [x19]
	mov	x0, x22
	bl	_cm_dreq_get_remote_qpn
	cmp	x23, x0
	b.ne	LBB0_15
; %bb.2:
	ldr	w8, [x19, #24]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_15
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _CM_RECV_DUPLICATES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CM_RECV_DUPLICATES@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh5:
	adrp	x9, _CM_DREQ_COUNTER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CM_DREQ_COUNTER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_long_inc
	ldp	x0, x1, [x20, #8]
	bl	_cm_alloc_response_msg_no_ah
	mov	x22, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_15
; %bb.5:
	ldr	x0, [x22]
	ldp	w3, w2, [x19, #32]
	mov	x1, x19
	bl	_cm_format_drep
	mov	x0, x21
	bl	_spin_unlock_irq
	ldp	x0, x1, [x20, #8]
	mov	x2, x22
	bl	_cm_create_response_msg_ah
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x22
	mov	x1, #0
	bl	_ib_post_send_mad
	cbz	w0, LBB0_16
LBB0_7:
	mov	x0, x22
	bl	_cm_free_msg
	b	LBB0_16
LBB0_8:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _CM_RECV_DUPLICATES@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CM_RECV_DUPLICATES@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh11:
	adrp	x9, _CM_DREQ_COUNTER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CM_DREQ_COUNTER@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_long_inc
	ldp	x0, x1, [x20, #8]
	bl	_cm_issue_drep
	b	LBB0_17
LBB0_9:
	ldr	w8, [x19, #28]
Lloh14:
	adrp	x9, _IB_CM_LAP_SENT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IB_CM_LAP_SENT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _IB_CM_MRA_LAP_RCVD@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IB_CM_MRA_LAP_RCVD@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_11
LBB0_10:
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	ldr	w1, [x19, #40]
	bl	_ib_cancel_mad
LBB0_11:
	mov	w8, #133
	ldr	w9, [x22]
	stp	w9, w8, [x19, #20]
	add	x0, x19, #16
	bl	_atomic_inc_and_test
	cbz	w0, LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x19
	mov	x1, x20
	bl	_cm_process_work
	mov	w0, #0
	b	LBB0_18
LBB0_13:
	add	x1, x19, #12
	mov	x0, x20
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_cm_deref_id
	mov	w0, #0
	b	LBB0_18
LBB0_14:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _CM_RECV_DUPLICATES@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CM_RECV_DUPLICATES@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh23:
	adrp	x9, _CM_DREQ_COUNTER@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CM_DREQ_COUNTER@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_long_inc
LBB0_15:
	mov	x0, x21
	bl	_spin_unlock_irq
LBB0_16:
	mov	x0, x19
	bl	_cm_deref_id
LBB0_17:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
                                        ; -- End function
	.comm	_CM_RECV_DUPLICATES,8,3         ; @CM_RECV_DUPLICATES
	.comm	_CM_DREQ_COUNTER,8,3            ; @CM_DREQ_COUNTER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_CM_LAP_SENT,4,2             ; @IB_CM_LAP_SENT
	.comm	_IB_CM_MRA_LAP_RCVD,4,2         ; @IB_CM_MRA_LAP_RCVD
	.no_dead_strip	_cm_dreq_handler
.subsections_via_symbols
