	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_next_right
_ti_next_right:                         ## @ti_next_right
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	8(%rdi), %rcx
	leaq	-1(%rax), %rdx
	movq	-8(%rcx,%rax,8), %rsi
	movl	%edx, (%rdi)
	movq	(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	popq	%rbp
	jmp	_ti_dive_right                  ## TAILCALL
LBB0_4:
	testl	%edx, %edx
	je	LBB0_3
## %bb.5:
	movq	-16(%rcx,%rax,8), %rax
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ti_next_right
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_next_right
_ti_next_right:                         ; @ti_next_right
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x9, [x0, #8]
	sub	w10, w8, #1
	ldr	x11, [x9, w10, sxtw #3]
	str	w10, [x0]
	ldr	x1, [x11]
	cbz	x1, LBB0_3
; %bb.2:
	b	_ti_dive_right
LBB0_3:
	cbz	w10, LBB0_5
; %bb.4:
	sub	w8, w8, #2
	ldr	x0, [x9, w8, sxtw #3]
	ret
LBB0_5:
	mov	x0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ti_next_right
.subsections_via_symbols
