	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp_decode_frame_helper
_mp_decode_frame_helper:                ## @mp_decode_frame_helper
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	callq	_av_assert1
	movq	8(%r13), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.1:
	xorl	%r15d, %r15d
	leaq	-88(%rbp), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r13), %edi
	movl	$1, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_mp_get_yuv_from_rgb
	movq	-72(%rbp), %rax
	movq	%rax, -48(%rbp)
	movups	-88(%rbp), %xmm0
	movaps	%xmm0, -64(%rbp)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	8(%r13), %rax
	movslq	(%rax), %rcx
	addq	$24, %r15
	cmpq	%rcx, %rbx
	jge	LBB0_4
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	movslq	4(%rax), %rax
	movslq	%ebx, %rdx
	imulq	%rax, %rdx
	cmpq	$0, (%rcx,%rdx,8)
	jne	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mp_get_vlc
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_mp_gradient
	addl	-48(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	%eax, %edi
	movl	$5, %esi
	callq	_av_clip_uintp2
	movl	%eax, -48(%rbp)
	testb	$3, %bl
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mp_get_vlc
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_mp_gradient
	addq	-56(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	%rax, %rdi
	movl	$5, %esi
	callq	_av_clip_intp2
	movq	%rax, -56(%rbp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mp_get_vlc
	movq	%r13, %rdi
	movl	$2, %esi
	movl	%eax, %edx
	callq	_mp_gradient
	addq	-64(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	%rax, %rdi
	movl	$5, %esi
	callq	_av_clip_intp2
	movq	%rax, -64(%rbp)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rax
	movq	-48(%rbp), %rcx
	movq	%rcx, 16(%rax,%r15)
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, (%rax,%r15)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	leaq	-64(%rbp), %rcx
	callq	_mp_set_rgb_from_yuv
	jmp	LBB0_14
LBB0_4:
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_mp_decode_line
	addl	$2, %ebx
	movq	8(%r13), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jl	LBB0_6
## %bb.7:
	cmpl	$2, %eax
	jl	LBB0_10
## %bb.8:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_mp_decode_line
	addl	$2, %ebx
	movq	8(%r13), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_9
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mp_decode_frame_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp_decode_frame_helper
_mp_decode_frame_helper:                ; @mp_decode_frame_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_av_assert1
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x22, #0
	mov	x21, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #24]
	mov	w1, #1
	mov	w2, #4
	bl	_memset
	add	x8, sp, #8
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_mp_get_yuv_from_rgb
	ldur	q0, [sp, #8]
	str	q0, [sp, #32]
	ldr	x8, [sp, #24]
	str	x8, [sp, #48]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20, #8]
	ldrsw	x9, [x8]
	add	x22, x22, #24
	cmp	x21, x9
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	w8, [x8, #4]
	mul	w8, w8, w21
	ldr	x8, [x9, w8, sxtw #3]
	cbnz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_mp_get_vlc
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_mp_gradient
	ldr	w8, [sp, #48]
	add	w0, w8, w0
	str	w0, [sp, #48]
	mov	w1, #5
	bl	_av_clip_uintp2
	str	w0, [sp, #48]
	tst	w21, #0x3
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_mp_get_vlc
	mov	x2, x0
	mov	x0, x20
	mov	w1, #1
	bl	_mp_gradient
	ldr	x8, [sp, #40]
	add	x0, x8, x0
	str	x0, [sp, #40]
	mov	w1, #5
	bl	_av_clip_intp2
	str	x0, [sp, #40]
	mov	x0, x20
	mov	x1, x19
	bl	_mp_get_vlc
	mov	x2, x0
	mov	x0, x20
	mov	w1, #2
	bl	_mp_gradient
	ldr	x8, [sp, #32]
	add	x0, x8, x0
	str	x0, [sp, #32]
	mov	w1, #5
	bl	_av_clip_intp2
	str	x0, [sp, #32]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	add	x8, x8, x22
	ldr	q0, [sp, #32]
	ldr	x9, [sp, #48]
	str	x9, [x8, #16]
	str	q0, [x8]
	add	x3, sp, #32
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_mp_set_rgb_from_yuv
	b	LBB0_3
LBB0_8:
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.9:
	mov	w21, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mp_decode_line
	add	w21, w21, #2
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w21, w8
	b.lt	LBB0_10
; %bb.11:
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.12:
	mov	w21, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mp_decode_line
	add	w21, w21, #2
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w21, w8
	b.lt	LBB0_13
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mp_decode_frame_helper
.subsections_via_symbols
