	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edit_pathname                  ## -- Begin function edit_pathname
	.p2align	4, 0x90
_edit_pathname:                         ## @edit_pathname
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_archive_entry_pathname
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_archive_entry_hardlink
	movq	%rax, %r13
	movl	4(%r12), %esi
	testl	%esi, %esi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	jle	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_strip_components
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%rax, %r14
	testq	%r13, %r13
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	movl	4(%r12), %esi
	movq	%r13, %rdi
	callq	_strip_components
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_18
LBB0_1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_4:
	xorl	%r13d, %r13d
LBB0_6:
	movq	_OPTFLAG_ABSOLUTE_PATHS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.11:
	cmpb	$47, (%r14)
	sete	%al
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r15
	testb	$1, %al
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	1(%r15), %r14
	movb	$1, %al
	cmpb	$47, 1(%r15)
	je	LBB0_12
	jmp	LBB0_14
LBB0_7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_strip_absolute_path
	cmpb	$0, (%rax)
	leaq	L_.str(%rip), %r15
	cmovneq	%rax, %r15
	testq	%r13, %r13
	je	LBB0_8
## %bb.9:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strip_absolute_path
	movq	%rax, %r13
	cmpb	$0, (%rax)
	jne	LBB0_14
## %bb.10:
	movl	$1, %r15d
	jmp	LBB0_18
LBB0_8:
	xorl	%r13d, %r13d
LBB0_14:
	cmpq	%rbx, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_archive_entry_copy_pathname
LBB0_16:
	xorl	%r15d, %r15d
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_archive_entry_copy_hardlink
LBB0_18:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPTFLAG_ABSOLUTE_PATHS,4,2     ## @OPTFLAG_ABSOLUTE_PATHS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edit_pathname                  ; -- Begin function edit_pathname
	.p2align	2
_edit_pathname:                         ; @edit_pathname
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x23, x0
	mov	x0, x1
	bl	_archive_entry_pathname
	mov	x21, x0
	mov	x0, x19
	bl	_archive_entry_hardlink
	mov	x20, x0
	ldr	w1, [x23, #4]
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_strip_components
	cbz	x0, LBB0_17
; %bb.2:
	mov	x24, x0
	cbz	x20, LBB0_5
; %bb.3:
	ldr	w1, [x23, #4]
	mov	x0, x20
	bl	_strip_components
	mov	x22, x0
	cbnz	x0, LBB0_6
	b	LBB0_17
LBB0_4:
	mov	x24, x21
	mov	x22, x20
	b	LBB0_6
LBB0_5:
	mov	x22, #0
LBB0_6:
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _OPTFLAG_ABSOLUTE_PATHS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OPTFLAG_ABSOLUTE_PATHS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	ldrb	w8, [x24]
	cmp	w8, #47
	cset	w8, eq
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x24
	tbz	w8, #0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x25
	ldrb	w9, [x24, #1]!
	mov	w8, #1
	cmp	w9, #47
	b.eq	LBB0_8
	b	LBB0_12
LBB0_10:
	mov	x0, x23
	mov	x1, x24
	bl	_strip_absolute_path
	ldrb	w8, [x0]
Lloh3:
	adrp	x9, l_.str@PAGE
Lloh4:
	add	x9, x9, l_.str@PAGEOFF
	cmp	w8, #0
	csel	x25, x9, x0, eq
	cbz	x22, LBB0_12
; %bb.11:
	mov	x0, x23
	mov	x1, x22
	bl	_strip_absolute_path
	mov	x22, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_17
LBB0_12:
	cmp	x25, x21
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x25
	bl	_archive_entry_copy_pathname
LBB0_14:
	cmp	x22, x20
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x22
	bl	_archive_entry_copy_hardlink
LBB0_16:
	mov	w0, #0
	b	LBB0_18
LBB0_17:
	mov	w0, #1
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OPTFLAG_ABSOLUTE_PATHS,4,2     ; @OPTFLAG_ABSOLUTE_PATHS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

.subsections_via_symbols
