	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_frame
_decode_frame:                          ## @decode_frame
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	8(%rcx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	(%rcx), %edx
	movq	8(%rdi), %r13
	movl	4(%r13), %r14d
	movl	(%r13), %eax
	imull	%r14d, %eax
	movq	%rsi, -144(%rbp)
	leal	7(%rax), %ecx
	addl	$14, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	cmpl	%eax, %edx
	jge	LBB0_2
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_30:
	movl	%esi, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	leaq	16(%r13), %rdi
	leaq	56(%r13), %rsi
	movq	%rdx, %rbx
	callq	_av_fast_padded_malloc
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.3:
	leal	3(%rbx), %edx
	testl	%ebx, %ebx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	cmovnsl	%ebx, %edx
	sarl	$2, %edx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	*24(%r13)
	leaq	-144(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_ff_thread_get_buffer
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%r14d, %ebx
	cmpq	$0, 48(%r13)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	$0, %esi
	je	LBB0_7
## %bb.6:
	movq	16(%r13), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_read_huffman_tables
	movl	%eax, %esi
	testl	%eax, %eax
	js	LBB0_30
LBB0_7:
	movl	%r14d, %eax
	subl	%esi, %eax
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$3, %edx
	cmpl	%edx, %eax
	jae	LBB0_1
## %bb.8:
	movq	$0, 40(%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_CODEC_ID_HYMT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	$1, %eax
	cmpq	(%rcx), %rdi
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.10:
	cmpl	$33, %r14d
	jl	LBB0_9
## %bb.11:
	movq	8(%r15), %rax
	leaq	(%rax,%r14,4), %rdi
	addq	$-64, %rdi
	callq	_AV_RL32
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movl	%ebx, %r15d
	movl	%ebx, %r12d
	movl	$1, %eax
	jmp	LBB0_19
LBB0_31:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movl	%eax, %esi
	jmp	LBB0_30
LBB0_9:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r15d
	movl	%ebx, %r12d
LBB0_19:
	movl	%edx, %edx
	movl	%eax, %ecx
	subl	%r12d, %r15d
	shlq	$2, %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$0, %r8d
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
	cmpl	$1, -136(%rbp)                  ## 4-byte Folded Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	je	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rdi
	addq	-88(%rbp), %rdi                 ## 8-byte Folded Reload
	movl	%r13d, %ebx
	andl	$-8, %ebx
	shlq	$2, %rbx
	addq	%rbx, %rdi
	callq	_AV_RL32
	movq	%rax, %r12
	movq	8(%r14), %rax
	addq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	leaq	(%rbx,%rax), %rdi
	addq	$16, %rdi
	callq	_AV_RL32
	testb	$3, %r12b
	jne	LBB0_1
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	testl	%r12d, %r12d
	js	LBB0_1
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%rax, %r14
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	leal	(%r14,%r12), %eax
	cmpl	-80(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_1
## %bb.26:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rdi
	movslq	%r12d, %rax
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rsi
	leal	3(%r14), %edx
	testl	%r14d, %r14d
	cmovnsl	%r14d, %edx
	sarl	$2, %edx
	callq	*24(%rcx)
	movl	%r15d, %r8d
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-128(%rbp), %r12                ## 8-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movq	-96(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_slice
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_emms_c
	testl	%ebx, %ebx
	js	LBB0_28
## %bb.20:                              ##   in Loop: Header=BB0_21 Depth=1
	addq	$8, %r13
	subl	%r12d, %r15d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	decq	%rcx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_21
LBB0_29:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	callq	_get_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	31(%rax), %ecx
	addl	$62, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$5, %eax
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	leal	(%rsi,%rax,4), %esi
	jmp	LBB0_30
LBB0_28:
	movl	%ebx, %esi
	jmp	LBB0_30
LBB0_13:
	movq	8(%r15), %rax
	leaq	(%rax,%r14,4), %rdi
	addq	$-16, %rdi
	callq	_AV_RL32
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	leaq	(%rax,%r14,4), %rdi
	addq	$-32, %rdi
	callq	_AV_RL32
	movq	%rax, %r12
	movq	8(%r15), %rax
	leaq	(%rax,%r14,4), %rdi
	addq	$-48, %rdi
	callq	_AV_RL32
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movslq	%eax, %rsi
	movl	%edx, %ecx
	leaq	(%rcx,%rsi,8), %rsi
	leal	-16(%r14), %ecx
	cmpq	%rcx, %rsi
	jg	LBB0_1
## %bb.14:
	cmpq	$0, 32(%r13)
	jne	LBB0_1
## %bb.15:
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.16:
	movl	%eax, %ecx
	imull	%r12d, %ecx
	cmpl	%ebx, %ecx
	jg	LBB0_1
## %bb.17:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_29
## %bb.18:
	movl	%ebx, %r15d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AV_CODEC_ID_HYMT,8,3           ## @AV_CODEC_ID_HYMT
	.no_dead_strip	_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_frame
_decode_frame:                          ; @decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	ldr	x21, [x3, #8]
	ldr	w25, [x3]
	ldr	x22, [x0, #8]
	ldp	w8, w19, [x22]
	str	x1, [sp, #72]
	mul	w8, w19, w8
	add	w9, w8, #7
	add	w8, w8, #14
	cmp	w9, #0
	csel	w8, w8, w9, lt
	cmp	w25, w8, asr #3
	b.ge	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
LBB0_2:
	mov	x0, x26
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_3:
	mov	x20, x3
	mov	x24, x2
	mov	x27, x1
	mov	x23, x0
	add	x0, x22, #16
	add	x1, x22, #56
	mov	x2, x25
	bl	_av_fast_padded_malloc
	ldr	x0, [x22, #16]
	cbz	x0, LBB0_7
; %bb.4:
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	ldr	x8, [x22, #24]
	add	w9, w25, #3
	cmp	w25, #0
	csel	w9, w9, w25, lt
	asr	w2, w9, #2
	mov	x1, x21
	blr	x8
	add	x1, sp, #72
	mov	x0, x23
	mov	w2, #0
	bl	_ff_thread_get_buffer
	tbnz	w0, #31, LBB0_8
; %bb.5:
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x1, [x22, #16]
	mov	x0, x22
	mov	x2, x25
	bl	_read_huffman_tables
	mov	x26, x0
	tbz	w0, #31, LBB0_10
	b	LBB0_2
LBB0_7:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_AVERROR
LBB0_8:
	mov	x26, x0
	b	LBB0_2
LBB0_9:
	mov	w26, #0
LBB0_10:
Lloh6:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
	sub	w9, w25, w26
Lloh8:
	ldr	w8, [x8]
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
	cmp	w9, w8, asr #3
	b.hs	LBB0_1
; %bb.11:
	mov	x28, #0
	str	xzr, [x22, #40]
	ldr	x8, [x23]
Lloh9:
	adrp	x9, _AV_CODEC_ID_HYMT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_CODEC_ID_HYMT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	mov	w0, #1
	cmp	x8, x9
	str	x21, [sp, #24]                  ; 8-byte Folded Spill
	str	x23, [sp, #56]                  ; 8-byte Folded Spill
	b.ne	LBB0_15
; %bb.12:
	cmp	w25, #33
	b.lt	LBB0_15
; %bb.13:
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	ldr	x8, [x20, #8]
	add	x8, x8, x25, lsl #2
	sub	x0, x8, #64
	bl	_AV_RL32
	cbz	x0, LBB0_28
; %bb.14:
	str	x27, [sp, #48]                  ; 8-byte Folded Spill
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	mov	x28, #0
	mov	w0, #1
	b	LBB0_16
LBB0_15:
	str	x27, [sp, #48]                  ; 8-byte Folded Spill
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
LBB0_16:
	mov	x23, x19
LBB0_17:
	mov	x24, #0
	and	x8, x28, #0xffffffff
	mov	w27, w0
	sub	w21, w19, w23
	lsl	x8, x8, #2
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	str	x27, [sp, #64]                  ; 8-byte Folded Spill
	str	w26, [sp, #20]                  ; 4-byte Folded Spill
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w4, #0
	mov	x28, x25
	b	LBB0_24
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x20, x25
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldr	x8, [x25, #8]
	lsl	x9, x24, #2
	and	x28, x9, #0x3ffffffe0
	add	x8, x8, x26
	add	x0, x8, x28
	bl	_AV_RL32
	mov	x19, x0
	ldr	x8, [x25, #8]
	mov	x25, x20
	add	x8, x8, x26
	add	x8, x8, x28
	add	x0, x8, #16
	bl	_AV_RL32
	tst	w19, #0x3
	b.ne	LBB0_1
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	tbnz	w19, #31, LBB0_1
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x28, x0
	add	w8, w28, w19
	cmp	w28, #1
	ccmp	w8, w25, #0, ge
	b.gt	LBB0_1
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	ldp	x0, x8, [x22, #16]
	lsl	x9, x19, #32
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	add	x1, x10, x9, asr #30
	add	w9, w28, #3
	cmp	w28, #0
	csel	w9, w9, w28, lt
	asr	w2, w9, #2
	blr	x8
	mov	x4, x21
	ldr	w26, [sp, #20]                  ; 4-byte Folded Reload
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=1
	ldp	x1, x0, [sp, #48]               ; 16-byte Folded Reload
	mov	x2, x23
	mov	x3, x28
	mov	x5, x26
	bl	_decode_slice
	mov	x19, x0
	bl	_emms_c
	tbnz	w19, #31, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x24, x24, #8
	sub	w21, w21, w23
	subs	x27, x27, #1
	b.ne	LBB0_18
LBB0_26:
	mov	w8, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	add	x0, x22, #8
	bl	_get_bits_count
	add	w8, w0, #31
	add	w9, w0, #62
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #5
	add	w26, w26, w8, lsl #2
	b	LBB0_2
LBB0_27:
	mov	x26, x19
	b	LBB0_2
LBB0_28:
	ldr	x8, [x20, #8]
	lsl	x21, x25, #2
	add	x8, x8, x21
	sub	x0, x8, #16
	bl	_AV_RL32
	mov	x28, x0
	ldr	x8, [x20, #8]
	add	x8, x8, x21
	sub	x0, x8, #32
	bl	_AV_RL32
	mov	x23, x0
	ldr	x8, [x20, #8]
	add	x8, x8, x21
	sub	x0, x8, #48
	bl	_AV_RL32
	sbfiz	x8, x0, #3, #32
	add	x8, x8, w28, uxtw
	sub	w9, w25, #16
	cmp	x8, x9
	b.gt	LBB0_1
; %bb.29:
	ldr	x8, [x22, #32]
	cbnz	x8, LBB0_1
; %bb.30:
	cmp	w23, #1
	b.lt	LBB0_1
; %bb.31:
	mul	w8, w0, w23
	cmp	w8, w19
	b.gt	LBB0_1
; %bb.32:
	str	x27, [sp, #48]                  ; 8-byte Folded Spill
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	cmp	w0, #1
	b.ge	LBB0_17
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AV_CODEC_ID_HYMT,8,3           ; @AV_CODEC_ID_HYMT
	.no_dead_strip	_decode_frame
.subsections_via_symbols
