	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tag_tree_decode
_tag_tree_decode:                       ## @tag_tree_decode
	.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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.1:
	movl	%edx, %r15d
	movq	$-1, %rax
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	movabsq	$4294967296, %rdx               ## imm = 0x100000000
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 4(%rsi)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, -280(%rbp,%rax,8)
	incq	%rax
	movq	8(%rsi), %rsi
	addq	%rdx, %rcx
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.4:
	sarq	$29, %rcx
	movq	-288(%rbp,%rcx), %rsi
LBB0_5:
	movl	(%rsi), %ebx
	cmpl	%r15d, %ebx
	jge	LBB0_17
## %bb.6:
	movl	%eax, %ecx
	andl	$-2147483648, %ecx              ## imm = 0x80000000
	testq	%rcx, %rcx
	jne	LBB0_17
## %bb.7:
	movl	%eax, %r12d
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	%ebx, %eax
	movq	-288(%rbp,%r12,8), %r13
	movl	(%r13), %ebx
	cmpl	%ebx, %eax
	cmovgl	%eax, %ebx
	cmpl	%r15d, %ebx
	jge	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_get_bits
	testl	%eax, %eax
	jg	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=2
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=2
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_9
	jmp	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	4(%r13)
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, (%r13)
	cmpl	%r15d, %ebx
	jge	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	-1(%r12), %rax
	testq	%r12, %r12
	movq	%rax, %r12
	jg	LBB0_8
	jmp	LBB0_17
LBB0_19:
	movl	(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_14:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_16:
	movl	%r15d, (%r13)
	movl	%r15d, %ebx
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.18:
	movl	%ebx, %eax
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing node\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_tag_tree_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tag_tree_decode
_tag_tree_decode:                       ; @tag_tree_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #256]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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 w27, -72
	.cfi_offset w28, -80
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	x1, LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x8, #0
	mov	x9, #-4294967296
	add	x10, sp, #8
	mov	x11, #4294967296
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x1, #4]
	cbnz	w12, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x1, [x10, x8, lsl #3]
	ldr	x1, [x1, #8]
	add	x8, x8, #1
	add	x9, x9, x11
	cbnz	x1, LBB0_2
; %bb.4:
	asr	x9, x9, #29
	add	x10, sp, #8
	ldr	x1, [x10, x9]
LBB0_5:
	sub	x8, x8, #1
	ldr	w21, [x1]
	and	x9, x8, #0x80000000
	cmp	w21, w19
	ccmp	x9, #0, #0, lt
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x21
	b	LBB0_16
LBB0_7:
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_8:
	and	x22, x8, #0xffffffff
	add	x23, sp, #8
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x24, #4]
	add	w8, w8, #1
	str	w8, [x24, #4]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	str	w21, [x24]
	cmp	w21, w19
	ccmp	x22, #0, #4, lt
	sub	x22, x22, #1
	mov	x0, x21
	b.le	LBB0_16
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x24, [x23, x22, lsl #3]
	ldr	w8, [x24]
	cmp	w21, w8
	csel	w21, w21, w8, gt
	cmp	w21, w19
	b.ge	LBB0_10
LBB0_12:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	w1, #1
	bl	_get_bits
	cmp	w0, #1
	b.ge	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	cbnz	w0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	add	w21, w21, #1
	cmp	w19, w21
	b.ne	LBB0_12
; %bb.15:
	str	w19, [x24]
	mov	x0, x19
LBB0_16:
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #256]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing node\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_tag_tree_decode
.subsections_via_symbols
