	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_tree_insert                 ## -- Begin function av_tree_insert
	.p2align	4, 0x90
_av_tree_insert:                        ## @av_tree_insert
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movq	%rdx, %r13
	movq	%rcx, %r12
	movq	(%r14), %rdi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	callq	*%rdx
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movl	%eax, %r15d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rcx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_3:
	shrl	$31, %r15d
	leaq	(,%r15,8), %rdi
	addq	16(%r14), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%rcx, %rbx
	callq	_av_tree_insert
	testq	%rax, %rax
	je	LBB0_10
LBB0_20:
	movq	%rax, %rsi
	jmp	LBB0_21
LBB0_5:
	movq	(%rcx), %rax
	movq	%rax, (%rbx)
	movq	$0, (%rcx)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.6:
	movq	%rsi, (%rax)
LBB0_7:
	xorl	%esi, %esi
	jmp	LBB0_21
LBB0_8:
	cmpq	$0, (%r12)
	je	LBB0_14
## %bb.9:
	movq	(%r14), %rsi
	jmp	LBB0_21
LBB0_10:
	xorl	%ecx, %ecx
	cmpq	$0, (%rbx)
	setne	%cl
	xorl	%ecx, %r15d
	movq	16(%r14), %rcx
	movl	8(%r14), %edx
	leal	(%rdx,%r15,2), %edx
	decl	%edx
	movl	%edx, 8(%r14)
	testl	%edx, %edx
	movq	%rbx, %r8
	je	LBB0_17
## %bb.11:
	movl	%edx, %esi
	andl	$1, %esi
	jne	LBB0_17
## %bb.12:
	movq	(%rcx,%r15,8), %rsi
	movl	8(%rsi), %edi
	addl	%edi, %edi
	addl	%edx, %edi
	jne	LBB0_18
## %bb.13:
	movq	16(%rsi), %rdx
	movl	%r15d, %esi
	xorl	$1, %esi
	movq	(%rdx,%rsi,8), %rdx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rdx, (%rbx)
	movq	16(%rdx), %rdx
	movq	(%rdx,%r15,8), %rdx
	movq	(%rcx,%r15,8), %rdi
	movq	16(%rdi), %rdi
	movq	%rdx, (%rdi,%rsi,8)
	movq	(%rcx,%r15,8), %rdx
	movq	(%rbx), %rdi
	movq	16(%rdi), %rdi
	movq	%rdx, (%rdi,%r15,8)
	movq	(%rbx), %rdx
	movq	16(%rdx), %rdx
	movq	(%rdx,%rsi,8), %rdx
	movq	%rdx, (%rcx,%r15,8)
	movq	(%rbx), %rcx
	movq	16(%rcx), %rcx
	movq	%r14, (%rcx,%rsi,8)
	movq	(%rbx), %rcx
	xorl	%edx, %edx
	cmpl	$0, 8(%rcx)
	setg	%dl
	negl	%edx
	movq	16(%rcx), %rsi
	movq	(%rsi), %rdi
	movl	%edx, 8(%rdi)
	movl	8(%rcx), %edx
	shrl	$31, %edx
	movq	8(%rsi), %rsi
	movl	%edx, 8(%rsi)
	movl	$0, 8(%rcx)
	cmpq	$0, (%r8)
	movq	%r12, %rsi
	jne	LBB0_20
	jmp	LBB0_21
LBB0_14:
	movq	16(%r14), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_16
## %bb.15:
	cmpq	$0, 8(%rax)
	je	LBB0_23
LBB0_16:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	sete	%bl
	movl	%ebx, %r15d
	negl	%r15d
	movq	(%rax,%rbx,8), %rdi
	leaq	-64(%rbp), %rcx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_av_tree_find
	movq	%r12, %rcx
	movq	-64(%rbp,%rbx,8), %r12
	movq	%r12, (%r14)
	jmp	LBB0_3
LBB0_17:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	8(%rcx), %ecx
	jmp	LBB0_19
LBB0_18:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rsi, (%rbx)
	movq	(%rcx,%r15,8), %rsi
	movq	16(%rsi), %rsi
	movl	%r15d, %edi
	xorl	$1, %edi
	movq	(%rsi,%rdi,8), %rsi
	movq	%rsi, (%rcx,%r15,8)
	movq	(%rbx), %rcx
	movq	16(%rcx), %rcx
	movq	%r14, (%rcx,%rdi,8)
	movq	(%rbx), %rsi
	sarl	%edx
	xorl	%ecx, %ecx
	cmpl	$0, 8(%rsi)
	cmovel	%edx, %ecx
	movl	%ecx, 8(%r14)
	negl	%ecx
	movl	%ecx, 8(%rsi)
LBB0_19:
	testl	%ecx, %ecx
	sete	%cl
	cmpq	$0, (%r8)
	setne	%dl
	xorb	%cl, %dl
	movq	%r12, %rsi
	je	LBB0_20
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.22:
	movq	%rsi, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	%r12, %rdx
	movq	%r14, (%r12)
	movq	$0, (%rbx)
	jmp	LBB0_7
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_tree_insert                 ; -- Begin function av_tree_insert
	.p2align	2
_av_tree_insert:                        ; @av_tree_insert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x24, [x0]
	cbz	x24, LBB0_5
; %bb.1:
	mov	x22, x2
	ldr	x0, [x24]
	mov	x1, x19
	blr	x2
	cbz	w0, LBB0_7
; %bb.2:
	mov	x23, x0
LBB0_3:
	ldr	x8, [x24, #16]
	lsr	w23, w23, #31
	add	x0, x8, w23, uxtw #3
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	bl	_av_tree_insert
	cbz	x0, LBB0_9
LBB0_4:
	mov	x19, x0
	b	LBB0_18
LBB0_5:
	ldr	x8, [x20]
	str	x8, [x21]
	str	xzr, [x20]
	ldr	x8, [x21]
	cbz	x8, LBB0_18
; %bb.6:
	str	x19, [x8]
	mov	x19, #0
	b	LBB0_18
LBB0_7:
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x19, [x24]
	b	LBB0_18
LBB0_9:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w8, ne
	eor	w9, w23, w8
	ldr	x8, [x24, #16]
	ldr	w10, [x24, #8]
	add	w10, w10, w9, lsl #1
	sub	w10, w10, #1
	str	w10, [x24, #8]
	and	w11, w10, #0x1
	cmp	w10, #0
	ccmp	w11, #0, #0, ne
	b.eq	LBB0_14
; %bb.10:
	ldr	x8, [x21]
	ldr	w8, [x8, #8]
	b	LBB0_17
LBB0_11:
	ldr	x8, [x24, #16]
	ldr	x9, [x8]
	cbnz	x9, LBB0_13
; %bb.12:
	ldr	x10, [x8, #8]
	cbz	x10, LBB0_20
LBB0_13:
	cmp	x9, #0
	cset	w9, eq
	csetm	w23, eq
	lsl	x25, x9, #3
	ldr	x0, [x8, x25]
	add	x26, sp, #8
	add	x3, sp, #8
	mov	x1, x19
	mov	x2, x22
	bl	_av_tree_find
	ldr	x19, [x26, x25]
	str	x19, [x24]
	b	LBB0_3
LBB0_14:
	ldr	x11, [x8, x9, lsl #3]
	ldr	w12, [x11, #8]
	cmn	w10, w12, lsl #1
	b.ne	LBB0_16
; %bb.15:
	ldr	x10, [x11, #16]
	eor	w11, w9, #0x1
	lsl	x11, x11, #3
	ldr	x10, [x10, x11]
	str	x10, [x21]
	ldr	x10, [x10, #16]
	lsl	x9, x9, #3
	ldr	x10, [x10, x9]
	ldr	x12, [x8, x9]
	ldr	x12, [x12, #16]
	str	x10, [x12, x11]
	ldr	x10, [x8, x9]
	ldr	x12, [x21]
	ldr	x12, [x12, #16]
	str	x10, [x12, x9]
	ldr	x10, [x21]
	ldr	x10, [x10, #16]
	ldr	x10, [x10, x11]
	str	x10, [x8, x9]
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
	str	x24, [x8, x11]
	ldr	x8, [x21]
	ldr	w9, [x8, #8]
	cmp	w9, #0
	csetm	w9, gt
	ldr	x10, [x8, #16]
	ldr	x11, [x10]
	str	w9, [x11, #8]
	ldr	w9, [x8, #8]
	lsr	w9, w9, #31
	ldr	x10, [x10, #8]
	str	w9, [x10, #8]
	str	wzr, [x8, #8]
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
	b	LBB0_18
LBB0_16:
	str	x11, [x21]
	lsl	x11, x9, #3
	ldr	x12, [x8, x11]
	ldr	x12, [x12, #16]
	eor	w9, w9, #0x1
	lsl	x9, x9, #3
	ldr	x12, [x12, x9]
	str	x12, [x8, x11]
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
	str	x24, [x8, x9]
	ldr	x9, [x21]
	ldr	w8, [x9, #8]
	asr	w10, w10, #1
	cmp	w8, #0
	csel	w8, w10, wzr, eq
	str	w8, [x24, #8]
	neg	w8, w8
	str	w8, [x9, #8]
LBB0_17:
	cmp	w8, #0
	cset	w8, eq
	ldr	x9, [x20]
	cmp	x9, #0
	cset	w9, ne
	eor	w8, w8, w9
	tbz	w8, #0, LBB0_4
LBB0_18:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.19:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
	mov	x19, #0
	str	x24, [x20]
	str	xzr, [x21]
	b	LBB0_18
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
