	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dxva2_common_frame_params   ## -- Begin function ff_dxva2_common_frame_params
	.p2align	4, 0x90
_ff_dxva2_common_frame_params:          ## @ff_dxva2_common_frame_params
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %r15
	movq	48(%r15), %rax
	movq	(%rax), %rax
	movq	_AV_HWDEVICE_TYPE_DXVA2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_AV_PIX_FMT_DXVA2_VLD@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_AV_HWDEVICE_TYPE_D3D11VA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	_AV_PIX_FMT_D3D11@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	_AV_CODEC_ID_MPEG2VIDEO@GOTPCREL(%rip), %rax
	movq	_AV_CODEC_ID_VP9@GOTPCREL(%rip), %rcx
	movq	(%r14), %rdx
	cmpq	(%rcx), %rdx
	movl	$9, %ecx
	movl	$3, %ebx
	cmovel	%ecx, %ebx
	movq	_AV_CODEC_ID_HEVC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	movl	$128, %ecx
	movl	$16, %esi
	cmovel	%ecx, %esi
	movl	$17, %ecx
	cmovel	%ecx, %ebx
	cmpq	(%rax), %rdx
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rax
	movl	$32, %r12d
	cmovnel	%esi, %r12d
	cmpq	(%rax), %rdx
	cmovel	%ecx, %ebx
	movq	8(%r14), %rax
	movq	_AV_PIX_FMT_YUV420P10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_AV_PIX_FMT_P010@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_AV_PIX_FMT_NV12@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movl	20(%r14), %edi
	movl	%r12d, %esi
	callq	_FFALIGN
	movq	%rax, 32(%r15)
	movl	16(%r14), %edi
	movl	%r12d, %esi
	callq	_FFALIGN
	movq	%rax, 24(%r15)
	movl	%ebx, 8(%r15)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_HWDEVICE_TYPE_DXVA2,8,3     ## @AV_HWDEVICE_TYPE_DXVA2
	.comm	_AV_PIX_FMT_DXVA2_VLD,8,3       ## @AV_PIX_FMT_DXVA2_VLD
	.comm	_AV_HWDEVICE_TYPE_D3D11VA,8,3   ## @AV_HWDEVICE_TYPE_D3D11VA
	.comm	_AV_PIX_FMT_D3D11,8,3           ## @AV_PIX_FMT_D3D11
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ## @AV_CODEC_ID_MPEG2VIDEO
	.comm	_AV_CODEC_ID_HEVC,8,3           ## @AV_CODEC_ID_HEVC
	.comm	_AV_CODEC_ID_H264,8,3           ## @AV_CODEC_ID_H264
	.comm	_AV_CODEC_ID_VP9,8,3            ## @AV_CODEC_ID_VP9
	.comm	_AV_PIX_FMT_YUV420P10,8,3       ## @AV_PIX_FMT_YUV420P10
	.comm	_AV_PIX_FMT_P010,4,2            ## @AV_PIX_FMT_P010
	.comm	_AV_PIX_FMT_NV12,4,2            ## @AV_PIX_FMT_NV12
	.comm	_D3D11_BIND_DECODER,4,2         ## @D3D11_BIND_DECODER
	.comm	_DXVA2_VideoDecoderRenderTarget,4,2 ## @DXVA2_VideoDecoderRenderTarget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dxva2_common_frame_params   ; -- Begin function ff_dxva2_common_frame_params
	.p2align	2
_ff_dxva2_common_frame_params:          ; @ff_dxva2_common_frame_params
	.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, x0
	ldr	x21, [x1]
	ldr	x8, [x21, #48]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _AV_HWDEVICE_TYPE_DXVA2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_HWDEVICE_TYPE_DXVA2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AV_PIX_FMT_DXVA2_VLD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PIX_FMT_DXVA2_VLD@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x9, _AV_HWDEVICE_TYPE_D3D11VA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_HWDEVICE_TYPE_D3D11VA@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _AV_PIX_FMT_D3D11@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_PIX_FMT_D3D11@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	str	x8, [x21]
Lloh10:
	adrp	x8, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGEOFF]
Lloh12:
	adrp	x9, _AV_CODEC_ID_HEVC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_CODEC_ID_HEVC@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _AV_CODEC_ID_VP9@GOTPAGE
Lloh17:
	ldr	x10, [x10, _AV_CODEC_ID_VP9@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	ldp	x11, x12, [x19]
	cmp	x11, x10
	mov	w10, #3
	mov	w13, #9
	csel	w10, w13, w10, eq
	cmp	x11, x9
	mov	w9, #16
	mov	w13, #128
	csel	w9, w13, w9, eq
Lloh19:
	adrp	x13, _AV_CODEC_ID_H264@GOTPAGE
Lloh20:
	ldr	x13, [x13, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh21:
	ldr	x13, [x13]
	ccmp	x11, x13, #4, ne
	mov	w13, #17
	csel	w22, w13, w10, eq
	cmp	x11, x8
	mov	w8, #32
	csel	w20, w8, w9, eq
Lloh22:
	adrp	x8, _AV_PIX_FMT_YUV420P10@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_PIX_FMT_YUV420P10@GOTPAGEOFF]
Lloh24:
	adrp	x9, _AV_PIX_FMT_P010@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AV_PIX_FMT_P010@GOTPAGEOFF]
Lloh26:
	adrp	x10, _AV_PIX_FMT_NV12@GOTPAGE
Lloh27:
	ldr	x10, [x10, _AV_PIX_FMT_NV12@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x12, x8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x21, #40]
	ldr	w0, [x19, #20]
	mov	x1, x20
	bl	_FFALIGN
	str	x0, [x21, #32]
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_FFALIGN
	str	x0, [x21, #24]
	str	w22, [x21, #8]
	mov	w0, #0
	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
LBB0_5:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh28
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_HWDEVICE_TYPE_DXVA2,8,3     ; @AV_HWDEVICE_TYPE_DXVA2
	.comm	_AV_PIX_FMT_DXVA2_VLD,8,3       ; @AV_PIX_FMT_DXVA2_VLD
	.comm	_AV_HWDEVICE_TYPE_D3D11VA,8,3   ; @AV_HWDEVICE_TYPE_D3D11VA
	.comm	_AV_PIX_FMT_D3D11,8,3           ; @AV_PIX_FMT_D3D11
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ; @AV_CODEC_ID_MPEG2VIDEO
	.comm	_AV_CODEC_ID_HEVC,8,3           ; @AV_CODEC_ID_HEVC
	.comm	_AV_CODEC_ID_H264,8,3           ; @AV_CODEC_ID_H264
	.comm	_AV_CODEC_ID_VP9,8,3            ; @AV_CODEC_ID_VP9
	.comm	_AV_PIX_FMT_YUV420P10,8,3       ; @AV_PIX_FMT_YUV420P10
	.comm	_AV_PIX_FMT_P010,4,2            ; @AV_PIX_FMT_P010
	.comm	_AV_PIX_FMT_NV12,4,2            ; @AV_PIX_FMT_NV12
	.comm	_D3D11_BIND_DECODER,4,2         ; @D3D11_BIND_DECODER
	.comm	_DXVA2_VideoDecoderRenderTarget,4,2 ; @DXVA2_VideoDecoderRenderTarget
.subsections_via_symbols
