	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movslq	8(%rcx), %rbx
	movq	(%r15), %rax
	imulq	8(%r15), %rax
	leaq	(,%rbx,8), %rdi
	leaq	(%rax,%rax,2), %rsi
	leaq	(%rax,%rsi,4), %rax
	cmpq	%rax, %rdi
	jge	LBB0_2
## %bb.1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_35
LBB0_2:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %r12
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_35
## %bb.3:
	movl	%ebx, %ebx
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	$1, (%r13)
	leaq	32(%r15), %rdi
	leaq	48(%r15), %rsi
	movl	%ebx, %edx
	callq	_av_fast_padded_malloc
	movq	32(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_36
## %bb.4:
	movq	(%r14), %rax
	movq	_AV_CODEC_ID_ASV1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.8:
	leal	3(%rbx), %edx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edx
	sarl	$2, %edx
	movq	%rsi, %rdi
	movq	%r12, %rsi
	callq	*40(%r15)
	movq	32(%r15), %rsi
	jmp	LBB0_15
LBB0_36:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.6:
	movq	_ff_reverse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-1(%rbx), %rdx
	movl	%ebx, %r8d
	andl	$3, %r8d
	cmpq	$3, %rdx
	jae	LBB0_9
## %bb.7:
	movq	%rbx, %r9
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %r9
	movl	%ebx, %edi
	andl	$-4, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rdx,8), %rbx
	movl	(%rax,%rbx,4), %ebx
	movl	%ebx, (%rsi,%rdx,4)
	movq	8(%r12,%rdx,8), %rbx
	movl	(%rax,%rbx,4), %ebx
	movl	%ebx, 4(%rsi,%rdx,4)
	movq	16(%r12,%rdx,8), %rbx
	movl	(%rax,%rbx,4), %ebx
	movl	%ebx, 8(%rsi,%rdx,4)
	movq	24(%r12,%rdx,8), %rbx
	movl	(%rax,%rbx,4), %ebx
	movl	%ebx, 12(%rsi,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %rdi
	jne	LBB0_10
LBB0_11:
	testq	%r8, %r8
	je	LBB0_14
## %bb.12:
	leaq	(%rsi,%rdx,4), %rdi
	leaq	(%r12,%rdx,8), %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rbx,8), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, (%rdi,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r8
	jne	LBB0_13
LBB0_14:
	movq	%r9, %rbx
LBB0_15:
	leaq	24(%r15), %rdi
	shll	$3, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edx
	callq	_init_get_bits
	movl	16(%r15), %r13d
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.17:
	movl	20(%r15), %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%r14d
	cmpl	%r13d, %r14d
	jge	LBB0_24
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	testl	%r12d, %r12d
	jle	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	28(%r15), %esi
	movq	%r15, %rdi
	callq	_decode_mb
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_35
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_idct_put
	incl	%ebx
	movl	20(%r15), %r12d
	cmpl	%r12d, %ebx
	jl	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	16(%r15), %r13d
	jmp	LBB0_23
LBB0_16:
	movl	20(%r15), %r12d
LBB0_24:
	movslq	%r12d, %rax
	cmpq	%rax, 8(%r15)
	je	LBB0_29
## %bb.25:
	testl	%r13d, %r13d
	jle	LBB0_29
## %bb.26:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	28(%r15), %esi
	movq	%r15, %rdi
	callq	_decode_mb
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_35
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_idct_put
	incl	%ebx
	movl	16(%r15), %r13d
	cmpl	%r13d, %ebx
	jl	LBB0_27
LBB0_29:
	movslq	%r13d, %rax
	cmpq	%rax, (%r15)
	je	LBB0_34
## %bb.30:
	cmpq	$0, 8(%r15)
	jle	LBB0_34
## %bb.31:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	28(%r15), %esi
	movq	%r15, %rdi
	callq	_decode_mb
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_idct_put
	incq	%rbx
	cmpq	%rbx, 8(%r15)
	jg	LBB0_32
LBB0_34:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_emms_c
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	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
	shll	$2, %eax
LBB0_35:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_CODEC_ID_ASV1,8,3           ## @AV_CODEC_ID_ASV1
	.comm	_ff_reverse,8,3                 ## @ff_reverse
	.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:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x21, [x0, #8]
	ldrsw	x23, [x3, #8]
	ldp	x8, x9, [x21]
	mul	x8, x8, x9
	mov	w9, #13
	mul	x8, x8, x9
	cmp	x8, x23, lsl #3
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_29
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x24, x0
	ldr	x22, [x3]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_29
; %bb.3:
	and	x23, x23, #0xffffffff
Lloh3:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x20]
	add	x0, x21, #32
	add	x1, x21, #48
	mov	x2, x23
	bl	_av_fast_padded_malloc
	ldr	x1, [x21, #32]
	cbz	x1, LBB0_6
; %bb.4:
	ldr	x8, [x24]
Lloh6:
	adrp	x9, _AV_CODEC_ID_ASV1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_CODEC_ID_ASV1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x21, #40]
	add	w9, w23, #3
	cmp	w23, #0
	csel	w9, w9, w23, lt
	asr	w2, w9, #2
	mov	x0, x1
	mov	x1, x22
	blr	x8
	ldr	x1, [x21, #32]
	b	LBB0_10
LBB0_6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_7:
	cmp	w23, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x8, #0
Lloh12:
	adrp	x9, _ff_reverse@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ff_reverse@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x22, x8, lsl #3]
	ldr	w10, [x9, x10, lsl #2]
	str	w10, [x1, x8, lsl #2]
	add	x8, x8, #1
	cmp	x23, x8
	b.ne	LBB0_9
LBB0_10:
	add	x22, x21, #24
	lsl	w2, w23, #3
	mov	x0, x22
	bl	_init_get_bits
	ldr	w23, [x21, #16]
	cmp	w23, #0
	b.le	LBB0_18
; %bb.11:
	mov	w25, #0
	ldr	w24, [x21, #20]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w25, w25, #1
	cmp	w25, w23
	b.ge	LBB0_19
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	cmp	w24, #1
	b.lt	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w23, #0
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x21, #28]
	mov	x0, x21
	bl	_decode_mb
	tbnz	w0, #31, LBB0_29
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x25
	bl	_idct_put
	add	w23, w23, #1
	ldr	w24, [x21, #20]
	cmp	w23, w24
	b.lt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w23, [x21, #16]
	b	LBB0_12
LBB0_18:
	ldr	w24, [x21, #20]
LBB0_19:
	ldr	x8, [x21, #8]
	cmp	x8, w24, sxtw
	ccmp	w23, #1, #8, ne
	b.lt	LBB0_23
; %bb.20:
	mov	w25, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, #28]
	mov	x0, x21
	bl	_decode_mb
	tbnz	w0, #31, LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x25
	bl	_idct_put
	add	w25, w25, #1
	ldr	w23, [x21, #16]
	cmp	w25, w23
	b.lt	LBB0_21
LBB0_23:
	ldr	x8, [x21]
	cmp	x8, w23, sxtw
	b.eq	LBB0_28
; %bb.24:
	ldr	x8, [x21, #8]
	cmp	x8, #1
	b.lt	LBB0_28
; %bb.25:
	mov	x24, #0
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, #28]
	mov	x0, x21
	bl	_decode_mb
	tbnz	w0, #31, LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x23
	bl	_idct_put
	add	x24, x24, #1
	ldr	x8, [x21, #8]
	cmp	x8, x24
	b.gt	LBB0_26
LBB0_28:
	mov	w8, #1
	str	w8, [x19]
	bl	_emms_c
	mov	x0, x22
	bl	_get_bits_count
	add	w8, w0, #31
	add	w9, w0, #62
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #5
	lsl	w0, w8, #2
LBB0_29:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_CODEC_ID_ASV1,8,3           ; @AV_CODEC_ID_ASV1
	.comm	_ff_reverse,8,3                 ; @ff_reverse
	.no_dead_strip	_decode_frame
.subsections_via_symbols
