	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pat_match                      ## -- Begin function pat_match
	.p2align	4, 0x90
_pat_match:                             ## @pat_match
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, 8(%rdi)
	movq	_pathead@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r14
	movq	_DIR_MTCH@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	28(%rbx), %edi
	movq	(%r14), %rsi
	leaq	24(%rbx), %rdx
	callq	_fn_match
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rsi
	movq	8(%rbx), %rdx
	cmpb	$47, (%rsi,%rdx)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	28(%rbx), %edi
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.8:
	movq	_cflag@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	sete	%al
	jmp	LBB0_14
LBB0_15:
	movq	_nflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	setne	%al
	movq	_cflag@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	negl	%eax
	jmp	LBB0_14
LBB0_9:
	movq	%rbx, 8(%r14)
	movq	_cflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	callq	_pat_sel
	testq	%rax, %rax
	js	LBB0_12
## %bb.13:
	movq	$0, 8(%r14)
	movl	$1, %eax
	jmp	LBB0_14
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	movl	$-1, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pathead,8,3                    ## @pathead
	.comm	_nflag,8,3                      ## @nflag
	.comm	_cflag,8,3                      ## @cflag
	.comm	_DIR_MTCH,4,2                   ## @DIR_MTCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pat_match                      ; -- Begin function pat_match
	.p2align	2
_pat_match:                             ; @pat_match
	.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
	str	xzr, [x0, #8]
Lloh0:
	adrp	x8, _pathead@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pathead@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cbz	x20, LBB0_10
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x21, _DIR_MTCH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DIR_MTCH@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #28]
	ldr	x1, [x19]
	add	x2, x20, #24
	bl	_fn_match
	cbz	x0, LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x19]
	ldr	x2, [x20, #8]
	ldrb	w8, [x1, x2]
	cmp	w8, #47
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #28]
	bl	_strncmp
	cbnz	x0, LBB0_3
LBB0_7:
	str	x20, [x19, #8]
Lloh5:
	adrp	x8, _cflag@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cflag@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_pat_sel
	tbnz	x0, #63, LBB0_13
; %bb.9:
	str	xzr, [x19, #8]
	mov	w0, #1
	b	LBB0_14
LBB0_10:
Lloh8:
	adrp	x8, _nflag@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nflag@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, #0
Lloh11:
	adrp	x8, _cflag@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cflag@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ccmp	x8, #0, #0, ne
	cset	w8, eq
	sbfx	w0, w8, #0, #1
	b	LBB0_14
LBB0_11:
Lloh14:
	adrp	x8, _cflag@GOTPAGE
Lloh15:
	ldr	x8, [x8, _cflag@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_14
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	mov	w0, #-1
LBB0_14:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_pathead,8,3                    ; @pathead
	.comm	_nflag,8,3                      ; @nflag
	.comm	_cflag,8,3                      ; @cflag
	.comm	_DIR_MTCH,4,2                   ; @DIR_MTCH
.subsections_via_symbols
