	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_rem_ref_cm_node
_i40iw_rem_ref_cm_node:                 ## @i40iw_rem_ref_cm_node
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	leaq	4(%r14), %rdi
	callq	_spin_lock_irqsave
	leaq	80(%rbx), %rdi
	callq	_atomic_dec_return
	testq	%rax, %rax
	je	LBB0_1
## %bb.17:
	movq	(%rbx), %rdi
	addq	$4, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_1:
	leaq	76(%rbx), %rdi
	callq	_list_del
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_unlock_irqrestore
	cmpl	$0, 72(%rbx)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 64(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	48(%rbx), %rdi
	callq	_atomic_dec
LBB0_4:
	cmpq	$0, 56(%rbx)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_i40iw_handle_close_entry
LBB0_6:
	movq	48(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_i40iw_dec_refcnt_listen
	jmp	LBB0_12
LBB0_8:
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.9:
	movl	16(%rbx), %edi
	movl	40(%rbx), %esi
	movq	_I40IW_MANAGE_APBVT_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_i40iw_manage_apbvt
	movq	$0, 32(%rbx)
LBB0_10:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_i40iw_get_addr_info
	cmpq	$0, 8(%rbx)
	je	LBB0_12
## %bb.11:
	movl	16(%rbx), %edi
	movq	_I40IW_QHASH_TYPE_TCP_ESTABLISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_I40IW_QHASH_MANAGE_TYPE_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_i40iw_manage_qhash
	movq	$0, 8(%rbx)
LBB0_12:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	movq	$0, 8(%rdi)
	callq	_i40iw_rem_ref
	movq	$0, 24(%rbx)
	jmp	LBB0_16
LBB0_14:
	cmpq	$0, 8(%rbx)
	je	LBB0_16
## %bb.15:
	leaq	-24(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i40iw_get_addr_info
	movl	16(%rbx), %edi
	movq	_I40IW_QHASH_TYPE_TCP_ESTABLISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_I40IW_QHASH_MANAGE_TYPE_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_i40iw_manage_qhash
	movq	$0, 8(%rbx)
LBB0_16:
	movq	(%rbx), %rax
	incl	(%rax)
	movq	%rbx, %rdi
	callq	_kfree
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"node destroyed before established\n"

	.comm	_I40IW_MANAGE_APBVT_DEL,4,2     ## @I40IW_MANAGE_APBVT_DEL
	.comm	_I40IW_QHASH_TYPE_TCP_ESTABLISHED,4,2 ## @I40IW_QHASH_TYPE_TCP_ESTABLISHED
	.comm	_I40IW_QHASH_MANAGE_TYPE_DELETE,4,2 ## @I40IW_QHASH_MANAGE_TYPE_DELETE
	.no_dead_strip	_i40iw_rem_ref_cm_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_rem_ref_cm_node
_i40iw_rem_ref_cm_node:                 ; @i40iw_rem_ref_cm_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	x21, x0
	ldr	x20, [x21], #80
	add	x0, x20, #4
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_atomic_dec_return
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	add	x0, x8, #4
	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
	add	sp, sp, #64
	b	_spin_unlock_irqrestore
LBB0_2:
	add	x0, x19, #76
	bl	_list_del
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19, #72]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_5
; %bb.4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	x0, [x19, #48]
	bl	_atomic_dec
LBB0_5:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_i40iw_handle_close_entry
LBB0_7:
	ldr	x1, [x19, #48]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	bl	_i40iw_dec_refcnt_listen
	b	LBB0_13
LBB0_9:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w0, [x19, #16]
	ldr	w1, [x19, #40]
Lloh2:
	adrp	x8, _I40IW_MANAGE_APBVT_DEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40IW_MANAGE_APBVT_DEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_i40iw_manage_apbvt
	str	xzr, [x19, #32]
LBB0_11:
	add	x1, sp, #8
	mov	x0, x19
	bl	_i40iw_get_addr_info
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x8, _I40IW_QHASH_TYPE_TCP_ESTABLISHED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40IW_QHASH_TYPE_TCP_ESTABLISHED@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _I40IW_QHASH_MANAGE_TYPE_DELETE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40IW_QHASH_MANAGE_TYPE_DELETE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x4, #0
	mov	w5, #0
	bl	_i40iw_manage_qhash
	str	xzr, [x19, #8]
LBB0_13:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_15
; %bb.14:
	str	xzr, [x0, #8]
	bl	_i40iw_rem_ref
	str	xzr, [x19, #24]
	b	LBB0_17
LBB0_15:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_17
; %bb.16:
	add	x1, sp, #8
	mov	x0, x19
	bl	_i40iw_get_addr_info
	ldr	w0, [x19, #16]
Lloh11:
	adrp	x8, _I40IW_QHASH_TYPE_TCP_ESTABLISHED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40IW_QHASH_TYPE_TCP_ESTABLISHED@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _I40IW_QHASH_MANAGE_TYPE_DELETE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I40IW_QHASH_MANAGE_TYPE_DELETE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x4, #0
	mov	w5, #0
	bl	_i40iw_manage_qhash
	str	xzr, [x19, #8]
LBB0_17:
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_kfree
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"node destroyed before established\n"

	.comm	_I40IW_MANAGE_APBVT_DEL,4,2     ; @I40IW_MANAGE_APBVT_DEL
	.comm	_I40IW_QHASH_TYPE_TCP_ESTABLISHED,4,2 ; @I40IW_QHASH_TYPE_TCP_ESTABLISHED
	.comm	_I40IW_QHASH_MANAGE_TYPE_DELETE,4,2 ; @I40IW_QHASH_MANAGE_TYPE_DELETE
	.no_dead_strip	_i40iw_rem_ref_cm_node
.subsections_via_symbols
