	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function worktree_basename
_worktree_basename:                     ## @worktree_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	%rsi, %r14
	movq	%rdi, %r15
	callq	_strlen
	movslq	%eax, %rcx
	leal	1(%rcx), %r12d
	movq	%rcx, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	subq	$1, %rbx
	jb	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movsbl	-1(%r15,%rcx), %edi
	callq	_is_dir_sep
	decl	%r12d
	movq	%rbx, %rcx
	testq	%rax, %rax
	jne	LBB0_1
	jmp	LBB0_4
LBB0_2:
	xorl	%r12d, %r12d
LBB0_4:
	movslq	%r12d, %rax
	leaq	(%rax,%r15), %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %rbx
	jbe	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movsbl	(%rbx), %edi
	callq	_is_dir_sep
	decq	%rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	addq	$2, %rbx
LBB0_8:
	movl	%r12d, (%r14)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_worktree_basename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function worktree_basename
_worktree_basename:                     ; @worktree_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, x1
	mov	x20, x0
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	w22, w0, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x21, x8, #1
	add	x8, x20, x8
	ldursb	w0, [x8, #-1]
	bl	_is_dir_sep
	sub	w22, w22, #1
	mov	x8, x21
	cbnz	x0, LBB0_1
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	add	x8, x20, w22, sxtw
	sub	x21, x8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x21, x20
	b.ls	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrsb	w0, [x21], #-1
	bl	_is_dir_sep
	cbz	x0, LBB0_5
; %bb.7:
	add	x21, x21, #2
LBB0_8:
	str	w22, [x19]
	mov	x0, x21
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_worktree_basename
.subsections_via_symbols
