	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdpau_mpeg4_start_frame
_vdpau_mpeg4_start_frame:               ## @vdpau_mpeg4_start_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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movq	96(%r14), %rax
	movq	(%rax), %r15
	movq	_VDP_INVALID_HANDLE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, 88(%r15)
	movq	%rax, 96(%r15)
	movl	$0, (%r15)
	movl	8(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.2:
	movl	92(%r14), %edi
	callq	_ff_vdpau_get_surface_id
	movq	%rax, %r13
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setne	%dil
	callq	_assert
	movq	%r13, 96(%r15)
	movl	$2, (%r15)
LBB0_3:
	movl	88(%r14), %edi
	callq	_ff_vdpau_get_surface_id
	movq	%rax, %r13
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setne	%dil
	callq	_assert
	movq	%r13, 88(%r15)
LBB0_4:
	movl	12(%r14), %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movl	16(%r14), %eax
	movq	16(%r15), %rdx
	movl	%eax, (%rdx)
	movl	20(%r14), %eax
	sarl	%eax
	movl	%eax, 4(%rcx)
	movl	24(%r14), %eax
	sarl	%eax
	movl	%eax, 4(%rdx)
	movq	80(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r15)
	movl	76(%r14), %eax
	movl	%eax, 80(%r15)
	movl	72(%r14), %eax
	movl	%eax, 76(%r15)
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	sete	%al
	movl	%eax, 24(%r15)
	xorl	%eax, %eax
	cmpl	$0, 68(%r14)
	sete	%al
	movl	%eax, 28(%r15)
	movl	64(%r14), %eax
	movl	%eax, 72(%r15)
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	_AV_CODEC_ID_H263@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, 32(%r15)
	movups	48(%r14), %xmm0
	movups	%xmm0, 56(%r15)
	movq	32(%r14), %rax
	movq	40(%r14), %rdx
	movq	40(%r15), %rcx
	movq	48(%r15), %rsi
	movq	%rcx, %rdi
	subq	%rsi, %rdi
	cmpq	$16, %rdi
	jb	LBB0_9
## %bb.5:
	movq	%rsi, %rdi
	subq	%rdx, %rdi
	cmpq	$16, %rdi
	jb	LBB0_9
## %bb.6:
	movq	%rax, %rdi
	subq	%rsi, %rdi
	cmpq	$16, %rdi
	jb	LBB0_9
## %bb.7:
	movq	%rcx, %rdi
	subq	%rdx, %rdi
	cmpq	$16, %rdi
	jb	LBB0_9
## %bb.8:
	movq	%rcx, %rdi
	subq	%rax, %rdi
	cmpq	$15, %rdi
	jbe	LBB0_9
## %bb.12:
	movups	(%rdx), %xmm0
	movups	%xmm0, (%rsi)
	movups	(%rax), %xmm0
	movups	%xmm0, (%rcx)
	movups	16(%rdx), %xmm0
	movups	%xmm0, 16(%rsi)
	movups	16(%rax), %xmm0
	movups	%xmm0, 16(%rcx)
	movups	32(%rdx), %xmm0
	movups	%xmm0, 32(%rsi)
	movups	32(%rax), %xmm0
	movups	%xmm0, 32(%rcx)
	movups	48(%rdx), %xmm0
	movups	%xmm0, 48(%rsi)
	movups	48(%rax), %xmm0
	movups	%xmm0, 48(%rcx)
	movups	64(%rdx), %xmm0
	movups	%xmm0, 64(%rsi)
	movups	64(%rax), %xmm0
	movups	%xmm0, 64(%rcx)
	movups	80(%rdx), %xmm0
	movups	%xmm0, 80(%rsi)
	movups	80(%rax), %xmm0
	movups	%xmm0, 80(%rcx)
	movups	96(%rdx), %xmm0
	movups	%xmm0, 96(%rsi)
	movups	96(%rax), %xmm0
	movups	%xmm0, 96(%rcx)
	movups	112(%rdx), %xmm0
	movups	%xmm0, 112(%rsi)
	movups	112(%rax), %xmm0
	movups	%xmm0, 112(%rcx)
	movups	128(%rdx), %xmm0
	movups	%xmm0, 128(%rsi)
	movups	128(%rax), %xmm0
	movups	%xmm0, 128(%rcx)
	movups	144(%rdx), %xmm0
	movups	%xmm0, 144(%rsi)
	movups	144(%rax), %xmm0
	movups	%xmm0, 144(%rcx)
	movups	160(%rdx), %xmm0
	movups	%xmm0, 160(%rsi)
	movups	160(%rax), %xmm0
	movups	%xmm0, 160(%rcx)
	movups	176(%rdx), %xmm0
	movups	%xmm0, 176(%rsi)
	movups	176(%rax), %xmm0
	movups	%xmm0, 176(%rcx)
	movups	192(%rdx), %xmm0
	movups	%xmm0, 192(%rsi)
	movups	192(%rax), %xmm0
	movups	%xmm0, 192(%rcx)
	movups	208(%rdx), %xmm0
	movups	%xmm0, 208(%rsi)
	movups	208(%rax), %xmm0
	movups	%xmm0, 208(%rcx)
	movups	224(%rdx), %xmm0
	movups	%xmm0, 224(%rsi)
	movups	224(%rax), %xmm0
	movups	%xmm0, 224(%rcx)
	movups	240(%rdx), %xmm0
	movups	%xmm0, 240(%rsi)
	movups	240(%rax), %xmm0
	movups	%xmm0, 240(%rcx)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_9:
	xorl	%edi, %edi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,4), %ebx
	movl	%ebx, (%rsi,%rdi,4)
	movl	(%rax,%rdi,4), %ebx
	movl	%ebx, (%rcx,%rdi,4)
	movl	4(%rdx,%rdi,4), %ebx
	movl	%ebx, 4(%rsi,%rdi,4)
	movl	4(%rax,%rdi,4), %ebx
	movl	%ebx, 4(%rcx,%rdi,4)
	addq	$2, %rdi
	cmpq	$64, %rdi
	jne	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_ff_vdpau_common_start_frame
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_vdpau_add_buffer            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VDP_INVALID_HANDLE,8,3         ## @VDP_INVALID_HANDLE
	.comm	_AV_CODEC_ID_H263,8,3           ## @AV_CODEC_ID_H263
	.no_dead_strip	_vdpau_mpeg4_start_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdpau_mpeg4_start_frame
_vdpau_mpeg4_start_frame:               ; @vdpau_mpeg4_start_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	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x24, [x0, #8]
	ldr	x8, [x24, #96]
	ldr	x21, [x8]
Lloh0:
	adrp	x25, _VDP_INVALID_HANDLE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VDP_INVALID_HANDLE@GOTPAGEOFF]
	ldr	x8, [x25]
	stp	x8, x8, [x21, #88]
	str	wzr, [x21]
	ldr	w8, [x24, #8]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x24, #92]
	bl	_ff_vdpau_get_surface_id
	mov	x23, x0
	ldr	x8, [x25]
	cmp	x0, x8
	cset	w0, ne
	bl	_assert
	str	x23, [x21, #96]
	mov	w8, #2
	str	w8, [x21]
LBB0_3:
	ldr	w0, [x24, #88]
	bl	_ff_vdpau_get_surface_id
	mov	x23, x0
	ldr	x8, [x25]
	cmp	x0, x8
	cset	w0, ne
	bl	_assert
	str	x23, [x21, #88]
LBB0_4:
	ldr	w8, [x24, #12]
	ldp	x9, x10, [x21, #8]
	str	w8, [x9]
	ldr	w8, [x24, #16]
	str	w8, [x10]
	ldr	w8, [x24, #20]
	asr	w8, w8, #1
	str	w8, [x9, #4]
	ldr	w8, [x24, #24]
	asr	w8, w8, #1
	str	w8, [x10, #4]
	ldr	x8, [x24, #80]
	ldr	w8, [x8]
	str	w8, [x21, #84]
	ldr	d0, [x24, #72]
	stur	d0, [x21, #76]
	ldr	w8, [x24]
	cmp	w8, #0
	cset	w8, eq
	ldp	w10, w9, [x24, #64]
	cmp	w9, #0
	cset	w9, eq
	stp	w8, w9, [x21, #24]
	str	w10, [x21, #72]
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _AV_CODEC_ID_H263@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AV_CODEC_ID_H263@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x21, #32]
	ldr	q0, [x24, #48]
	stur	q0, [x21, #56]
	ldp	x9, x8, [x24, #32]
	ldp	x10, x11, [x21, #40]
	sub	x12, x10, x11
	cmp	x12, #16
	b.lo	LBB0_10
; %bb.5:
	sub	x12, x11, x8
	cmp	x12, #16
	b.lo	LBB0_10
; %bb.6:
	sub	x12, x9, x11
	cmp	x12, #16
	b.lo	LBB0_10
; %bb.7:
	sub	x12, x10, x8
	cmp	x12, #16
	b.lo	LBB0_10
; %bb.8:
	sub	x12, x10, x9
	cmp	x12, #15
	b.ls	LBB0_10
; %bb.9:
	ldr	q0, [x8]
	str	q0, [x11]
	ldr	q0, [x9]
	str	q0, [x10]
	ldr	q0, [x8, #16]
	str	q0, [x11, #16]
	ldr	q0, [x9, #16]
	str	q0, [x10, #16]
	ldr	q0, [x8, #32]
	str	q0, [x11, #32]
	ldr	q0, [x9, #32]
	str	q0, [x10, #32]
	ldr	q0, [x8, #48]
	str	q0, [x11, #48]
	ldr	q0, [x9, #48]
	str	q0, [x10, #48]
	ldr	q0, [x8, #64]
	str	q0, [x11, #64]
	ldr	q0, [x9, #64]
	str	q0, [x10, #64]
	ldr	q0, [x8, #80]
	str	q0, [x11, #80]
	ldr	q0, [x9, #80]
	str	q0, [x10, #80]
	ldr	q0, [x8, #96]
	str	q0, [x11, #96]
	ldr	q0, [x9, #96]
	str	q0, [x10, #96]
	ldr	q0, [x8, #112]
	str	q0, [x11, #112]
	ldr	q0, [x9, #112]
	str	q0, [x10, #112]
	ldr	q0, [x8, #128]
	str	q0, [x11, #128]
	ldr	q0, [x9, #128]
	str	q0, [x10, #128]
	ldr	q0, [x8, #144]
	str	q0, [x11, #144]
	ldr	q0, [x9, #144]
	str	q0, [x10, #144]
	ldr	q0, [x8, #160]
	str	q0, [x11, #160]
	ldr	q0, [x9, #160]
	str	q0, [x10, #160]
	ldr	q0, [x8, #176]
	str	q0, [x11, #176]
	ldr	q0, [x9, #176]
	str	q0, [x10, #176]
	ldr	q0, [x8, #192]
	str	q0, [x11, #192]
	ldr	q0, [x9, #192]
	str	q0, [x10, #192]
	ldr	q0, [x8, #208]
	str	q0, [x11, #208]
	ldr	q0, [x9, #208]
	str	q0, [x10, #208]
	ldr	q0, [x8, #224]
	str	q0, [x11, #224]
	ldr	q0, [x9, #224]
	str	q0, [x10, #224]
	ldr	q0, [x8, #240]
	str	q0, [x11, #240]
	ldr	q0, [x9, #240]
	str	q0, [x10, #240]
	b	LBB0_12
LBB0_10:
	mov	x12, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x8, x12]
	str	w13, [x11, x12]
	ldr	w13, [x9, x12]
	str	w13, [x10, x12]
	add	x12, x12, #4
	cmp	x12, #256
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ff_vdpau_common_start_frame
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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	_ff_vdpau_add_buffer
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VDP_INVALID_HANDLE,8,3         ; @VDP_INVALID_HANDLE
	.comm	_AV_CODEC_ID_H263,8,3           ; @AV_CODEC_ID_H263
	.no_dead_strip	_vdpau_mpeg4_start_frame
.subsections_via_symbols
