	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dirname                        ## -- Begin function dirname
	.p2align	4, 0x90
_dirname:                               ## @dirname
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	_dirname.dot(%rip), %r14
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.1:
	movq	%rdi, %r15
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movb	$47, %cl
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	movl	$92, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:
	movb	$92, %cl
LBB0_5:
	movzbl	%cl, %ebx
	movq	%r15, %rcx
	cmpq	%r15, %rax
	je	LBB0_13
## %bb.6:
	cmpb	$0, 1(%rax)
	je	LBB0_8
## %bb.7:
	movq	%rax, %rcx
	jmp	LBB0_13
LBB0_8:
	movl	%eax, %edx
	subl	%r15d, %edx
	incl	%edx
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %rcx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movsbl	-1(%rcx), %esi
	decq	%rcx
	decl	%edx
	cmpl	%ebx, %esi
	je	LBB0_9
## %bb.11:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	___memrchr
LBB0_12:
	movq	%rax, %rcx
	testq	%rax, %rax
	je	LBB0_19
LBB0_13:
	movq	%rcx, %rdx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	cmpq	%r15, %rdx
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	-1(%rax), %rdx
	movsbl	-1(%rax), %esi
	cmpl	%ebx, %esi
	je	LBB0_14
## %bb.17:
	incq	%rdx
	jmp	LBB0_18
LBB0_15:
	movq	%r15, %rdx
LBB0_18:
	leaq	1(%r15), %rsi
	leaq	1(%rcx), %rdi
	cmpq	%rsi, %rcx
	cmovneq	%rsi, %rdi
	cmpq	%r15, %rax
	cmovneq	%rdx, %rdi
	movb	$0, (%rdi)
	movq	%r15, %r14
LBB0_19:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_dirname.dot:                           ## @dirname.dot
	.asciz	"."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dirname                        ; -- Begin function dirname
	.p2align	2
_dirname:                               ; @dirname
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_15
; %bb.1:
	mov	x19, x0
	mov	w20, #47
	mov	w1, #47
	bl	_strrchr
	cbnz	x0, LBB0_3
; %bb.2:
	mov	w20, #92
	mov	x0, x19
	mov	w1, #92
	bl	_strrchr
	cbz	x0, LBB0_15
LBB0_3:
	mov	x8, x19
	cmp	x0, x19
	b.eq	LBB0_11
; %bb.4:
	ldrb	w8, [x0, #1]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x8, x0
	b	LBB0_11
LBB0_6:
	mov	x8, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x0, x8
	cmp	x9, x19
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldursb	w9, [x9, #-1]
	sub	x8, x8, #1
	cmp	w9, w20
	b.eq	LBB0_7
; %bb.9:
	sub	w9, w0, w19
	add	w8, w9, w8
	add	w2, w8, #1
	mov	x0, x19
	mov	x1, x20
	bl	___memrchr
LBB0_10:
	mov	x8, x0
	cbz	x0, LBB0_15
LBB0_11:
	mov	x10, x8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x9, x10
	cmp	x10, x19
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x10, x9
	ldrsb	w11, [x10, #-1]!
	cmp	w11, w20
	b.eq	LBB0_12
; %bb.14:
	add	x10, x10, #1
	b	LBB0_17
LBB0_15:
Lloh0:
	adrp	x19, _dirname.dot@PAGE
Lloh1:
	add	x19, x19, _dirname.dot@PAGEOFF
	b	LBB0_18
LBB0_16:
	mov	x10, x19
LBB0_17:
	add	x11, x19, #1
	add	x12, x8, #1
	cmp	x8, x11
	csinc	x8, x12, x19, eq
	cmp	x9, x19
	csel	x8, x8, x10, eq
	strb	wzr, [x8]
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_dirname.dot:                           ; @dirname.dot
	.asciz	"."

.subsections_via_symbols
