	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function internal_prefix_pathspec
_internal_prefix_pathspec:              ## @internal_prefix_pathspec
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r15
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_strlen
LBB0_2:
	incl	%ebx
	movl	%ebx, %esi
	callq	_ALLOC_ARRAY
	movq	(%r15), %rdi
	callq	_strlen
	movl	%eax, %r13d
	movq	_KEEP_TRAILING_SLASH@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	testl	%r14d, (%r12)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	leaq	-1(%rbx), %r13
	movsbl	-1(%rax,%rbx), %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_3
LBB0_6:
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_xmemdupz
	movq	%rax, %rdi
	callq	_basename
	movl	%eax, %edi
	callq	_xstrdup
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_KEEP_TRAILING_SLASH,4,2        ## @KEEP_TRAILING_SLASH
	.comm	_DUP_BASENAME,4,2               ## @DUP_BASENAME
	.no_dead_strip	_internal_prefix_pathspec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function internal_prefix_pathspec
_internal_prefix_pathspec:              ; @internal_prefix_pathspec
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	cbz	x0, LBB0_2
; %bb.1:
	bl	_strlen
LBB0_2:
	add	w1, w21, #1
	bl	_ALLOC_ARRAY
	ldr	x0, [x20]
	bl	_strlen
	mov	w23, w0
Lloh0:
	adrp	x22, _KEEP_TRAILING_SLASH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _KEEP_TRAILING_SLASH@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x23
	ldr	w8, [x22]
	and	w8, w8, w19
	cmp	w8, #0
	ccmp	w21, #1, #8, eq
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	sub	x23, x21, #1
	add	x8, x8, x21
	ldursb	w0, [x8, #-1]
	bl	_is_dir_sep
	cbnz	x0, LBB0_3
LBB0_5:
	ldr	x0, [x20]
	mov	x1, x21
	bl	_xmemdupz
	bl	_basename
	bl	_xstrdup
	brk	#0x1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_KEEP_TRAILING_SLASH,4,2        ; @KEEP_TRAILING_SLASH
	.comm	_DUP_BASENAME,4,2               ; @DUP_BASENAME
	.no_dead_strip	_internal_prefix_pathspec
.subsections_via_symbols
