	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dt_aggregate_llquantizedsum
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dt_aggregate_llquantizedsum:           ## @dt_aggregate_llquantizedsum
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r14d
	movl	%r14d, %edi
	callq	_DTRACE_LLQUANTIZE_FACTOR
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_DTRACE_LLQUANTIZE_LOW
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_DTRACE_LLQUANTIZE_HIGH
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_DTRACE_LLQUANTIZE_NSTEP
	movl	%eax, %r13d
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	setge	%dil
	callq	_assert
	movl	%r13d, %eax
	cltd
	idivl	%r15d
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	callq	_assert
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	cmpl	$8, %ebx
	jae	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	movl	$1, %r12d
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
	movl	$1, %r12d
	jmp	LBB0_13
LBB0_5:
	movl	%ebx, %eax
	andl	$-8, %eax
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leal	-8(%rax), %esi
	movl	%esi, %edx
	shrl	$3, %edx
	incl	%edx
	movl	%edx, %ecx
	andl	$7, %ecx
	cmpl	$56, %esi
	jae	LBB0_7
## %bb.6:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,1,1,1]
	movdqa	%xmm1, %xmm2
	jmp	LBB0_9
LBB0_7:
	andl	$-8, %edx
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,1,1,1]
	movdqa	%xmm1, %xmm2
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	addl	$-8, %edx
	jne	LBB0_8
LBB0_9:
	testl	%ecx, %ecx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	pmulld	%xmm0, %xmm1
	pmulld	%xmm0, %xmm2
	decl	%ecx
	jne	LBB0_10
LBB0_11:
	pmulld	%xmm2, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	pmulld	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	pmulld	%xmm0, %xmm1
	movd	%xmm1, %r12d
	jmp	LBB0_12
LBB0_4:
	imull	%r15d, %r12d
	incl	%eax
LBB0_12:
	cmpl	%eax, %ebx
	jne	LBB0_4
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movl	%eax, -92(%rbp)
	leal	-1(%r12), %eax
	movl	%eax, -88(%rbp)
	fildl	-88(%rbp)
	fimull	-92(%rbp)
	movl	%r12d, %r14d
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	imull	%r15d, %r14d
	cmpl	%r13d, %r14d
	jle	LBB0_15
## %bb.14:
	movl	%r14d, %eax
	cltd
	idivl	%r13d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_15:
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	$1, %r15d
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	fld	%st(0)
	fstpt	-116(%rbp)                      ## 10-byte Folded Spill
	movslq	%r15d, %r15
	movl	%r12d, %r13d
	movq	%r15, %rax
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	-68(%rbp), %ebx                 ## 4-byte Folded Reload
	jg	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	xorl	%edi, %edi
	cmpl	%r14d, %r13d
	setl	%dil
	fstpt	-104(%rbp)                      ## 10-byte Folded Spill
	callq	_assert
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%r15,4), %eax
	movl	%eax, -84(%rbp)
	fildl	-84(%rbp)
	movl	%r13d, -80(%rbp)
	fimull	-80(%rbp)
	incq	%r15
	fldt	-104(%rbp)                      ## 10-byte Folded Reload
	faddp	%st, %st(1)
	fstpt	-104(%rbp)                      ## 10-byte Folded Spill
	fldt	-104(%rbp)                      ## 10-byte Folded Reload
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	cmpl	%r13d, %r14d
	jne	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%r14d, %ecx
	imull	-64(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, %ecx
	jle	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%ebx
	movl	%r14d, %r12d
	movl	%ecx, %r14d
	jmp	LBB0_16
LBB0_22:
	fstp	%st(0)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	4(%rax,%rcx,4), %eax
	movl	%eax, -76(%rbp)
	fildl	-76(%rbp)
	movl	%r12d, -72(%rbp)
	fimull	-72(%rbp)
	fldt	-116(%rbp)                      ## 10-byte Folded Reload
	faddp	%st, %st(1)
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dt_aggregate_llquantizedsum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dt_aggregate_llquantizedsum
_dt_aggregate_llquantizedsum:           ; @dt_aggregate_llquantizedsum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
	ldr	w23, [x19], #4
	mov	x0, x23
	bl	_DTRACE_LLQUANTIZE_FACTOR
	mov	x20, x0
	mov	x0, x23
	bl	_DTRACE_LLQUANTIZE_LOW
	mov	x21, x0
	mov	x0, x23
	bl	_DTRACE_LLQUANTIZE_HIGH
	mov	x22, x0
	mov	x0, x23
	bl	_DTRACE_LLQUANTIZE_NSTEP
	mov	x23, x0
	cmp	w0, w20
	cset	w0, ge
	bl	_assert
	sdiv	w8, w23, w20
	msub	w8, w8, w20, w23
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w21, #16
	b.hs	LBB0_4
; %bb.2:
	mov	w8, #0
	mov	w25, #1
	b	LBB0_7
LBB0_3:
	mov	w21, #0
	mov	w25, #1
	b	LBB0_9
LBB0_4:
	dup.4s	v1, w20
	and	w8, w21, #0xfffffff0
	movi.4s	v0, #1
	mov	x9, x8
	movi.4s	v2, #1
	movi.4s	v3, #1
	movi.4s	v4, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mul.4s	v0, v0, v1
	mul.4s	v2, v2, v1
	mul.4s	v3, v3, v1
	mul.4s	v4, v4, v1
	subs	w9, w9, #16
	b.ne	LBB0_5
; %bb.6:
	mul.4s	v0, v2, v0
	mul.4s	v0, v3, v0
	mul.4s	v0, v4, v0
	ext.16b	v1, v0, v0, #8
	mul.2s	v0, v0, v1
	fmov	w9, s0
	mov.s	w10, v0[1]
	mul	w25, w9, w10
	b	LBB0_8
LBB0_7:
	mul	w25, w25, w20
	add	w8, w8, #1
LBB0_8:
	cmp	w21, w8
	b.ne	LBB0_7
LBB0_9:
	ldr	s0, [x19]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	sub	w8, w25, #1
	scvtf	d1, w8
	mul	w26, w25, w20
	mov	w9, #1
	sdiv	w8, w26, w23
	fmul	d8, d1, d0
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w26, w23
	csel	w27, w9, w8, le
	mov	w8, #1
	fmov	d9, d8
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	sxtw	x23, w8
	mov	x24, x25
	mov	x28, x23
LBB0_11:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w21, w22
	b.gt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w24, w26
	cset	w0, lt
	bl	_assert
	add	x8, x28, #1
	ldr	s0, [x19, x28, lsl #2]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	scvtf	d1, w24
	fmadd	d9, d0, d1, d9
	add	w24, w24, w27
	cmp	w26, w24
	mov	x28, x8
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x25, x26
	mul	w26, w26, w20
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	sdiv	w9, w26, w10
	cmp	w26, w10
	mov	w10, #1
	csel	w27, w10, w9, le
	add	w21, w21, #1
	fmov	d8, d9
	b	LBB0_10
LBB0_14:
	ldr	s0, [x19, x23, lsl #2]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	scvtf	d1, w25
	fmadd	d0, d0, d1, d8
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dt_aggregate_llquantizedsum
.subsections_via_symbols
