	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_cm_reject
_i40iw_cm_reject:                       ## @i40iw_cm_reject
	.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
	xorl	%r14d, %r14d
	cmpq	$0, 24(%rdi)
	je	LBB0_1
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	32(%rdi), %r15
	callq	_i40iw_cleanup_retrans_entry
	testq	%r15, %r15
	je	LBB0_2
## %bb.11:
	movq	$0, 8(%rbx)
	movq	(%rbx), %rax
	movq	_I40IW_CM_STATE_LISTENER_DESTROYED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_i40iw_rem_ref_cm_node
	movq	%r15, %rdi
	callq	_i40iw_rem_ref_cm_node
	jmp	LBB0_14
LBB0_2:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	leaq	16(%rbx), %rsi
	movl	$1, %edi
	callq	_atomic_add_return
	movq	_I40IW_SEND_RESET_EVENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	_I40IW_CM_STATE_CLOSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_5
LBB0_13:
	movq	8(%r15), %rsi
	movq	_IW_CM_EVENT_CONNECT_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_i40iw_send_cm_event
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_i40iw_rem_ref_cm_node
	movq	_I40IW_CM_STATE_CLOSING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	8(%r15), %rbx
	movq	%r15, %rdi
	callq	_i40iw_rem_ref_cm_node
	movq	%rbx, %rdi
	callq	*(%rbx)
	jmp	LBB0_14
LBB0_4:
	movq	(%rbx), %rax
	movq	_I40IW_CM_STATE_LISTENER_DESTROYED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_i40iw_rem_ref_cm_node
	jmp	LBB0_14
LBB0_6:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_i40iw_send_mpa_reject
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %r12d
	movq	_I40IW_CM_STATE_CLOSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_i40iw_send_reset
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	leaq	L_.str(%rip), %rdi
	callq	_i40iw_pr_err
	movl	%r12d, %r14d
	jmp	LBB0_14
LBB0_10:
	movq	%r15, %rdi
	callq	*8(%r15)
	jmp	LBB0_14
LBB0_8:
	movl	%r12d, %r14d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_SEND_RESET_EVENT,4,2     ## @I40IW_SEND_RESET_EVENT
	.comm	_I40IW_CM_STATE_CLOSED,8,3      ## @I40IW_CM_STATE_CLOSED
	.comm	_I40IW_CM_STATE_LISTENER_DESTROYED,8,3 ## @I40IW_CM_STATE_LISTENER_DESTROYED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send reset failed\n"

	.comm	_IW_CM_EVENT_CONNECT_REPLY,4,2  ## @IW_CM_EVENT_CONNECT_REPLY
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_I40IW_CM_STATE_CLOSING,8,3     ## @I40IW_CM_STATE_CLOSING
	.no_dead_strip	_i40iw_cm_reject
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_cm_reject
_i40iw_cm_reject:                       ; @i40iw_cm_reject
	.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
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_10
; %bb.1:
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	x20, [x0, #32]
	bl	_i40iw_cleanup_retrans_entry
	cbz	x20, LBB0_4
; %bb.2:
	str	xzr, [x19, #8]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _I40IW_CM_STATE_LISTENER_DESTROYED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40IW_CM_STATE_LISTENER_DESTROYED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_i40iw_rem_ref_cm_node
	mov	x0, x20
	b	LBB0_9
LBB0_4:
	add	x1, x19, #16
	mov	w0, #1
	bl	_atomic_add_return
Lloh3:
	adrp	x8, _I40IW_SEND_RESET_EVENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_SEND_RESET_EVENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _I40IW_CM_STATE_CLOSED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40IW_CM_STATE_CLOSED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _IW_CM_EVENT_CONNECT_REPLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IW_CM_EVENT_CONNECT_REPLY@GOTPAGEOFF]
	ldr	x1, [x20, #8]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w3, w8
	mov	x0, x20
	bl	_i40iw_send_cm_event
	mov	x21, x0
	mov	x0, x19
	bl	_i40iw_rem_ref_cm_node
Lloh15:
	adrp	x8, _I40IW_CM_STATE_CLOSING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40IW_CM_STATE_CLOSING@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	x19, [x20, #8]
	mov	x0, x20
	bl	_i40iw_rem_ref_cm_node
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	mov	x0, x21
	b	LBB0_12
LBB0_7:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _I40IW_CM_STATE_LISTENER_DESTROYED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _I40IW_CM_STATE_LISTENER_DESTROYED@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_8:
	mov	x0, x19
LBB0_9:
	bl	_i40iw_rem_ref_cm_node
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x20
LBB0_12:
	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_13:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_i40iw_send_mpa_reject
	mov	x20, x0
	cbz	w0, LBB0_16
; %bb.14:
Lloh21:
	adrp	x8, _I40IW_CM_STATE_CLOSED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I40IW_CM_STATE_CLOSED@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	bl	_i40iw_send_reset
	cbz	w0, LBB0_11
; %bb.15:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_i40iw_pr_err
	b	LBB0_11
LBB0_16:
	ldr	x8, [x21, #8]
	mov	x0, x21
	blr	x8
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_SEND_RESET_EVENT,4,2     ; @I40IW_SEND_RESET_EVENT
	.comm	_I40IW_CM_STATE_CLOSED,8,3      ; @I40IW_CM_STATE_CLOSED
	.comm	_I40IW_CM_STATE_LISTENER_DESTROYED,8,3 ; @I40IW_CM_STATE_LISTENER_DESTROYED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send reset failed\n"

	.comm	_IW_CM_EVENT_CONNECT_REPLY,4,2  ; @IW_CM_EVENT_CONNECT_REPLY
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_I40IW_CM_STATE_CLOSING,8,3     ; @I40IW_CM_STATE_CLOSING
	.no_dead_strip	_i40iw_cm_reject
.subsections_via_symbols
