	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_scaling_lists
_fill_scaling_lists:                    ## @fill_scaling_lists
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdx), %r14
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_DXVA_CONTEXT_WORKAROUND
	movq	_FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG@GOTPCREL(%rip), %rdx
	movq	8(%r14), %rcx
	testl	%eax, (%rdx)
	je	LBB0_10
## %bb.1:
	movq	8(%r13), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movq	(%rax,%rdx,8), %rdi
	movl	(%rsi), %ebx
	movl	%ebx, (%rdi)
	movl	4(%rsi), %ebx
	movl	%ebx, 4(%rdi)
	movl	8(%rsi), %ebx
	movl	%ebx, 8(%rdi)
	movl	12(%rsi), %ebx
	movl	%ebx, 12(%rdi)
	movl	16(%rsi), %ebx
	movl	%ebx, 16(%rdi)
	movl	20(%rsi), %ebx
	movl	%ebx, 20(%rdi)
	movl	24(%rsi), %ebx
	movl	%ebx, 24(%rdi)
	movl	28(%rsi), %ebx
	movl	%ebx, 28(%rdi)
	movl	32(%rsi), %ebx
	movl	%ebx, 32(%rdi)
	movl	36(%rsi), %ebx
	movl	%ebx, 36(%rdi)
	movl	40(%rsi), %ebx
	movl	%ebx, 40(%rdi)
	movl	44(%rsi), %ebx
	movl	%ebx, 44(%rdi)
	movl	48(%rsi), %ebx
	movl	%ebx, 48(%rdi)
	movl	52(%rsi), %ebx
	movl	%ebx, 52(%rdi)
	movl	56(%rsi), %ebx
	movl	%ebx, 56(%rdi)
	movl	60(%rsi), %esi
	movl	%esi, 60(%rdi)
	incq	%rdx
	cmpq	$6, %rdx
	jne	LBB0_2
## %bb.3:
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	24(%rax), %rax
	movq	(%r13), %rdx
	movq	(%rdx), %rsi
	movq	8(%rdx), %rdx
	movq	%rdx, %rdi
	subq	%rsi, %rdi
	cmpq	$16, %rdi
	jb	LBB0_8
## %bb.4:
	movq	%rsi, %rdi
	subq	%rcx, %rdi
	cmpq	$16, %rdi
	jb	LBB0_8
## %bb.5:
	movq	%rax, %rdi
	subq	%rsi, %rdi
	cmpq	$16, %rdi
	jb	LBB0_8
## %bb.6:
	movq	%rdx, %rdi
	subq	%rcx, %rdi
	cmpq	$16, %rdi
	jb	LBB0_8
## %bb.7:
	movq	%rdx, %rdi
	subq	%rax, %rdi
	cmpq	$15, %rdi
	jbe	LBB0_8
## %bb.15:
	movups	(%rcx), %xmm0
	movups	%xmm0, (%rsi)
	movups	(%rax), %xmm0
	movups	%xmm0, (%rdx)
	movups	16(%rcx), %xmm0
	movups	%xmm0, 16(%rsi)
	movups	16(%rax), %xmm0
	movups	%xmm0, 16(%rdx)
	movups	32(%rcx), %xmm0
	movups	%xmm0, 32(%rsi)
	movups	32(%rax), %xmm0
	movups	%xmm0, 32(%rdx)
	movups	48(%rcx), %xmm0
	movups	%xmm0, 48(%rsi)
	movups	48(%rax), %xmm0
	movups	%xmm0, 48(%rdx)
	movups	64(%rcx), %xmm0
	movups	%xmm0, 64(%rsi)
	movups	64(%rax), %xmm0
	movups	%xmm0, 64(%rdx)
	movups	80(%rcx), %xmm0
	movups	%xmm0, 80(%rsi)
	movups	80(%rax), %xmm0
	movups	%xmm0, 80(%rdx)
	movups	96(%rcx), %xmm0
	movups	%xmm0, 96(%rsi)
	movups	96(%rax), %xmm0
	movups	%xmm0, 96(%rdx)
	movups	112(%rcx), %xmm0
	movups	%xmm0, 112(%rsi)
	movups	112(%rax), %xmm0
	movups	%xmm0, 112(%rdx)
	movups	128(%rcx), %xmm0
	movups	%xmm0, 128(%rsi)
	movups	128(%rax), %xmm0
	movups	%xmm0, 128(%rdx)
	movups	144(%rcx), %xmm0
	movups	%xmm0, 144(%rsi)
	movups	144(%rax), %xmm0
	movups	%xmm0, 144(%rdx)
	movups	160(%rcx), %xmm0
	movups	%xmm0, 160(%rsi)
	movups	160(%rax), %xmm0
	movups	%xmm0, 160(%rdx)
	movups	176(%rcx), %xmm0
	movups	%xmm0, 176(%rsi)
	movups	176(%rax), %xmm0
	movups	%xmm0, 176(%rdx)
	movups	192(%rcx), %xmm0
	movups	%xmm0, 192(%rsi)
	movups	192(%rax), %xmm0
	movups	%xmm0, 192(%rdx)
	movups	208(%rcx), %xmm0
	movups	%xmm0, 208(%rsi)
	movups	208(%rax), %xmm0
	movups	%xmm0, 208(%rdx)
	movups	224(%rcx), %xmm0
	movups	%xmm0, 224(%rsi)
	movups	224(%rax), %xmm0
	movups	%xmm0, 224(%rdx)
	movups	240(%rcx), %xmm0
	movups	%xmm0, 240(%rsi)
	movups	240(%rax), %xmm0
	movups	%xmm0, 240(%rdx)
	jmp	LBB0_14
LBB0_10:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_ff_zigzag_scan@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%rdx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	8(%rdx), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	16(%rdx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	24(%rdx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	32(%rdx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	40(%rdx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	48(%rdx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	56(%rdx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	64(%rdx), %rdi
	movq	72(%rdx), %rbx
	movq	80(%rdx), %rax
	movq	88(%rdx), %r12
	movq	96(%rdx), %r14
	movq	104(%rdx), %r8
	movq	112(%rdx), %r9
	movq	120(%rdx), %r10
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r11
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%r15,8), %r13
	movq	(%r11,%r15,8), %rdx
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	(%r13,%rsi,4), %esi
	movl	%esi, (%rdx)
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	(%r13,%rsi,4), %esi
	movl	%esi, 4(%rdx)
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	(%r13,%rsi,4), %esi
	movl	%esi, 8(%rdx)
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	(%r13,%rsi,4), %esi
	movl	%esi, 12(%rdx)
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	(%r13,%rsi,4), %esi
	movl	%esi, 16(%rdx)
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	(%r13,%rsi,4), %esi
	movl	%esi, 20(%rdx)
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	(%r13,%rsi,4), %esi
	movl	%esi, 24(%rdx)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%r13,%rsi,4), %esi
	movl	%esi, 28(%rdx)
	movl	(%r13,%rdi,4), %esi
	movl	%esi, 32(%rdx)
	movl	(%r13,%rbx,4), %esi
	movl	%esi, 36(%rdx)
	movl	(%r13,%rax,4), %esi
	movl	%esi, 40(%rdx)
	movl	(%r13,%r12,4), %esi
	movl	%esi, 44(%rdx)
	movl	(%r13,%r14,4), %esi
	movl	%esi, 48(%rdx)
	movl	(%r13,%r8,4), %esi
	movl	%esi, 52(%rdx)
	movl	(%r13,%r9,4), %esi
	movl	%esi, 56(%rdx)
	movl	(%r13,%r10,4), %esi
	movl	%esi, 60(%rdx)
	incq	%r15
	cmpq	$6, %r15
	jne	LBB0_11
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	(%rcx), %r8
	movq	24(%rcx), %r9
	movq	_ff_zigzag_direct@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rbx,8), %rax
	movl	(%r8,%rax,4), %ecx
	movl	%ecx, (%rsi,%rbx,4)
	movl	(%r9,%rax,4), %eax
	movl	%eax, (%rdi,%rbx,4)
	movq	8(%rdx,%rbx,8), %rax
	movl	(%r8,%rax,4), %ecx
	movl	%ecx, 4(%rsi,%rbx,4)
	movl	(%r9,%rax,4), %eax
	movl	%eax, 4(%rdi,%rbx,4)
	addq	$2, %rbx
	cmpq	$64, %rbx
	jne	LBB0_13
	jmp	LBB0_14
LBB0_8:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdi,4), %ebx
	movl	%ebx, (%rsi,%rdi,4)
	movl	(%rax,%rdi,4), %ebx
	movl	%ebx, (%rdx,%rdi,4)
	movl	4(%rcx,%rdi,4), %ebx
	movl	%ebx, 4(%rsi,%rdi,4)
	movl	4(%rax,%rdi,4), %ebx
	movl	%ebx, 4(%rdx,%rdi,4)
	addq	$2, %rdi
	cmpq	$64, %rdi
	jne	LBB0_9
LBB0_14:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG,4,2 ## @FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG
	.comm	_ff_zigzag_scan,8,3             ## @ff_zigzag_scan
	.comm	_ff_zigzag_direct,8,3           ## @ff_zigzag_direct
	.no_dead_strip	_fill_scaling_lists
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_scaling_lists
_fill_scaling_lists:                    ; @fill_scaling_lists
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x2]
	mov	x0, x3
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, x21
	mov	x1, x20
	bl	_DXVA_CONTEXT_WORKAROUND
Lloh0:
	adrp	x8, _FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	x8, [x22, #8]
	tst	w9, w0
	b.eq	LBB0_9
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, x9]
	ldr	x12, [x10, x9]
	ldr	w13, [x11]
	str	w13, [x12]
	ldr	w13, [x11, #4]
	str	w13, [x12, #4]
	ldr	w13, [x11, #8]
	str	w13, [x12, #8]
	ldr	w13, [x11, #12]
	str	w13, [x12, #12]
	ldr	w13, [x11, #16]
	str	w13, [x12, #16]
	ldr	w13, [x11, #20]
	str	w13, [x12, #20]
	ldr	w13, [x11, #24]
	str	w13, [x12, #24]
	ldr	w13, [x11, #28]
	str	w13, [x12, #28]
	ldr	w13, [x11, #32]
	str	w13, [x12, #32]
	ldr	w13, [x11, #36]
	str	w13, [x12, #36]
	ldr	w13, [x11, #40]
	str	w13, [x12, #40]
	ldr	w13, [x11, #44]
	str	w13, [x12, #44]
	ldr	w13, [x11, #48]
	str	w13, [x12, #48]
	ldr	w13, [x11, #52]
	str	w13, [x12, #52]
	ldr	w13, [x11, #56]
	str	w13, [x12, #56]
	ldr	w11, [x11, #60]
	str	w11, [x12, #60]
	add	x9, x9, #8
	cmp	x9, #48
	b.ne	LBB0_2
; %bb.3:
	ldr	x9, [x22]
	ldr	x8, [x9]
	ldr	x10, [x19]
	ldr	x9, [x9, #24]
	ldp	x11, x10, [x10]
	sub	x12, x10, x11
	cmp	x12, #16
	b.lo	LBB0_13
; %bb.4:
	sub	x12, x11, x8
	cmp	x12, #16
	b.lo	LBB0_13
; %bb.5:
	sub	x12, x9, x11
	cmp	x12, #16
	b.lo	LBB0_13
; %bb.6:
	sub	x12, x10, x8
	cmp	x12, #16
	b.lo	LBB0_13
; %bb.7:
	sub	x12, x10, x9
	cmp	x12, #15
	b.ls	LBB0_13
; %bb.8:
	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_15
LBB0_9:
	mov	x9, #0
Lloh3:
	adrp	x10, _ff_zigzag_scan@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ff_zigzag_scan@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x10]
	ldr	x10, [x19, #8]
	ldp	x11, x12, [x20]
	ldp	x13, x14, [x20, #16]
	ldp	x15, x16, [x20, #32]
	ldp	x17, x0, [x20, #48]
	ldp	x1, x2, [x20, #64]
	ldp	x3, x4, [x20, #80]
	ldp	x5, x6, [x20, #96]
	ldp	x7, x20, [x20, #112]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x8, x9]
	ldr	x23, [x10, x9]
	ldr	w24, [x21, x11, lsl #2]
	str	w24, [x23]
	ldr	w24, [x21, x12, lsl #2]
	str	w24, [x23, #4]
	ldr	w24, [x21, x13, lsl #2]
	str	w24, [x23, #8]
	ldr	w24, [x21, x14, lsl #2]
	str	w24, [x23, #12]
	ldr	w24, [x21, x15, lsl #2]
	str	w24, [x23, #16]
	ldr	w24, [x21, x16, lsl #2]
	str	w24, [x23, #20]
	ldr	w24, [x21, x17, lsl #2]
	str	w24, [x23, #24]
	ldr	w24, [x21, x0, lsl #2]
	str	w24, [x23, #28]
	ldr	w24, [x21, x1, lsl #2]
	str	w24, [x23, #32]
	ldr	w24, [x21, x2, lsl #2]
	str	w24, [x23, #36]
	ldr	w24, [x21, x3, lsl #2]
	str	w24, [x23, #40]
	ldr	w24, [x21, x4, lsl #2]
	str	w24, [x23, #44]
	ldr	w24, [x21, x5, lsl #2]
	str	w24, [x23, #48]
	ldr	w24, [x21, x6, lsl #2]
	str	w24, [x23, #52]
	ldr	w24, [x21, x7, lsl #2]
	str	w24, [x23, #56]
	ldr	w21, [x21, x20, lsl #2]
	str	w21, [x23, #60]
	add	x9, x9, #8
	cmp	x9, #48
	b.ne	LBB0_10
; %bb.11:
	mov	x8, #0
	ldr	x11, [x22]
Lloh6:
	adrp	x10, _ff_zigzag_direct@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ff_zigzag_direct@GOTPAGEOFF]
	ldr	x9, [x11]
Lloh8:
	ldr	x10, [x10]
	ldr	x13, [x19]
	ldr	x11, [x11, #24]
	ldp	x12, x13, [x13]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x10, x8, lsl #3]
	lsl	x14, x14, #2
	ldr	w15, [x9, x14]
	lsl	x16, x8, #2
	str	w15, [x12, x16]
	ldr	w14, [x11, x14]
	str	w14, [x13, x16]
	add	x8, x8, #1
	cmp	x8, #64
	b.ne	LBB0_12
	b	LBB0_15
LBB0_13:
	mov	x12, #0
LBB0_14:                                ; =>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_14
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG,4,2 ; @FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG
	.comm	_ff_zigzag_scan,8,3             ; @ff_zigzag_scan
	.comm	_ff_zigzag_direct,8,3           ; @ff_zigzag_direct
	.no_dead_strip	_fill_scaling_lists
.subsections_via_symbols
