	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_lap_handler
_cm_lap_handler:                        ## @cm_lap_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	8(%rax), %rbx
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_cm_acquire_id
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r12
	movq	40(%r14), %rsi
	movq	%rsi, 32(%r14)
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_cm_format_path_from_lap
	leaq	4(%rbx), %rax
	movq	%rax, 24(%r14)
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	24(%r12), %rax
	movq	_IB_CM_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.2:
	movl	32(%r12), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_14
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movl	$130, 32(%r12)
	movl	(%rbx), %eax
	movl	%eax, 20(%r12)
	movq	8(%r14), %rax
	movq	16(%r14), %rdi
	movl	(%rax), %edx
	movl	16(%rax), %esi
	leaq	16(%r12), %rcx
	callq	_cm_init_av_for_response
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movq	32(%r14), %rdi
	leaq	12(%r12), %rsi
	movq	%r12, %rdx
	callq	_cm_init_av_by_path
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	leaq	8(%r12), %rdi
	callq	_atomic_inc_and_test
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_cm_process_work
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_4:
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	_CM_RECV_DUPLICATES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CM_LAP_COUNTER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	shlq	$2, %rdi
	addq	(%rax,%rcx,8), %rdi
	callq	_atomic_long_inc
	movq	8(%r14), %rsi
	movq	16(%r14), %rdi
	callq	_cm_alloc_response_msg_no_ah
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movq	(%r15), %rdi
	movq	_CM_MSG_RESPONSE_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	48(%r12), %ecx
	movl	40(%r12), %r9d
	movl	44(%r12), %r8d
	movq	%r12, %rsi
	callq	_cm_format_mra
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	8(%r14), %rsi
	movq	16(%r14), %rdi
	movq	%r15, %rdx
	callq	_cm_create_response_msg_ah
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ib_post_send_mad
	testl	%eax, %eax
	je	LBB0_15
LBB0_7:
	movq	%r15, %rdi
	callq	_cm_free_msg
	jmp	LBB0_15
LBB0_13:
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	_CM_RECV_DUPLICATES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CM_LAP_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
LBB0_15:
	movq	%r12, %rdi
	callq	_cm_deref_id
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	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
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_CM_ESTABLISHED,8,3          ## @IB_CM_ESTABLISHED
	.comm	_CM_RECV_DUPLICATES,8,3         ## @CM_RECV_DUPLICATES
	.comm	_CM_LAP_COUNTER,8,3             ## @CM_LAP_COUNTER
	.comm	_CM_MSG_RESPONSE_OTHER,4,2      ## @CM_MSG_RESPONSE_OTHER
	.no_dead_strip	_cm_lap_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_lap_handler
_cm_lap_handler:                        ; @cm_lap_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, #8]
	ldr	x21, [x8, #8]
	ldp	w1, w0, [x21, #8]
	bl	_cm_acquire_id
	cbz	x0, LBB0_15
; %bb.1:
	mov	x19, x0
	ldr	x1, [x20, #40]
	str	x1, [x20, #32]
	mov	x2, x21
	bl	_cm_format_path_from_lap
	add	x8, x21, #4
	str	x8, [x20, #24]
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _IB_CM_ESTABLISHED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_CM_ESTABLISHED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.2:
	ldr	w8, [x19, #32]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.3:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	w8, #130
	str	w8, [x19, #32]
	ldr	w8, [x21]
	str	w8, [x19, #20]
	ldp	x8, x0, [x20, #8]
	ldr	w1, [x8, #16]
	ldr	w2, [x8]
	add	x3, x19, #16
	bl	_cm_init_av_for_response
	cbnz	w0, LBB0_13
; %bb.5:
	ldr	x0, [x20, #32]
	add	x1, x19, #12
	mov	x2, x19
	bl	_cm_init_av_by_path
	cbnz	w0, LBB0_13
; %bb.6:
	add	x0, x19, #8
	bl	_atomic_inc_and_test
	cbz	w0, LBB0_17
; %bb.7:
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x19
	mov	x1, x20
	bl	_cm_process_work
	mov	w0, #0
	b	LBB0_16
LBB0_8:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _CM_RECV_DUPLICATES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CM_RECV_DUPLICATES@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh8:
	adrp	x9, _CM_LAP_COUNTER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CM_LAP_COUNTER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_long_inc
	ldp	x1, x0, [x20, #8]
	bl	_cm_alloc_response_msg_no_ah
	mov	x21, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_13
; %bb.9:
	ldr	x0, [x21]
Lloh11:
	adrp	x8, _CM_MSG_RESPONSE_OTHER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CM_MSG_RESPONSE_OTHER@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldp	w4, w3, [x19, #44]
	ldr	w5, [x19, #40]
	mov	x1, x19
	bl	_cm_format_mra
	mov	x0, x19
	bl	_spin_unlock_irq
	ldp	x1, x0, [x20, #8]
	mov	x2, x21
	bl	_cm_create_response_msg_ah
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, #0
	bl	_ib_post_send_mad
	cbz	w0, LBB0_14
LBB0_11:
	mov	x0, x21
	bl	_cm_free_msg
	b	LBB0_14
LBB0_12:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _CM_RECV_DUPLICATES@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CM_RECV_DUPLICATES@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh17:
	adrp	x9, _CM_LAP_COUNTER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CM_LAP_COUNTER@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_long_inc
LBB0_13:
	mov	x0, x19
	bl	_spin_unlock_irq
LBB0_14:
	mov	x0, x19
	bl	_cm_deref_id
LBB0_15:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
LBB0_17:
	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
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_CM_ESTABLISHED,8,3          ; @IB_CM_ESTABLISHED
	.comm	_CM_RECV_DUPLICATES,8,3         ; @CM_RECV_DUPLICATES
	.comm	_CM_LAP_COUNTER,8,3             ; @CM_LAP_COUNTER
	.comm	_CM_MSG_RESPONSE_OTHER,4,2      ; @CM_MSG_RESPONSE_OTHER
	.no_dead_strip	_cm_lap_handler
.subsections_via_symbols
