	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sws_scaleVec                   ## -- Begin function sws_scaleVec
	.p2align	4, 0x90
_sws_scaleVec:                          ## @sws_scaleVec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movq	8(%rdi), %rcx
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %edx
	andl	$-4, %edx
	movddup	%xmm0, %xmm1                    ## xmm1 = xmm0[0,0]
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movupd	(%rcx,%rsi,8), %xmm2
	movupd	16(%rcx,%rsi,8), %xmm3
	movupd	32(%rcx,%rsi,8), %xmm4
	movupd	48(%rcx,%rsi,8), %xmm5
	mulpd	%xmm1, %xmm2
	mulpd	%xmm1, %xmm3
	movupd	%xmm2, (%rcx,%rsi,8)
	movupd	%xmm3, 16(%rcx,%rsi,8)
	mulpd	%xmm1, %xmm4
	mulpd	%xmm1, %xmm5
	movupd	%xmm4, 32(%rcx,%rsi,8)
	movupd	%xmm5, 48(%rcx,%rsi,8)
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movupd	(%rcx,%rsi,8), %xmm2
	movupd	16(%rcx,%rsi,8), %xmm3
	mulpd	%xmm1, %xmm2
	mulpd	%xmm1, %xmm3
	movupd	%xmm2, (%rcx,%rsi,8)
	movupd	%xmm3, 16(%rcx,%rsi,8)
LBB0_9:
	cmpq	%rax, %rdx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movsd	(%rcx,%rdx,8), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, (%rcx,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_10
LBB0_11:
	popq	%rbp
	retq
LBB0_4:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sws_scaleVec                   ; -- Begin function sws_scaleVec
	.p2align	2
_sws_scaleVec:                          ; @sws_scaleVec
	.cfi_startproc
; %bb.0:
                                        ; kill: def $d0 killed $d0 def $q0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x9, [x0, #8]
	cmp	w8, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x8, #0xfffffff8
	dup.2d	v1, v0[0]
	add	x11, x9, #32
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x11, #-32]
	ldp	q4, q5, [x11]
	fmul.2d	v2, v2, v1
	fmul.2d	v3, v3, v1
	fmul.2d	v4, v4, v1
	fmul.2d	v5, v5, v0[0]
	stp	q2, q3, [x11, #-32]
	stp	q4, q5, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x8
	b.eq	LBB0_8
LBB0_6:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x9]
	fmul	d1, d1, d0
	str	d1, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
