	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function lumRangeFromJpeg_c
LCPI0_0:
	.long	14071                           ## 0x36f7
	.long	14071                           ## 0x36f7
	.long	14071                           ## 0x36f7
	.long	14071                           ## 0x36f7
LCPI0_1:
	.long	33561947                        ## 0x2001d5b
	.long	33561947                        ## 0x2001d5b
	.long	33561947                        ## 0x2001d5b
	.long	33561947                        ## 0x2001d5b
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_lumRangeFromJpeg_c:                    ## @lumRangeFromJpeg_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	%esi, %esi
	jle	LBB0_11
## %bb.1:
	movl	%esi, %eax
	cmpl	$8, %esi
	jae	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rdx
	movq	%rdx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.5:
	movq	%r8, %rsi
	andq	$-2, %rsi
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [14071,14071,14071,14071]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [33561947,33561947,33561947,33561947]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rdx,4), %xmm2
	movdqu	16(%rdi,%rdx,4), %xmm3
	movdqu	32(%rdi,%rdx,4), %xmm4
	movdqu	48(%rdi,%rdx,4), %xmm5
	pmulld	%xmm0, %xmm2
	pmulld	%xmm0, %xmm3
	paddd	%xmm1, %xmm2
	paddd	%xmm1, %xmm3
	psrad	$14, %xmm2
	psrad	$14, %xmm3
	movdqu	%xmm2, (%rdi,%rdx,4)
	movdqu	%xmm3, 16(%rdi,%rdx,4)
	pmulld	%xmm0, %xmm4
	pmulld	%xmm0, %xmm5
	paddd	%xmm1, %xmm4
	paddd	%xmm1, %xmm5
	psrad	$14, %xmm4
	psrad	$14, %xmm5
	movdqu	%xmm4, 32(%rdi,%rdx,4)
	movdqu	%xmm5, 48(%rdi,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rsi
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rdi,%rdx,4), %xmm0
	movdqu	16(%rdi,%rdx,4), %xmm1
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [14071,14071,14071,14071]
	pmulld	%xmm2, %xmm0
	pmulld	%xmm2, %xmm1
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [33561947,33561947,33561947,33561947]
	paddd	%xmm2, %xmm0
	paddd	%xmm2, %xmm1
	psrad	$14, %xmm0
	psrad	$14, %xmm1
	movdqu	%xmm0, (%rdi,%rdx,4)
	movdqu	%xmm1, 16(%rdi,%rdx,4)
LBB0_9:
	cmpq	%rax, %rcx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	imull	$14071, (%rdi,%rcx,4), %edx     ## imm = 0x36F7
	addl	$33561947, %edx                 ## imm = 0x2001D5B
	sarl	$14, %edx
	movl	%edx, (%rdi,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_10
LBB0_11:
	popq	%rbp
	retq
LBB0_4:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lumRangeFromJpeg_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lumRangeFromJpeg_c
_lumRangeFromJpeg_c:                    ; @lumRangeFromJpeg_c
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w8, w1
	cmp	w1, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	and	x9, x8, #0xfffffff0
	add	x10, x0, #32
	mov	w11, #14071
	dup.4s	v0, w11
	mov	w11, #7515
	movk	w11, #512, lsl #16
	dup.4s	v1, w11
	mov	x11, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x10, #-32]
	ldp	q4, q5, [x10]
	mov.16b	v6, v1
	mla.4s	v6, v2, v0
	mov.16b	v2, v1
	mla.4s	v2, v3, v0
	mov.16b	v3, v1
	mla.4s	v3, v4, v0
	mov.16b	v4, v1
	mla.4s	v4, v5, v0
	sshr.4s	v5, v6, #14
	sshr.4s	v2, v2, #14
	sshr.4s	v3, v3, #14
	stp	q5, q2, [x10, #-32]
	sshr.4s	v2, v4, #14
	stp	q3, q2, [x10], #64
	subs	x11, x11, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	sub	x8, x8, x9
	mov	w10, #14071
	mov	w11, #7515
	movk	w11, #512, lsl #16
	add	x9, x0, x9, lsl #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9]
	madd	w12, w12, w10, w11
	asr	w12, w12, #14
	str	w12, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lumRangeFromJpeg_c
.subsections_via_symbols
