	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_mra_handler
_cm_mra_handler:                        ## @cm_mra_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	32(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_cm_acquire_mraed_id
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, 24(%r14)
	movq	%rbx, %rdi
	callq	_cm_mra_get_service_timeout
	movl	%eax, 16(%r14)
	movq	%rbx, %rdi
	callq	_cm_mra_get_service_timeout
	movl	%eax, %edi
	callq	_cm_convert_to_ms
	movl	%eax, %r13d
	movl	40(%r12), %edi
	callq	_cm_convert_to_ms
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movl	12(%r12), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_14
## %bb.2:
	addl	%r13d, %r15d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_CM_RECV_DUPLICATES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CM_MRA_COUNTER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	shlq	$2, %rdi
	addq	(%rax,%rcx,8), %rdi
	callq	_atomic_long_inc
LBB0_14:
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	%r12, %rdi
	callq	_cm_deref_id
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_cm_mra_get_msg_mraed
	movq	_CM_MSG_RESPONSE_REQ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.4:
	movq	24(%r12), %rsi
	movq	32(%r12), %rax
	movl	(%rax), %edi
	movl	%r15d, %edx
	callq	_ib_modify_mad
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movl	$130, 12(%r12)
	movl	$130, %eax
	jmp	LBB0_17
LBB0_6:
	movq	%rbx, %rdi
	callq	_cm_mra_get_msg_mraed
	movq	_CM_MSG_RESPONSE_REP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.7:
	movq	24(%r12), %rsi
	movq	32(%r12), %rax
	movl	(%rax), %edi
	movl	%r15d, %edx
	callq	_ib_modify_mad
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movl	$131, 12(%r12)
	movl	$131, %eax
	jmp	LBB0_17
LBB0_9:
	movq	%rbx, %rdi
	callq	_cm_mra_get_msg_mraed
	movq	_CM_MSG_RESPONSE_OTHER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.10:
	movl	16(%r12), %eax
	movq	_IB_CM_LAP_SENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:
	movq	24(%r12), %rsi
	movq	32(%r12), %rax
	movl	(%rax), %edi
	movl	%r15d, %edx
	callq	_ib_modify_mad
	testl	%eax, %eax
	je	LBB0_16
LBB0_12:
	movl	16(%r12), %eax
	movq	_IB_CM_MRA_LAP_RCVD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
	jmp	LBB0_14
LBB0_16:
	movq	_IB_CM_MRA_LAP_RCVD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movslq	12(%r12), %rax
LBB0_17:
	movq	24(%r12), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	leaq	8(%r12), %rdi
	callq	_atomic_inc_and_test
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_cm_process_work
	jmp	LBB0_20
LBB0_18:
	movq	%r12, %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	%r12, %rdi
	callq	_cm_deref_id
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CM_MSG_RESPONSE_REQ,4,2        ## @CM_MSG_RESPONSE_REQ
	.comm	_CM_MSG_RESPONSE_REP,4,2        ## @CM_MSG_RESPONSE_REP
	.comm	_CM_MSG_RESPONSE_OTHER,4,2      ## @CM_MSG_RESPONSE_OTHER
	.comm	_IB_CM_LAP_SENT,4,2             ## @IB_CM_LAP_SENT
	.comm	_IB_CM_MRA_LAP_RCVD,4,2         ## @IB_CM_MRA_LAP_RCVD
	.comm	_CM_RECV_DUPLICATES,8,3         ## @CM_RECV_DUPLICATES
	.comm	_CM_MRA_COUNTER,8,3             ## @CM_MRA_COUNTER
	.no_dead_strip	_cm_mra_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_mra_handler
_cm_mra_handler:                        ; @cm_mra_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, #32]
	ldr	x22, [x8]
	mov	x0, x22
	bl	_cm_acquire_mraed_id
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	str	x22, [x20, #24]
	mov	x0, x22
	bl	_cm_mra_get_service_timeout
	str	w0, [x20, #16]
	mov	x0, x22
	bl	_cm_mra_get_service_timeout
	bl	_cm_convert_to_ms
	mov	x21, x0
	ldr	w0, [x19, #40]
	bl	_cm_convert_to_ms
	mov	x23, x0
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	w8, [x19, #12]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.2:
	add	w21, w23, w21
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	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_MRA_COUNTER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CM_MRA_COUNTER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_long_inc
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_cm_deref_id
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
LBB0_7:
	mov	x0, x22
	bl	_cm_mra_get_msg_mraed
Lloh11:
	adrp	x8, _CM_MSG_RESPONSE_REQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CM_MSG_RESPONSE_REQ@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.8:
	ldp	x1, x8, [x19, #24]
	ldr	w0, [x8]
	mov	x2, x21
	bl	_ib_modify_mad
	cbnz	w0, LBB0_4
; %bb.9:
	mov	w8, #130
	str	w8, [x19, #12]
	b	LBB0_18
LBB0_10:
	mov	x0, x22
	bl	_cm_mra_get_msg_mraed
Lloh14:
	adrp	x8, _CM_MSG_RESPONSE_REP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CM_MSG_RESPONSE_REP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.11:
	ldp	x1, x8, [x19, #24]
	ldr	w0, [x8]
	mov	x2, x21
	bl	_ib_modify_mad
	cbnz	w0, LBB0_4
; %bb.12:
	mov	w8, #131
	str	w8, [x19, #12]
	b	LBB0_18
LBB0_13:
	mov	x0, x22
	bl	_cm_mra_get_msg_mraed
Lloh17:
	adrp	x8, _CM_MSG_RESPONSE_OTHER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CM_MSG_RESPONSE_OTHER@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.14:
	ldr	w8, [x19, #16]
Lloh20:
	adrp	x9, _IB_CM_LAP_SENT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IB_CM_LAP_SENT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.15:
	ldp	x1, x8, [x19, #24]
	ldr	w0, [x8]
	mov	x2, x21
	bl	_ib_modify_mad
	cbz	w0, LBB0_17
LBB0_16:
	ldr	w8, [x19, #16]
Lloh23:
	adrp	x9, _IB_CM_MRA_LAP_RCVD@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IB_CM_MRA_LAP_RCVD@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_3
	b	LBB0_4
LBB0_17:
Lloh26:
	adrp	x8, _IB_CM_MRA_LAP_RCVD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IB_CM_MRA_LAP_RCVD@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldrsw	x8, [x19, #12]
LBB0_18:
	ldr	x9, [x19, #24]
	ldr	x9, [x9]
	str	x8, [x9, #8]
	add	x0, x19, #8
	bl	_atomic_inc_and_test
	cbz	w0, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x19
	mov	x1, x20
	bl	_cm_process_work
	b	LBB0_21
LBB0_20:
	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_21:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CM_MSG_RESPONSE_REQ,4,2        ; @CM_MSG_RESPONSE_REQ
	.comm	_CM_MSG_RESPONSE_REP,4,2        ; @CM_MSG_RESPONSE_REP
	.comm	_CM_MSG_RESPONSE_OTHER,4,2      ; @CM_MSG_RESPONSE_OTHER
	.comm	_IB_CM_LAP_SENT,4,2             ; @IB_CM_LAP_SENT
	.comm	_IB_CM_MRA_LAP_RCVD,4,2         ; @IB_CM_MRA_LAP_RCVD
	.comm	_CM_RECV_DUPLICATES,8,3         ; @CM_RECV_DUPLICATES
	.comm	_CM_MRA_COUNTER,8,3             ; @CM_MRA_COUNTER
	.no_dead_strip	_cm_mra_handler
.subsections_via_symbols
