	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctm_mult_by_limited
_ctm_mult_by_limited:                   ## @ctm_mult_by_limited
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %r13d
	movq	_CTM_COEFF_LIMITED_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r13d, %edi
	callq	_CTM_COEFF_ABS
	movq	_CTM_COEFF_4_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	decq	%rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_clamp_val
	sarl	$2, %eax
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_mul_u32_u32
	sarl	$30, %eax
	movl	%eax, (%r15,%rbx,4)
	movq	_CTM_COEFF_SIGN@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r13d
	orl	%eax, %r13d
	movl	%r13d, (%r15,%rbx,4)
	incq	%rbx
	cmpq	$9, %rbx
	jne	LBB0_1
## %bb.2:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTM_COEFF_LIMITED_RANGE,4,2    ## @CTM_COEFF_LIMITED_RANGE
	.comm	_CTM_COEFF_4_0,8,3              ## @CTM_COEFF_4_0
	.comm	_CTM_COEFF_SIGN,4,2             ## @CTM_COEFF_SIGN
	.no_dead_strip	_ctm_mult_by_limited
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctm_mult_by_limited
_ctm_mult_by_limited:                   ; @ctm_mult_by_limited
	.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	x20, x1
	mov	x19, x0
	mov	x23, #0
Lloh0:
	adrp	x24, _CTM_COEFF_LIMITED_RANGE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CTM_COEFF_LIMITED_RANGE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _CTM_COEFF_4_0@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CTM_COEFF_4_0@GOTPAGEOFF]
Lloh4:
	adrp	x26, _CTM_COEFF_SIGN@GOTPAGE
Lloh5:
	ldr	x26, [x26, _CTM_COEFF_SIGN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x20, x23]
	ldr	w22, [x24]
	mov	x0, x21
	bl	_CTM_COEFF_ABS
	ldr	x8, [x25]
	sub	x2, x8, #1
	mov	w1, #0
	bl	_clamp_val
	asr	w1, w0, #2
	mov	x0, x22
	bl	_mul_u32_u32
	asr	w8, w0, #30
	str	w8, [x19, x23]
	ldr	w9, [x26]
	and	w9, w9, w21
	orr	w8, w9, w8
	str	w8, [x19, x23]
	add	x23, x23, #4
	cmp	x23, #36
	b.ne	LBB0_1
; %bb.2:
	mov	x0, x19
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CTM_COEFF_LIMITED_RANGE,4,2    ; @CTM_COEFF_LIMITED_RANGE
	.comm	_CTM_COEFF_4_0,8,3              ; @CTM_COEFF_4_0
	.comm	_CTM_COEFF_SIGN,4,2             ; @CTM_COEFF_SIGN
	.no_dead_strip	_ctm_mult_by_limited
.subsections_via_symbols
