	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hScale8To15_c
_hScale8To15_c:                         ## @hScale8To15_c
	.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
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_15
## %bb.1:
	movslq	16(%rbp), %rcx
	movl	%edx, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%r15d, %eax
	andl	$-4, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	addq	$-4, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	shrq	$2, %rdx
	incq	%rdx
	movq	%rdx, %rax
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	andq	$-2, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$48, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	24(%r14), %r12
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,4), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	sarl	$7, %edi
	movl	$32767, %esi                    ## imm = 0x7FFF
	callq	_FFMIN
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	addq	%r13, %r12
	addq	%r13, %r14
	cmpq	-120(%rbp), %rbx                ## 8-byte Folded Reload
	je	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movl	$0, %edi
	cmpl	$0, 16(%rbp)
	jle	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax,%rbx,4), %rax
	cmpl	$4, 16(%rbp)
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rdx
	pxor	%xmm0, %xmm0
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-48(%rdx,%rcx,8), %xmm2
	movdqu	-32(%rdx,%rcx,8), %xmm3
	movdqu	-16(%rdx,%rcx,8), %xmm4
	movdqu	(%rdx,%rcx,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	movq	-24(%r12,%rcx,4), %xmm6         ## xmm6 = mem[0],zero
	pmulld	%xmm2, %xmm6
	paddd	%xmm0, %xmm6
	movq	-16(%r12,%rcx,4), %xmm2         ## xmm2 = mem[0],zero
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	pshufd	$232, %xmm4, %xmm1              ## xmm1 = xmm4[0,2,2,3]
	pshufd	$232, %xmm5, %xmm3              ## xmm3 = xmm5[0,2,2,3]
	movq	-8(%r12,%rcx,4), %xmm0          ## xmm0 = mem[0],zero
	pmulld	%xmm1, %xmm0
	paddd	%xmm6, %xmm0
	movq	(%r12,%rcx,4), %xmm1            ## xmm1 = mem[0],zero
	pmulld	%xmm3, %xmm1
	paddd	%xmm2, %xmm1
	addq	$8, %rcx
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -88(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdx
	imulq	-64(%rbp), %rdx                 ## 8-byte Folded Reload
	leaq	(%rcx,%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movdqu	(%rdi,%rsi,8), %xmm2
	movdqu	16(%rdi,%rsi,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	addq	%rcx, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rdx,4), %xmm4            ## xmm4 = mem[0],zero
	pmulld	%xmm2, %xmm4
	paddd	%xmm4, %xmm0
	movq	8(%rcx,%rdx,4), %xmm2           ## xmm2 = mem[0],zero
	pmulld	%xmm3, %xmm2
	paddd	%xmm2, %xmm1
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, %rcx
	cmpq	%r15, %rdx
	je	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %rax
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14,%rcx,4), %edx
	imull	(%rax,%rcx,8), %edx
	addl	%edx, %edi
	incq	%rcx
	cmpq	%rcx, %r15
	jne	LBB0_13
	jmp	LBB0_14
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	testb	$1, -88(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_10
	jmp	LBB0_11
LBB0_15:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hScale8To15_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hScale8To15_c
_hScale8To15_c:                         ; @hScale8To15_c
	.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
	stp	x4, x5, [sp, #16]               ; 16-byte Folded Spill
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w2, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x6
	mov	x23, x1
	mov	x24, #0
	mov	x25, #0
	mov	w26, w2
	mov	w27, w6
	sxtw	x28, w19
	and	x21, x27, #0xfffffff8
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x22, x8, #16
	sbfiz	x20, x19, #2, #32
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x8, #32
	str	x8, [sp]                        ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	asr	w0, w9, #7
	mov	w1, #32767
	bl	_FFMIN
	str	w0, [x23, x25, lsl #2]
	add	x25, x25, #1
	add	x22, x22, x20
	add	x24, x24, x28
	cmp	x25, x26
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldrsw	x8, [x8, x25, lsl #2]
	cmp	w19, #8
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, #0
	mov	w9, #0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	add	x9, x9, x8, lsl #3
	movi.2d	v0, #0000000000000000
	mov	x10, x22
	mov	x11, x21
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x9, #-32]
	ldp	q6, q7, [x9], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	ldp	d16, d17, [x10, #-16]
	ldp	d18, d19, [x10], #32
	mla.2s	v0, v16, v4
	mla.2s	v1, v17, v5
	mla.2s	v2, v18, v6
	mla.2s	v3, v19, v7
	subs	x11, x11, #8
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w9, s0
	mov	x11, x21
	cmp	x21, x27
	b.eq	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x11, x24
	ldr	x12, [sp, #16]                  ; 8-byte Folded Reload
	add	x10, x12, x10, lsl #2
	add	x8, x11, x8
	ldr	x12, [sp, #8]                   ; 8-byte Folded Reload
	add	x8, x12, x8, lsl #3
	sub	x11, x27, x11
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x8], #8
	ldr	w13, [x10], #4
	madd	w9, w13, w12, w9
	subs	x11, x11, #1
	b.ne	LBB0_11
	b	LBB0_3
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hScale8To15_c
.subsections_via_symbols
