	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dither_int_to_float_triangular_c
_dither_int_to_float_triangular_c:      ## @dither_int_to_float_triangular_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	%rbx
	.cfi_offset %rbx, -24
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	movslq	%edx, %r8
	movq	_LFG_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	%edx, %r9d
	cmpl	$8, %edx
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_3:
	movl	%r9d, %edx
	andl	$-8, %edx
	movd	%r10d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	16(%rsi), %rcx
	leaq	(%rsi,%r8,4), %rax
	addq	$16, %rax
	leaq	(,%r9,4), %r11
	andq	$-32, %r11
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rcx,%rbx), %xmm1
	movdqu	(%rcx,%rbx), %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	cvtdq2ps	%xmm1, %xmm1
	cvtdq2ps	%xmm2, %xmm2
	movdqu	-16(%rax,%rbx), %xmm3
	movdqu	(%rax,%rbx), %xmm4
	pmulld	%xmm0, %xmm3
	pmulld	%xmm0, %xmm4
	cvtdq2ps	%xmm3, %xmm3
	addps	%xmm1, %xmm3
	cvtdq2ps	%xmm4, %xmm1
	addps	%xmm2, %xmm1
	movups	%xmm3, (%rdi,%rbx)
	movups	%xmm1, 16(%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r11
	jne	LBB0_4
## %bb.5:
	cmpq	%r9, %rdx
	je	LBB0_8
LBB0_6:
	leaq	(%rsi,%r8,4), %rax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdx,4), %ecx
	imull	%r10d, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	movl	(%rax,%rdx,4), %ecx
	imull	%r10d, %ecx
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ecx, %xmm1
	addss	%xmm0, %xmm1
	movss	%xmm1, (%rdi,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %r9
	jne	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LFG_SCALE,4,2                  ## @LFG_SCALE
	.no_dead_strip	_dither_int_to_float_triangular_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dither_int_to_float_triangular_c
_dither_int_to_float_triangular_c:      ; @dither_int_to_float_triangular_c
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.1:
	sxtw	x8, w2
Lloh0:
	adrp	x9, _LFG_SCALE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LFG_SCALE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	w10, w2
	cmp	w2, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x11, #0
	b	LBB0_6
LBB0_3:
	and	x11, x10, #0xfffffff0
	dup.4s	v0, w9
	add	x12, x0, #32
	add	x13, x1, #32
	lsl	x14, x8, #2
	mov	x15, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x13, #-32]
	ldp	q3, q4, [x13]
	mul.4s	v1, v0, v1
	mul.4s	v2, v0, v2
	mul.4s	v3, v0, v3
	mul.4s	v4, v0, v4
	scvtf.4s	v1, v1
	scvtf.4s	v2, v2
	scvtf.4s	v3, v3
	scvtf.4s	v4, v4
	add	x16, x13, x14
	ldp	q5, q6, [x16, #-32]
	ldp	q7, q16, [x16]
	mul.4s	v5, v5, v0
	mul.4s	v6, v6, v0
	mul.4s	v7, v7, v0
	mul.4s	v16, v16, v0
	scvtf.4s	v5, v5
	scvtf.4s	v6, v6
	scvtf.4s	v7, v7
	scvtf.4s	v16, v16
	fadd.4s	v1, v1, v5
	fadd.4s	v2, v2, v6
	fadd.4s	v3, v3, v7
	stp	q1, q2, [x12, #-32]
	fadd.4s	v1, v4, v16
	stp	q3, q1, [x12], #64
	add	x13, x13, #64
	subs	x15, x15, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x10
	b.eq	LBB0_8
LBB0_6:
	lsl	x13, x11, #2
	add	x12, x0, x13
	add	x13, x1, x13
	sub	x10, x10, x11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x13]
	mul	w11, w9, w11
	scvtf	s0, w11
	ldr	w11, [x13, x8, lsl #2]
	mul	w11, w11, w9
	scvtf	s1, w11
	fadd	s0, s0, s1
	str	s0, [x12], #4
	add	x13, x13, #4
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LFG_SCALE,4,2                  ; @LFG_SCALE
	.no_dead_strip	_dither_int_to_float_triangular_c
.subsections_via_symbols
