	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dither_int_to_float_rectangular_c
_dither_int_to_float_rectangular_c:     ## @dither_int_to_float_rectangular_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_11
## %bb.1:
	movq	_LFG_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%edx, %r10d
	cmpl	$8, %edx
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_3:
	movl	%r10d, %edx
	andl	$-8, %edx
	movd	%r8d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r9, %rcx
	andq	$-2, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rax,4), %xmm1
	movdqu	16(%rsi,%rax,4), %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	cvtdq2ps	%xmm1, %xmm1
	cvtdq2ps	%xmm2, %xmm2
	movups	%xmm1, (%rdi,%rax,4)
	movups	%xmm2, 16(%rdi,%rax,4)
	movdqu	32(%rsi,%rax,4), %xmm1
	movdqu	48(%rsi,%rax,4), %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	cvtdq2ps	%xmm1, %xmm1
	cvtdq2ps	%xmm2, %xmm2
	movups	%xmm1, 32(%rdi,%rax,4)
	movups	%xmm2, 48(%rdi,%rax,4)
	addq	$16, %rax
	addq	$-2, %rcx
	jne	LBB0_6
## %bb.7:
	testb	$1, %r9b
	je	LBB0_9
LBB0_8:
	movdqu	(%rsi,%rax,4), %xmm1
	movdqu	16(%rsi,%rax,4), %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	cvtdq2ps	%xmm1, %xmm0
	cvtdq2ps	%xmm2, %xmm1
	movups	%xmm0, (%rdi,%rax,4)
	movups	%xmm1, 16(%rdi,%rax,4)
LBB0_9:
	cmpq	%r10, %rdx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdx,4), %eax
	imull	%r8d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, (%rdi,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %r10
	jne	LBB0_10
LBB0_11:
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	testb	$1, %r9b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_LFG_SCALE,4,2                  ## @LFG_SCALE
	.no_dead_strip	_dither_int_to_float_rectangular_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_rectangular_c
_dither_int_to_float_rectangular_c:     ; @dither_int_to_float_rectangular_c
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _LFG_SCALE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LFG_SCALE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, w2
	cmp	w2, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x9, #0xfffffff0
	dup.4s	v0, w8
	add	x11, x0, #32
	add	x12, x1, #32
	mov	x13, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x12, #-32]
	ldp	q3, q4, [x12], #64
	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
	stp	q1, q2, [x11, #-32]
	stp	q3, q4, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x9
	b.eq	LBB0_8
LBB0_6:
	lsl	x12, x10, #2
	add	x11, x0, x12
	add	x12, x1, x12
	sub	x9, x9, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x12], #4
	mul	w10, w8, w10
	scvtf	s0, w10
	str	s0, [x11], #4
	subs	x9, x9, #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_rectangular_c
.subsections_via_symbols
