	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_quant_thread
_find_quant_thread:                     ## @find_quant_thread
	.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	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movslq	%ecx, %r12
	shlq	$3, %r12
	addq	24(%r15), %r12
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	movl	(%r15), %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	subl	%r13d, %ecx
	movl	%ebx, %eax
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %ebx
	sarl	%eax
	cmpl	%ebx, %ecx
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movq	_TRELLIS_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	%r14d, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movq	%r12, %r9
	callq	_find_slice_quant
	addl	%ebx, %r13d
	movl	4(%r15), %ecx
	cmpl	%r13d, %ecx
	jg	LBB0_2
## %bb.5:
	movslq	%eax, %r14
LBB0_6:
	movl	8(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_13
## %bb.7:
	movq	(%r12), %r10
	movq	16(%r15), %r8
	movl	4(%r10,%r14,8), %esi
	movl	%edx, %edi
	imull	-44(%rbp), %edi                 ## 4-byte Folded Reload
	addl	%edx, %edi
	decl	%edi
	movslq	%edi, %rdi
	movl	%esi, (%r8,%rdi,4)
	cmpl	$1, %edx
	je	LBB0_13
## %bb.8:
	leal	-1(%rdx), %edi
	testb	$1, %dil
	je	LBB0_10
## %bb.9:
	movslq	(%r10,%r14,8), %r14
	leal	-2(%rdx), %edi
	movl	4(%r10,%r14,8), %esi
	movl	8(%r15), %ebx
	imull	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	%edx, %ebx
	addl	$-2, %ebx
	movslq	%ebx, %rbx
	movl	%esi, (%r8,%rbx,4)
LBB0_10:
	cmpl	$2, %edx
	je	LBB0_13
## %bb.11:
	leal	2(%rdi), %edx
	leal	-2(%rdi), %esi
	movslq	%esi, %rsi
	decl	%edi
	movslq	%edi, %rdi
	movslq	-44(%rbp), %r9                  ## 4-byte Folded Reload
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r10,%r14,8), %rcx
	movslq	8(%r15), %rbx
	movl	4(%r10,%rcx,8), %eax
	imulq	%r9, %rbx
	addq	%rdi, %rbx
	movl	%eax, (%r8,%rbx,4)
	movslq	(%r10,%rcx,8), %r14
	movslq	8(%r15), %rax
	movl	4(%r10,%r14,8), %ecx
	imulq	%r9, %rax
	addq	%rsi, %rax
	movl	%ecx, (%r8,%rax,4)
	addl	$-2, %edx
	addq	$-2, %rsi
	addq	$-2, %rdi
	cmpl	$2, %edx
	jg	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRELLIS_WIDTH,4,2              ## @TRELLIS_WIDTH
	.no_dead_strip	_find_quant_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_quant_thread
_find_quant_thread:                     ; @find_quant_thread
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	ldr	x24, [x0]
	ldr	x8, [x24, #24]
	add	x20, x8, w3, sxtw #3
	ldr	w8, [x24, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, x0
	mov	w25, #0
	mov	w22, #0
	ldr	w23, [x24]
Lloh0:
	adrp	x26, _TRELLIS_WIDTH@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TRELLIS_WIDTH@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	sub	w8, w8, w22
	mov	x9, x23
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x23, x9
	asr	w9, w9, #1
	cmp	w8, w23
	b.lt	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w25, w25, #1
	ldr	w8, [x26]
	mul	w1, w8, w25
	mov	x0, x21
	mov	x2, x22
	mov	x3, x19
	mov	x4, x23
	mov	x5, x20
	bl	_find_slice_quant
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x24, #4]
	add	w22, w23, w22
	cmp	w8, w22
	b.gt	LBB0_2
; %bb.5:
	sxtw	x8, w0
	b	LBB0_7
LBB0_6:
	mov	x8, #0
LBB0_7:
	ldr	w9, [x24, #8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.8:
	ldr	x10, [x20]
	ldr	x11, [x24, #16]
	madd	w12, w9, w19, w9
	add	x13, x10, x8, lsl #3
	ldr	w13, [x13, #4]
	sub	w12, w12, #1
	str	w13, [x11, w12, sxtw #2]
	cmp	w9, #1
	b.eq	LBB0_11
; %bb.9:
	sub	w12, w9, #2
	sxtw	x12, w12
	sxtw	x13, w19
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x8, #3
	ldrsw	x8, [x10, x8]
	ldrsw	x14, [x24, #8]
	add	x15, x10, x8, lsl #3
	ldr	w15, [x15, #4]
	madd	x14, x14, x13, x12
	str	w15, [x11, x14, lsl #2]
	sub	x12, x12, #1
	sub	w9, w9, #1
	cmp	w9, #1
	b.gt	LBB0_10
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TRELLIS_WIDTH,4,2              ; @TRELLIS_WIDTH
	.no_dead_strip	_find_quant_thread
.subsections_via_symbols
