	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function fill_picture_parameters
LCPI0_0:
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	7                               ## 0x7
	.long	7                               ## 0x7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_fill_picture_parameters:               ## @fill_picture_parameters
	.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
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	96(%rdx), %r15
	movl	(%rdx), %ecx
	movq	_PICT_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %ecx
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$224, %edx
	callq	_memset
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ff_dxva2_get_surface_index
	movq	%rax, 216(%rbx)
	movq	$0, 208(%rbx)
	movq	8(%r14), %rcx
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rdx
	movl	$65535, %r15d                   ## imm = 0xFFFF
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	movl	92(%r14), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ff_dxva2_get_surface_index
LBB0_2:
	movl	%eax, (%rbx)
	movq	8(%r14), %rax
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_4
## %bb.3:
	movl	88(%r14), %edx
	movq	%rdi, %r15
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ff_dxva2_get_surface_index
	movq	%r15, %rdi
	movq	%rax, %r15
LBB0_4:
	movl	%r15d, 4(%rbx)
	movq	80(%r14), %rax
	decq	%rax
	movq	%rax, 200(%rbx)
	movl	16(%r14), %eax
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	sarl	%cl, %eax
	decl	%eax
	xorl	%ecx, %ecx
	movl	%eax, 8(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [15,15,7,7]
	movups	%xmm0, 12(%rbx)
	movl	$7, 28(%rbx)
	movl	(%r14), %eax
	movl	%eax, 32(%rbx)
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	xorl	%ecx, %ecx
	cmpl	$0, 72(%r14)
	sete	%cl
LBB0_6:
	movl	%ecx, 36(%rbx)
	movq	8(%r14), %rcx
	xorl	%edx, %edx
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	sete	%dl
	movl	%edx, 40(%rbx)
	xorl	%edx, %edx
	cmpq	(%rdi), %rcx
	sete	%dl
	movl	%edx, 44(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 184(%rbx)
	movl	68(%r14), %ecx
	movl	%ecx, 176(%rbx)
	movl	$1, 48(%rbx)
	movl	20(%r14), %ecx
	xorl	%edx, %edx
	testl	%ecx, %ecx
	setne	%dl
	movl	%edx, 52(%rbx)
	movups	%xmm0, 80(%rbx)
	movups	%xmm0, 96(%rbx)
	movups	%xmm0, 112(%rbx)
	movups	%xmm0, 128(%rbx)
	movups	%xmm0, 144(%rbx)
	movups	%xmm0, 160(%rbx)
	movq	24(%r14), %rdx
	movq	(%rdx), %rsi
	movq	8(%rdx), %rdx
	movl	(%rsi), %edi
	movl	4(%rsi), %esi
	shll	$12, %edi
	shll	$8, %esi
	orl	%edi, %esi
	movl	(%rdx), %edi
	shll	$4, %edi
	orl	%esi, %edi
	orl	4(%rdx), %edi
	movl	%edi, 56(%rbx)
	movl	32(%r14), %esi
	movl	36(%r14), %edx
	shll	$14, %esi
	shll	$12, %eax
	shll	$11, %edx
	orl	%esi, %edx
	movl	40(%r14), %esi
	shll	$10, %esi
	movl	44(%r14), %edi
	shll	$9, %edi
	orl	%esi, %edi
	movl	48(%r14), %esi
	shll	$8, %esi
	orl	%edi, %esi
	movl	52(%r14), %edi
	shll	$7, %edi
	shll	$6, %ecx
	orl	%eax, %ecx
	orl	%edx, %ecx
	orl	%esi, %ecx
	movl	56(%r14), %eax
	shll	$5, %eax
	orl	%edi, %eax
	movl	60(%r14), %edx
	shll	$4, %edx
	orl	%eax, %edx
	movl	64(%r14), %eax
	shll	$3, %eax
	orl	%edx, %eax
	orl	%ecx, %eax
	movl	%eax, 60(%rbx)
	movups	%xmm0, 64(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PICT_FRAME,4,2                 ## @PICT_FRAME
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_B,8,3          ## @AV_PICTURE_TYPE_B
	.no_dead_strip	_fill_picture_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function fill_picture_parameters
lCPI0_0:
	.long	15                              ; 0xf
	.long	15                              ; 0xf
	.long	7                               ; 0x7
	.long	7                               ; 0x7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_fill_picture_parameters:               ; @fill_picture_parameters
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x25, [x2, #96]
	ldr	w23, [x2]
Lloh0:
	adrp	x8, _PICT_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PICT_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	cmp	w23, w24
	cset	w26, ne
	mov	x0, x3
	mov	w1, #0
	mov	w2, #224
	bl	_memset
	ldr	w2, [x25]
	mov	x0, x22
	mov	x1, x21
	bl	_ff_dxva2_get_surface_index
	stp	xzr, x0, [x19, #208]
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x25, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh4:
	ldr	x25, [x25, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #65535
	b	LBB0_3
LBB0_2:
	ldr	w2, [x20, #92]
	mov	x0, x22
	mov	x1, x21
	bl	_ff_dxva2_get_surface_index
LBB0_3:
	str	w0, [x19]
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x27, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh6:
	ldr	x27, [x27, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w2, [x20, #88]
	mov	x0, x22
	mov	x1, x21
	bl	_ff_dxva2_get_surface_index
	b	LBB0_6
LBB0_5:
	mov	w0, #65535
LBB0_6:
	str	w0, [x19, #4]
	ldr	x8, [x20, #80]
	sub	x8, x8, #1
	str	x8, [x19, #200]
	ldr	w8, [x20, #16]
	asr	w8, w8, w26
	sub	w8, w8, #1
	str	w8, [x19, #8]
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #12]
	mov	w9, #7
	ldr	w8, [x20]
	stp	w9, w8, [x19, #28]
	cmp	w23, w24
	b.eq	LBB0_8
; %bb.7:
	ldr	w9, [x20, #72]
	cmp	w9, #0
	cset	w9, eq
	b	LBB0_9
LBB0_8:
	mov	w9, #0
LBB0_9:
	ldr	x10, [x20, #8]
	ldr	x11, [x25]
	cmp	x10, x11
	cset	w11, eq
	stp	w9, w11, [x19, #36]
	ldr	x9, [x27]
	cmp	x10, x9
	cset	w9, eq
	stp	xzr, xzr, [x19, #184]
	ldr	w10, [x20, #68]
	str	w10, [x19, #176]
	mov	w10, #1
	stp	w9, w10, [x19, #44]
	ldr	w9, [x20, #20]
	cmp	w9, #0
	cset	w10, ne
	str	w10, [x19, #52]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #80]
	stp	q0, q0, [x19, #112]
	stp	q0, q0, [x19, #144]
	ldr	x10, [x20, #24]
	ldp	x11, x10, [x10]
	ldp	w12, w11, [x11]
	lsl	w11, w11, #8
	orr	w11, w11, w12, lsl #12
	ldp	w12, w10, [x10]
	orr	w11, w11, w12, lsl #4
	orr	w10, w11, w10
	ldp	w11, w12, [x20, #32]
	ldp	w13, w14, [x20, #40]
	ldp	w15, w16, [x20, #48]
	lsl	w9, w9, #6
	orr	w8, w9, w8, lsl #12
	ldp	w9, w17, [x20, #56]
	ldr	w0, [x20, #64]
	orr	w8, w8, w11, lsl #14
	orr	w8, w8, w12, lsl #11
	orr	w8, w8, w13, lsl #10
	orr	w8, w8, w14, lsl #9
	orr	w8, w8, w15, lsl #8
	orr	w8, w8, w16, lsl #7
	orr	w8, w8, w9, lsl #5
	orr	w8, w8, w17, lsl #4
	orr	w8, w8, w0, lsl #3
	stp	w10, w8, [x19, #56]
	stp	xzr, xzr, [x19, #64]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PICT_FRAME,4,2                 ; @PICT_FRAME
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_B,8,3          ; @AV_PICTURE_TYPE_B
	.no_dead_strip	_fill_picture_parameters
.subsections_via_symbols
