	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function testfind
_testfind:                              ## @testfind
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_create_int_rbtree
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%ebx, %esi
	movl	$2, %edx
	callq	_rbt_populate
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.1:
	leaq	-48(%rbp), %rbx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %r13d
	decl	%r14d
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, -48(%rbp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_rbt_find
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax
	cmpl	(%r12), %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
	jmp	LBB0_6
LBB0_7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_12
## %bb.8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$-1, %ebx
	leaq	-56(%rbp), %r14
	movq	_ERROR@GOTPCREL(%rip), %r13
	leaq	L_.str.2(%rip), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	addl	$2, %ebx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jg	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -56(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rbt_find
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_elog
	jmp	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inserted element was not found"

L_.str.1:                               ## @.str.1
	.asciz	"find operation in rbtree gave wrong result"

L_.str.2:                               ## @.str.2
	.asciz	"not-inserted element was found"

	.no_dead_strip	_testfind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function testfind
_testfind:                              ; @testfind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_create_int_rbtree
	mov	x19, x0
	mov	x1, x20
	mov	w2, #2
	bl	_rbt_populate
Lloh0:
	adrp	x24, _ERROR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ERROR@GOTPAGEOFF]
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w25, #0
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	mov	x26, x20
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w25, #2
	subs	w26, w26, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w25, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_rbt_find
	mov	x23, x0
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_elog
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	mov	x1, x22
	bl	_elog
	b	LBB0_2
LBB0_7:
	tbnz	w20, #31, LBB0_12
; %bb.8:
	lsl	w21, w20, #1
	mov	w22, #-1
Lloh6:
	adrp	x20, l_.str.2@PAGE
Lloh7:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w22, w22, #2
	cmp	w22, w21
	b.gt	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	w22, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_rbt_find
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x24]
	mov	x1, x20
	bl	_elog
	b	LBB0_9
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inserted element was not found"

l_.str.1:                               ; @.str.1
	.asciz	"find operation in rbtree gave wrong result"

l_.str.2:                               ; @.str.2
	.asciz	"not-inserted element was found"

	.no_dead_strip	_testfind
.subsections_via_symbols
