	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r13
	cmpq	$0, 16(%r13)
	jne	LBB0_2
## %bb.1:
	movq	(%rsi), %r13
LBB0_2:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_ff_hevc_diag_scan4x4_y@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_ff_hevc_diag_scan4x4_x@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%r13), %rcx
	movq	8(%r13), %r8
	movq	(%r8), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	8(%r8), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	40(%rbx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_ff_hevc_diag_scan8x8_y@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_ff_hevc_diag_scan8x8_x@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	32(%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	16(%r8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,4), %r10
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r10), %ecx
	movl	%ecx, (%rax,%r14,4)
	incq	%r14
	cmpq	$6, %r14
	je	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r14,8), %r10
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r14,8), %r11
	movl	(%r15), %eax
	shll	$2, %eax
	addl	(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, (%r11)
	movl	4(%r15), %eax
	shll	$2, %eax
	addl	4(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 4(%r11)
	movl	8(%r15), %eax
	shll	$2, %eax
	addl	8(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 8(%r11)
	movl	12(%r15), %eax
	shll	$2, %eax
	addl	12(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 12(%r11)
	movl	16(%r15), %eax
	shll	$2, %eax
	addl	16(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 16(%r11)
	movl	20(%r15), %eax
	shll	$2, %eax
	addl	20(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 20(%r11)
	movl	24(%r15), %eax
	shll	$2, %eax
	addl	24(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 24(%r11)
	movl	28(%r15), %eax
	shll	$2, %eax
	addl	28(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 28(%r11)
	movl	32(%r15), %eax
	shll	$2, %eax
	addl	32(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 32(%r11)
	movl	36(%r15), %eax
	shll	$2, %eax
	addl	36(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 36(%r11)
	movl	40(%r15), %eax
	shll	$2, %eax
	addl	40(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 40(%r11)
	movl	44(%r15), %eax
	shll	$2, %eax
	addl	44(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 44(%r11)
	movl	48(%r15), %eax
	shll	$2, %eax
	addl	48(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 48(%r11)
	movl	52(%r15), %eax
	shll	$2, %eax
	addl	52(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 52(%r11)
	movl	56(%r15), %eax
	shll	$2, %eax
	addl	56(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 56(%r11)
	movl	60(%r15), %eax
	shll	$2, %eax
	addl	60(%r12), %eax
	movl	(%r10,%rax,4), %eax
	movl	%eax, 60(%r11)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r14,8), %r11
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rsi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rdx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rdi
	leaq	(%r14,%r14,2), %r10
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	cmpq	$64, %rbx
	je	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r9,%rbx,4), %eax
	shll	$3, %eax
	addl	(%r13,%rbx,4), %eax
	movl	(%r11,%rax,4), %ecx
	movl	%ecx, (%rsi,%rbx,4)
	movl	(%rdx,%rax,4), %ecx
	movl	%ecx, (%rdi,%rbx,4)
	cmpq	$1, %r14
	ja	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	24(%r8), %rcx
	movq	(%rcx,%r10,8), %rcx
	movl	(%rcx,%rax,4), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	$64, %rbx
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14,4)
	shlq	$2, %r10
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %r10
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	jmp	LBB0_9
LBB0_10:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_hevc_diag_scan4x4_y,8,3     ## @ff_hevc_diag_scan4x4_y
	.comm	_ff_hevc_diag_scan4x4_x,8,3     ## @ff_hevc_diag_scan4x4_x
	.comm	_ff_hevc_diag_scan8x8_y,8,3     ## @ff_hevc_diag_scan8x8_y
	.comm	_ff_hevc_diag_scan8x8_x,8,3     ## @ff_hevc_diag_scan8x8_x
	.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	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
	ldr	x20, [x1, #8]
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x20, [x1]
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	x8, #0
Lloh0:
	adrp	x9, _ff_hevc_diag_scan4x4_y@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ff_hevc_diag_scan4x4_y@GOTPAGEOFF]
Lloh2:
	adrp	x10, _ff_hevc_diag_scan4x4_x@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ff_hevc_diag_scan4x4_x@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	ldr	x10, [x10]
	ldp	x1, x11, [x19, #32]
Lloh6:
	adrp	x12, _ff_hevc_diag_scan8x8_y@GOTPAGE
Lloh7:
	ldr	x12, [x12, _ff_hevc_diag_scan8x8_y@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
Lloh9:
	adrp	x13, _ff_hevc_diag_scan8x8_x@GOTPAGE
Lloh10:
	ldr	x13, [x13, _ff_hevc_diag_scan8x8_x@GOTPAGEOFF]
Lloh11:
	ldr	x13, [x13]
	ldp	x15, x14, [x20]
	ldp	x16, x17, [x14]
	ldr	x0, [x14, #16]
	ldr	x2, [x19, #24]
	ldr	x3, [x15]
	ldr	x4, [x19, #8]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x5, x3, x8, lsl #2
	mov	x6, x4
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w5, [x5]
	str	w5, [x6, x8, lsl #2]
	add	x8, x8, #1
	cmp	x8, #6
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x5, #0
	lsl	x6, x8, #3
	ldr	x20, [x16, x6]
	ldr	x7, [x11, x6]
	ldr	w21, [x9]
	ldr	w22, [x10]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7]
	ldr	w21, [x9, #4]
	ldr	w22, [x10, #4]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #4]
	ldr	w21, [x9, #8]
	ldr	w22, [x10, #8]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #8]
	ldr	w21, [x9, #12]
	ldr	w22, [x10, #12]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #12]
	ldr	w21, [x9, #16]
	ldr	w22, [x10, #16]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #16]
	ldr	w21, [x9, #20]
	ldr	w22, [x10, #20]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #20]
	ldr	w21, [x9, #24]
	ldr	w22, [x10, #24]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #24]
	ldr	w21, [x9, #28]
	ldr	w22, [x10, #28]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #28]
	ldr	w21, [x9, #32]
	ldr	w22, [x10, #32]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #32]
	ldr	w21, [x9, #36]
	ldr	w22, [x10, #36]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #36]
	ldr	w21, [x9, #40]
	ldr	w22, [x10, #40]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #40]
	ldr	w21, [x9, #44]
	ldr	w22, [x10, #44]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #44]
	ldr	w21, [x9, #48]
	ldr	w22, [x10, #48]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #48]
	ldr	w21, [x9, #52]
	ldr	w22, [x10, #52]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #52]
	ldr	w21, [x9, #56]
	ldr	w22, [x10, #56]
	add	w21, w22, w21, lsl #2
	ldr	w21, [x20, w21, uxtw #2]
	str	w21, [x7, #56]
	ldr	w21, [x9, #60]
	ldr	w22, [x10, #60]
	add	w21, w22, w21, lsl #2
	ldr	w22, [x20, w21, uxtw #2]
	ldr	x20, [x17, x6]
	ldr	x21, [x1, x6]
	str	w22, [x7, #60]
	ldr	x7, [x0, x6]
	ldr	x22, [x2, x6]
	add	x6, x8, x8, lsl #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x5, x5, #1
	cmp	x5, #64
	b.eq	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x24, x5, #2
	ldr	w23, [x12, x24]
	ldr	w25, [x13, x24]
	add	w23, w25, w23, lsl #3
	lsl	x25, x23, #2
	ldr	w26, [x20, x25]
	str	w26, [x21, x24]
	ldr	w25, [x7, x25]
	str	w25, [x22, x24]
	cmp	x8, #1
	b.hi	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x24, [x14, #24]
	ldr	x24, [x24, x6, lsl #3]
	ldr	w23, [x24, x23, lsl #2]
	ldr	x24, [x19, #16]
	ldr	x24, [x24, x8, lsl #3]
	str	w23, [x24, x5, lsl #2]
	add	x5, x5, #1
	cmp	x5, #64
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	x5, x8, #2
	ldr	w7, [x3, x5]
	str	w7, [x4, x5]
	ldr	x5, [x15, #8]
	add	x5, x5, x6, lsl #2
	ldr	x6, [x19]
	b	LBB0_4
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_hevc_diag_scan4x4_y,8,3     ; @ff_hevc_diag_scan4x4_y
	.comm	_ff_hevc_diag_scan4x4_x,8,3     ; @ff_hevc_diag_scan4x4_x
	.comm	_ff_hevc_diag_scan8x8_y,8,3     ; @ff_hevc_diag_scan8x8_y
	.comm	_ff_hevc_diag_scan8x8_x,8,3     ; @ff_hevc_diag_scan8x8_x
	.no_dead_strip	_fill_scaling_lists
.subsections_via_symbols
