	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function choose_rct_params
_choose_rct_params:                     ## @choose_rct_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -68(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movl	%r8d, -148(%rbp)                ## 4-byte Spill
	testl	%r8d, %r8d
	movq	%rdi, -176(%rbp)                ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movl	(%rdi), %eax
	movl	%eax, -152(%rbp)                ## 4-byte Spill
	movslq	%ecx, %rax
	leaq	(%rax,%rax), %rdx
	movq	%rdx, -216(%rbp)                ## 8-byte Spill
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leaq	_choose_rct_params.rct_y_coeff(%rip), %r14
	movq	%rsi, -240(%rbp)                ## 8-byte Spill
	movl	%ecx, -144(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	cmpl	-148(%rbp), %eax                ## 4-byte Folded Reload
	movl	-144(%rbp), %ecx                ## 4-byte Reload
	je	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_14 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	-224(%rbp), %rax                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	-216(%rbp), %rax                ## 8-byte Reload
	movq	%rcx, -208(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-208(%rbp), %rax                ## 8-byte Reload
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	-116(%rbp), %edx                ## 4-byte Reload
	movl	%edx, (%rax,%rcx,4)
	movq	-200(%rbp), %rax                ## 8-byte Reload
	movl	-140(%rbp), %edx                ## 4-byte Reload
	movl	%edx, (%rax,%rcx,4)
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movl	-120(%rbp), %edx                ## 4-byte Reload
	movl	%edx, (%rax,%rcx,4)
	incq	%rcx
	cmpq	-232(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-240(%rbp), %rsi                ## 8-byte Reload
	movl	-164(%rbp), %r8d                ## 4-byte Reload
	movl	-160(%rbp), %r9d                ## 4-byte Reload
	movl	-156(%rbp), %r10d               ## 4-byte Reload
	je	LBB0_16
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_14 Depth 3
	movq	(%rsi), %rax
	cmpl	$8, -152(%rbp)                  ## 4-byte Folded Reload
	jg	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	leal	(,%rcx,4), %edi
	leaq	(%rax,%rdi,4), %rsi
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax), %rdi
	movslq	-128(%rbp), %rbx                ## 4-byte Folded Reload
	imulq	%rdi, %rbx
	movl	(%rsi,%rbx,4), %ebx
	movzbl	%bl, %r15d
	movzbl	%bh, %edx
	shrl	$16, %ebx
	movzbl	%bl, %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	leaq	(%rax,%rcx,8), %rdx
	leaq	(,%rcx,8), %rdi
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax), %rbx
	movslq	-128(%rbp), %r11                ## 4-byte Folded Reload
	imulq	%r11, %rbx
	movl	(%rdx,%rbx,4), %r15d
	movq	8(%rsi), %rdx
	addq	%rdi, %rdx
	movslq	4(%rax), %rbx
	imulq	%r11, %rbx
	addq	16(%rsi), %rdi
	movl	(%rdx,%rbx,4), %edx
	movslq	8(%rax), %rsi
	imulq	%r11, %rsi
	movl	(%rdi,%rsi,4), %eax
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	%eax, -156(%rbp)                ## 4-byte Spill
	subl	%r10d, %eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movl	%edx, -160(%rbp)                ## 4-byte Spill
	subl	%r9d, %edx
	movl	%edx, -116(%rbp)                ## 4-byte Spill
	movl	%r15d, -164(%rbp)               ## 4-byte Spill
	subl	%r8d, %r15d
	movl	%r15d, -140(%rbp)               ## 4-byte Spill
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$0, -128(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	-116(%rbp), %ebx                ## 4-byte Reload
	movq	-208(%rbp), %rax                ## 8-byte Reload
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	subl	(%rax,%rcx,4), %ebx
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	addl	%ebx, %eax
	movl	-120(%rbp), %r12d               ## 4-byte Reload
	subl	%eax, %r12d
	movq	-200(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	addl	%ebx, %eax
	movl	-140(%rbp), %r13d               ## 4-byte Reload
	subl	%eax, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r14,%r15,8), %eax
	imull	%r12d, %eax
	movl	4(%r14,%r15,8), %edi
	imull	%r13d, %edi
	addl	%eax, %edi
	sarl	$2, %edi
	addl	%ebx, %edi
	callq	_FFABS
	addl	%eax, -112(%rbp,%r15,4)
	incq	%r15
	cmpq	$15, %r15
	jne	LBB0_14
	jmp	LBB0_15
LBB0_7:
	movl	-112(%rbp), %ecx
	movl	-108(%rbp), %r8d
	movl	-104(%rbp), %r12d
	movl	-100(%rbp), %r15d
	movl	-96(%rbp), %r14d
	movl	-92(%rbp), %r11d
	movl	-88(%rbp), %r10d
	movl	-84(%rbp), %r13d
	movl	-80(%rbp), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	-76(%rbp), %eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movl	-72(%rbp), %eax
	movl	-68(%rbp), %ebx
	movl	-64(%rbp), %edi
	movl	-60(%rbp), %esi
	movl	-56(%rbp), %edx
	movl	%edx, -136(%rbp)                ## 4-byte Spill
	movl	%esi, %edx
	movl	%edi, %esi
	movl	%ebx, %edi
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	movl	$0, -136(%rbp)                  ## 4-byte Folded Spill
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	movl	$0, -120(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -116(%rbp)                  ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	xorl	%r10d, %r10d
	xorl	%r11d, %r11d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
LBB0_8:
	xorl	%r9d, %r9d
	cmpl	%ecx, %r8d
	setl	%r9b
	cmpl	-112(%rbp,%r9,4), %r12d
	movl	$2, %eax
	cmovgel	%r9d, %eax
	cmpl	-112(%rbp,%rax,4), %r15d
	movl	$3, %ecx
	cmovgel	%eax, %ecx
	cmpl	-112(%rbp,%rcx,4), %r14d
	movl	$4, %eax
	cmovgel	%ecx, %eax
	cmpl	-112(%rbp,%rax,4), %r11d
	movl	$5, %ecx
	cmovgel	%eax, %ecx
	cmpl	-112(%rbp,%rcx,4), %r10d
	movl	$6, %eax
	cmovgel	%ecx, %eax
	cmpl	-112(%rbp,%rax,4), %r13d
	movl	$7, %ecx
	cmovgel	%eax, %ecx
	movl	-116(%rbp), %eax                ## 4-byte Reload
	cmpl	-112(%rbp,%rcx,4), %eax
	movl	$8, %eax
	cmovgel	%ecx, %eax
	movl	-120(%rbp), %ecx                ## 4-byte Reload
	cmpl	-112(%rbp,%rax,4), %ecx
	movl	$9, %ecx
	cmovgel	%eax, %ecx
	cmpl	-112(%rbp,%rcx,4), %ebx
	movl	$10, %eax
	cmovgel	%ecx, %eax
	cmpl	-112(%rbp,%rax,4), %edi
	movl	$11, %ecx
	cmovgel	%eax, %ecx
	cmpl	-112(%rbp,%rcx,4), %esi
	movl	$12, %eax
	cmovgel	%ecx, %eax
	cmpl	-112(%rbp,%rax,4), %edx
	movl	$13, %ecx
	cmovgel	%eax, %ecx
	movl	-136(%rbp), %eax                ## 4-byte Reload
	cmpl	-112(%rbp,%rcx,4), %eax
	movl	$14, %eax
	cmovgel	%ecx, %eax
	leaq	_choose_rct_params.rct_y_coeff(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	rolq	$32, %rax
	movq	-176(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.9:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @choose_rct_params.rct_y_coeff
_choose_rct_params.rct_y_coeff:
	.space	8
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	0                               ## 0x0
	.long	3                               ## 0x3
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	3                               ## 0x3
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0

	.comm	_NB_Y_COEFF,4,2                 ## @NB_Y_COEFF
	.no_dead_strip	_choose_rct_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function choose_rct_params
_choose_rct_params:                     ; @choose_rct_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
                                        ; kill: def $w3 killed $w3 def $x3
	str	x2, [sp, #72]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	movi.2d	v0, #0000000000000000
	stur	q0, [sp, #172]
	stp	q0, q0, [sp, #144]
	str	q0, [sp, #128]
	str	w4, [sp, #44]                   ; 4-byte Folded Spill
	cmp	w4, #1
	b.lt	LBB0_14
; %bb.1:
	str	wzr, [sp, #108]                 ; 4-byte Folded Spill
	ldr	w8, [x0]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	sxtw	x8, w3
	stp	x8, x0, [sp, #16]               ; 16-byte Folded Spill
	sbfiz	x8, x3, #1, #32
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x28, sp, #128
	mov	w8, w3
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	str	x1, [sp, #64]                   ; 8-byte Folded Spill
	str	x3, [sp, #32]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [sp, #108]                  ; 4-byte Folded Reload
	add	w9, w9, #1
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	str	w9, [sp, #108]                  ; 4-byte Folded Spill
	cmp	w9, w8
	ldr	x3, [sp, #32]                   ; 8-byte Folded Reload
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	cmp	w3, #0
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	mov	w11, #0
	mov	w12, #0
	mov	w10, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x9, [x8, #8]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x9, x8, lsl #2
	stp	x8, x9, [sp, #88]               ; 16-byte Folded Spill
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x9, x8, lsl #2
	str	x8, [sp, #80]                   ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	str	w20, [x8, x23]
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	str	w22, [x8, x23]
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	ldp	w11, w9, [sp, #120]             ; 8-byte Folded Reload
	str	w9, [x8, x23]
	add	x27, x27, #1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	cmp	x27, x8
	ldr	x1, [sp, #64]                   ; 8-byte Folded Reload
	ldp	w10, w12, [sp, #112]            ; 8-byte Folded Reload
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	mov	x9, x12
	mov	x8, x11
	ldr	x11, [x1]
	ldr	w12, [sp, #60]                  ; 4-byte Folded Reload
	cmp	w12, #8
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	lsl	w12, w27, #2
	add	x11, x11, w12, uxtw #2
	ldr	x12, [sp, #72]                  ; 8-byte Folded Reload
	ldr	w12, [x12]
	ldr	w13, [sp, #108]                 ; 4-byte Folded Reload
	mul	w12, w12, w13
	ldr	w11, [x11, w12, sxtw #2]
	and	w17, w11, #0xff
	ubfx	w14, w11, #8, #8
	ubfx	w11, w11, #16, #8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	lsl	x12, x27, #3
	add	x11, x11, x12
	ldr	x15, [sp, #72]                  ; 8-byte Folded Reload
	ldp	w13, w14, [x15]
	ldr	w16, [sp, #108]                 ; 4-byte Folded Reload
	mul	w13, w13, w16
	ldr	w17, [x11, w13, sxtw #2]
	ldp	x11, x13, [x1, #8]
	add	x11, x11, x12
	mul	w14, w14, w16
	ldr	w14, [x11, w14, sxtw #2]
	add	x11, x13, x12
	ldr	w12, [x15, #8]
	mul	w12, w12, w16
	ldr	w11, [x11, w12, sxtw #2]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
	stp	w11, w14, [sp, #112]            ; 8-byte Folded Spill
	sub	w10, w11, w10
	stp	w17, w10, [sp, #120]            ; 8-byte Folded Spill
	sub	w20, w14, w9
	sub	w22, w17, w8
	lsl	x23, x27, #2
	cbz	x27, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [sp, #108]                  ; 4-byte Folded Reload
	cbz	w8, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x24, #0
	ldp	x9, x8, [sp, #88]               ; 16-byte Folded Reload
	ldr	w8, [x8, x23]
	ldr	w9, [x9, x23]
	ldr	x10, [sp, #80]                  ; 8-byte Folded Reload
	ldr	w10, [x10, x23]
	sub	w25, w20, w8
	add	w8, w25, w10
	ldr	w10, [sp, #124]                 ; 4-byte Folded Reload
	sub	w19, w10, w8
	add	w8, w25, w9
	sub	w21, w22, w8
Lloh3:
	adrp	x26, _choose_rct_params.rct_y_coeff@PAGE+4
Lloh4:
	add	x26, x26, _choose_rct_params.rct_y_coeff@PAGEOFF+4
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	w8, w9, [x26, #-4]
	mul	w8, w8, w19
	madd	w8, w9, w21, w8
	add	w0, w25, w8, asr #2
	bl	_FFABS
	ldr	w8, [x28, x24]
	add	w8, w8, w0
	str	w8, [x28, x24]
	add	x24, x24, #4
	add	x26, x26, #8
	cmp	x24, #60
	b.ne	LBB0_12
	b	LBB0_5
LBB0_13:
	ldp	w4, w3, [sp, #128]
	ldp	w2, w1, [sp, #136]
	ldp	w7, w17, [sp, #144]
	ldp	w16, w15, [sp, #152]
	ldp	w14, w13, [sp, #160]
	ldp	w12, w11, [sp, #168]
	ldp	w10, w9, [sp, #176]
	ldr	w8, [sp, #184]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	b	LBB0_15
LBB0_14:
	mov	w8, #0
	mov	w9, #0
	mov	w10, #0
	mov	w11, #0
	mov	w12, #0
	mov	w13, #0
	mov	w14, #0
	mov	w15, #0
	mov	w16, #0
	mov	w17, #0
	mov	w7, #0
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	mov	w3, #0
LBB0_15:
	cmp	w3, w4
	cset	w3, lt
	add	x4, sp, #128
	add	x5, sp, #128
	bfi	x5, x3, #2, #1
	ldr	w5, [x5]
	mov	w6, #2
	cmp	w2, w5
	csel	w2, w6, w3, lt
	add	x3, sp, #128
	bfi	x3, x2, #2, #2
	ldr	w3, [x3]
	mov	w5, #3
	cmp	w1, w3
	csel	w1, w5, w2, lt
	add	x2, sp, #128
	bfi	x2, x1, #2, #2
	ldr	w2, [x2]
	mov	w3, #4
	cmp	w7, w2
	csel	w3, w3, w1, lt
	ldr	w1, [x4, w3, uxtw #2]
	mov	w2, #5
	cmp	w17, w1
	csel	w17, w2, w3, lt
	ldr	w2, [x4, w17, uxtw #2]
	mov	w1, #6
	cmp	w16, w2
	csel	w16, w1, w17, lt
	ldr	w17, [x4, w16, uxtw #2]
	mov	w1, #7
	cmp	w15, w17
	csel	w15, w1, w16, lt
	ldr	w16, [x4, w15, uxtw #2]
	mov	w17, #8
	cmp	w14, w16
	csel	w14, w17, w15, lt
	ldr	w15, [x4, w14, uxtw #2]
	mov	w16, #9
	cmp	w13, w15
	csel	w13, w16, w14, lt
	ldr	w14, [x4, w13, uxtw #2]
	mov	w15, #10
	cmp	w12, w14
	csel	w12, w15, w13, lt
	ldr	w13, [x4, w12, uxtw #2]
	mov	w14, #11
	cmp	w11, w13
	csel	w11, w14, w12, lt
	ldr	w12, [x4, w11, uxtw #2]
	mov	w13, #12
	cmp	w10, w12
	csel	w10, w13, w11, lt
	ldr	w11, [x4, w10, uxtw #2]
	mov	w12, #13
	cmp	w9, w11
	csel	w9, w12, w10, lt
	ldr	w10, [x4, w9, uxtw #2]
	mov	w11, #14
	cmp	w8, w10
	csel	w8, w11, w9, lt
Lloh5:
	adrp	x9, _choose_rct_params.rct_y_coeff@PAGE
Lloh6:
	add	x9, x9, _choose_rct_params.rct_y_coeff@PAGEOFF
	ldr	d0, [x9, w8, uxtw #3]
	rev64.2s	v0, v0
	str	d0, [x0, #16]
	ldur	x8, [x29, #-96]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @choose_rct_params.rct_y_coeff
_choose_rct_params.rct_y_coeff:
	.space	8
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0

	.comm	_NB_Y_COEFF,4,2                 ; @NB_Y_COEFF
	.no_dead_strip	_choose_rct_params
.subsections_via_symbols
