	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_path_pattern             ## -- Begin function parse_path_pattern
	.p2align	4, 0x90
_parse_path_pattern:                    ## @parse_path_pattern
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movl	$0, (%rdx)
	xorl	%r13d, %r13d
	cmpb	$33, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_PATTERN_FLAG_NEGATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, (%r12)
	incq	%rbx
LBB0_2:
	movq	%rbx, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	cmpb	$47, -1(%rbx,%rax)
	jne	LBB0_8
## %bb.5:
	decq	%r14
	movq	_PATTERN_FLAG_MUSTBEDIR@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	%r13d, (%r12)
	testq	%r14, %r14
	je	LBB0_6
LBB0_8:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$47, (%rbx,%rax)
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rax
	cmpq	%rax, %r14
	jne	LBB0_9
	jmp	LBB0_11
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_6:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
LBB0_7:
	cmpq	%r14, %rax
	jne	LBB0_12
LBB0_11:
	movq	_PATTERN_FLAG_NODIR@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	%r13d, (%r12)
LBB0_12:
	movq	%rbx, %rdi
	callq	_simple_length
	cltq
	cmpq	%rax, %r14
	cmovbl	%r14d, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	cmpb	$42, (%rbx)
	jne	LBB0_15
## %bb.13:
	leaq	1(%rbx), %rdi
	callq	_no_wildcard
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_PATTERN_FLAG_ENDSWITH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_15:
	movq	%rbx, (%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATTERN_FLAG_NEGATIVE,4,2      ## @PATTERN_FLAG_NEGATIVE
	.comm	_PATTERN_FLAG_MUSTBEDIR,4,2     ## @PATTERN_FLAG_MUSTBEDIR
	.comm	_PATTERN_FLAG_NODIR,4,2         ## @PATTERN_FLAG_NODIR
	.comm	_PATTERN_FLAG_ENDSWITH,4,2      ## @PATTERN_FLAG_ENDSWITH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_path_pattern             ; -- Begin function parse_path_pattern
	.p2align	2
_parse_path_pattern:                    ; @parse_path_pattern
	.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	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
	str	wzr, [x2]
	ldrb	w8, [x22]
	cmp	w8, #33
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PATTERN_FLAG_NEGATIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATTERN_FLAG_NEGATIVE@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	str	w25, [x21]
	add	x22, x22, #1
	b	LBB0_3
LBB0_2:
	mov	w25, #0
LBB0_3:
	mov	x0, x22
	bl	_strlen
	mov	x24, x0
	cbz	x0, LBB0_12
; %bb.4:
	sub	x8, x24, #1
	ldrb	w9, [x22, x8]
	cmp	w9, #47
	b.ne	LBB0_7
; %bb.5:
Lloh3:
	adrp	x9, _PATTERN_FLAG_MUSTBEDIR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PATTERN_FLAG_MUSTBEDIR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w25, w25, w9
	str	w25, [x21]
	cbz	x8, LBB0_10
; %bb.6:
	mov	x24, x8
LBB0_7:
	mov	x8, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x22, x8]
	cmp	w9, #47
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #1
	cmp	x24, x8
	b.ne	LBB0_8
	b	LBB0_12
LBB0_10:
	mov	x24, #0
LBB0_11:
	cmp	x8, x24
	b.ne	LBB0_13
LBB0_12:
Lloh6:
	adrp	x8, _PATTERN_FLAG_NODIR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PATTERN_FLAG_NODIR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w25, w8
	str	w8, [x21]
LBB0_13:
	mov	x0, x22
	bl	_simple_length
	cmp	x24, w0, sxtw
	csel	w8, w24, w0, lo
	str	w8, [x23]
	ldrb	w8, [x22]
	cmp	w8, #42
	b.ne	LBB0_16
; %bb.14:
	add	x0, x22, #1
	bl	_no_wildcard
	cbz	x0, LBB0_16
; %bb.15:
Lloh9:
	adrp	x8, _PATTERN_FLAG_ENDSWITH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PATTERN_FLAG_ENDSWITH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_16:
	str	x22, [x20]
	str	w24, [x19]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PATTERN_FLAG_NEGATIVE,4,2      ; @PATTERN_FLAG_NEGATIVE
	.comm	_PATTERN_FLAG_MUSTBEDIR,4,2     ; @PATTERN_FLAG_MUSTBEDIR
	.comm	_PATTERN_FLAG_NODIR,4,2         ; @PATTERN_FLAG_NODIR
	.comm	_PATTERN_FLAG_ENDSWITH,4,2      ; @PATTERN_FLAG_ENDSWITH
.subsections_via_symbols
