	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tm2_read_tree
_tm2_read_tree:                         ## @tm2_read_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdi, %r12
	movl	(%rcx), %ecx
	cmpl	%edx, %ecx
	jge	LBB0_3
## %bb.1:
	movl	4(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%r12, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	addl	%r14d, %r14d
	incl	%ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_tm2_read_tree
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	orl	$1, %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_tm2_read_tree
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	%eax, %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FFMAX                          ## TAILCALL
LBB0_4:
	movq	8(%r13), %rax
	cmpq	16(%r13), %rax
	jae	LBB0_5
## %bb.10:
	testl	%ebx, %ebx
	movl	$1, %r15d
	cmovnel	%ebx, %r15d
	movl	40(%r13), %esi
	movq	%r12, %rdi
	callq	_get_bits_long
	movq	8(%r13), %rcx
	movq	48(%r13), %rdx
	movl	%eax, (%rdx,%rcx,4)
	movq	24(%r13), %rax
	movl	%r14d, (%rax,%rcx,4)
	movq	32(%r13), %rax
	movl	%r15d, (%rax,%rcx,4)
	incq	%rcx
	movq	%rcx, 8(%r13)
	jmp	LBB0_11
LBB0_5:
	movl	4(%r12), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_2
LBB0_8:
	movl	%eax, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tree exceeded its given depth (%i)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Too many literals\n"

	.no_dead_strip	_tm2_read_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tm2_read_tree
_tm2_read_tree:                         ; @tm2_read_tree
	.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	x21, x0
	ldr	w8, [x3]
	cmp	w8, w2
	b.ge	LBB0_4
; %bb.1:
	ldr	w0, [x21, #4]
Lloh0:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
LBB0_3:
	mov	x0, x20
	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
LBB0_4:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x0, x21
	bl	_get_bits1
	cbz	w0, LBB0_8
; %bb.5:
	lsl	w23, w22, #1
	add	w22, w20, #1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x19
	bl	_tm2_read_tree
	mov	x20, x0
	tbnz	w0, #31, LBB0_3
; %bb.6:
	orr	w1, w23, #0x1
	mov	x0, x21
	mov	x2, x22
	mov	x3, x19
	bl	_tm2_read_tree
	tbnz	w0, #31, LBB0_11
; %bb.7:
	mov	x1, x20
	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
	b	_FFMAX
LBB0_8:
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.hs	LBB0_10
; %bb.9:
	cmp	w20, #0
	csinc	w20, w20, wzr, ne
	ldr	w1, [x19, #40]
	mov	x0, x21
	bl	_get_bits_long
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #8]
	lsl	x10, x9, #2
	str	w0, [x8, x10]
	ldp	x8, x11, [x19, #24]
	str	w22, [x8, x10]
	str	w20, [x11, x10]
	add	x8, x9, #1
	str	x8, [x19, #8]
	b	LBB0_3
LBB0_10:
	ldr	w0, [x21, #4]
Lloh8:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_11:
	mov	x20, x0
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tree exceeded its given depth (%i)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Too many literals\n"

	.no_dead_strip	_tm2_read_tree
.subsections_via_symbols
