	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function y41p_encode_frame
LCPI0_0:
	.quad	0x3ff8000000000000              ## double 1.5
LCPI0_1:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_y41p_encode_frame:                     ## @y41p_encode_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movsd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	8(%rdi), %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	xorl	%edx, %edx
	callq	_ff_alloc_packet2
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	addsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %r13d
	testl	%r13d, %r13d
	js	LBB0_7
## %bb.2:
	movq	8(%r15), %rcx
	movq	(%r12), %r11
	movq	8(%r12), %rdx
	movq	(%rdx), %r8
	movq	8(%rdx), %r9
	movq	16(%rdx), %r10
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%r13), %eax
	testl	%r13d, %r13d
	movl	%eax, %r13d
	jle	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r11), %edx
	imull	%r13d, %edx
	movslq	%edx, %rdx
	leaq	(%r10,%rdx,4), %rbx
	movl	4(%r11), %edx
	imull	%r13d, %edx
	movslq	%edx, %rdx
	leaq	(%r9,%rdx,4), %rdi
	movl	(%r11), %edx
	imull	%r13d, %edx
	movslq	%edx, %rdx
	leaq	(%r8,%rdx,4), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi,%rdx), %eax
	movl	%eax, (%rcx)
	movl	(%rsi,%rdx,4), %eax
	movl	%eax, 4(%rcx)
	movl	(%rbx,%rdx), %eax
	movl	%eax, 8(%rcx)
	movl	4(%rsi,%rdx,4), %eax
	movl	%eax, 12(%rcx)
	movl	4(%rdi,%rdx), %eax
	movl	%eax, 16(%rcx)
	movl	8(%rsi,%rdx,4), %eax
	movl	%eax, 20(%rcx)
	movl	4(%rbx,%rdx), %eax
	movl	%eax, 24(%rcx)
	movl	12(%rsi,%rdx,4), %eax
	movl	%eax, 28(%rcx)
	movl	16(%rsi,%rdx,4), %eax
	movl	%eax, 32(%rcx)
	movl	20(%rsi,%rdx,4), %eax
	movl	%eax, 36(%rcx)
	movl	24(%rsi,%rdx,4), %eax
	movl	%eax, 40(%rcx)
	movl	28(%rsi,%rdx,4), %eax
	movl	%eax, 44(%rcx)
	addq	$48, %rcx
	addq	$8, %rdx
	xorps	%xmm2, %xmm2
	cvtsi2sd	%edx, %xmm2
	ucomisd	%xmm2, %xmm0
	ja	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movl	$1, (%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.no_dead_strip	_y41p_encode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function y41p_encode_frame
_y41p_encode_frame:                     ; @y41p_encode_frame
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldp	d0, d1, [x0]
	fmul	d0, d0, d1
	fmov	d1, #1.50000000
	fmul	d0, d0, d1
	mov	w2, #0
	bl	_ff_alloc_packet2
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	d0, [x21, #8]
	fmov	d1, #-1.00000000
	fadd	d0, d0, d1
	fcvtzs	w8, d0
	tbnz	w8, #31, LBB0_8
; %bb.2:
	ldr	x13, [x20, #8]
	ldp	x9, x12, [x22]
	ldp	x10, x11, [x12]
	ldr	x12, [x12, #16]
	ldr	d0, [x21]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w14, w8, #1
	cmp	w8, #0
	mov	x8, x14
	b.le	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	fcmp	d0, #0.0
	b.le	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x14, #0
	ldp	w16, w15, [x9, #4]
	ldr	w17, [x9]
	mul	w15, w15, w8
	add	x15, x12, w15, sxtw #2
	mul	w16, w16, w8
	add	x16, x11, w16, sxtw #2
	mul	w17, w17, w8
	add	x17, x10, w17, sxtw #2
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x15, x14
	add	x1, x16, x14
	add	x2, x17, x14, lsl #2
	ldr	w3, [x1]
	str	w3, [x13]
	ldr	w3, [x2]
	str	w3, [x13, #4]
	ldr	w3, [x0]
	str	w3, [x13, #8]
	ldr	w3, [x2, #4]
	str	w3, [x13, #12]
	ldr	w1, [x1, #4]
	str	w1, [x13, #16]
	ldr	w1, [x2, #8]
	str	w1, [x13, #20]
	ldr	w0, [x0, #4]
	str	w0, [x13, #24]
	ldr	w0, [x2, #12]
	str	w0, [x13, #28]
	ldr	w0, [x2, #16]
	str	w0, [x13, #32]
	ldr	w0, [x2, #20]
	str	w0, [x13, #36]
	ldr	w0, [x2, #24]
	str	w0, [x13, #40]
	ldr	w1, [x2, #28]
	add	x0, x13, #48
	str	w1, [x13, #44]
	add	x14, x14, #8
	scvtf	d1, w14
	fcmp	d0, d1
	mov	x13, x0
	b.gt	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x13, x0
	b	LBB0_3
LBB0_8:
	mov	w0, #0
Lloh0:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.no_dead_strip	_y41p_encode_frame
.subsections_via_symbols
