	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function y41p_decode_frame
_y41p_decode_frame:                     ## @y41p_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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rcx), %r15
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rbx
	movq	(%rdi), %r14
	movl	8(%rdi), %edi
	movl	$8, %esi
	callq	_FFALIGN
	imulq	%r14, %rax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rax, %rcx
	sarq	%rcx
	cmpq	%rcx, %r15
	jge	LBB0_1
## %bb.10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
	movq	_EINVAL@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_1:
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movl	$1, (%r12)
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movl	(%r13), %r15d
	decl	%r15d
	js	LBB0_8
## %bb.3:
	movq	8(%r12), %r11
	movq	16(%r12), %rax
	movq	(%rax), %r8
	movq	8(%rax), %r9
	movq	16(%rax), %r10
	movl	8(%r13), %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	%r15d
	js	LBB0_8
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%eax, %eax
	jle	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r11), %eax
	imull	%r15d, %eax
	cltq
	leaq	(%r10,%rax,4), %rdx
	movl	4(%r11), %eax
	imull	%r15d, %eax
	cltq
	leaq	(%r9,%rax,4), %rsi
	movl	(%r11), %eax
	imull	%r15d, %eax
	cltq
	leaq	(%r8,%rax,4), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %eax
	movl	%eax, (%rsi,%rcx)
	movl	4(%rbx), %eax
	movl	%eax, (%rdi,%rcx,4)
	movl	8(%rbx), %eax
	movl	%eax, (%rdx,%rcx)
	movl	12(%rbx), %eax
	movl	%eax, 4(%rdi,%rcx,4)
	movl	16(%rbx), %eax
	movl	%eax, 4(%rsi,%rcx)
	movl	20(%rbx), %eax
	movl	%eax, 8(%rdi,%rcx,4)
	movl	24(%rbx), %eax
	movl	%eax, 4(%rdx,%rcx)
	movl	28(%rbx), %eax
	movl	%eax, 12(%rdi,%rcx,4)
	movl	32(%rbx), %eax
	movl	%eax, 16(%rdi,%rcx,4)
	movl	36(%rbx), %eax
	movl	%eax, 20(%rdi,%rcx,4)
	movl	40(%rbx), %eax
	movl	%eax, 24(%rdi,%rcx,4)
	movl	44(%rbx), %eax
	addq	$48, %rbx
	movl	%eax, 28(%rdi,%rcx,4)
	movl	8(%r13), %eax
	addq	$8, %rcx
	cmpl	%eax, %ecx
	jl	LBB0_7
	jmp	LBB0_4
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_9:
	addq	$24, %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	_y41p_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function y41p_decode_frame
_y41p_decode_frame:                     ; @y41p_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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldp	x24, x23, [x3]
	ldr	x25, [x0]
	ldr	w0, [x0, #8]
	mov	w1, #8
	bl	_FFALIGN
	mul	x8, x25, x0
	add	x8, x8, x8, lsl #1
	cmp	x8, #0
	cinc	x8, x8, lt
	cmp	x24, x8, asr #1
	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, #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_2:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_11
; %bb.3:
	mov	w8, #1
	str	w8, [x22]
Lloh8:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	str	w9, [x22, #24]
	ldr	w9, [x19]
	subs	w9, w9, #1
	b.mi	LBB0_10
; %bb.4:
	ldp	x10, x13, [x22, #8]
	ldp	x11, x12, [x13]
	ldr	x13, [x13, #16]
	ldr	w0, [x19, #8]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	subs	w9, w9, #1
	b.mi	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x14, #0
	ldp	w16, w15, [x10, #4]
	ldr	w17, [x10]
	mul	w15, w15, w9
	add	x15, x13, w15, sxtw #2
	mul	w16, w16, w9
	add	x16, x12, w16, sxtw #2
	mul	w17, w17, w9
	add	x17, x11, w17, sxtw #2
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x15, x14
	add	x1, x16, x14
	add	x2, x17, x14, lsl #2
	ldr	w3, [x23]
	str	w3, [x1]
	ldr	w3, [x23, #4]
	str	w3, [x2]
	ldr	w3, [x23, #8]
	str	w3, [x0]
	ldr	w3, [x23, #12]
	str	w3, [x2, #4]
	ldr	w3, [x23, #16]
	str	w3, [x1, #4]
	ldr	w1, [x23, #20]
	str	w1, [x2, #8]
	ldr	w1, [x23, #24]
	str	w1, [x0, #4]
	ldr	w0, [x23, #28]
	str	w0, [x2, #12]
	ldr	w0, [x23, #32]
	str	w0, [x2, #16]
	ldr	w0, [x23, #36]
	str	w0, [x2, #20]
	ldr	w0, [x23, #40]
	str	w0, [x2, #24]
	add	x1, x23, #48
	ldr	w0, [x23, #44]
	str	w0, [x2, #28]
	ldr	w0, [x19, #8]
	add	x14, x14, #8
	mov	x23, x1
	cmp	w14, w0
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x1
	b	LBB0_5
LBB0_10:
	str	w8, [x21]
	ldr	w0, [x20]
LBB0_11:
	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	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	_y41p_decode_frame
.subsections_via_symbols
