	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdpau_h264_set_rf
_vdpau_h264_set_rf:                     ## @vdpau_h264_set_rf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	32(%rsi), %edi
	callq	_ff_vdpau_get_surface_id
	movl	(%r14), %ecx
	movl	%eax, 24(%rbx)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	cmpq	$0, 16(%r14)
	setne	%al
LBB0_2:
	testl	%r15d, %r15d
	cmovnel	%r15d, %ecx
	movl	%eax, (%rbx)
	movq	_PICT_TOP_FIELD@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movl	(%rax), %eax
	andl	%ecx, %eax
	setne	%dl
	movl	%edx, 4(%rbx)
	movq	_PICT_BOTTOM_FIELD@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	andl	(%rax), %ecx
	setne	%dl
	movl	%edx, 8(%rbx)
	movq	24(%r14), %rax
	movl	(%rax), %edi
	callq	_h264_foc
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	24(%r14), %rax
	movl	4(%rax), %edi
	callq	_h264_foc
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rcx)
	xorl	%eax, %eax
	cmpq	$0, 16(%r14)
	setne	%al
	movl	4(%r14,%rax,4), %eax
	movl	%eax, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PICT_TOP_FIELD,4,2             ## @PICT_TOP_FIELD
	.comm	_PICT_BOTTOM_FIELD,4,2          ## @PICT_BOTTOM_FIELD
	.no_dead_strip	_vdpau_h264_set_rf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdpau_h264_set_rf
_vdpau_h264_set_rf:                     ; @vdpau_h264_set_rf
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #32]
	bl	_ff_vdpau_get_surface_id
	ldr	w8, [x20]
	str	w0, [x19, #24]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x9, [x20, #16]
	cmp	x9, #0
	cset	w9, ne
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
	cmp	w21, #0
	csel	w8, w8, w21, eq
	str	w9, [x19]
Lloh0:
	adrp	x9, _PICT_TOP_FIELD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PICT_TOP_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
Lloh3:
	adrp	x10, _PICT_BOTTOM_FIELD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PICT_BOTTOM_FIELD@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, ne
	stp	w9, w8, [x19, #4]
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
	bl	_h264_foc
	ldr	x8, [x19, #16]
	str	x0, [x8]
	ldr	x8, [x20, #24]
	ldr	w0, [x8, #4]
	bl	_h264_foc
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
	ldr	x8, [x20, #16]
	mov	w9, #8
	mov	w10, #4
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x20, x8]
	str	w8, [x19, #12]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PICT_TOP_FIELD,4,2             ; @PICT_TOP_FIELD
	.comm	_PICT_BOTTOM_FIELD,4,2          ; @PICT_BOTTOM_FIELD
	.no_dead_strip	_vdpau_h264_set_rf
.subsections_via_symbols
