	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function role_index
_role_index:                            ## @role_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movslq	16(%rdx), %rcx
	cmpl	%ecx, %eax
	jg	LBB0_3
## %bb.2:
	cmpq	%rcx, 8(%rsi)
	jle	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	8(%rdx), %rcx
	movq	%rdi, -8(%rcx,%rax,8)
	movq	(%rdx), %rcx
	movq	%rsi, -8(%rcx,%rax,8)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_role_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function role_index
_role_index:                            ; @role_index
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1]
	cbz	w9, LBB0_3
; %bb.1:
	ldrsw	x8, [x2, #16]
	cmp	w9, w8
	b.gt	LBB0_3
; %bb.2:
	ldr	x10, [x1, #8]
	cmp	x10, x8
	b.le	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	ldr	x10, [x2, #8]
	sub	w9, w9, #1
	sbfiz	x9, x9, #3, #32
	str	x0, [x10, x9]
	ldr	x10, [x2]
	str	x1, [x10, x9]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_role_index
.subsections_via_symbols
