	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_car_disconnect
_ng_car_disconnect:                     ## @ng_car_disconnect
	.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
	movl	%edi, %r14d
	callq	_NG_HOOK_PRIVATE
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_NG_NODE_PRIVATE
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_2
LBB0_6:
	movq	16(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	8(%r15), %rax
	sete	%cl
	shlq	$4, %rcx
	movq	$0, (%r15,%rcx)
	movq	$0, 16(%rbx)
LBB0_7:
	movl	%r14d, %edi
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_NG_NODE_NUMHOOKS
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movl	%r14d, %edi
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_NG_NODE_IS_VALID
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	%r14d, %edi
	callq	_NG_HOOK_NODE
	movl	%eax, %edi
	callq	_ng_rmnode_self
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_NG_CAR_QUEUE_SIZE@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%rbx)
	cmpq	8(%rbx), %rax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_NG_FREE_M
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	cmpq	(%r12), %rax
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_CAR_QUEUE_SIZE,8,3          ## @NG_CAR_QUEUE_SIZE
	.no_dead_strip	_ng_car_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_car_disconnect
_ng_car_disconnect:                     ; @ng_car_disconnect
	.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	x19, x0
	bl	_NG_HOOK_PRIVATE
	mov	x20, x0
	mov	x0, x19
	bl	_NG_HOOK_NODE
	bl	_NG_NODE_PRIVATE
	cbz	x20, LBB0_5
; %bb.1:
	mov	x21, x0
	ldp	x8, x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
Lloh0:
	adrp	x22, _NG_CAR_QUEUE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NG_CAR_QUEUE_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #24]
	ldr	w0, [x9, x8, lsl #2]
	bl	_NG_FREE_M
	ldp	x8, x9, [x20]
	add	x10, x8, #1
	str	x10, [x20]
	ldr	x11, [x22]
	cmp	x10, x11
	csinc	x8, xzr, x8, hs
	str	x8, [x20]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_4:
	ldr	x8, [x20, #16]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	cset	w8, eq
	lsl	x8, x8, #4
	str	xzr, [x21, x8]
	str	xzr, [x20, #16]
LBB0_5:
	mov	x0, x19
	bl	_NG_HOOK_NODE
	bl	_NG_NODE_NUMHOOKS
	cbnz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_NG_HOOK_NODE
	bl	_NG_NODE_IS_VALID
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_NG_HOOK_NODE
	bl	_ng_rmnode_self
LBB0_8:
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_CAR_QUEUE_SIZE,8,3          ; @NG_CAR_QUEUE_SIZE
	.no_dead_strip	_ng_car_disconnect
.subsections_via_symbols
