	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function testrightleft
_testrightleft:                         ## @testrightleft
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_create_int_rbtree
	movq	%rax, %rbx
	movq	_RightLeftWalk@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-48(%rbp), %r15
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_rbt_begin_iterate
	movq	%r15, %rdi
	callq	_rbt_iterate
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_rbt_populate
	movl	(%r14), %esi
	leaq	-48(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_rbt_begin_iterate
	movq	%r15, %rdi
	callq	_rbt_iterate
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %r14d
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %r15
	leaq	L_.str.1(%rip), %r12
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movq	%r15, %rdi
	callq	_rbt_iterate
	movq	%rax, %rbx
	movl	%r14d, %eax
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r14d
	cmpl	%eax, %r14d
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_elog
	movl	(%rbx), %r14d
	jmp	LBB0_6
LBB0_7:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
LBB0_9:
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_elog
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RightLeftWalk,4,2              ## @RightLeftWalk
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"right-left walk over empty tree produced an element"

L_.str.1:                               ## @.str.1
	.asciz	"right-left walk gives elements not in sorted order"

L_.str.2:                               ## @.str.2
	.asciz	"right-left walk did not reach end"

L_.str.3:                               ## @.str.3
	.asciz	"right-left walk missed some elements"

	.no_dead_strip	_testrightleft
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function testrightleft
_testrightleft:                         ; @testrightleft
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_create_int_rbtree
	mov	x20, x0
Lloh0:
	adrp	x21, _RightLeftWalk@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RightLeftWalk@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_rbt_begin_iterate
	add	x0, sp, #12
	bl	_rbt_iterate
Lloh2:
	adrp	x22, _ERROR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_rbt_populate
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_rbt_begin_iterate
	add	x0, sp, #12
	bl	_rbt_iterate
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	mov	w23, #0
Lloh6:
	adrp	x20, l_.str.1@PAGE
Lloh7:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x8, x19
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w23, #1
	add	x0, sp, #12
	bl	_rbt_iterate
	mov	x21, x0
	mov	x8, x24
	cbz	x0, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x21]
	cmp	w24, w8
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22]
	mov	x1, x20
	bl	_elog
	ldr	w24, [x21]
	b	LBB0_4
LBB0_7:
	mov	w23, #0
	mov	x24, x19
LBB0_8:
	cbz	w24, LBB0_10
; %bb.9:
	ldr	w0, [x22]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_10:
	cmp	w23, w19
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x22]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elog
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RightLeftWalk,4,2              ; @RightLeftWalk
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"right-left walk over empty tree produced an element"

l_.str.1:                               ; @.str.1
	.asciz	"right-left walk gives elements not in sorted order"

l_.str.2:                               ; @.str.2
	.asciz	"right-left walk did not reach end"

l_.str.3:                               ; @.str.3
	.asciz	"right-left walk missed some elements"

	.no_dead_strip	_testrightleft
.subsections_via_symbols
