	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_chrominance_lut
_create_chrominance_lut:                ## @create_chrominance_lut
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	%edx, %eax
	shll	$7, %eax
	movl	%esi, %ecx
	shll	$7, %ecx
	movl	%eax, %r15d
	subl	%ecx, %r15d
	addl	$8421376, %r15d                 ## imm = 0x808000
	addl	%eax, %ecx
	movl	$8421376, %r14d                 ## imm = 0x808000
	subl	%ecx, %r14d
	xorl	%eax, %eax
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%rax, %r13
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	sarl	$16, %edi
	movl	%r14d, %r12d
	sarl	$16, %r12d
	callq	_av_clip_uint8
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	%r12d, %edi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	callq	_av_clip_uint8
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	16(%r12), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	subl	%edx, %r15d
	addl	%esi, %r14d
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%r13
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	addl	%esi, %r15d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	addl	%edx, %r14d
	cmpq	$256, %r13                      ## imm = 0x100
	movq	%r13, %rax
	jne	LBB0_1
## %bb.4:
	movl	%edx, %eax
	shll	$9, %eax
	movl	%esi, %ecx
	shll	$9, %ecx
	movl	%eax, %r15d
	subl	%ecx, %r15d
	addl	$33587200, %r15d                ## imm = 0x2008000
	addl	%eax, %ecx
	movl	$33587200, %r14d                ## imm = 0x2008000
	subl	%ecx, %r14d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	sarl	$16, %edi
	movl	%r14d, %ebx
	sarl	$16, %ebx
	movl	$10, %esi
	callq	_av_clip_uintp2
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	(%rcx,%r13,8), %rcx
	movq	%rax, (%rcx,%r12,8)
	movl	%ebx, %edi
	movl	$10, %esi
	callq	_av_clip_uintp2
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	%rax, (%rcx,%r12,8)
	incq	%r12
	subl	%edx, %r15d
	addl	%esi, %r14d
	cmpq	$1024, %r12                     ## imm = 0x400
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	addl	%esi, %r15d
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	addl	%edx, %r14d
	cmpq	$1024, %rax                     ## imm = 0x400
	jne	LBB0_5
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_create_chrominance_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_chrominance_lut
_create_chrominance_lut:                ; @create_chrominance_lut
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	x23, #0
	lsl	w8, w2, #7
	add	w9, w8, #2056, lsl #12          ; =8421376
	lsl	w10, w1, #7
	sub	w28, w9, w10
	mov	w9, #32768
	movk	w9, #128, lsl #16
	sub	w8, w9, w8
	sub	w25, w8, w10
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x26, #0
	mov	x27, x25
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	asr	w0, w28, #16
	asr	w22, w27, #16
	bl	_av_clip_uint8
	ldr	x8, [x21, #24]
	lsl	x24, x23, #3
	ldr	x8, [x8, x24]
	str	x0, [x8, x26]
	mov	x0, x22
	bl	_av_clip_uint8
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x24]
	str	x0, [x8, x26]
	sub	w28, w28, w19
	add	w27, w27, w20
	add	x26, x26, #8
	cmp	x26, #2048
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x23, x23, #1
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
	add	w28, w28, w20
	add	w25, w25, w19
	cmp	x23, #256
	b.ne	LBB0_1
; %bb.4:
	mov	x23, #0
	lsl	w8, w19, #9
	mov	w9, #32768
	movk	w9, #512, lsl #16
	lsl	w10, w20, #9
	add	w11, w8, w9
	sub	w28, w11, w10
	sub	w8, w9, w8
	sub	w25, w8, w10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x26, #0
	mov	x27, x25
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	asr	w0, w28, #16
	asr	w22, w27, #16
	mov	w1, #10
	bl	_av_clip_uintp2
	ldr	x8, [x21, #8]
	lsl	x24, x23, #3
	ldr	x8, [x8, x24]
	str	x0, [x8, x26]
	mov	x0, x22
	mov	w1, #10
	bl	_av_clip_uintp2
	ldr	x8, [x21]
	ldr	x8, [x8, x24]
	str	x0, [x8, x26]
	sub	w28, w28, w19
	add	w27, w27, w20
	add	x26, x26, #8
	cmp	x26, #2, lsl #12                ; =8192
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
	add	w28, w28, w20
	add	w25, w25, w19
	cmp	x23, #1024
	b.ne	LBB0_5
; %bb.8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_create_chrominance_lut
.subsections_via_symbols
