	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_adaptive45
_decode_adaptive45:                     ## @decode_adaptive45
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rdx, %r9
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	xorl	%r12d, %r12d
	cmpl	$2048, %eax                     ## imm = 0x800
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, %r10
	jg	LBB0_1
## %bb.2:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addl	%eax, %eax
	incl	%ecx
	cmpl	$2049, %eax                     ## imm = 0x801
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%ecx, %ecx
LBB0_4:
	movl	16(%rbp), %r8d
	sarl	%cl, %esi
	movslq	(%rdi), %r11
	movq	8(%rdi), %r15
	movl	(%r15,%r11,4), %edx
	movl	$4096, %ebx                     ## imm = 0x1000
	subl	%eax, %ebx
	sarl	%cl, %ebx
	movl	%edx, (%r14)
	addl	%ebx, (%r15,%r11,4)
	movl	16(%rdi), %edx
	movl	$0, %r13d
	movl	$0, %eax
	testl	%edx, %edx
	jle	LBB0_18
## %bb.5:
	movq	%r9, %r8
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %r10
	movl	(%r10), %r9d
	xorl	%eax, %eax
	movl	$0, %r12d
	movl	$0, %r13d
	cmpl	%r9d, %esi
	jl	LBB0_15
## %bb.6:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%r11d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	-1(%rdx), %r14
	xorl	%eax, %eax
	movl	%r9d, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r13d
	movl	(%r15,%rax,4), %ebx
	leal	(%rbx,%r9), %r12d
	cmpl	%esi, %r12d
	jg	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rax, %r14
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, %r9d
	notl	%r9d
	movl	4(%r10,%rax,4), %ebx
	addl	%r12d, %r9d
	addl	%ebx, %r9d
	incq	%rax
	cmpl	%r9d, %esi
	jge	LBB0_7
## %bb.14:
	incl	%r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_15:
	addl	%esi, %r13d
	subl	%r12d, %r13d
	movq	%r8, %rbx
	movl	%r13d, (%r8)
	shll	%cl, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%esi, (%rdx)
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%esi, (%rcx)
	movl	(%r14), %ecx
	movl	%ecx, (%r15,%r11,4)
	movl	(%r8), %edx
	leaq	-44(%rbp), %rcx
	movl	%eax, %esi
	movl	16(%rbp), %r8d
	jmp	LBB0_19
LBB0_8:
	shll	%cl, %r9d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	%r13d, (%r8)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r9d, (%rcx)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, (%rcx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %ecx
	movl	%ecx, (%r15,%r11,4)
	addl	$50, (%r15,%rax,4)
	movl	-44(%rbp), %edx
	leal	50(%rdx), %ecx
	movl	%ecx, -44(%rbp)
	cmpl	%eax, -80(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_11
## %bb.9:
	movl	(%r15,%rax,4), %esi
	cmpl	(%r15,%r11,4), %esi
	jle	LBB0_11
## %bb.10:
	movl	%eax, (%rdi)
LBB0_11:
	movl	$1, %ebx
	cmpl	$3997, %edx                     ## imm = 0xF9D
	jl	LBB0_21
## %bb.12:
	leaq	-44(%rbp), %rsi
	callq	_rescale
	jmp	LBB0_20
LBB0_17:
	incl	%r13d
	movl	%edx, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movq	%r8, %r9
	movl	16(%rbp), %r8d
LBB0_18:
	movl	(%r14), %ebx
	movl	%ebx, (%r15,%r11,4)
	addl	%esi, %r13d
	subl	%r12d, %r13d
	shll	%cl, %esi
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	%r13d, (%r9)
	movl	%esi, (%r10)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, (%rcx)
	movl	(%r9), %edx
	leaq	-44(%rbp), %rcx
	movl	%eax, %esi
LBB0_19:
	callq	_add_symbol
	movl	%eax, %ebx
LBB0_20:
	movl	-44(%rbp), %ecx
LBB0_21:
	movl	%ecx, (%r14)
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_adaptive45
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_adaptive45
_decode_adaptive45:                     ; @decode_adaptive45
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x5
	ldr	w8, [x5]
	str	w8, [sp, #12]
	cmp	w8, #2048
	b.gt	LBB0_3
; %bb.1:
	mov	w9, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w8, #1
	add	w9, w9, #1
	cmp	w8, #2049
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w9, #0
LBB0_4:
	ldrsw	x10, [x0]
	ldr	x11, [x0, #8]
	lsl	x13, x10, #2
	ldr	w14, [x11, x13]
	asr	w12, w1, w9
	str	w14, [x19]
	mov	w14, #4096
	sub	w8, w14, w8
	ldr	w14, [x11, x13]
	asr	w8, w8, w9
	add	w8, w14, w8
	str	w8, [x11, x13]
	ldr	w8, [x0, #16]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	ldr	x14, [x0, #24]
	ldr	w15, [x14]
	cmp	w12, w15
	b.ge	LBB0_8
; %bb.6:
	mov	w1, #0
	mov	w14, #0
	mov	w8, #0
	b	LBB0_13
LBB0_7:
	mov	w14, #0
	mov	w13, #0
	mov	w8, #0
	b	LBB0_20
LBB0_8:
	mov	x1, #0
	and	x13, x10, #0xffffffff
	add	x16, x14, #4
	sub	x17, x8, #1
	mov	x7, x15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x5, x7
	ldr	w7, [x11, x1, lsl #2]
	add	w14, w7, w15
	cmp	w14, w12
	b.gt	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x17, x1
	b.eq	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mvn	w15, w5
	ldr	w7, [x16, x1, lsl #2]
	add	w15, w14, w15
	add	w15, w15, w7
	add	x1, x1, #1
	cmp	w12, w15
	b.ge	LBB0_9
; %bb.12:
	add	w8, w5, #1
LBB0_13:
	add	w8, w8, w12
	sub	w8, w8, w14
	str	w8, [x2]
	lsl	w8, w12, w9
	str	w8, [x4]
	mov	w8, #1
	lsl	w8, w8, w9
	str	w8, [x3]
	ldr	w8, [x19]
	str	w8, [x11, x10, lsl #2]
	ldr	w2, [x2]
	add	x3, sp, #12
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_21
LBB0_14:
	lsl	x8, x1, #2
	str	w5, [x2]
	lsl	w12, w15, w9
	str	w12, [x4]
	lsl	w9, w7, w9
	str	w9, [x3]
	ldr	w9, [x19]
	str	w9, [x11, x10, lsl #2]
	ldr	w9, [x11, x8]
	add	w9, w9, #50
	str	w9, [x11, x8]
	ldr	w9, [sp, #12]
	add	w8, w9, #50
	str	w8, [sp, #12]
	cmp	w13, w1
	b.eq	LBB0_17
; %bb.15:
	ldr	w12, [x11, x1, lsl #2]
	ldr	w10, [x11, x10, lsl #2]
	cmp	w12, w10
	b.le	LBB0_17
; %bb.16:
	str	w1, [x0]
LBB0_17:
	cmp	w9, #3997
	b.lt	LBB0_24
; %bb.18:
	add	x1, sp, #12
	bl	_rescale
	mov	w0, #1
	b	LBB0_22
LBB0_19:
	add	w13, w5, #1
LBB0_20:
	ldr	w15, [x19]
	str	w15, [x11, x10, lsl #2]
	add	w10, w13, w12
	sub	w10, w10, w14
	str	w10, [x2]
	lsl	w10, w12, w9
	str	w10, [x4]
	mov	w10, #1
	lsl	w9, w10, w9
	str	w9, [x3]
	ldr	w2, [x2]
	add	x3, sp, #12
	mov	x1, x8
LBB0_21:
	mov	x4, x6
	bl	_add_symbol
LBB0_22:
	ldr	w8, [sp, #12]
LBB0_23:
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_24:
	mov	w0, #1
	b	LBB0_23
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_adaptive45
.subsections_via_symbols
