	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function chrRangeFromJpeg16_c
LCPI0_0:
	.long	1799                            ## 0x707
	.long	1799                            ## 0x707
	.long	1799                            ## 0x707
	.long	1799                            ## 0x707
LCPI0_1:
	.long	65297360                        ## 0x3e45bd0
	.long	65297360                        ## 0x3e45bd0
	.long	65297360                        ## 0x3e45bd0
	.long	65297360                        ## 0x3e45bd0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_chrRangeFromJpeg16_c:                  ## @chrRangeFromJpeg16_c
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	jle	LBB0_16
## %bb.1:
	movl	%edx, %r9d
	cmpl	$4, %edx
	jb	LBB0_2
## %bb.3:
	leaq	(%rsi,%r9,4), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(%rdi,%r9,4), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_6
LBB0_2:
	xorl	%ecx, %ecx
LBB0_12:
	movq	%rcx, %rax
	notq	%rax
	testb	$1, %r9b
	je	LBB0_14
## %bb.13:
	imull	$1799, (%rdi,%rcx,4), %edx      ## imm = 0x707
	addl	$65297360, %edx                 ## imm = 0x3E45BD0
	sarl	$11, %edx
	movl	%edx, (%rdi,%rcx,4)
	imull	$1799, (%rsi,%rcx,4), %edx      ## imm = 0x707
	addl	$65297360, %edx                 ## imm = 0x3E45BD0
	sarl	$11, %edx
	movl	%edx, (%rsi,%rcx,4)
	orq	$1, %rcx
LBB0_14:
	addq	%r9, %rax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	imull	$1799, (%rdi,%rcx,4), %eax      ## imm = 0x707
	addl	$65297360, %eax                 ## imm = 0x3E45BD0
	sarl	$11, %eax
	movl	%eax, (%rdi,%rcx,4)
	imull	$1799, (%rsi,%rcx,4), %eax      ## imm = 0x707
	addl	$65297360, %eax                 ## imm = 0x3E45BD0
	sarl	$11, %eax
	movl	%eax, (%rsi,%rcx,4)
	imull	$1799, 4(%rdi,%rcx,4), %eax     ## imm = 0x707
	addl	$65297360, %eax                 ## imm = 0x3E45BD0
	sarl	$11, %eax
	movl	%eax, 4(%rdi,%rcx,4)
	imull	$1799, 4(%rsi,%rcx,4), %eax     ## imm = 0x707
	addl	$65297360, %eax                 ## imm = 0x3E45BD0
	sarl	$11, %eax
	movl	%eax, 4(%rsi,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %r9
	jne	LBB0_15
	jmp	LBB0_16
LBB0_6:
	movl	%r9d, %ecx
	andl	$-4, %ecx
	leaq	-4(%rcx), %rax
	movq	%rax, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%r8, %rax
	andq	$-2, %rax
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1799,1799,1799,1799]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [65297360,65297360,65297360,65297360]
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rdx,4), %xmm2
	pmulld	%xmm0, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$11, %xmm2
	movdqu	%xmm2, (%rdi,%rdx,4)
	movdqu	(%rsi,%rdx,4), %xmm2
	pmulld	%xmm0, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$11, %xmm2
	movdqu	%xmm2, (%rsi,%rdx,4)
	movdqu	16(%rdi,%rdx,4), %xmm2
	pmulld	%xmm0, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$11, %xmm2
	movdqu	%xmm2, 16(%rdi,%rdx,4)
	movdqu	16(%rsi,%rdx,4), %xmm2
	pmulld	%xmm0, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$11, %xmm2
	movdqu	%xmm2, 16(%rsi,%rdx,4)
	addq	$8, %rdx
	addq	$-2, %rax
	jne	LBB0_8
## %bb.9:
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	movdqu	(%rdi,%rdx,4), %xmm0
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1799,1799,1799,1799]
	pmulld	%xmm1, %xmm0
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [65297360,65297360,65297360,65297360]
	paddd	%xmm2, %xmm0
	psrad	$11, %xmm0
	movdqu	%xmm0, (%rdi,%rdx,4)
	movdqu	(%rsi,%rdx,4), %xmm0
	pmulld	%xmm1, %xmm0
	paddd	%xmm2, %xmm0
	psrad	$11, %xmm0
	movdqu	%xmm0, (%rsi,%rdx,4)
LBB0_11:
	cmpq	%r9, %rcx
	jne	LBB0_12
LBB0_16:
	popq	%rbp
	retq
LBB0_17:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_chrRangeFromJpeg16_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chrRangeFromJpeg16_c
_chrRangeFromJpeg16_c:                  ; @chrRangeFromJpeg16_c
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w8, w2
	cmp	w2, #8
	b.lo	LBB0_6
; %bb.2:
	lsl	x9, x8, #2
	add	x10, x0, x9
	add	x9, x1, x9
	cmp	x9, x0
	ccmp	x10, x1, #0, hi
	b.hi	LBB0_6
; %bb.3:
	and	x9, x8, #0xfffffff8
	add	x10, x0, #16
	add	x11, x1, #16
	mov	w12, #1799
	dup.4s	v0, w12
	mov	w12, #23504
	movk	w12, #996, lsl #16
	dup.4s	v1, w12
	mov	x12, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x10, #-16]
	mov.16b	v4, v1
	mla.4s	v4, v2, v0
	mov.16b	v2, v1
	mla.4s	v2, v3, v0
	sshr.4s	v3, v4, #11
	sshr.4s	v2, v2, #11
	stp	q3, q2, [x10, #-16]
	ldp	q2, q3, [x11, #-16]
	mov.16b	v4, v1
	mla.4s	v4, v2, v0
	mov.16b	v2, v1
	mla.4s	v2, v3, v0
	sshr.4s	v3, v4, #11
	sshr.4s	v2, v2, #11
	stp	q3, q2, [x11, #-16]
	add	x10, x10, #32
	add	x11, x11, #32
	subs	x12, x12, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x9, #0
LBB0_7:
	mov	w10, #23504
	movk	w10, #996, lsl #16
	lsl	x12, x9, #2
	add	x11, x1, x12
	add	x12, x0, x12
	sub	x8, x8, x9
	mov	w9, #1799
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	madd	w13, w13, w9, w10
	asr	w13, w13, #11
	str	w13, [x12], #4
	ldr	w13, [x11]
	madd	w13, w13, w9, w10
	asr	w13, w13, #11
	str	w13, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_chrRangeFromJpeg16_c
.subsections_via_symbols
