	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spec_path
_spec_path:                             ## @spec_path
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	cmpq	$0, 32(%rsi)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_IS_ABSOLUTE_PATH
	testl	%eax, %eax
	je	LBB0_14
LBB0_2:
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r15
	leaq	(%rax,%r14), %rdi
	movl	24(%r12), %esi
	incq	%rbx
	movq	%rbx, %rdx
	callq	_memcpy
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_is_directory
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movq	8(%r12), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_do_spec_1
	cmpq	$0, 16(%r12)
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_do_spec_1
LBB0_8:
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r15
	movb	-1(%rax,%r14), %bl
	movsbl	%bl, %edi
	callq	_IS_DIR_SEPARATOR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movb	$0, -1(%r14,%r15)
LBB0_12:
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_do_spec_1
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_do_spec_1
	cmpq	$0, (%r12)
	jne	LBB0_14
## %bb.13:
	movb	%bl, -1(%r15,%r14)
LBB0_14:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" "

	.no_dead_strip	_spec_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spec_path
_spec_path:                             ; @spec_path
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #32]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_IS_ABSOLUTE_PATH
	cbz	w0, LBB0_14
LBB0_2:
	ldr	x22, [x20]
	cbz	x22, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	add	x0, x19, x0
	ldr	w1, [x20, #24]
	add	x2, x22, #1
	bl	_memcpy
	b	LBB0_5
LBB0_4:
	mov	x21, #0
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	bl	_is_directory
	cbz	w0, LBB0_14
; %bb.6:
	ldr	x0, [x20, #8]
	mov	w1, #1
	mov	x2, #0
	bl	_do_spec_1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	mov	x2, #0
	bl	_do_spec_1
LBB0_8:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.9:
	mov	w22, #0
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	sub	x23, x0, #1
	ldrsb	w0, [x19, x23]
	and	w22, w0, #0xff
	bl	_IS_DIR_SEPARATOR
	cbz	x0, LBB0_12
; %bb.11:
	strb	wzr, [x19, x23]
LBB0_12:
	mov	x0, x19
	mov	w1, #1
	mov	x2, #0
	bl	_do_spec_1
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	mov	x2, #0
	bl	_do_spec_1
	ldr	x8, [x20]
	cbnz	x8, LBB0_14
; %bb.13:
	add	x8, x21, x19
	sturb	w22, [x8, #-1]
LBB0_14:
	mov	x0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" "

	.no_dead_strip	_spec_path
.subsections_via_symbols
