	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_exponents_blk_ch
_encode_exponents_blk_ch:               ## @encode_exponents_blk_ch
	.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
	movl	%ecx, %r15d
	movq	%rdi, %r13
	movq	_exponent_group_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ecx, %r14
	movq	(%rax,%r14,8), %rax
	movslq	%edx, %rcx
	movq	-8(%rax,%rcx,8), %rax
	movslq	%esi, %rsi
	movl	(%rax,%rsi,4), %ebx
	leal	(%rbx,%rbx,2), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$128, %ecx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_9
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_12
## %bb.2:
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.3:
	movl	$1, %r8d
	movl	$1, %eax
	subl	%r15d, %eax
	cltq
	movl	$1, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$2, %ecx
	cmovgel	%ecx, %r8d
	jl	LBB0_7
## %bb.4:
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	negq	%rax
	movl	$1, %edx
	movl	$1, %ecx
	subq	%r14, %rcx
	leaq	(,%rcx,4), %r10
	addq	%r13, %r10
	movl	%r8d, %r9d
	andl	$-2, %r9d
	negq	%r9
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%rsi,%rdx,8), %ecx
	movl	-4(%rsi,%rdx,8), %edi
	cmpl	%ecx, %edi
	cmovll	%edi, %ecx
	movl	%ecx, -4(%r10,%rdx,4)
	movl	(%rsi,%rdx,8), %ecx
	movl	4(%rsi,%rdx,8), %edi
	cmpl	%ecx, %edi
	cmovll	%edi, %ecx
	movl	%ecx, (%r10,%rdx,4)
	addq	$-4, %rax
	leaq	(%r9,%rdx), %rcx
	addq	$2, %rcx
	addq	$2, %rdx
	cmpq	$1, %rcx
	jne	LBB0_5
## %bb.6:
	negq	%rax
LBB0_7:
	testb	$1, %r8b
	je	LBB0_12
## %bb.8:
	movl	(%r13,%rax,4), %ecx
	movl	4(%r13,%rax,4), %eax
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	subq	%r14, %rdx
	movl	%ecx, (%r13,%rdx,4)
	jmp	LBB0_12
LBB0_9:
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.10:
	movl	$1, %r8d
	movl	$1, %ecx
	subl	%r14d, %ecx
	movslq	%ecx, %rcx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	cmovgel	%eax, %r8d
	leaq	12(,%rcx,4), %rcx
	addq	%r13, %rcx
	movl	$1, %edx
	subq	%r14, %rdx
	leaq	(,%rdx,4), %rdx
	addq	%r13, %rdx
	shlq	$2, %r8
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-12(%rcx,%rsi,4), %edi
	movl	-8(%rcx,%rsi,4), %eax
	cmpl	%edi, %eax
	cmovll	%eax, %edi
	movl	-4(%rcx,%rsi,4), %eax
	cmpl	%edi, %eax
	cmovll	%eax, %edi
	movl	(%rcx,%rsi,4), %eax
	cmpl	%edi, %eax
	cmovll	%eax, %edi
	movl	%edi, (%rdx,%rsi)
	addq	$4, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_11
LBB0_12:
	testl	%r15d, %r15d
	jne	LBB0_15
## %bb.13:
	cmpl	$16, (%r13)
	jl	LBB0_15
## %bb.14:
	movl	$15, (%r13)
LBB0_15:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_20
## %bb.16:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	%r14, %rbx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	movl	$1, %r14d
	cmovgel	%eax, %r14d
	leal	1(%r14), %r12d
	movl	(%r13), %eax
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r13,%r15,4), %edi
	addl	$2, %eax
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, 4(%r13,%r15,4)
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_17
## %bb.18:
	cmpl	$2, %r12d
	movq	%rbx, %r14
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jl	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%r12), %ebx
	movl	(%r13,%rbx,4), %edi
	movl	-4(%r13,%r12,4), %esi
	addl	$2, %esi
	callq	_FFMIN
	movl	%eax, (%r13,%rbx,4)
	decq	%r12
	cmpq	$1, %r12
	ja	LBB0_19
LBB0_20:
	testl	%r15d, %r15d
	je	LBB0_22
## %bb.21:
	movl	(%r13), %eax
	andl	$-2, %eax
	movl	%eax, -4(%r13)
LBB0_22:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$128, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_27
## %bb.23:
	cmpl	$129, %ecx
	jne	LBB0_30
## %bb.24:
	testl	%eax, %eax
	jle	LBB0_30
## %bb.25:
	addl	%eax, %eax
	leal	(%rax,%rax,2), %ecx
	subl	%r15d, %ecx
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movslq	%ecx, %rcx
	leaq	(,%rcx,4), %rcx
	addq	%r13, %rcx
	incq	%rax
	shlq	$2, %r14
	subq	%r14, %r13
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%r13,%rax,4), %edx
	movl	%edx, (%rcx)
	movl	%edx, -4(%rcx)
	addq	$-8, %rcx
	decq	%rax
	cmpq	$1, %rax
	jg	LBB0_26
	jmp	LBB0_30
LBB0_27:
	testl	%eax, %eax
	jle	LBB0_30
## %bb.28:
	shll	$2, %eax
	leal	(%rax,%rax,2), %ecx
	subl	%r15d, %ecx
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movslq	%ecx, %rcx
	leaq	-12(,%rcx,4), %rcx
	addq	%r13, %rcx
	incq	%rax
	shlq	$2, %r14
	subq	%r14, %r13
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movd	-4(%r13,%rax,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%rcx)
	addq	$-16, %rcx
	decq	%rax
	cmpq	$1, %rax
	jg	LBB0_29
LBB0_30:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_exponent_group_tab,8,3         ## @exponent_group_tab
	.no_dead_strip	_encode_exponents_blk_ch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_exponents_blk_ch
_encode_exponents_blk_ch:               ; @encode_exponents_blk_ch
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _exponent_group_tab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _exponent_group_tab@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sxtw	x22, w20
	ldr	x8, [x8, w3, sxtw #3]
	sub	w9, w2, #1
	ldr	x8, [x8, w9, sxtw #3]
	ldr	w24, [x8, w1, sxtw #2]
	add	w23, w24, w24, lsl #1
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w21, #129
	b.ne	LBB0_8
; %bb.2:
	cmp	w24, #1
	b.lt	LBB0_8
; %bb.3:
	mov	w10, #1
	sub	w9, w10, w20
	cmp	w23, #1
	csinc	w8, w23, wzr, gt
	add	x9, x19, w9, sxtw #2
	add	x9, x9, #4
	sub	x10, x10, x22
	add	x10, x19, x10, lsl #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w11, w12, [x9, #-4]
	cmp	w12, w11
	csel	w11, w12, w11, lt
	str	w11, [x10], #4
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_4
	b	LBB0_8
LBB0_5:
	cmp	w24, #1
	b.lt	LBB0_8
; %bb.6:
	mov	w9, #1
	sub	w10, w9, w20
	cmp	w23, #1
	csinc	w8, w23, wzr, gt
	sub	x9, x9, x22
	add	x9, x19, x9, lsl #2
	add	x10, x19, w10, sxtw #2
	add	x10, x10, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w11, w12, [x10, #-8]
	cmp	w12, w11
	csel	w11, w12, w11, lt
	ldp	w12, w13, [x10], #16
	cmp	w12, w11
	csel	w11, w12, w11, lt
	cmp	w13, w11
	csel	w11, w13, w11, lt
	str	w11, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	cbnz	w20, LBB0_11
; %bb.9:
	ldr	w8, [x19]
	cmp	w8, #16
	b.lt	LBB0_11
; %bb.10:
	mov	w8, #15
	str	w8, [x19]
LBB0_11:
	cmp	w24, #1
	b.lt	LBB0_16
; %bb.12:
	cmp	w23, #1
	csinc	w25, w23, wzr, gt
	add	w26, w25, #1
	mov	x27, x19
	ldr	w0, [x27], #4
	mov	x28, x25
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	add	w1, w0, #2
	mov	x0, x8
	bl	_FFMIN
	str	w0, [x27], #4
	subs	x28, x28, #1
	b.ne	LBB0_13
; %bb.14:
	cmp	w26, #2
	b.lt	LBB0_16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	subs	x8, x25, #1
	and	x8, x8, #0xffffffff
	lsl	x26, x8, #2
	ldr	w0, [x19, x26]
	ldr	w8, [x19, x25, lsl #2]
	add	w1, w8, #2
	bl	_FFMIN
	str	w0, [x19, x26]
	subs	x25, x25, #1
	b.hi	LBB0_15
LBB0_16:
	cbz	w20, LBB0_18
; %bb.17:
	ldr	w8, [x19]
	and	w8, w8, #0xfffffffe
	stur	w8, [x19, #-4]
LBB0_18:
	cmp	w21, #128
	b.eq	LBB0_23
; %bb.19:
	cmp	w21, #129
	b.ne	LBB0_26
; %bb.20:
	cmp	w24, #1
	b.lt	LBB0_26
; %bb.21:
	mov	w8, #6
	mul	w9, w24, w8
	sxtw	x8, w23
	sub	w9, w9, w20
	add	x9, x19, w9, sxtw #2
	sub	x10, x19, x22, lsl #2
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x8, lsl #2]
	stp	w11, w11, [x9, #-4]
	sub	x9, x9, #8
	subs	x8, x8, #1
	b.gt	LBB0_22
	b	LBB0_26
LBB0_23:
	cmp	w24, #1
	b.lt	LBB0_26
; %bb.24:
	mov	w8, #12
	mul	w8, w24, w8
	sub	w9, w8, w20
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sxtw	x8, w23
	add	x9, x19, w9, sxtw #2
	sub	x9, x9, #12
	sub	x10, x19, x22, lsl #2
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x10, x8, lsl #2
	ld1r.4s	{ v0 }, [x11]
	str	q0, [x9], #-16
	subs	x8, x8, #1
	b.gt	LBB0_25
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_exponent_group_tab,8,3         ; @exponent_group_tab
	.no_dead_strip	_encode_exponents_blk_ch
.subsections_via_symbols
