	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function last_matching_pattern_from_list
_last_matching_pattern_from_list:       ## @last_matching_pattern_from_list
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%r8), %r15d
	testq	%r15, %r15
	je	LBB0_15
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.2:
	movq	%r8, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	subl	-72(%rbp), %eax                 ## 4-byte Folded Reload
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_PATTERN_FLAG_NODIR@GOTPCREL(%rip), %rax
	testl	%r9d, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%r12), %r8d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_match_basename
	testq	%rax, %rax
	jne	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	decq	%r15
	testl	%r15d, %r15d
	jle	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	-8(%rax,%r15,8), %r12
	movq	(%r12), %r14
	movl	8(%r12), %r13d
	movl	12(%r12), %r9d
	movq	_PATTERN_FLAG_MUSTBEDIR@GOTPCREL(%rip), %rax
	testl	%r9d, (%rax)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	_DT_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_get_dtype
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_DT_DIR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r12), %r9d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %rcx
	cmpb	$47, -1(%rax,%rcx)
	sete	%al
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$1, %al
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	callq	_assert
	movq	24(%r12), %rdx
	movl	12(%r12), %eax
	movl	16(%r12), %ecx
	subl	$1, %ecx
	movl	$0, %esi
	cmovbl	%esi, %ecx
	movl	32(%r12), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %r8
	movl	%r13d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_match_pathname
	addq	$16, %rsp
	testq	%rax, %rax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_14
	jmp	LBB0_16
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATTERN_FLAG_MUSTBEDIR,4,2     ## @PATTERN_FLAG_MUSTBEDIR
	.comm	_DT_UNKNOWN,4,2                 ## @DT_UNKNOWN
	.comm	_DT_DIR,4,2                     ## @DT_DIR
	.comm	_PATTERN_FLAG_NODIR,4,2         ## @PATTERN_FLAG_NODIR
	.no_dead_strip	_last_matching_pattern_from_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function last_matching_pattern_from_list
_last_matching_pattern_from_list:       ; @last_matching_pattern_from_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x5, [sp]                        ; 8-byte Folded Spill
	ldr	w19, [x4]
	cbz	w19, LBB0_15
; %bb.1:
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	sub	w8, w24, w22
	add	w8, w8, w1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x25, _PATTERN_FLAG_MUSTBEDIR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PATTERN_FLAG_MUSTBEDIR@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh2:
	adrp	x8, _PATTERN_FLAG_NODIR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PATTERN_FLAG_NODIR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w5
	b.eq	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w4, [x26, #32]
	mov	x0, x22
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x2, x28
	mov	x3, x27
	bl	_match_basename
	cbnz	x0, LBB0_16
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x19, x19, #1
	cmp	w19, #0
	b.le	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x19, lsl #3
	ldur	x26, [x8, #-8]
	ldr	x28, [x26]
	ldp	w27, w5, [x26, #8]
	ldr	w8, [x25]
	tst	w8, w5
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _DT_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DT_UNKNOWN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, #0
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	mov	x2, x24
	mov	x3, x23
	bl	_get_dtype
	str	w0, [x21]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x8, _DT_DIR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DT_DIR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w5, [x26, #12]
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x26, #16]
	cbz	w8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x26, #24]
	add	x8, x8, x9
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	cset	w0, eq
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_assert
	ldr	x2, [x26, #24]
	ldp	w7, w8, [x26, #12]
	sub	w9, w8, #1
	cmp	w8, #0
	csel	w3, wzr, w9, eq
	ldr	w6, [x26, #32]
	mov	x0, x24
	mov	x1, x23
	mov	x4, x28
	mov	x5, x27
	bl	_match_pathname
	cbz	x0, LBB0_5
	b	LBB0_16
LBB0_15:
	mov	x26, #0
LBB0_16:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PATTERN_FLAG_MUSTBEDIR,4,2     ; @PATTERN_FLAG_MUSTBEDIR
	.comm	_DT_UNKNOWN,4,2                 ; @DT_UNKNOWN
	.comm	_DT_DIR,4,2                     ; @DT_DIR
	.comm	_PATTERN_FLAG_NODIR,4,2         ; @PATTERN_FLAG_NODIR
	.no_dead_strip	_last_matching_pattern_from_list
.subsections_via_symbols
