	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_cm_event_connected
_i40iw_cm_event_connected:              ## @i40iw_cm_event_connected
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	24(%r15), %r13
	movq	8(%r13), %rbx
	movl	8(%rbx), %edi
	callq	_to_iwdev
	cmpq	$0, 32(%rbx)
	je	LBB0_1
## %bb.8:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	$0, (%rbx)
	movq	$0, 8(%r13)
	movq	(%r14), %rdi
	movq	_IW_CM_EVENT_CONNECT_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_i40iw_send_cm_event
	movq	%r13, %rdi
	callq	*(%r13)
	movq	(%r14), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_rem_ref_cm_node          ## TAILCALL
LBB0_1:
	movq	%rax, %r12
	addq	$8, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_i40iw_cm_init_tsa_conn
	movq	(%r15), %rax
	movq	_SEND_RDMA_READ_ZERO@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	sete	%r14b
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_kmap
	movl	%eax, 24(%rbx)
LBB0_3:
	leaq	8(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	leaq	24(%rbx), %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_kunmap
LBB0_5:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_IB_QPS_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$0, 8(%r15)
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_i40iw_modify_qp
	movl	$1, 12(%r15)
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	leaq	16(%r15), %rdi
	movq	%r12, %rsi
	addq	$4, %rsi
	callq	_list_move_tail
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IW_CM_EVENT_CONNECT_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_i40iw_send_cm_event
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_I40IW_DEBUG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_i40iw_debug
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SEND_RDMA_READ_ZERO,8,3        ## @SEND_RDMA_READ_ZERO
	.comm	_IB_QPS_RTS,4,2                 ## @IB_QPS_RTS
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.comm	_IW_CM_EVENT_CONNECT_REPLY,4,2  ## @IW_CM_EVENT_CONNECT_REPLY
	.comm	_I40IW_DEBUG_CM,4,2             ## @I40IW_DEBUG_CM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error sending cm event - CONNECT_REPLY\n"

	.no_dead_strip	_i40iw_cm_event_connected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_cm_event_connected
_i40iw_cm_event_connected:              ; @i40iw_cm_event_connected
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	ldr	x20, [x0]
	ldr	x19, [x20, #24]
	ldr	x24, [x19, #8]
	mov	x23, x24
	ldr	w0, [x23, #8]!
	bl	_to_iwdev
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w3, w8
	str	xzr, [x24]
	str	xzr, [x19, #8]
	ldr	x0, [x21]
Lloh3:
	adrp	x8, _IW_CM_EVENT_CONNECT_REPLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IW_CM_EVENT_CONNECT_REPLY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_i40iw_send_cm_event
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	ldr	x0, [x21]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_i40iw_rem_ref_cm_node
LBB0_2:
	mov	x22, x0
	add	x21, x0, #8
	mov	x0, x24
	mov	x1, x20
	bl	_i40iw_cm_init_tsa_conn
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _SEND_RDMA_READ_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SEND_RDMA_READ_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w25, eq
	ldr	x0, [x24, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_kmap
	str	w0, [x24, #24]
LBB0_4:
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x0, x24, #24
	mov	x1, x25
	blr	x8
	ldr	x0, [x24, #16]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_kunmap
LBB0_6:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh9:
	adrp	x8, _IB_QPS_RTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_QPS_RTS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	wzr, [x20, #8]
Lloh12:
	adrp	x8, _IB_QP_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_QP_STATE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x23
	mov	x3, #0
	bl	_i40iw_modify_qp
	mov	w8, #1
	str	w8, [x20, #12]
	mov	x0, x22
	bl	_spin_lock_irqsave
	add	x0, x20, #16
	add	x1, x22, #4
	bl	_list_move_tail
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh15:
	adrp	x8, _IW_CM_EVENT_CONNECT_REPLY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IW_CM_EVENT_CONNECT_REPLY@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_i40iw_send_cm_event
	cbz	w0, LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _I40IW_DEBUG_CM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40IW_DEBUG_CM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_i40iw_debug
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SEND_RDMA_READ_ZERO,8,3        ; @SEND_RDMA_READ_ZERO
	.comm	_IB_QPS_RTS,4,2                 ; @IB_QPS_RTS
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.comm	_IW_CM_EVENT_CONNECT_REPLY,4,2  ; @IW_CM_EVENT_CONNECT_REPLY
	.comm	_I40IW_DEBUG_CM,4,2             ; @I40IW_DEBUG_CM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error sending cm event - CONNECT_REPLY\n"

	.no_dead_strip	_i40iw_cm_event_connected
.subsections_via_symbols
