	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tomoyo_path_depth
_tomoyo_path_depth:                     ## @tomoyo_path_depth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	movl	%eax, %eax
	leaq	(%r14,%rax), %rcx
	decq	%rcx
	movb	-1(%r14,%rax), %dl
	xorl	%eax, %eax
	cmpb	$47, %dl
	setne	%al
	cmpq	%r14, %rcx
	jb	LBB0_3
## %bb.4:
	xorl	%esi, %esi
	cmpb	$47, %dl
	setne	%sil
	orl	$2, %esi
	cmpb	$47, %dl
	cmovel	%esi, %eax
	decq	%rcx
	cmpq	%r14, %rcx
	jae	LBB0_6
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$47, (%rcx)
	leaq	-1(%rcx), %rdx
	leal	2(%rax), %ebx
	cmovnel	%eax, %ebx
	movl	%ebx, %eax
	movq	%rdx, %rcx
	cmpq	%r14, %rdx
	jae	LBB0_6
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tomoyo_path_depth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tomoyo_path_depth
_tomoyo_path_depth:                     ; @tomoyo_path_depth
	.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_6
; %bb.1:
	mov	x19, x0
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	add	x8, x19, w0, uxtw
	ldrb	w9, [x8, #-1]!
	cmp	w9, #47
	cset	w0, ne
	cmp	x8, x19
	b.lo	LBB0_6
; %bb.3:
	sub	x8, x8, #1
	mov	w10, #2
	cmp	w9, #47
	cinc	w9, w10, ne
	csel	w0, w9, w0, eq
	cmp	x8, x19
	b.lo	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8], #-1
	add	w10, w0, #2
	cmp	w9, #47
	csel	w0, w10, w0, eq
	cmp	x8, x19
	b.hs	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tomoyo_path_depth
.subsections_via_symbols
