	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function guess_dir_name
_guess_dir_name:                        ## @guess_dir_name
	.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
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_strlen
	movslq	%eax, %r12
	addq	%r14, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	leaq	3(%rax), %rbx
	testq	%rax, %rax
	cmoveq	%r14, %rbx
	cmpq	%r12, %rbx
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	jae	LBB0_1
## %bb.2:
	movq	%rbx, %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$64, (%rbx)
	leaq	1(%rbx), %rax
	cmoveq	%rax, %r13
	movq	%rax, %rbx
	cmpq	%r12, %rax
	jb	LBB0_3
	jmp	LBB0_5
LBB0_1:
	movq	%rbx, %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	decq	%r12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %r13
	jae	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movsbl	-1(%r12), %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movsbl	-1(%r12), %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_8
LBB0_9:
	movq	%r12, %rbx
	subq	%r13, %rbx
	cmpq	$6, %rbx
	jl	LBB0_15
## %bb.10:
	movsbl	-5(%r12), %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	leaq	-4(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	leaq	-6(%r12), %r14
	subq	%r13, %r12
	addq	$-5, %r12
	movq	%r12, %rcx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	leaq	1(%r14), %r12
	cmpq	%r12, %r13
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movsbl	(%r14), %edi
	callq	_is_dir_sep
	decq	%r14
	leaq	-1(%rbx), %rcx
	testq	%rax, %rax
	jne	LBB0_13
LBB0_15:
	movq	%r13, %rdi
	movl	$47, %esi
	movl	%ebx, %edx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_16
LBB0_23:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	leaq	(%r12,%rax), %r14
	cmpq	%r14, %r13
	jae	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movsbl	-1(%r12,%rbx), %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	leaq	-1(%rbx), %rax
	cmpb	$58, -1(%r12,%rbx)
	jne	LBB0_24
LBB0_27:
	negq	%rbx
	movq	%rbx, -56(%rbp)
	testl	%r15d, %r15d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_strip_suffix_mem
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.28:
	cmpq	$1, %rax
	jne	LBB0_31
## %bb.29:
	cmpb	$47, (%r14)
	jne	LBB0_31
LBB0_30:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_31:
	movq	-56(%rbp), %rsi
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_33
## %bb.32:
	leaq	L_.str.4(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rdx
	callq	_xstrfmt
	jmp	LBB0_34
LBB0_16:
	movq	%r13, %rdi
	movl	$58, %esi
	movl	%ebx, %edx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	leaq	-1(%r12), %rbx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%rbx), %rax
	cmpq	%rax, %r13
	jae	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movsbl	(%rbx), %edi
	callq	_isdigit
	movzbl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	decq	%rbx
	cmpb	$58, %cl
	jne	LBB0_18
## %bb.22:
	incq	%rbx
	movq	%rbx, %r12
	jmp	LBB0_23
LBB0_33:
	movq	%r14, %rdi
	callq	_xstrndup
LBB0_34:
	movb	(%rax), %cl
	testb	%cl, %cl
	je	LBB0_45
## %bb.35:
	movq	%rax, %r15
	leaq	1(%rax), %rbx
	movl	$1, %r13d
	movl	$32, %r12d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_36 Depth=1
	movl	$1, %r13d
LBB0_41:                                ##   in Loop: Header=BB0_36 Depth=1
	movzbl	(%rbx), %ecx
	incq	%rbx
	testb	%cl, %cl
	je	LBB0_42
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%cl, %r14d
	cmpb	$33, %r14b
	cmovbl	%r12d, %r14d
	movsbl	%r14b, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_37
## %bb.39:                              ##   in Loop: Header=BB0_36 Depth=1
	movl	$1, %eax
	testl	%r13d, %r13d
	jne	LBB0_40
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_36 Depth=1
	xorl	%eax, %eax
LBB0_38:                                ##   in Loop: Header=BB0_36 Depth=1
	movb	%r14b, (%r15)
	incq	%r15
	movl	%eax, %r13d
	jmp	LBB0_41
LBB0_42:
	movb	$0, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %r15
	jbe	LBB0_45
## %bb.43:
	testl	%r13d, %r13d
	je	LBB0_45
## %bb.44:
	movb	$0, -1(%r15)
LBB0_45:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	cmpb	$58, %cl
	cmoveq	%rbx, %r12
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"://"

L_.str.1:                               ## @.str.1
	.asciz	".git"

L_.str.2:                               ## @.str.2
	.asciz	".bundle"

L_.str.3:                               ## @.str.3
	.asciz	"No directory name could be guessed.\nPlease specify a directory on the command line"

L_.str.4:                               ## @.str.4
	.asciz	"%.*s.git"

	.no_dead_strip	_guess_dir_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function guess_dir_name
_guess_dir_name:                        ; @guess_dir_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x23, x21, x8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strstr
	add	x8, x0, #3
	cmp	x0, #0
	csel	x21, x21, x8, eq
	cmp	x21, x23
	b.hs	LBB0_4
; %bb.1:
	sub	x22, x23, x21
	add	x24, x21, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldursb	w0, [x24, #-1]
	bl	_is_dir_sep
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldurb	w8, [x24, #-1]
	cmp	w8, #64
	csel	x21, x24, x21, eq
	add	x24, x24, #1
	subs	x22, x22, #1
	b.ne	LBB0_2
LBB0_4:
	cmp	x21, x23
	b.hs	LBB0_9
; %bb.5:
	mov	x22, x23
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x22
	cmp	x21, x22
	b.hs	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22, #-1]!
	bl	_is_dir_sep
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldursb	w0, [x23, #-1]
	bl	_isspace
	cbnz	x0, LBB0_6
LBB0_9:
	sub	x22, x23, x21
	cmp	x22, #6
	b.lt	LBB0_15
; %bb.10:
	ldursb	w0, [x23, #-5]
	bl	_is_dir_sep
	cbz	x0, LBB0_15
; %bb.11:
	sub	x0, x23, #4
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbnz	w0, LBB0_15
; %bb.12:
	sub	x24, x23, #6
	sub	x8, x22, #5
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	add	x23, x24, #1
	cmp	x21, x23
	b.hs	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrsb	w0, [x24], #-1
	bl	_is_dir_sep
	sub	x8, x22, #1
	cbnz	x0, LBB0_13
LBB0_15:
	mov	x0, x21
	mov	w1, #47
	mov	x2, x22
	bl	_memchr
	cbz	x0, LBB0_26
LBB0_16:
	mov	x8, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	add	x22, x23, x8
	cmp	x21, x22
	b.hs	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldursb	w0, [x22, #-1]
	bl	_is_dir_sep
	cbnz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldurb	w9, [x22, #-1]
	sub	x8, x24, #1
	cmp	w9, #58
	b.ne	LBB0_17
LBB0_20:
	neg	x8, x24
	str	x8, [sp, #8]
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
	add	x1, sp, #8
	mov	x0, x22
	bl	_strip_suffix_mem
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_23
; %bb.21:
	cmp	x8, #1
	b.ne	LBB0_24
; %bb.22:
	ldrb	w8, [x22]
	cmp	w8, #47
	b.ne	LBB0_24
LBB0_23:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_die
LBB0_24:
	ldr	x1, [sp, #8]
	cbz	w19, LBB0_32
; %bb.25:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x22
	bl	_xstrfmt
	b	LBB0_33
LBB0_26:
	mov	x0, x21
	mov	w1, #58
	mov	x2, x22
	bl	_memchr
	cbz	x0, LBB0_16
; %bb.27:
	sub	x22, x23, #1
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x22, #1
	cmp	x21, x8
	b.hs	LBB0_16
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldrsb	w0, [x22]
	bl	_isdigit
	ldrb	w8, [x22]
	cbz	x0, LBB0_45
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	sub	x22, x22, #1
	cmp	w8, #58
	b.ne	LBB0_28
; %bb.31:
	add	x23, x22, #1
	b	LBB0_16
LBB0_32:
	mov	x0, x22
	bl	_xstrndup
LBB0_33:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_44
; %bb.34:
	mov	w21, #1
	mov	w22, #32
	mov	w23, #1
	mov	x20, x19
	b	LBB0_37
LBB0_35:                                ;   in Loop: Header=BB0_37 Depth=1
	mov	w23, #1
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=1
	ldrb	w8, [x19, x21]
	add	x21, x21, #1
	cbz	w8, LBB0_41
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	and	w8, w8, #0xff
	cmp	w8, #32
	csel	w24, w8, w22, hi
	sxtb	w0, w24
	bl	_isspace
	cbz	x0, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	mov	w8, #1
	cbnz	w23, LBB0_35
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_37 Depth=1
	mov	w8, #0
LBB0_40:                                ;   in Loop: Header=BB0_37 Depth=1
	strb	w24, [x20], #1
	mov	x23, x8
	b	LBB0_36
LBB0_41:
	strb	wzr, [x20]
	cmp	x20, x19
	b.ls	LBB0_44
; %bb.42:
	cbz	w23, LBB0_44
; %bb.43:
	sturb	wzr, [x20, #-1]
LBB0_44:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_45:
	cmp	w8, #58
	csel	x23, x22, x23, eq
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"://"

l_.str.1:                               ; @.str.1
	.asciz	".git"

l_.str.2:                               ; @.str.2
	.asciz	".bundle"

l_.str.3:                               ; @.str.3
	.asciz	"No directory name could be guessed.\nPlease specify a directory on the command line"

l_.str.4:                               ; @.str.4
	.asciz	"%.*s.git"

	.no_dead_strip	_guess_dir_name
.subsections_via_symbols
