	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dt_aggregate_lquantize
_dt_aggregate_lquantize:                ## @dt_aggregate_lquantize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_DTRACE_LQUANTIZE_LEVELS
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$-1, %eax
	jl	LBB0_16
## %bb.1:
	leaq	8(%rbx), %r9
	addl	$2, %eax
	cmpl	$4, %eax
	jb	LBB0_2
## %bb.3:
	leaq	(%r14,%rax,8), %rdx
	addq	$8, %rdx
	cmpq	%rdx, %r9
	jae	LBB0_6
## %bb.4:
	leaq	(%rbx,%rax,8), %rdx
	addq	$8, %rdx
	leaq	8(%r14), %rsi
	cmpq	%rdx, %rsi
	jae	LBB0_6
LBB0_2:
	xorl	%edx, %edx
LBB0_12:
	movq	%rdx, %r8
	notq	%r8
	addq	%rax, %r8
	movq	%rax, %rdi
	andq	$3, %rdi
	je	LBB0_17
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%rdx), %rsi
	movq	8(%r14,%rdx,8), %rcx
	addq	%rcx, (%r9,%rdx,8)
	movq	%rsi, %rdx
	decq	%rdi
	jne	LBB0_13
## %bb.14:
	cmpq	$3, %r8
	jb	LBB0_16
	jmp	LBB0_15
LBB0_17:
	movq	%rdx, %rsi
	cmpq	$3, %r8
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14,%rsi,8), %rcx
	addq	%rcx, 8(%rbx,%rsi,8)
	movq	16(%r14,%rsi,8), %rcx
	addq	%rcx, 16(%rbx,%rsi,8)
	movq	24(%r14,%rsi,8), %rcx
	addq	%rcx, 24(%rbx,%rsi,8)
	movq	32(%r14,%rsi,8), %rcx
	addq	%rcx, 32(%rbx,%rsi,8)
	leaq	4(%rsi), %rcx
	movq	%rcx, %rsi
	cmpq	%rcx, %rax
	jne	LBB0_15
	jmp	LBB0_16
LBB0_6:
	movl	%eax, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.7:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	8(%r14,%rsi,8), %xmm0
	movdqu	24(%r14,%rsi,8), %xmm1
	movdqu	8(%rbx,%rsi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	24(%rbx,%rsi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	40(%rbx,%rsi,8), %xmm1
	movdqu	56(%rbx,%rsi,8), %xmm3
	movdqu	%xmm2, 8(%rbx,%rsi,8)
	movdqu	%xmm0, 24(%rbx,%rsi,8)
	movdqu	40(%r14,%rsi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	56(%r14,%rsi,8), %xmm1
	paddq	%xmm3, %xmm1
	movdqu	%xmm0, 40(%rbx,%rsi,8)
	movdqu	%xmm1, 56(%rbx,%rsi,8)
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	leaq	(,%rsi,8), %rdi
	movdqu	(%r9,%rsi,8), %xmm0
	movdqu	16(%r9,%rsi,8), %xmm1
	orq	$8, %rdi
	movdqu	(%r14,%rdi), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%r14,%rdi), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	%xmm2, (%r9,%rsi,8)
	movdqu	%xmm0, 16(%r9,%rsi,8)
LBB0_11:
	cmpq	%rax, %rdx
	jne	LBB0_12
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_18:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dt_aggregate_lquantize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dt_aggregate_lquantize
_dt_aggregate_lquantize:                ; @dt_aggregate_lquantize
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x21, x0
	ldr	x0, [x21], #8
	bl	_DTRACE_LQUANTIZE_LEVELS
	cmn	w0, #1
	b.lt	LBB0_9
; %bb.1:
	add	w8, w0, #2
	cmp	w8, #8
	b.lo	LBB0_6
; %bb.2:
	lsl	x9, x8, #3
	add	x9, x9, #8
	add	x10, x20, x9
	add	x11, x19, #8
	add	x9, x19, x9
	cmp	x21, x9
	ccmp	x11, x10, #2, lo
	b.lo	LBB0_6
; %bb.3:
	and	x9, x8, #0xfffffff8
	add	x10, x20, #40
	add	x11, x19, #40
	mov	x12, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x10, #-32]
	ldp	q2, q3, [x10]
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x9, #0
LBB0_7:
	lsl	x10, x9, #3
	add	x11, x10, #8
	add	x10, x20, x11
	sub	x8, x8, x9
	add	x9, x19, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	x12, [x9], #8
	add	x11, x12, x11
	str	x11, [x10], #8
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dt_aggregate_lquantize
.subsections_via_symbols
