	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vdpau_h264_start_frame
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vdpau_h264_start_frame:                ## @vdpau_h264_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, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movq	40(%r15), %r13
	movq	24(%r15), %r12
	movq	32(%r15), %r14
	movq	8(%r12), %rbx
	movq	$0, 160(%rbx)
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_h264_foc
	movq	152(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	movl	4(%rax), %edi
	callq	_h264_foc
	movq	152(%rbx), %rcx
	movq	%rax, 8(%rcx)
	xorl	%eax, %eax
	cmpq	$0, (%r15)
	setne	%al
	movl	16(%r15), %ecx
	movl	%ecx, 144(%rbx)
	movq	8(%r15), %rcx
	movq	_PICT_FRAME@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	setne	%sil
	sete	%dl
	movq	_PICT_BOTTOM_FIELD@GOTPCREL(%rip), %r8
	xorl	%edi, %edi
	cmpq	(%r8), %rcx
	sete	%dil
	movl	56(%r14), %ecx
	movl	%ecx, 140(%rbx)
	cmpq	$0, 48(%r14)
	setne	%cl
	movd	%eax, %xmm0
	pinsrb	$4, %esi, %xmm0
	pinsrb	$8, %edi, %xmm0
	andb	%dl, %cl
	movzbl	%cl, %eax
	pinsrb	$12, %eax, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 8(%rbx)
	movl	68(%r13), %eax
	movl	%eax, 136(%rbx)
	movl	64(%r13), %eax
	movl	%eax, 132(%rbx)
	movl	60(%r13), %eax
	movl	%eax, 128(%rbx)
	movl	40(%r14), %eax
	movl	%eax, 124(%rbx)
	movl	56(%r13), %eax
	movl	%eax, 120(%rbx)
	movq	48(%r13), %rax
	movl	(%rax), %ecx
	movl	%ecx, 116(%rbx)
	movl	4(%rax), %eax
	movl	%eax, 112(%rbx)
	movq	40(%r13), %rax
	addq	$-26, %rax
	movq	%rax, 104(%rbx)
	movq	32(%r13), %rax
	movq	(%rax), %rcx
	decq	%rcx
	movq	%rcx, 96(%rbx)
	movq	8(%rax), %rax
	decq	%rax
	movq	%rax, 88(%rbx)
	movq	32(%r14), %rax
	addq	$-4, %rax
	movq	%rax, 80(%rbx)
	movq	24(%r14), %rcx
	movq	%rcx, 72(%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	addl	$-4, %eax
LBB0_2:
	movl	%eax, 24(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 64(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 60(%rbx)
	movups	12(%r13), %xmm0
	movups	%xmm0, 44(%rbx)
	movl	40(%rbx), %edi
	movl	8(%r13), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	movq	(%r13), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	32(%rbx), %rax
	movl	4(%rax), %edi
	movq	(%r13), %rax
	movl	12(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_vdpau_h264_set_reference_frames
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_vdpau_common_start_frame    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PICT_FRAME,8,3                 ## @PICT_FRAME
	.comm	_PICT_BOTTOM_FIELD,8,3          ## @PICT_BOTTOM_FIELD
	.no_dead_strip	_vdpau_h264_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_h264_start_frame
_vdpau_h264_start_frame:                ; @vdpau_h264_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	x21, x0
	ldr	x25, [x0]
	ldp	x24, x23, [x25, #32]
	ldr	x26, [x25, #24]
	ldp	x8, x22, [x26]
	str	xzr, [x22, #160]
	ldr	w0, [x8]
	bl	_h264_foc
	ldr	x8, [x22, #152]
	str	x0, [x8]
	ldr	x8, [x26]
	ldr	w0, [x8, #4]
	bl	_h264_foc
	ldr	x8, [x22, #152]
	str	x0, [x8, #8]
	ldp	x8, x9, [x25]
	cmp	x8, #0
	cset	w8, ne
	ldr	w10, [x25, #16]
Lloh0:
	adrp	x11, _PICT_FRAME@GOTPAGE
Lloh1:
	ldr	x11, [x11, _PICT_FRAME@GOTPAGEOFF]
	str	w10, [x22, #144]
Lloh2:
	ldr	x10, [x11]
	cmp	x9, x10
	cset	w10, eq
	cset	w11, ne
	stp	w8, w11, [x22, #8]
Lloh3:
	adrp	x8, _PICT_BOTTOM_FIELD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PICT_BOTTOM_FIELD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w8, eq
	ldr	x9, [x24, #48]
	cmp	x9, #0
	cset	w9, ne
	and	w9, w9, w10
	ldr	w10, [x24, #56]
	stp	w8, w9, [x22, #16]
	ldr	w8, [x23, #68]
	stp	w8, w10, [x22, #136]
	ldur	d0, [x23, #60]
	str	d0, [x22, #128]
	ldr	w8, [x24, #40]
	ldr	w9, [x23, #56]
	stp	w9, w8, [x22, #120]
	ldr	x8, [x23, #48]
	ldr	w9, [x8]
	str	w9, [x22, #116]
	ldr	w8, [x8, #4]
	str	w8, [x22, #112]
	ldp	x9, x8, [x23, #32]
	sub	x8, x8, #26
	str	x8, [x22, #104]
	ldr	x8, [x9]
	sub	x8, x8, #1
	str	x8, [x22, #96]
	ldr	x8, [x9, #8]
	sub	x8, x8, #1
	str	x8, [x22, #88]
	ldp	x9, x8, [x24, #24]
	sub	x8, x8, #4
	stp	x9, x8, [x22, #72]
	cbz	x9, LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_3
LBB0_2:
	ldr	w8, [x24]
	sub	w8, w8, #4
LBB0_3:
	str	w8, [x22, #24]
	ldur	d0, [x24, #12]
	stur	d0, [x22, #60]
	ldur	q0, [x23, #12]
	stur	q0, [x22, #44]
	ldr	w0, [x22, #40]
	ldr	w1, [x23, #8]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x22, #32]
	ldr	w0, [x8]
	ldr	x8, [x23]
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x22, #32]
	ldr	w0, [x8, #4]
	ldr	x8, [x23]
	ldr	w1, [x8, #12]
	mov	w2, #4
	bl	_memcpy
	mov	x0, x21
	bl	_vdpau_h264_set_reference_frames
	mov	x0, x22
	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_common_start_frame
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PICT_FRAME,8,3                 ; @PICT_FRAME
	.comm	_PICT_BOTTOM_FIELD,8,3          ; @PICT_BOTTOM_FIELD
	.no_dead_strip	_vdpau_h264_start_frame
.subsections_via_symbols
