	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v410_decode_frame
_v410_decode_frame:                     ## @v410_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	imull	4(%rdi), %eax
	shll	$2, %eax
	cmpl	%eax, (%rcx)
	jge	LBB0_1
## %bb.11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	8(%rcx), %rbx
	xorl	%edx, %edx
	movq	%rdi, %r14
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	$1, (%r13)
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movl	(%r14), %r15d
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.3:
	movq	%r14, %r8
	movq	16(%r13), %rcx
	movq	16(%rcx), %r14
	movq	(%rcx), %r12
	movq	8(%rcx), %r11
	movl	4(%r8), %ecx
	xorl	%eax, %eax
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r13), %rdx
	movl	(%rdx), %esi
	movl	4(%rdx), %edi
	sarl	%esi
	movslq	%esi, %rsi
	leaq	(%r12,%rsi,4), %r12
	sarl	%edi
	movslq	%edi, %rsi
	leaq	(%r11,%rsi,4), %r11
	movl	8(%rdx), %edx
	sarl	%edx
	movslq	%edx, %rdx
	leaq	(%r14,%rdx,4), %r14
	incl	%eax
	cmpl	%r15d, %eax
	jge	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r8, %r15
	movq	%r11, %rbx
	callq	_AV_RL32
	movq	%rbx, %r11
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %r8
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$1023, %ecx                     ## imm = 0x3FF
	movl	%ecx, (%r11,%r13,4)
	movl	%eax, %ecx
	shrl	$12, %ecx
	andl	$1023, %ecx                     ## imm = 0x3FF
	movl	%ecx, (%r12,%r13,4)
	sarl	$22, %eax
	movl	%eax, (%r14,%r13,4)
	addq	$16, %rbx
	incq	%r13
	movslq	4(%r15), %rcx
	cmpq	%rcx, %r13
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r8), %r15d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Insufficient input data.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.no_dead_strip	_v410_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v410_decode_frame
_v410_decode_frame:                     ; @v410_decode_frame
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	w8, [x3]
	ldp	w9, w10, [x0]
	mul	w9, w9, w10
	cmp	w8, w9, lsl #2
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_2:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x23, [x3, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_11
; %bb.3:
	mov	w8, #1
	str	w8, [x22]
Lloh8:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x22, #24]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	w25, #0
	ldr	x9, [x22, #16]
	ldp	x27, x26, [x9, #8]
	ldr	x28, [x9]
	ldr	w9, [x19, #4]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x22, #8]
	ldp	w11, w12, [x10]
	asr	w11, w11, #1
	add	x28, x28, w11, sxtw #2
	asr	w11, w12, #1
	add	x27, x27, w11, sxtw #2
	ldr	w10, [x10, #8]
	asr	w10, w10, #1
	add	x26, x26, w10, sxtw #2
	add	w25, w25, #1
	cmp	w25, w8
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, #0
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_AV_RL32
	ubfx	w8, w0, #2, #10
	lsl	x9, x24, #2
	str	w8, [x27, x9]
	ubfx	w8, w0, #12, #10
	str	w8, [x28, x9]
	asr	w8, w0, #22
	str	w8, [x26, x9]
	add	x23, x23, #16
	add	x24, x24, #1
	ldrsw	x9, [x19, #4]
	cmp	x24, x9
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	b	LBB0_5
LBB0_10:
	mov	w8, #1
	str	w8, [x21]
	ldr	w0, [x20]
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	"Insufficient input data.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.no_dead_strip	_v410_decode_frame
.subsections_via_symbols
