	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ring_dir_idx
_ring_dir_idx:                          ## @ring_dir_idx
	.cfi_startproc
## %bb.0:
	xorl	%eax, %eax
	cmpl	%edi, %esi
	je	LBB0_5
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	leaq	-24(%rbp), %rcx
	leaq	-20(%rbp), %r8
	callq	_get_pathlen
	movl	-24(%rbp), %eax
	movl	-20(%rbp), %ecx
	cmpl	%ebx, %r14d
	leaq	16(%rsp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jbe	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	cmpl	%ecx, %eax
	setbe	%dl
	jmp	LBB0_4
LBB0_3:
	xorl	%edx, %edx
	cmpl	%ecx, %eax
	seta	%dl
LBB0_4:
	leal	(%rdx,%rdx), %eax
	decl	%eax
LBB0_5:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ring_dir_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ring_dir_idx
_ring_dir_idx:                          ; @ring_dir_idx
	.cfi_startproc
; %bb.0:
	cmp	w1, w0
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	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
	mov	x19, x1
	mov	x20, x0
	add	x3, sp, #12
	add	x4, sp, #8
	bl	_get_pathlen
	ldp	w9, w8, [sp, #8]
	cmp	w8, w9
	mov	w8, #1
	cneg	w8, w8, ls
	mov	w9, #-1
	cneg	w9, w9, ls
	cmp	w19, w20
	csel	w0, w8, w9, ls
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ring_dir_idx
.subsections_via_symbols
