	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rd_strip
_rd_strip:                              ## @rd_strip
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -128(%rbp)                 ## 8-byte Spill
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, -108(%rbp)                ## 4-byte Spill
	movq	%rdi, %rbx
	movq	24(%rbp), %r9
	movq	16(%rbp), %r8
	leaq	-64(%rbp), %r14
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.1:
	movq	%r14, (%rsp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	callq	_calculate_skip_errors
LBB0_2:
	movq	_CODEBOOK_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	cmpl	$0, -100(%rbp)                  ## 4-byte Folded Reload
	setne	%dl
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
	movq	_MODE_COUNT@GOTPCREL(%rip), %rsi
	movq	_MODE_MC@GOTPCREL(%rip), %rdi
	movq	_MODE_V1_ONLY@GOTPCREL(%rip), %r12
	movl	$1, %r9d
	movb	%dl, -41(%rbp)                  ## 1-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_11 Depth 3
                                        ##         Child Loop BB0_25 Depth 4
	testl	%r9d, %r9d
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r9d, %r8d
	shrl	$2, %r8d
	cmpl	$4, %r9d
	movl	$1, %eax
	cmovbl	%eax, %r8d
	movl	%r8d, -104(%rbp)                ## 4-byte Spill
	movq	(%rsi), %rax
	xorl	%ecx, %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	movl	%r9d, -80(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_11 Depth 3
                                        ##         Child Loop BB0_25 Depth 4
	testq	%rax, %rax
	jle	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	xorl	%r15d, %r15d
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_11 Depth=3
	movq	56(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	_STRIP_HEADER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	8(%rbx), %rax
	movq	%rax, 8(%rsp)
	movq	%r14, (%rsp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	32(%rbp), %rdx
	movq	40(%rbp), %rcx
	movq	-120(%rbp), %r8                 ## 8-byte Reload
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	callq	_encode_mode
	movq	8(%rbx), %r8
	movq	%rbx, %rdi
	movl	-108(%rbp), %esi                ## 4-byte Reload
	movl	%r13d, %edx
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%eax, %r9d
	callq	_write_strip_header
LBB0_36:                                ##   in Loop: Header=BB0_11 Depth=3
	movb	-41(%rbp), %dl                  ## 1-byte Reload
	movq	_MODE_COUNT@GOTPCREL(%rip), %rsi
	movq	_MODE_MC@GOTPCREL(%rip), %rdi
	movq	_MODE_V1_ONLY@GOTPCREL(%rip), %r12
LBB0_37:                                ##   in Loop: Header=BB0_11 Depth=3
	incq	%r15
	movq	(%rsi), %rax
	cmpq	%rax, %r15
	jge	LBB0_38
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_25 Depth 4
	cmpq	(%rdi), %r15
	sete	%al
	testb	%al, %dl
	jne	LBB0_37
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=3
	cmpq	(%r12), %r15
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=3
	movq	%r12, %r14
	movl	-80(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, -64(%rbp)
	movq	_ENC_UNCERTAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	16(%rbp), %rdx
	movq	24(%rbp), %rcx
	movl	$1, %r8d
	leaq	-64(%rbp), %r9
	callq	_quantize
	movl	%eax, -64(%rbp)
	cmpl	%eax, %r12d
	movq	%r14, %r12
	leaq	-64(%rbp), %r14
	movl	$1, %eax
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	cmovgl	%eax, %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	$0, -60(%rbp)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=3
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_37
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=3
	movq	_MODE_V1_V4@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=3
	movq	%r12, %r14
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, -60(%rbp)
	movq	_ENC_UNCERTAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	16(%rbp), %rdx
	movq	24(%rbp), %rcx
	xorl	%r8d, %r8d
	leaq	-64(%rbp), %r9
	callq	_quantize
	movl	%eax, -60(%rbp)
	cmpl	%eax, %r12d
	movq	%r14, %r12
	leaq	-64(%rbp), %r14
	movl	$1, %eax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	cmovgl	%eax, %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=3
	movq	%r15, -56(%rbp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	leaq	-84(%rbp), %r8
	leaq	-48(%rbp), %r9
	callq	_calculate_mode_score
	cmpq	(%r12), %r15
	jne	LBB0_18
LBB0_33:                                ##   in Loop: Header=BB0_11 Depth=3
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_11 Depth=3
	movq	56(%rbp), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_35
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=3
	movl	(%rbx), %r12d
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)
	movq	_ENC_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	16(%rbp), %rdx
	movq	24(%rbp), %rcx
	movl	$1, %r8d
	movq	%r14, %r9
	callq	_quantize
	cmpl	%eax, -64(%rbp)
	jle	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=3
	movl	%eax, -64(%rbp)
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=3
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, -60(%rbp)
	movq	_ENC_V4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	16(%rbp), %rdx
	movq	24(%rbp), %rcx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_quantize
	cmpl	%eax, -60(%rbp)
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=3
	movl	%eax, -60(%rbp)
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=3
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	leaq	-84(%rbp), %r8
	leaq	-48(%rbp), %r9
	callq	_calculate_mode_score
	movl	-84(%rbp), %edx
	testl	%edx, %edx
	setne	%cl
	orl	-48(%rbp), %edx
	je	LBB0_33
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=3
	testl	%r12d, %r12d
	je	LBB0_33
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=3
	decl	%r12d
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ##       Parent Loop BB0_11 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	testb	$1, %cl
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=4
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)
	movq	_ENC_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	16(%rbp), %rdx
	movq	24(%rbp), %rcx
	movl	$1, %r8d
	movq	%r14, %r9
	callq	_quantize
	cmpl	%eax, -64(%rbp)
	jle	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=4
	movl	%eax, -64(%rbp)
LBB0_28:                                ##   in Loop: Header=BB0_25 Depth=4
	cmpl	$0, -48(%rbp)
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=4
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, -60(%rbp)
	movq	_ENC_V4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	16(%rbp), %rdx
	movq	24(%rbp), %rcx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_quantize
	cmpl	%eax, -60(%rbp)
	jle	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_25 Depth=4
	movl	%eax, -60(%rbp)
LBB0_31:                                ##   in Loop: Header=BB0_25 Depth=4
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	leaq	-84(%rbp), %r8
	leaq	-48(%rbp), %r9
	callq	_calculate_mode_score
	movl	-84(%rbp), %esi
	testl	%esi, %esi
	setne	%cl
	subl	$1, %r12d
	setb	%dl
	orl	-48(%rbp), %esi
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_25 Depth=4
	testb	%dl, %dl
	je	LBB0_25
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=2
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
LBB0_38:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	testl	%ecx, %ecx
	leal	(,%rcx,4), %ecx
                                        ## kill: def $ecx killed $ecx def $rcx
	cmovel	-104(%rbp), %ecx                ## 4-byte Folded Reload
	movl	-80(%rbp), %r9d                 ## 4-byte Reload
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	cmpl	%r9d, %ecx
	jg	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
LBB0_40:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_CODEBOOK_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
LBB0_41:                                ##   in Loop: Header=BB0_5 Depth=1
	shll	$2, %r9d
	cmpl	%eax, %r9d
	jg	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
	jmp	LBB0_43
LBB0_3:
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
LBB0_43:
	movq	_STRIP_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	addl	(%rax), %r14d
	movq	8(%rbx), %rsi
	movq	48(%rbp), %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CODEBOOK_MAX,4,2               ## @CODEBOOK_MAX
	.comm	_MODE_COUNT,8,3                 ## @MODE_COUNT
	.comm	_MODE_MC,8,3                    ## @MODE_MC
	.comm	_MODE_V1_ONLY,8,3               ## @MODE_V1_ONLY
	.comm	_ENC_UNCERTAIN,4,2              ## @ENC_UNCERTAIN
	.comm	_MODE_V1_V4,8,3                 ## @MODE_V1_V4
	.comm	_ENC_V1,4,2                     ## @ENC_V1
	.comm	_ENC_V4,4,2                     ## @ENC_V4
	.comm	_STRIP_HEADER_SIZE,8,3          ## @STRIP_HEADER_SIZE
	.comm	_SMALLEST_CODEBOOK,4,2          ## @SMALLEST_CODEBOOK
	.no_dead_strip	_rd_strip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rd_strip
_rd_strip:                              ; @rd_strip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x21, x7
	mov	x22, x6
	stp	x4, x5, [sp, #48]               ; 16-byte Folded Spill
	mov	x26, x2
	str	w1, [sp, #44]                   ; 4-byte Folded Spill
	mov	x20, x0
	ldr	x19, [x29, #32]
	str	w3, [sp, #64]                   ; 4-byte Folded Spill
	cbnz	w3, LBB0_2
; %bb.1:
	add	x6, sp, #96
	mov	x0, x20
	mov	x1, x26
	ldp	x2, x3, [sp, #48]               ; 16-byte Folded Reload
	mov	x4, x22
	mov	x5, x21
	bl	_calculate_skip_errors
LBB0_2:
Lloh0:
	adrp	x8, _CODEBOOK_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CODEBOOK_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_41
; %bb.3:
	str	wzr, [sp, #84]                  ; 4-byte Folded Spill
	ldr	x9, [x29, #40]
	str	x9, [sp, #72]                   ; 8-byte Folded Spill
	ldr	x9, [x29, #24]
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	ldr	x9, [x29, #16]
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w9, [sp, #64]                   ; 4-byte Folded Reload
	cmp	w9, #0
	cset	w25, ne
	mov	w27, #1
Lloh3:
	adrp	x10, _MODE_COUNT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MODE_COUNT@GOTPAGEOFF]
Lloh5:
	adrp	x11, _MODE_MC@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MODE_MC@GOTPAGEOFF]
Lloh7:
	adrp	x23, _MODE_V1_ONLY@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MODE_V1_ONLY@GOTPAGEOFF]
Lloh9:
	adrp	x19, _ENC_V4@GOTPAGE
Lloh10:
	ldr	x19, [x19, _ENC_V4@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
                                        ;         Child Loop BB0_30 Depth 4
	tbnz	w27, #31, LBB0_38
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #0
	str	wzr, [sp, #68]                  ; 4-byte Folded Spill
	lsr	w8, w27, #2
	cmp	w27, #3
	csinc	w8, w8, wzr, hi
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	ldr	x8, [x10]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w13, [sp, #20]                  ; 4-byte Folded Reload
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	lsl	w9, w24, #2
	cmp	w24, #0
	ldr	w12, [sp, #16]                  ; 4-byte Folded Reload
	csel	w24, w12, w9, eq
	cmp	w24, w27
	ccmp	w13, #0, #0, le
	b.ne	LBB0_37
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
                                        ;         Child Loop BB0_30 Depth 4
	cmp	x8, #1
	b.lt	LBB0_36
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x28, #0
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	str	x0, [x8]
	ldr	x8, [x20, #8]
Lloh11:
	adrp	x9, _STRIP_HEADER_SIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _STRIP_HEADER_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x7, x9, x8
	add	x6, sp, #96
	mov	x0, x20
	mov	x1, x26
	ldp	x2, x3, [sp, #24]               ; 16-byte Folded Reload
	ldp	x4, x5, [sp, #48]               ; 16-byte Folded Reload
	bl	_encode_mode
	mov	x5, x0
	ldr	x4, [x20, #8]
	mov	x0, x20
	ldr	w1, [sp, #44]                   ; 4-byte Folded Reload
	mov	x2, x26
	ldr	w3, [sp, #64]                   ; 4-byte Folded Reload
	str	w5, [sp, #84]                   ; 4-byte Folded Spill
	bl	_write_strip_header
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=3
Lloh14:
	adrp	x10, _MODE_COUNT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MODE_COUNT@GOTPAGEOFF]
Lloh16:
	adrp	x11, _MODE_MC@GOTPAGE
Lloh17:
	ldr	x11, [x11, _MODE_MC@GOTPAGEOFF]
Lloh18:
	adrp	x23, _MODE_V1_ONLY@GOTPAGE
Lloh19:
	ldr	x23, [x23, _MODE_V1_ONLY@GOTPAGEOFF]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=3
	add	x28, x28, #1
	ldr	x8, [x10]
	cmp	x28, x8
	b.ge	LBB0_6
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_30 Depth 4
	ldr	x8, [x11]
	cmp	x28, x8
	cset	w8, eq
	and	w8, w25, w8
	tbnz	w8, #0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	x8, [x23]
	cmp	x28, x8
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=3
	str	w27, [sp, #96]
Lloh20:
	adrp	x8, _ENC_UNCERTAIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENC_UNCERTAIN@GOTPAGEOFF]
Lloh22:
	ldr	w6, [x8]
	add	x5, sp, #96
	mov	x0, x20
	mov	x1, x26
	mov	x2, x22
	mov	x3, x21
	mov	w4, #1
	bl	_quantize
	cmp	w27, w0
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	csinc	w8, w8, wzr, le
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
	stp	w0, wzr, [sp, #96]
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=3
	cbz	w24, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=3
Lloh23:
	adrp	x8, _MODE_V1_V4@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MODE_V1_V4@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x28, x8
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=3
	str	w24, [sp, #100]
Lloh26:
	adrp	x8, _ENC_UNCERTAIN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENC_UNCERTAIN@GOTPAGEOFF]
Lloh28:
	ldr	w6, [x8]
	add	x5, sp, #96
	mov	x0, x20
	mov	x1, x26
	mov	x2, x22
	mov	x3, x21
	mov	w4, #0
	bl	_quantize
	str	w0, [sp, #100]
	cmp	w24, w0
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	csinc	w8, w8, wzr, le
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=3
	str	x28, [sp, #104]
	add	x2, sp, #96
	add	x4, sp, #92
	add	x5, sp, #88
	mov	x0, x20
	mov	x1, x26
	mov	w3, #0
	bl	_calculate_mode_score
	ldr	x8, [x23]
	cmp	x28, x8
	b.ne	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_10
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_10
	b	LBB0_11
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	w23, [x20]
	str	w27, [sp, #96]
Lloh29:
	adrp	x8, _ENC_V1@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENC_V1@GOTPAGEOFF]
Lloh31:
	ldr	w6, [x8]
	add	x5, sp, #96
	mov	x0, x20
	mov	x1, x26
	mov	x2, x22
	mov	x3, x21
	mov	w4, #1
	bl	_quantize
	ldr	w8, [sp, #96]
	cmp	w8, w0
	b.le	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=3
	str	w0, [sp, #96]
LBB0_24:                                ;   in Loop: Header=BB0_13 Depth=3
	str	w24, [sp, #100]
	ldr	w6, [x19]
	add	x5, sp, #96
	mov	x0, x20
	mov	x1, x26
	mov	x2, x22
	mov	x3, x21
	mov	w4, #0
	bl	_quantize
	ldr	w8, [sp, #100]
	cmp	w8, w0
	b.le	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_13 Depth=3
	str	w0, [sp, #100]
LBB0_26:                                ;   in Loop: Header=BB0_13 Depth=3
	add	x2, sp, #96
	add	x4, sp, #92
	add	x5, sp, #88
	mov	x0, x20
	mov	x1, x26
	mov	w3, #1
	bl	_calculate_mode_score
	ldp	w10, w9, [sp, #88]
	cmp	w9, #0
	cset	w8, ne
	orr	w9, w9, w10
	cbz	w9, LBB0_20
; %bb.27:                               ;   in Loop: Header=BB0_13 Depth=3
	cbz	w23, LBB0_20
; %bb.28:                               ;   in Loop: Header=BB0_13 Depth=3
	sub	w23, w23, #1
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=4
	add	x2, sp, #96
	add	x4, sp, #92
	add	x5, sp, #88
	mov	x0, x20
	mov	x1, x26
	mov	w3, #1
	bl	_calculate_mode_score
	ldp	w9, w8, [sp, #88]
	orr	w9, w8, w9
	cmp	w8, #0
	cset	w8, ne
	cmp	w9, #0
	ccmp	w23, #0, #4, ne
	sub	w23, w23, #1
	b.eq	LBB0_20
LBB0_30:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ;       Parent Loop BB0_13 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	tbz	w8, #0, LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=4
	str	w27, [sp, #96]
Lloh32:
	adrp	x8, _ENC_V1@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENC_V1@GOTPAGEOFF]
Lloh34:
	ldr	w6, [x8]
	add	x5, sp, #96
	mov	x0, x20
	mov	x1, x26
	mov	x2, x22
	mov	x3, x21
	mov	w4, #1
	bl	_quantize
	ldr	w8, [sp, #96]
	cmp	w8, w0
	b.le	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=4
	str	w0, [sp, #96]
LBB0_33:                                ;   in Loop: Header=BB0_30 Depth=4
	ldr	w8, [sp, #88]
	cbz	w8, LBB0_29
; %bb.34:                               ;   in Loop: Header=BB0_30 Depth=4
	str	w24, [sp, #100]
	ldr	w6, [x19]
	add	x5, sp, #96
	mov	x0, x20
	mov	x1, x26
	mov	x2, x22
	mov	x3, x21
	mov	w4, #0
	bl	_quantize
	ldr	w8, [sp, #100]
	cmp	w8, w0
	b.le	LBB0_29
; %bb.35:                               ;   in Loop: Header=BB0_30 Depth=4
	str	w0, [sp, #100]
	b	LBB0_29
LBB0_36:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w13, #0
	b	LBB0_7
LBB0_37:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh35:
	adrp	x8, _CODEBOOK_MAX@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CODEBOOK_MAX@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [sp, #68]                   ; 4-byte Folded Reload
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
LBB0_39:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w27, w27, #2
	cmp	w27, w8
	b.gt	LBB0_42
; %bb.40:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	w9, LBB0_4
	b	LBB0_42
LBB0_41:
	str	wzr, [sp, #84]                  ; 4-byte Folded Spill
LBB0_42:
Lloh38:
	adrp	x8, _STRIP_HEADER_SIZE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _STRIP_HEADER_SIZE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	w9, [sp, #84]                   ; 4-byte Folded Reload
	add	w19, w9, w8
	ldr	x1, [x20, #8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x19
	bl	_memcpy
	mov	x0, x19
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_CODEBOOK_MAX,4,2               ; @CODEBOOK_MAX
	.comm	_MODE_COUNT,8,3                 ; @MODE_COUNT
	.comm	_MODE_MC,8,3                    ; @MODE_MC
	.comm	_MODE_V1_ONLY,8,3               ; @MODE_V1_ONLY
	.comm	_ENC_UNCERTAIN,4,2              ; @ENC_UNCERTAIN
	.comm	_MODE_V1_V4,8,3                 ; @MODE_V1_V4
	.comm	_ENC_V1,4,2                     ; @ENC_V1
	.comm	_ENC_V4,4,2                     ; @ENC_V4
	.comm	_STRIP_HEADER_SIZE,8,3          ; @STRIP_HEADER_SIZE
	.comm	_SMALLEST_CODEBOOK,4,2          ; @SMALLEST_CODEBOOK
	.no_dead_strip	_rd_strip
.subsections_via_symbols
