	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_worktree_by_suffix
_find_worktree_by_suffix:               ## @find_worktree_by_suffix
	.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	%rdi, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movl	%eax, %r15d
	movq	(%r12), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	addq	$8, %r12
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %ebx
	subl	%r15d, %ebx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%rbx), %eax
	movsbl	(%r13,%rax), %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ebx, %rax
	addq	%rax, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_fspathcmp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-8(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	incl	%r14d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r12
	cmpl	$2, %r14d
	jl	LBB0_3
LBB0_10:
	xorl	%eax, %eax
	cmpl	$1, %r14d
	cmoveq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_worktree_by_suffix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_worktree_by_suffix
_find_worktree_by_suffix:               ; @find_worktree_by_suffix
	.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	x21, x0
	mov	x0, x1
	bl	_strlen
	cbz	w0, LBB0_11
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.2:
	mov	x20, x0
	mov	x22, #0
	mov	w23, #0
	add	x24, x21, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x8]
	mov	x0, x21
	bl	_strlen
	subs	w25, w0, w20
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w8, w25, #1
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsb	w0, [x21, w8, uxtw]
	bl	_is_dir_sep
	cbz	x0, LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, x21, w25, sxtw
	mov	x0, x19
	bl	_fspathcmp
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x22, [x24, #-8]
	add	w23, w23, #1
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24], #8
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w23, #2
	b.lt	LBB0_3
LBB0_10:
	cmp	w23, #1
	csel	x0, x22, xzr, eq
	b	LBB0_12
LBB0_11:
	mov	x0, #0
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_worktree_by_suffix
.subsections_via_symbols
