	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_match_basename                 ## -- Begin function match_basename
	.p2align	4, 0x90
_match_basename:                        ## @match_basename
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	%rdi, %r10
	cmpl	%r8d, %ecx
	jne	LBB0_5
## %bb.1:
	cmpl	%eax, %ecx
	jne	LBB0_9
## %bb.2:
	movq	%rdx, %rdi
	movq	%r10, %rsi
	movl	%ecx, %edx
	jmp	LBB0_3
LBB0_5:
	movq	_PATTERN_FLAG_ENDSWITH@GOTPCREL(%rip), %rcx
	testl	%r9d, (%rcx)
	je	LBB0_8
## %bb.6:
	decl	%r8d
	cmpl	%eax, %r8d
	jg	LBB0_9
## %bb.7:
	incq	%rdx
	cltq
	addq	%rax, %r10
	movslq	%r8d, %rax
	subq	%rax, %r10
	movq	%rdx, %rdi
	movq	%r10, %rsi
	movl	%r8d, %edx
LBB0_3:
	callq	_fspathncmp
	testl	%eax, %eax
	je	LBB0_4
LBB0_9:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_8:
	movq	%rdx, %rdi
	movl	%r8d, %esi
	movq	%r10, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_fnmatch_icase_mem
	testq	%rax, %rax
	jne	LBB0_9
LBB0_4:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_match_basename                 ; -- Begin function match_basename
	.p2align	2
_match_basename:                        ; @match_basename
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x9, x1
	mov	x8, x0
	cmp	w3, w4
	b.ne	LBB0_3
; %bb.1:
	cmp	w3, w9
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x2
	mov	x1, x8
	mov	x2, x3
	bl	_fspathncmp
	cbnz	w0, LBB0_6
	b	LBB0_8
LBB0_3:
Lloh0:
	adrp	x10, _PATTERN_FLAG_ENDSWITH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PATTERN_FLAG_ENDSWITH@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w5
	b.eq	LBB0_7
; %bb.4:
	sub	w10, w4, #1
	cmp	w10, w9
	b.gt	LBB0_6
; %bb.5:
	add	x0, x2, #1
	add	x8, x8, w9, sxtw
	sub	x1, x8, w10, sxtw
	mov	x2, x10
	bl	_fspathncmp
	cbz	w0, LBB0_8
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x2
	mov	x1, x4
	mov	x2, x8
	mov	x3, x9
	mov	w4, #0
	bl	_fnmatch_icase_mem
	cbnz	x0, LBB0_6
LBB0_8:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PATTERN_FLAG_ENDSWITH,4,2      ; @PATTERN_FLAG_ENDSWITH
.subsections_via_symbols
