	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restore_tree
_restore_tree:                          ## @restore_tree
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r10d
	movl	%r8d, %r11d
	movq	24(%rbp), %r8
	movl	16(%rbp), %r12d
	movq	24(%r8), %rax
	movq	32(%r8), %rbx
	addq	40(%rbp), %rbx
	addq	32(%rbp), %rax
	cmpl	$0, 16(%r8)
	je	LBB0_1
## %bb.2:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	sarl	%r12d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	movl	%r10d, -52(%rbp)                ## 4-byte Spill
	movl	%r11d, -48(%rbp)                ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %eax
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	pushq	%rax
	pushq	%r12
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	_tile_do_block
	movl	-48(%rbp), %r11d                ## 4-byte Reload
	movl	-52(%rbp), %r10d                ## 4-byte Reload
	addq	$32, %rsp
	movl	%eax, %r15d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	addq	$8, %rbx
	cmpq	$32, %rbx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %r8d
	shll	$30, %r8d
	sarl	$31, %r8d
	andl	%r12d, %r8d
	movl	%r14d, %r9d
	andl	$1, %r9d
	negl	%r9d
	andl	%r12d, %r9d
	movq	24(%rbp), %r15
	movq	8(%r15), %rax
	movq	(%rax,%rbx), %rax
	addl	%r11d, %r8d
	addl	%r10d, %r9d
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	subq	$32, %rsp
	leaq	32(%rbp), %rcx
	movups	(%rcx), %xmm0
	movups	%xmm0, 16(%rsp)
	movq	%rax, 8(%rsp)
	movl	%r12d, (%rsp)
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_restore_tree
	addq	$32, %rsp
	movq	%r15, %rcx
	movl	%eax, %r15d
	movq	8(%rcx), %rdi
	addq	%rbx, %rdi
	callq	_av_freep
	movl	-48(%rbp), %r11d                ## 4-byte Reload
	movl	-52(%rbp), %r10d                ## 4-byte Reload
	jmp	LBB0_6
LBB0_7:
	movl	%r15d, %eax
	addq	$56, %rsp
	jmp	LBB0_8
LBB0_1:
	movl	(%r8), %r14d
	movl	%r11d, %r8d
	movl	%r10d, %r9d
	pushq	%r14
	pushq	%r12
	pushq	%rax
	pushq	%rbx
	callq	_tile_do_block
	addq	$88, %rsp
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_restore_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restore_tree
_restore_tree:                          ; @restore_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x7
	ldp	x11, x10, [x29, #16]
	ldp	x9, x8, [x7, #24]
	stp	x11, x10, [sp, #40]             ; 16-byte Folded Spill
	add	x10, x8, x10
	add	x7, x9, x11
	ldr	w8, [x23, #16]
	cbz	w8, LBB0_7
; %bb.1:
	stp	x10, x7, [sp, #24]              ; 16-byte Folded Spill
	mov	x27, #0
	mov	w19, #0
	asr	w28, w6, #1
	str	w5, [sp, #60]                   ; 4-byte Folded Spill
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x26, x1
	mov	x20, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	stp	w28, w8, [sp]
	mov	x0, x20
	mov	x1, x26
	mov	x2, x24
	mov	x3, x22
	ldp	x6, x7, [sp, #24]               ; 16-byte Folded Reload
	bl	_tile_do_block
	mov	x4, x21
	ldr	w5, [sp, #60]                   ; 4-byte Folded Reload
	mov	x25, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
	add	x27, x27, #8
	cmp	x27, #32
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w19, #30
	and	w8, w28, w8, asr #31
	sbfx	w9, w19, #0, #1
	and	w9, w9, w28
	ldr	x10, [x23, #8]
	ldr	x7, [x10, x27]
	add	w4, w8, w4
	add	w5, w9, w5
	cbz	x7, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp]
	mov	x0, x20
	mov	x1, x26
	mov	x2, x24
	mov	x3, x22
	mov	x6, x28
	bl	_restore_tree
	mov	x25, x0
	ldr	x8, [x23, #8]
	add	x0, x8, x27
	bl	_av_freep
	mov	x4, x21
	ldr	w5, [sp, #60]                   ; 4-byte Folded Reload
	b	LBB0_3
LBB0_6:
	mov	x0, x25
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_7:
	ldr	w8, [x23]
	stp	w6, w8, [x29, #16]
	mov	x6, x10
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_tile_do_block
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_restore_tree
.subsections_via_symbols
