	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function compute_histogram16
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_compute_histogram16:                   ## @compute_histogram16
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	leaq	(,%r9,4), %rdx
	xorl	%r14d, %r14d
	movq	%r8, %rdi
	xorl	%esi, %esi
	callq	_memset
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.1:
	movslq	-44(%rbp), %r9                  ## 4-byte Folded Reload
	movl	%r12d, %ecx
	leaq	-1(%rcx), %r8
	movl	%ecx, %esi
	andl	$3, %esi
	andl	$-4, %ecx
	shlq	$3, %r9
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	addq	%r9, %r13
	cmpl	%r15d, %r14d
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpq	$3, %r8
	jb	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%rdi,8), %rdx
	movss	(%rbx,%rdx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, (%rbx,%rdx,4)
	movq	8(%r13,%rdi,8), %rdx
	movss	(%rbx,%rdx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, (%rbx,%rdx,4)
	movq	16(%r13,%rdi,8), %rdx
	movss	(%rbx,%rdx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, (%rbx,%rdx,4)
	movq	24(%r13,%rdi,8), %rdx
	movss	(%rbx,%rdx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, (%rbx,%rdx,4)
	addq	$4, %rdi
	cmpq	%rdi, %rcx
	jne	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%rdi,8), %rdi
	addq	%r13, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%rdx,8), %rax
	movss	(%rbx,%rax,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, (%rbx,%rax,4)
	incq	%rdx
	cmpq	%rdx, %rsi
	jne	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	js	LBB0_10
## %bb.11:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rdx, %xmm0
	jmp	LBB0_12
LBB0_10:
	movq	%rdx, %rax
	shrq	%rax
	movl	%edx, %ecx
	andl	$1, %ecx
	orq	%rax, %rcx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rcx, %xmm0
	addss	%xmm0, %xmm0
LBB0_12:
	movq	%rdx, %rax
	decq	%rax
	je	LBB0_13
## %bb.14:
	movss	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	cmpq	$2, %rdx
	jne	LBB0_16
## %bb.15:
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_16:
	movq	%rax, %rdx
	andq	$-2, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movss	4(%rbx,%rsi,4), %xmm2           ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm2
	divss	%xmm0, %xmm1
	movss	%xmm1, (%rbx,%rsi,4)
	leaq	2(%rsi), %rcx
	movss	8(%rbx,%rsi,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm1
	movss	%xmm1, 8(%rbx,%rsi,4)
	divss	%xmm0, %xmm2
	movss	%xmm2, 4(%rbx,%rsi,4)
	movq	%rcx, %rsi
	cmpq	%rcx, %rdx
	jne	LBB0_17
LBB0_18:
	testb	$1, %al
	je	LBB0_20
## %bb.19:
	movss	4(%rbx,%rcx,4), %xmm2           ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm2
	movss	%xmm2, 4(%rbx,%rcx,4)
	divss	%xmm0, %xmm1
	movss	%xmm1, (%rbx,%rcx,4)
LBB0_20:
	movl	%eax, %eax
LBB0_21:
	movss	(%rbx,%rax,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movss	%xmm1, (%rbx,%rax,4)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compute_histogram16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_histogram16
_compute_histogram16:                   ; @compute_histogram16
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x5
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x23, x0
	lsl	x2, x5, #2
	mov	x0, x4
	mov	w1, #0
	bl	_memset
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w8, #0
	mov	w10, w22
	sbfiz	x9, x24, #3, #32
	lsl	x10, x10, #3
	fmov	s0, #1.00000000
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	add	x23, x23, x9
	cmp	w8, w21
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x23, x11]
	lsl	x12, x12, #2
	ldr	s1, [x19, x12]
	fadd	s1, s1, s0
	str	s1, [x19, x12]
	add	x11, x11, #8
	cmp	x10, x11
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ucvtf	s0, x20
	subs	x8, x20, #1
	b.eq	LBB0_10
; %bb.7:
	mov	x9, x19
	ldr	s1, [x9], #4
	mov	x10, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s2, [x9]
	fdiv	s3, s1, s0
	fadd	s1, s1, s2
	stp	s3, s1, [x9, #-4]
	add	x9, x9, #4
	subs	x10, x10, #1
	b.ne	LBB0_8
; %bb.9:
	and	x8, x8, #0xffffffff
LBB0_10:
	lsl	x8, x8, #2
	ldr	s1, [x19, x8]
	fdiv	s0, s1, s0
	str	s0, [x19, x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compute_histogram16
.subsections_via_symbols
