	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rbt_left_right_iterator
_rbt_left_right_iterator:               ## @rbt_left_right_iterator
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.3:
	movq	16(%rcx), %rdx
	movq	_RBTNIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rdx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	movq	(%rdx), %rdx
	cmpq	%rsi, %rdx
	jne	LBB0_4
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rcx, (%rax)
	movq	%rax, %rcx
	je	LBB0_5
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:
	movq	$0, 8(%rdi)
	movl	$1, (%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	16(%rdi), %rax
	movq	(%rax), %rcx
	movq	_RBTNIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movq	(%rcx), %rcx
	cmpq	%rdx, %rcx
	jne	LBB0_2
LBB0_5:
	movq	%rax, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RBTNIL,8,3                     ## @RBTNIL
	.no_dead_strip	_rbt_left_right_iterator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rbt_left_right_iterator
_rbt_left_right_iterator:               ; @rbt_left_right_iterator
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_6
; %bb.1:
	ldr	x10, [x9, #16]
Lloh0:
	adrp	x8, _RBTNIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RBTNIL@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x8]
	cmp	x10, x11
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x10
	ldr	x10, [x10]
	cmp	x10, x11
	b.ne	LBB0_2
	b	LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x8]
	cmp	x10, x9
	mov	x9, x8
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x9, #8]
	cbnz	x8, LBB0_3
; %bb.5:
	str	xzr, [x0, #8]
	mov	w9, #1
	str	w9, [x0]
	mov	x0, x8
	ret
LBB0_6:
	ldr	x8, [x0, #16]
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _RBTNIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RBTNIL@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	ldr	x9, [x9]
	cmp	x9, x10
	b.ne	LBB0_7
LBB0_8:
	str	x8, [x0, #8]
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RBTNIL,8,3                     ; @RBTNIL
	.no_dead_strip	_rbt_left_right_iterator
.subsections_via_symbols
