	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_path_parse                  ## -- Begin function ng_path_parse
	.p2align	4, 0x90
_ng_path_parse:                         ## @ng_path_parse
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	1(%rdi), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rbx), %eax
	testb	%al, %al
	je	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$58, %al
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	jmp	LBB0_1
LBB0_12:
	xorl	%esi, %esi
LBB0_13:
	movq	%r14, %rax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %edx
	cmpb	$58, %dl
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	testb	%dl, %dl
	je	LBB0_16
## %bb.40:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rax
	jmp	LBB0_14
LBB0_4:
	movb	$0, -1(%rbx)
	movl	$-1, %r13d
	cmpb	$0, (%r14)
	je	LBB0_22
## %bb.5:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %r12
	movq	%rcx, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rax
	movq	%r15, %rcx
	movq	%r12, %r15
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %edx
	testb	%dl, %dl
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$46, %dl
	je	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%rax
	jmp	LBB0_8
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpb	$46, 1(%r14,%rax)
	leaq	1(%rax), %rax
	je	LBB0_21
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rax), %edx
	cmpb	$46, %dl
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	testb	%dl, %dl
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rax
	jmp	LBB0_17
LBB0_21:
	movl	$-1, %r13d
LBB0_22:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	xorl	%ebx, %ebx
	cmpb	$46, (%r14)
	sete	%bl
	cmpb	$0, (%r14,%rbx)
	je	LBB0_24
## %bb.32:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rbx), %r13
	movq	%r13, %rdi
	callq	_strlen
	cltq
	cmpb	$46, -1(%rax,%r13)
	jne	LBB0_34
## %bb.33:
	movq	%r13, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%r13)
LBB0_34:
	movb	(%r13), %dl
	testb	%dl, %dl
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_24
## %bb.35:
	leaq	(%rbx,%r14), %rax
	incq	%rax
	testb	%dl, %dl
	je	LBB0_37
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$46, %dl
	je	LBB0_25
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	movzbl	(%rax), %edx
	incq	%rax
	testb	%dl, %dl
	jne	LBB0_38
LBB0_37:
	movq	%r13, %rax
	jmp	LBB0_26
LBB0_6:
	movq	%r14, %rsi
	movq	%rbx, %r14
	movq	%r15, %rcx
	movq	%r12, %r15
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_24:
	xorl	%r13d, %r13d
LBB0_25:
	xorl	%eax, %eax
LBB0_26:
	testq	%r12, %r12
	je	LBB0_28
## %bb.27:
	movq	%rsi, (%r12)
LBB0_28:
	testq	%r15, %r15
	je	LBB0_30
## %bb.29:
	movq	%r13, (%r15)
LBB0_30:
	xorl	%r13d, %r13d
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.31:
	movq	%rax, (%rcx)
	jmp	LBB0_22
LBB0_9:
	movq	%r14, %rsi
	movq	%rbx, %r14
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ng_path_parse                  ; -- Begin function ng_path_parse
	.p2align	2
_ng_path_parse:                         ; @ng_path_parse
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x23, x0, #1
	ldurb	w8, [x23, #-1]
	cbz	w8, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #58
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x23, x23, #1
	ldurb	w8, [x23, #-1]
	cbnz	w8, LBB0_1
LBB0_3:
	mov	x24, #0
	b	LBB0_10
LBB0_4:
	sturb	wzr, [x23, #-1]
	ldrb	w8, [x22]
	cbz	w8, LBB0_19
; %bb.5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.6:
	mov	x8, x22
	ldrb	w9, [x8]
	cbz	w9, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #46
	b.eq	LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	ldrb	w9, [x8]
	cbnz	w9, LBB0_7
LBB0_9:
	mov	x24, x22
	mov	x22, x23
LBB0_10:
	mov	x8, x22
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cmp	w9, #58
	b.eq	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	w9, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, #1
	b	LBB0_11
LBB0_14:
	mov	x8, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x8, #1
	ldrb	w9, [x22, x8]
	cmp	w9, #46
	b.eq	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x22, x8]
	cmp	w9, #46
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cbz	w9, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x8, #1
	b	LBB0_16
LBB0_19:
	mov	w0, #-1
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
	mov	x8, x22
	ldrb	w9, [x8], #1
	cmp	w9, #46
	cset	w25, eq
	csel	x23, x22, x8, ne
	ldrb	w8, [x23]
	cbz	w8, LBB0_29
; %bb.22:
	mov	x0, x23
	bl	_strlen
	add	x8, x23, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #46
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x23
	bl	_strlen
	add	x8, x23, w0, sxtw
	sturb	wzr, [x8, #-1]
LBB0_24:
	ldrb	w8, [x23]
	cbz	w8, LBB0_29
; %bb.25:
	add	x9, x25, x22
	add	x9, x9, #1
	cbz	w8, LBB0_28
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	cmp	w8, #46
	b.eq	LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldrb	w8, [x9], #1
	cbnz	w8, LBB0_26
LBB0_28:
	mov	x8, x23
	b	LBB0_31
LBB0_29:
	mov	x23, #0
LBB0_30:
	mov	x8, #0
LBB0_31:
	cbz	x21, LBB0_33
; %bb.32:
	str	x24, [x21]
LBB0_33:
	cbz	x20, LBB0_35
; %bb.34:
	str	x23, [x20]
LBB0_35:
	mov	w0, #0
	cbz	x19, LBB0_20
; %bb.36:
	str	x8, [x19]
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

.subsections_via_symbols
