	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gitbasename                    ## -- Begin function gitbasename
	.p2align	4, 0x90
_gitbasename:                           ## @gitbasename
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, -16(%rbp)
	leaq	L_.str(%rip), %rbx
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	leaq	-16(%rbp), %rdi
	callq	_skip_dos_drive_prefix
	movq	-16(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.2:
	movb	(%rcx), %al
	testb	%al, %al
	je	LBB0_9
## %bb.3:
	movq	%rcx, %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -16(%rbp)
	movb	1(%rax), %al
	testb	%al, %al
	je	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movsbl	%al, %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -16(%rbp)
	movsbl	1(%rax), %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-16(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-16(%rbp), %rax
	movb	$0, (%rax)
	movq	-16(%rbp), %rax
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	decq	%rax
	movq	%rax, -16(%rbp)
	cmpq	%rbx, %rax
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movsbl	(%rax), %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_8
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_gitbasename                    ; -- Begin function gitbasename
	.p2align	2
_gitbasename:                           ; @gitbasename
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	x0, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, sp, #8
	bl	_skip_dos_drive_prefix
	ldr	x19, [sp, #8]
	cbz	x19, LBB0_3
; %bb.2:
	ldrb	w8, [x19]
	cbnz	w8, LBB0_7
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	ldrb	w8, [x8, #1]
	mov	x19, x0
	cbz	w8, LBB0_4
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	sxtb	w0, w8
	bl	_is_dir_sep
	cbz	x0, LBB0_5
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	ldrsb	w0, [x8, #1]
	bl	_is_dir_sep
	cbnz	x0, LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #8]
	ldrb	w8, [x0]
	cbnz	w8, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	x8, x0, #1
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x8, [sp, #8]
	cmp	x8, x19
	b.eq	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldrsb	w0, [x8]
	bl	_is_dir_sep
	cbz	x0, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [sp, #8]
	strb	wzr, [x8]
	ldr	x8, [sp, #8]
	sub	x8, x8, #1
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

.subsections_via_symbols
