	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function append_basename
_append_basename:                       ## @append_basename
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strbuf_addstr
	movslq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rdx
	leal	-1(%rcx), %eax
	addq	%rdx, %rcx
	decq	%rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$47, (%rcx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%rbx)
	decq	%rcx
	addl	$-1, %eax
	jb	LBB0_2
LBB0_4:
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strbuf_addch
	leaq	1(%r15), %rsi
	testq	%r15, %r15
	cmoveq	%r14, %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strbuf_addstr                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_append_basename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function append_basename
_append_basename:                       ; @append_basename
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #47
	bl	_strrchr
	mov	x21, x0
	mov	x0, x20
	mov	x1, x22
	bl	_strbuf_addstr
	ldrsw	x9, [x20]
	cbz	w9, LBB0_4
; %bb.1:
	ldr	x10, [x20, #8]
	sub	w8, w9, #1
	add	x9, x9, x10
	sub	x9, x9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9]
	cmp	w10, #47
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w8, [x20]
	sub	w8, w8, #1
	sub	x9, x9, #1
	cmn	w8, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x0, x20
	mov	w1, #47
	bl	_strbuf_addch
	cmp	x21, #0
	csinc	x1, x19, x21, eq
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_strbuf_addstr
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_append_basename
.subsections_via_symbols
