	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_dirname                     ## -- Begin function br_dirname
	.p2align	4, 0x90
_br_dirname:                            ## @br_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	cmpq	%rbx, %rax
	jbe	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$47, (%rax)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	decq	%rax
	cmpq	%rbx, %rax
	ja	LBB0_6
## %bb.8:
	movq	%rbx, %rax
LBB0_9:
	subl	%ebx, %eax
	incl	%eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_br_strndup
	cmpb	$0, (%rax)
	jne	LBB0_2
## %bb.10:
	movq	%rax, %rdi
	callq	_free
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_strdup                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_dirname                     ; -- Begin function br_dirname
	.p2align	2
_br_dirname:                            ; @br_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_7
; %bb.1:
	mov	x19, x0
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_8
; %bb.2:
	cmp	x0, x19
	b.ls	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x0, #1
	cmp	x0, x19
	b.hi	LBB0_3
; %bb.5:
	mov	x0, x19
LBB0_6:
	sub	w8, w0, w19
	add	w1, w8, #1
	mov	x0, x19
	bl	_br_strndup
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
	bl	_free
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_strdup
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

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

.subsections_via_symbols
