	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iter_get_next_root             ## -- Begin function iter_get_next_root
	.p2align	4, 0x90
_iter_get_next_root:                    ## @iter_get_next_root
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdx), %rax
	movq	%rax, -40(%rbp)
	movq	%rax, -32(%rbp)
	leaq	-40(%rbp), %rsi
	callq	_hints_next_root
	movl	%eax, %ebx
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_forwards_next_root
	xorl	%ecx, %ecx
	movl	%ebx, %edx
	orl	%eax, %edx
	je	LBB0_6
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	movq	-40(%rbp), %rcx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	-32(%rbp), %rax
	cmpq	%rax, %rcx
	cmovgeq	%rax, %rcx
	jmp	LBB0_5
LBB0_2:
	movq	-32(%rbp), %rcx
LBB0_5:
	movq	%rcx, (%r14)
	movl	$1, %ecx
LBB0_6:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iter_get_next_root             ; -- Begin function iter_get_next_root
	.p2align	2
_iter_get_next_root:                    ; @iter_get_next_root
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x21, x1
	ldr	x8, [x2]
	stp	x8, x8, [sp]
	add	x1, sp, #8
	bl	_hints_next_root
	mov	x20, x0
	mov	x1, sp
	mov	x0, x21
	bl	_forwards_next_root
	orr	w8, w20, w0
	cbz	w8, LBB0_4
; %bb.1:
	cbz	w20, LBB0_5
; %bb.2:
	ldr	x8, [sp, #8]
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x9, [sp]
	cmp	x8, x9
	csel	x8, x8, x9, lt
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	ldr	x8, [sp]
LBB0_6:
	str	x8, [x19]
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
