	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_path2noderef                ## -- Begin function ng_path2noderef
	.p2align	4, 0x90
_ng_path2noderef:                       ## @ng_path2noderef
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NG_PATHSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	$0, (%r15)
	leaq	-1(%rbx), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strncpy
	movb	$0, -1(%r14,%rbx)
	leaq	-72(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_ng_path_parse
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	callq	_ng_name2noderef
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	xorl	%eax, %eax
	callq	_TRAP_ERROR
	jmp	LBB0_6
LBB0_7:
	testq	%r12, %r12
	je	LBB0_1
## %bb.8:
	movq	%r12, %rdi
	callq	_NG_NODE_REF
LBB0_9:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	leaq	1(%rsi), %rax
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-1(%rax), %ecx
	testb	%cl, %cl
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpb	$46, %cl
	je	LBB0_17
## %bb.33:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%rax, -56(%rbp)
	incq	%rax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, -56(%rbp)
	movb	$0, -1(%rax)
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	callq	_ng_findhook
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_TOPOLOGY_WLOCK
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_NG_HOOK_PEER
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_NG_HOOK_NOT_VALID
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_NG_HOOK_PEER
	movq	%rax, %rdi
	callq	_NG_HOOK_NOT_VALID
	testq	%rax, %rax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_NG_PEER_NODE
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r13, %rdi
	callq	_NG_NODE_REF
LBB0_25:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	callq	_NG_NODE_UNREF
	movq	%r13, %rdi
	callq	_NG_NODE_NOT_VALID
	testq	%rax, %rax
	jne	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-56(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_28
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%eax, %eax
	callq	_TOPOLOGY_WUNLOCK
	movq	-56(%rbp), %rsi
	movq	%r13, %r12
	jmp	LBB0_14
LBB0_1:
	xorl	%eax, %eax
	callq	_TRAP_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_31
LBB0_22:
	xorl	%eax, %eax
	callq	_TRAP_ERROR
	movq	%r12, %rdi
	callq	_NG_NODE_UNREF
	xorl	%eax, %eax
	callq	_TOPOLOGY_WUNLOCK
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_31
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	$0, (%rax)
LBB0_12:
	movq	%r12, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_26:
	movq	%r13, %rdi
	callq	_NG_NODE_UNREF
	xorl	%eax, %eax
	callq	_TOPOLOGY_WUNLOCK
	xorl	%eax, %eax
	callq	_TRAP_ERROR
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_31
LBB0_28:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	%rbx, %rdi
	movq	%rax, %rbx
	callq	_NG_HOOK_PEER
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_NG_HOOK_REF
LBB0_30:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_TOPOLOGY_WUNLOCK
	movq	%r13, (%r15)
LBB0_31:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_34
## %bb.32:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_PATHSIZ,4,2                 ## @NG_PATHSIZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENXIO,4,2                      ## @ENXIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_path2noderef                ; -- Begin function ng_path2noderef
	.p2align	2
_ng_path2noderef:                       ; @ng_path2noderef
	.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
	sub	sp, sp, #32
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _NG_PATHSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NG_PATHSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x22, x9, x10
	mov	sp, x22
	cbz	x2, LBB0_23
; %bb.1:
	str	xzr, [x19]
	sub	x23, x8, #1
	mov	x0, x22
	mov	x2, x23
	bl	_strncpy
	strb	wzr, [x22, x23]
	sub	x1, x29, #64
	sub	x2, x29, #72
	mov	x0, x22
	mov	x3, #0
	bl	_ng_path_parse
	tbnz	x0, #63, LBB0_23
; %bb.2:
	ldur	x1, [x29, #-64]
	cbz	x1, LBB0_18
; %bb.3:
	mov	x0, x21
	bl	_ng_name2noderef
	mov	x21, x0
	cbz	x0, LBB0_25
; %bb.4:
	ldur	x1, [x29, #-72]
	cbz	x1, LBB0_20
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x8, x1, #1
	ldurb	w9, [x8, #-1]
	cbz	w9, LBB0_9
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w9, #46
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	stur	x8, [x29, #-72]
	add	x8, x8, #1
	ldurb	w9, [x8, #-1]
	cbnz	w9, LBB0_6
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	stur	x8, [x29, #-72]
	sturb	wzr, [x8, #-1]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_ng_findhook
	mov	x22, x0
	bl	_TOPOLOGY_WLOCK
	cbz	x22, LBB0_24
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_NG_HOOK_PEER
	cbz	x0, LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_NG_HOOK_NOT_VALID
	cbnz	x0, LBB0_24
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_NG_HOOK_PEER
	bl	_NG_HOOK_NOT_VALID
	cbnz	x0, LBB0_24
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_NG_PEER_NODE
	mov	x23, x0
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_NG_NODE_REF
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_NG_NODE_UNREF
	mov	x0, x23
	bl	_NG_NODE_NOT_VALID
	cbnz	x0, LBB0_30
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-72]
	ldrb	w8, [x8]
	cbz	w8, LBB0_31
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_TOPOLOGY_WUNLOCK
	ldur	x1, [x29, #-72]
	mov	x21, x23
	b	LBB0_5
LBB0_18:
	cbz	x21, LBB0_23
; %bb.19:
	mov	x0, x21
	bl	_NG_NODE_REF
	ldur	x1, [x29, #-72]
	cbnz	x1, LBB0_5
LBB0_20:
	cbz	x20, LBB0_22
; %bb.21:
	str	xzr, [x20]
LBB0_22:
	mov	w0, #0
	str	x21, [x19]
	b	LBB0_28
LBB0_23:
	bl	_TRAP_ERROR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_27
LBB0_24:
	bl	_TRAP_ERROR
	mov	x0, x21
	bl	_NG_NODE_UNREF
	bl	_TOPOLOGY_WUNLOCK
	b	LBB0_26
LBB0_25:
	bl	_TRAP_ERROR
LBB0_26:
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_27:
	ldr	w0, [x8]
LBB0_28:
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.29:
	sub	sp, x29, #48
	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_30:
	mov	x0, x23
	bl	_NG_NODE_UNREF
	bl	_TOPOLOGY_WUNLOCK
	bl	_TRAP_ERROR
Lloh15:
	adrp	x8, _ENXIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_27
LBB0_31:
	cbz	x20, LBB0_33
; %bb.32:
	mov	x0, x22
	bl	_NG_HOOK_PEER
	str	x0, [x20]
	bl	_NG_HOOK_REF
LBB0_33:
	bl	_TOPOLOGY_WUNLOCK
	mov	w0, #0
	str	x23, [x19]
	b	LBB0_28
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_PATHSIZ,4,2                 ; @NG_PATHSIZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENXIO,4,2                      ; @ENXIO
.subsections_via_symbols
