	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_transform_coeffs_cpl
_calc_transform_coeffs_cpl:             ## @calc_transform_coeffs_cpl
	.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
	movl	8(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_23
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	_CPL_CH@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	24(%rdi), %ecx
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %r8d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	movslq	%r8d, %r9
	movl	%esi, %edx
	cmpq	%r9, %rax
	jge	LBB0_23
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##       Child Loop BB0_15 Depth 3
                                        ##       Child Loop BB0_19 Depth 3
	movq	16(%rbx), %rsi
	movl	(%rsi,%rax,4), %esi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	addl	%edx, %esi
	testl	%ecx, %ecx
	jle	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	%edx, %rax
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r13
	leaq	1(%rax), %rcx
	cmpq	%r13, %rcx
	cmovleq	%r13, %rcx
	subq	%rax, %rcx
	leaq	-8(%rcx), %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	shrq	$3, %rdx
	incq	%rdx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	andq	$-8, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	addq	%rcx, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rax
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	andq	$-2, %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=2
	leaq	1(%r12), %rax
	movslq	24(%rbx), %rcx
	cmpq	%rcx, %r12
	movq	%rax, %r12
	jge	LBB0_21
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##       Child Loop BB0_15 Depth 3
                                        ##       Child Loop BB0_19 Depth 3
	movq	56(%rbx), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	32(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %eax
	shll	$5, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	40(%rbx), %rcx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r14), %rax
	movq	(%rcx,%rax,8), %rax
	movl	(%rax,%r15,4), %edi
	shll	$4, %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_MULH
	movq	40(%rbx), %rcx
	movq	(%rcx,%r12,8), %rdx
	movl	%eax, (%rdx,%r15,4)
	incq	%r15
	cmpq	%r13, %r15
	jl	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$2, %r12
	jne	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	48(%rbx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	40(%rbx), %rax
	movq	16(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$8, -72(%rbp)                   ## 8-byte Folded Reload
	jb	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$8, -120(%rbp)                  ## 8-byte Folded Reload
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdx
	addq	$48, %rdx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movdqu	-48(%rdx,%rcx,4), %xmm0
	movdqu	-32(%rdx,%rcx,4), %xmm1
	movdqu	-16(%rdx,%rcx,4), %xmm2
	movdqu	(%rdx,%rcx,4), %xmm3
	pxor	%xmm4, %xmm4
	psubd	%xmm0, %xmm4
	pxor	%xmm0, %xmm0
	psubd	%xmm1, %xmm0
	movdqu	%xmm4, -48(%rdx,%rcx,4)
	movdqu	%xmm0, -32(%rdx,%rcx,4)
	pxor	%xmm0, %xmm0
	psubd	%xmm2, %xmm0
	pxor	%xmm1, %xmm1
	psubd	%xmm3, %xmm1
	movdqu	%xmm0, -16(%rdx,%rcx,4)
	movdqu	%xmm1, (%rdx,%rcx,4)
	addq	$16, %rcx
	addq	$-2, %rsi
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	testb	$1, -112(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=2
	addq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	movdqu	(%rax,%rcx,4), %xmm0
	movdqu	16(%rax,%rcx,4), %xmm1
	pxor	%xmm2, %xmm2
	psubd	%xmm0, %xmm2
	pxor	%xmm0, %xmm0
	psubd	%xmm1, %xmm0
	movdqu	%xmm2, (%rax,%rcx,4)
	movdqu	%xmm0, 16(%rax,%rcx,4)
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	cmpq	%rdx, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	negl	(%rax,%rcx,4)
	incq	%rcx
	cmpq	%r13, %rcx
	jl	LBB0_19
	jmp	LBB0_20
LBB0_23:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPL_CH,8,3                     ## @CPL_CH
	.no_dead_strip	_calc_transform_coeffs_cpl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_transform_coeffs_cpl
_calc_transform_coeffs_cpl:             ; @calc_transform_coeffs_cpl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	ldr	x9, [x0]
Lloh0:
	adrp	x22, _CPL_CH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CPL_CH@GOTPAGEOFF]
	ldr	x10, [x22]
	ldr	w10, [x9, x10, lsl #2]
	ldr	w9, [x0, #24]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	ldr	x11, [sp]                       ; 8-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	mov	x10, x11
	b.ge	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;       Child Loop BB0_15 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	ldr	x11, [x19, #16]
	ldr	w24, [x11, x21, lsl #2]
	add	w11, w24, w10
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x28, w10
	sxtw	x26, w11
	add	x8, x28, #1
	cmp	x8, x26
	csinc	x8, x26, x28, le
	sub	x8, x8, x28
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	and	x8, x8, #0xfffffffffffffff0
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	add	x8, x8, x28
	stp	x11, x8, [sp]                   ; 16-byte Folded Spill
	mov	w23, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x8, x23, #1
	ldrsw	x9, [x19, #24]
	cmp	x23, x9
	mov	x23, x8
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;       Child Loop BB0_15 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	ldr	x8, [x19, #56]
	ldr	x8, [x8, x23, lsl #3]
	cbz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w24, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldp	x9, x8, [x19, #32]
	ldr	x9, [x9, x23, lsl #3]
	ldr	w9, [x9, x21, lsl #2]
	lsl	w20, w9, #5
	mov	x25, x28
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	lsl	x27, x25, #2
	ldr	w8, [x8, x27]
	lsl	w0, w8, #4
	mov	x1, x20
	bl	_MULH
	ldr	x8, [x19, #40]
	ldr	x9, [x8, x23, lsl #3]
	str	w0, [x9, x27]
	add	x25, x25, #1
	cmp	x25, x26
	b.lt	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	x23, #2
	b.ne	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x21, lsl #3]
	cmp	x8, #0
	ccmp	w24, #1, #8, ne
	b.lt	LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #16]
	mov	x9, x28
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	cmp	x10, #16
	b.lo	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=2
	add	x9, x8, x28, lsl #2
	add	x9, x9, #32
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	q0, q1, [x9, #-32]
	ldp	q2, q3, [x9]
	neg.4s	v0, v0
	neg.4s	v1, v1
	neg.4s	v2, v2
	neg.4s	v3, v3
	stp	q0, q1, [x9, #-32]
	stp	q2, q3, [x9], #64
	subs	x10, x10, #16
	b.ne	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=2
	ldp	x9, x11, [sp, #8]               ; 16-byte Folded Reload
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	cmp	x10, x11
	b.eq	LBB0_6
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsl	x10, x9, #2
	ldr	w11, [x8, x10]
	neg	w11, w11
	str	w11, [x8, x10]
	add	x9, x9, #1
	cmp	x9, x26
	b.lt	LBB0_17
	b	LBB0_6
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CPL_CH,8,3                     ; @CPL_CH
	.no_dead_strip	_calc_transform_coeffs_cpl
.subsections_via_symbols
