	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rem_ref_cm_node
_rem_ref_cm_node:                       ## @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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	72(%rsi), %rdi
	callq	_spin_lock_irqsave
	leaq	84(%rbx), %rdi
	callq	_atomic_dec_return
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	72(%rbx), %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_17
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_4:
	leaq	80(%rbx), %rdi
	callq	_list_del
	leaq	4(%r14), %rdi
	callq	_atomic_dec
	movq	72(%rbx), %rdi
	callq	_spin_unlock_irqrestore
	cmpl	$0, 64(%rbx)
	jne	LBB0_7
## %bb.5:
	cmpq	$0, 56(%rbx)
	je	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	cmpq	$0, 32(%rbx)
	sete	%dil
	callq	_BUG_ON
	movq	32(%rbx), %rdi
	callq	_atomic_dec
	movq	32(%rbx), %rdi
	callq	_atomic_read
	shrq	$63, %rax
	movl	%eax, %edi
	callq	_BUG_ON
LBB0_7:
	movl	48(%rbx), %edi
	callq	_WARN_ON
	cmpq	$0, 40(%rbx)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_handle_recv_entry
LBB0_9:
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mini_cm_dec_refcnt_listen
	jmp	LBB0_14
LBB0_11:
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.12:
	movq	8(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:
	movl	16(%rbx), %r12d
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_PCI_FUNC
	movq	_NES_MANAGE_APBVT_DEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_nes_manage_apbvt
LBB0_14:
	movq	%r14, %rdi
	callq	_atomic_dec
	movq	_cm_nodes_destroyed@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	movq	$0, 8(%rdi)
	callq	_nes_rem_ref
	movq	$0, (%rbx)
LBB0_16:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NES_MANAGE_APBVT_DEL,4,2       ## @NES_MANAGE_APBVT_DEL
	.comm	_cm_nodes_destroyed,4,2         ## @cm_nodes_destroyed
	.no_dead_strip	_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 rem_ref_cm_node
_rem_ref_cm_node:                       ; @rem_ref_cm_node
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1, #72]
	bl	_spin_lock_irqsave
	add	x0, x19, #84
	bl	_atomic_dec_return
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #72]
	bl	_spin_unlock_irqrestore
	b	LBB0_17
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_4:
	add	x0, x19, #80
	bl	_list_del
	add	x0, x20, #4
	bl	_atomic_dec
	ldr	x0, [x19, #72]
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19, #64]
	cbnz	w8, LBB0_7
; %bb.5:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x0, [x19, #32]
	bl	_atomic_dec
	ldr	x0, [x19, #32]
	bl	_atomic_read
	lsr	x0, x0, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_BUG_ON
LBB0_7:
	ldr	w0, [x19, #48]
	bl	_WARN_ON
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	bl	_handle_recv_entry
LBB0_9:
	ldr	x1, [x19, #32]
	cbz	x1, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	w2, #0
	bl	_mini_cm_dec_refcnt_listen
	b	LBB0_14
LBB0_11:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_14
; %bb.13:
	ldr	w22, [x19, #16]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_PCI_FUNC
	mov	x2, x0
Lloh3:
	adrp	x8, _NES_MANAGE_APBVT_DEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NES_MANAGE_APBVT_DEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_nes_manage_apbvt
LBB0_14:
	mov	x0, x20
	bl	_atomic_dec
Lloh6:
	adrp	x0, _cm_nodes_destroyed@GOTPAGE
Lloh7:
	ldr	x0, [x0, _cm_nodes_destroyed@GOTPAGEOFF]
	bl	_atomic_inc
	ldr	x0, [x19]
	cbz	x0, LBB0_16
; %bb.15:
	str	xzr, [x0, #8]
	bl	_nes_rem_ref
	str	xzr, [x19]
LBB0_16:
	mov	x0, x19
	bl	_kfree
LBB0_17:
	mov	w0, #0
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NES_MANAGE_APBVT_DEL,4,2       ; @NES_MANAGE_APBVT_DEL
	.comm	_cm_nodes_destroyed,4,2         ; @cm_nodes_destroyed
	.no_dead_strip	_rem_ref_cm_node
.subsections_via_symbols
