	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_stree_root
_find_stree_root:                       ## @find_stree_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	%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
	movq	%rdi, %r15
	movl	(%rdi), %esi
	movl	%esi, %r14d
	shrl	$31, %r14d
	addl	%esi, %r14d
	sarl	%r14d
	cmpl	$-1, %esi
	jge	LBB0_1
LBB0_25:
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_find_plane_mid                 ## TAILCALL
LBB0_1:
	movq	16(%r15), %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_17 Depth 3
	movl	%r14d, %edi
	subl	%r12d, %edi
	callq	_canonicalize
	movl	4(%r15), %r8d
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	8(%r15), %rdx
	movslq	%eax, %rsi
	movl	$1, %ecx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	testl	%edx, %edx
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-8(%r13,%rbx,8), %rcx
	movq	(%rcx,%rdi,8), %rcx
	movq	(%rcx,%rsi,8), %rcx
	cmpq	%rdx, %rbx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=3
	incq	%rbx
	testl	%ecx, %ecx
	jne	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rdi
	cmpq	%r8, %rdi
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	testl	%ecx, %ecx
	jne	LBB0_4
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, %ecx
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_find_plane_mid
	testq	%rax, %rax
	jne	LBB0_26
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r12,%r14), %edi
	movl	(%r15), %esi
	callq	_canonicalize
	movl	4(%r15), %r8d
	testl	%r8d, %r8d
	jle	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	8(%r15), %rdx
	movslq	%eax, %rsi
	movl	$1, %ecx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_17 Depth 3
	testl	%edx, %edx
	jle	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-8(%r13,%rbx,8), %rcx
	movq	(%rcx,%rdi,8), %rcx
	movq	(%rcx,%rsi,8), %rcx
	cmpq	%rdx, %rbx
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=3
	incq	%rbx
	testl	%ecx, %ecx
	jne	LBB0_17
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	incq	%rdi
	cmpq	%r8, %rdi
	jae	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=2
	testl	%ecx, %ecx
	jne	LBB0_15
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, %ecx
	je	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_find_plane_mid
	testq	%rax, %rax
	jne	LBB0_26
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %r14d
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	movl	(%r15), %esi
	jmp	LBB0_2
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_stree_root
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_stree_root
_find_stree_root:                       ; @find_stree_root
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	w1, [x0]
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w20, w8, #1
	cmn	w1, #1
	b.ge	LBB0_2
LBB0_1:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_find_plane_mid
LBB0_2:
	mov	w21, #0
	ldr	x22, [x19, #16]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
                                        ;     Child Loop BB0_16 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
	sub	w0, w20, w21
	bl	_canonicalize
	mov	x1, x0
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, #0
	ldrsw	x10, [x19, #8]
	sxtw	x11, w1
	mov	w12, #1
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	cmp	w10, #1
	b.lt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x13, #0
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x12, [x22, x13, lsl #3]
	ldr	x12, [x12, x9, lsl #3]
	ldr	x12, [x12, x11, lsl #3]
	add	x13, x13, #1
	cmp	x13, x10
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	cbnz	w12, LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x9, x9, #1
	cmp	x9, x8
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	cbnz	w12, LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w12, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_find_plane_mid
	cbnz	x0, LBB0_26
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w21, LBB0_24
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w0, w21, w20
	ldr	w1, [x19]
	bl	_canonicalize
	mov	x1, x0
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, #0
	ldrsw	x10, [x19, #8]
	sxtw	x11, w1
	mov	w12, #1
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
	cmp	w10, #1
	b.lt	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x13, #0
LBB0_18:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_16 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x12, [x22, x13, lsl #3]
	ldr	x12, [x12, x9, lsl #3]
	ldr	x12, [x12, x11, lsl #3]
	add	x13, x13, #1
	cmp	x13, x10
	b.ge	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=3
	cbnz	w12, LBB0_18
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x9, x9, #1
	cmp	x9, x8
	b.hs	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=2
	cbnz	w12, LBB0_16
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w12, LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_find_plane_mid
	cbnz	x0, LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, w21
	b.eq	LBB0_1
; %bb.25:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	ldr	w1, [x19]
	b	LBB0_3
LBB0_26:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_stree_root
.subsections_via_symbols
