	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Bcj2_Decode                    ## -- Begin function Bcj2_Decode
	.p2align	4, 0x90
_Bcj2_Decode:                           ## @Bcj2_Decode
	.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	$1144, %rsp                     ## imm = 0x478
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_kBitModelTotal@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movd	%eax, %xmm0
	sarl	%eax
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	psrad	$1, %xmm0
	movdqa	%xmm0, -1088(%rbp)
	movdqa	%xmm0, -1072(%rbp)
	movdqa	%xmm0, -1056(%rbp)
	movdqa	%xmm0, -1040(%rbp)
	movdqa	%xmm0, -1024(%rbp)
	movdqa	%xmm0, -1008(%rbp)
	movdqa	%xmm0, -992(%rbp)
	movdqa	%xmm0, -976(%rbp)
	movdqa	%xmm0, -960(%rbp)
	movdqa	%xmm0, -944(%rbp)
	movdqa	%xmm0, -928(%rbp)
	movdqa	%xmm0, -912(%rbp)
	movdqa	%xmm0, -896(%rbp)
	movdqa	%xmm0, -880(%rbp)
	movdqa	%xmm0, -864(%rbp)
	movdqa	%xmm0, -848(%rbp)
	movdqa	%xmm0, -832(%rbp)
	movdqa	%xmm0, -816(%rbp)
	movdqa	%xmm0, -800(%rbp)
	movdqa	%xmm0, -784(%rbp)
	movdqa	%xmm0, -768(%rbp)
	movdqa	%xmm0, -752(%rbp)
	movdqa	%xmm0, -736(%rbp)
	movdqa	%xmm0, -720(%rbp)
	movdqa	%xmm0, -704(%rbp)
	movdqa	%xmm0, -688(%rbp)
	movdqa	%xmm0, -672(%rbp)
	movdqa	%xmm0, -656(%rbp)
	movdqa	%xmm0, -640(%rbp)
	movdqa	%xmm0, -624(%rbp)
	movdqa	%xmm0, -608(%rbp)
	movdqa	%xmm0, -592(%rbp)
	movdqa	%xmm0, -576(%rbp)
	movdqa	%xmm0, -560(%rbp)
	movdqa	%xmm0, -544(%rbp)
	movdqa	%xmm0, -528(%rbp)
	movdqa	%xmm0, -512(%rbp)
	movdqa	%xmm0, -496(%rbp)
	movdqa	%xmm0, -480(%rbp)
	movdqa	%xmm0, -464(%rbp)
	movdqa	%xmm0, -448(%rbp)
	movdqa	%xmm0, -432(%rbp)
	movdqa	%xmm0, -416(%rbp)
	movdqa	%xmm0, -400(%rbp)
	movdqa	%xmm0, -384(%rbp)
	movdqa	%xmm0, -368(%rbp)
	movdqa	%xmm0, -352(%rbp)
	movdqa	%xmm0, -336(%rbp)
	movdqa	%xmm0, -320(%rbp)
	movdqa	%xmm0, -304(%rbp)
	movdqa	%xmm0, -288(%rbp)
	movdqa	%xmm0, -272(%rbp)
	movdqa	%xmm0, -256(%rbp)
	movdqa	%xmm0, -240(%rbp)
	movdqa	%xmm0, -224(%rbp)
	movdqa	%xmm0, -208(%rbp)
	movdqa	%xmm0, -192(%rbp)
	movdqa	%xmm0, -176(%rbp)
	movdqa	%xmm0, -160(%rbp)
	movdqa	%xmm0, -144(%rbp)
	movdqa	%xmm0, -128(%rbp)
	movdqa	%xmm0, -112(%rbp)
	movdqa	%xmm0, -96(%rbp)
	movdqa	%xmm0, -80(%rbp)
	movl	%eax, -64(%rbp)
	movl	%eax, -60(%rbp)
	cmpq	$0, 24(%rbp)
	je	LBB0_27
## %bb.1:
	movq	40(%rbp), %r10
	testq	%r10, %r10
	je	LBB0_26
## %bb.2:
	cmpq	%rsi, %r10
	movq	%rsi, %rax
	cmovbq	%r10, %rax
	xorl	%r11d, %r11d
	movq	%rax, -1176(%rbp)               ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_24
## %bb.3:
	movq	%r8, -1096(%rbp)                ## 8-byte Spill
	movq	%rdx, -1104(%rbp)               ## 8-byte Spill
	movq	%rcx, -1128(%rbp)               ## 8-byte Spill
	movq	%r9, -1152(%rbp)                ## 8-byte Spill
	movq	32(%rbp), %r9
	movq	_RC_READ_BYTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shll	$16, %edx
	movl	%ecx, %eax
	shll	$8, %eax
	orl	%edx, %eax
	orl	%ecx, %eax
	shll	$8, %eax
	orl	%ecx, %eax
	addq	$16, %r9
	decq	%rsi
	movl	$-1, %r8d
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	movq	%rsi, -1120(%rbp)               ## 8-byte Spill
	movq	%rdi, -1112(%rbp)               ## 8-byte Spill
	movq	%r9, -1160(%rbp)                ## 8-byte Spill
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	%r8d, -1140(%rbp)               ## 4-byte Spill
	movl	%eax, -1144(%rbp)               ## 4-byte Spill
	movq	%r15, -1168(%rbp)               ## 8-byte Spill
	leaq	(%r9,%r15,4), %rax
	movq	%rdx, -1136(%rbp)               ## 8-byte Spill
	leaq	(%rdi,%rdx,4), %r13
	xorl	%ebx, %ebx
	movl	%r11d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13,%rbx,4), %r15d
	movq	%rax, %r14
	movl	%r15d, -16(%rax,%rbx,4)
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_IsJ
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	incq	%rbx
	movl	%r15d, %r12d
	cmpq	%rbx, -1176(%rbp)               ## 8-byte Folded Reload
	movq	%r14, %rax
	jne	LBB0_5
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-1168(%rbp), %r15               ## 8-byte Reload
	movq	%r15, %rax
	notq	%rax
	movq	40(%rbp), %r10
	addq	%r10, %rax
	cmpq	%rbx, %rax
	je	LBB0_30
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13,%rbx,4), %r11d
	cmpl	$233, %r11d
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %rdx
	cmoveq	%rdx, %rcx
	cmpl	$232, %r11d
	movslq	%r12d, %rdx
	leaq	-1088(%rbp,%rdx,4), %r9
	cmovneq	%rcx, %r9
	movq	_kNumBitModelTotalBits@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-1140(%rbp), %esi               ## 4-byte Reload
	movl	%esi, %r8d
	sarl	%cl, %r8d
	movl	(%r9), %edi
	imull	%edi, %r8d
	movl	-1144(%rbp), %eax               ## 4-byte Reload
	movl	%eax, %edx
	subl	%r8d, %edx
	jge	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %r15
	incq	%r15
	movq	_kBitModelTotal@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subl	%edi, %edx
	movq	_kNumMoveBits@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	addl	%edi, %edx
	movl	%edx, (%r9)
	movq	_kTopValue@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r8d
	movq	-1160(%rbp), %r9                ## 8-byte Reload
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	shll	$8, %r8d
	shll	$8, %eax
	movq	_RC_READ_BYTE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-1120(%rbp), %rsi               ## 8-byte Reload
	movq	-1112(%rbp), %rdi               ## 8-byte Reload
	jmp	LBB0_21
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	subl	%r8d, %esi
	movq	_kNumMoveBits@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%edi, %r8d
	sarl	%cl, %r8d
	subl	%r8d, %edi
	movl	%esi, %r8d
	shll	$8, %r8d
	movl	%edx, %eax
	shll	$8, %eax
	movq	_RC_READ_BYTE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_kTopValue@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	cmovgel	%esi, %r8d
	movl	%edi, (%r9)
	cmovgel	%edx, %eax
	cmpl	$232, %r11d
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-1128(%rbp), %rcx               ## 8-byte Reload
	cmpq	$3, %rcx
	movq	-1104(%rbp), %rdx               ## 8-byte Reload
	jbe	LBB0_27
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	16(%rdx), %r9
	addq	$-4, %rcx
	movq	-1096(%rbp), %r12               ## 8-byte Reload
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-1152(%rbp), %rdi               ## 8-byte Reload
	cmpq	$3, %rdi
	movq	-1128(%rbp), %rcx               ## 8-byte Reload
	movq	-1104(%rbp), %r9                ## 8-byte Reload
	jbe	LBB0_27
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-1096(%rbp), %rdx               ## 8-byte Reload
	leaq	16(%rdx), %r12
	addq	$-4, %rdi
	movq	%rdi, -1152(%rbp)               ## 8-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rdx), %esi
	movq	%rdx, %rdi
	movl	4(%rdx), %edx
	shll	$24, %esi
	shll	$16, %edx
	orl	%esi, %edx
	movl	8(%rdi), %esi
	shll	$8, %esi
	orl	%edx, %esi
	movl	12(%rdi), %edx
	orq	%rsi, %rdx
	movl	$-5, %r11d
	subl	%r15d, %r11d
	addq	%rdx, %r11
	subq	%rbx, %r11
	movq	%r10, %rdx
	subq	%r15, %rdx
	leaq	-2(%rdx), %rdi
	movl	%r11d, -12(%r14,%rbx,4)
	cmpq	%rbx, %rdi
	je	LBB0_30
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, -1128(%rbp)               ## 8-byte Spill
	movl	%r11d, %edi
	sarl	$8, %edi
	leaq	-3(%rdx), %rcx
	movl	%edi, -8(%r14,%rbx,4)
	cmpq	%rbx, %rcx
	je	LBB0_30
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r11d, %ecx
	sarl	$16, %ecx
	addq	$-4, %rdx
	movl	%ecx, -4(%r14,%rbx,4)
	cmpq	%rbx, %rdx
	je	LBB0_30
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	sarl	$24, %r11d
	addq	%rbx, %r15
	addq	$5, %r15
	movl	%r11d, (%r14,%rbx,4)
	movq	%r12, -1096(%rbp)               ## 8-byte Spill
	movq	%r9, -1104(%rbp)                ## 8-byte Spill
	movq	-1120(%rbp), %rsi               ## 8-byte Reload
	movq	-1112(%rbp), %rdi               ## 8-byte Reload
	movq	-1160(%rbp), %r9                ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-1136(%rbp), %rdx               ## 8-byte Reload
	movq	%rsi, %rcx
	subq	%rdx, %rcx
	addq	%rbx, %rdx
	incq	%rdx
	subq	%rbx, %rcx
	movq	%r10, %rbx
	subq	%r15, %rbx
	cmpq	%rcx, %rbx
	cmovaeq	%rcx, %rbx
	movq	%rbx, -1176(%rbp)               ## 8-byte Spill
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_25
LBB0_23:
	movq	-1168(%rbp), %r15               ## 8-byte Reload
	addq	%rbx, %r15
	movq	40(%rbp), %r10
	cmpq	%r10, %r15
	jne	LBB0_27
	jmp	LBB0_26
LBB0_24:
	xorl	%r15d, %r15d
LBB0_25:
	cmpq	%r10, %r15
	jne	LBB0_27
LBB0_26:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_30:
	movq	%r10, %r15
	cmpq	%r10, %r15
	je	LBB0_26
LBB0_27:
	movq	_SZ_ERROR_DATA@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_34
## %bb.29:
	addq	$1144, %rsp                     ## imm = 0x478
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_kBitModelTotal,4,2             ## @kBitModelTotal
	.comm	_SZ_ERROR_DATA,4,2              ## @SZ_ERROR_DATA
	.comm	_RC_READ_BYTE,4,2               ## @RC_READ_BYTE
	.comm	_SZ_OK,4,2                      ## @SZ_OK
	.comm	_kNumBitModelTotalBits,4,2      ## @kNumBitModelTotalBits
	.comm	_kNumMoveBits,4,2               ## @kNumMoveBits
	.comm	_kTopValue,4,2                  ## @kTopValue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Bcj2_Decode                    ; -- Begin function Bcj2_Decode
	.p2align	2
_Bcj2_Decode:                           ; @Bcj2_Decode
	.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
	sub	sp, sp, #1136
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _kBitModelTotal@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kBitModelTotal@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w8, w8, #1
	dup.4s	v0, w8
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #144]
	stp	q0, q0, [sp, #176]
	stp	q0, q0, [sp, #208]
	stp	q0, q0, [sp, #240]
	stp	q0, q0, [sp, #272]
	stp	q0, q0, [sp, #304]
	stp	q0, q0, [sp, #336]
	stp	q0, q0, [sp, #368]
	stp	q0, q0, [sp, #400]
	stp	q0, q0, [sp, #432]
	stp	q0, q0, [sp, #464]
	stp	q0, q0, [sp, #496]
	stp	q0, q0, [sp, #528]
	stp	q0, q0, [sp, #560]
	stp	q0, q0, [sp, #592]
	stp	q0, q0, [sp, #624]
	stp	q0, q0, [sp, #656]
	stp	q0, q0, [sp, #688]
	stp	q0, q0, [sp, #720]
	stp	q0, q0, [sp, #752]
	stp	q0, q0, [sp, #784]
	stp	q0, q0, [sp, #816]
	stp	q0, q0, [sp, #848]
	stp	q0, q0, [sp, #880]
	stp	q0, q0, [sp, #912]
	stp	q0, q0, [sp, #944]
	stp	q0, q0, [sp, #976]
	stp	q0, q0, [sp, #1008]
	str	q0, [sp, #1040]
	str	q0, [sp, #1056]
	str	q0, [sp, #1072]
	str	q0, [sp, #1088]
	str	w8, [sp, #1104]
	str	w8, [sp, #1108]
	cbz	x7, LBB0_21
; %bb.1:
	ldr	x26, [x29, #24]
	cbz	x26, LBB0_22
; %bb.2:
	cmp	x26, x1
	csel	x21, x26, x1, lo
	cbz	x21, LBB0_24
; %bb.3:
	stp	x5, x4, [sp, #8]                ; 16-byte Folded Spill
	str	x2, [sp, #32]                   ; 8-byte Folded Spill
	str	x3, [sp]                        ; 8-byte Folded Spill
	mov	w8, #0
	mov	x14, #0
	mov	x12, #0
	ldr	x9, [x29, #16]
Lloh6:
	adrp	x10, _RC_READ_BYTE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RC_READ_BYTE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w11, w10, #16
	orr	w11, w11, w10, lsl #8
	orr	w11, w10, w11
	orr	w2, w10, w11, lsl #8
	add	x10, sp, #80
	add	x11, x10, #1028
	add	x10, x10, #1024
	stp	x10, x11, [sp, #56]             ; 16-byte Folded Spill
	sub	x10, x1, #1
	stp	x10, x0, [sp, #40]              ; 16-byte Folded Spill
	add	x13, x9, #8
	mov	w23, #-1
	str	x13, [sp, #24]                  ; 8-byte Folded Spill
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	str	w2, [sp, #76]                   ; 4-byte Folded Spill
	mov	x19, #0
	mov	x28, x12
	add	x22, x0, x12, lsl #2
	mov	x24, x8
	mov	x27, x14
	add	x20, x13, x14, lsl #2
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w25, [x22, x19, lsl #2]
	stur	w25, [x20, #-8]
	mov	x0, x24
	mov	x1, x25
	bl	_IsJ
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x19, x19, #1
	add	x20, x20, #4
	mov	x24, x25
	cmp	x21, x19
	b.ne	LBB0_5
	b	LBB0_23
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mvn	x8, x27
	add	x8, x8, x26
	cmp	x8, x19
	b.eq	LBB0_28
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x0, x11, [sp, #48]              ; 16-byte Folded Reload
	add	x8, x0, x28, lsl #2
	ldr	w8, [x8, x19, lsl #2]
	add	x9, sp, #80
	add	x9, x9, w24, sxtw #2
	cmp	w8, #233
	ldr	x10, [sp, #64]                  ; 8-byte Folded Reload
	csel	x10, x11, x10, eq
	cmp	w8, #232
	csel	x10, x9, x10, eq
	ldr	w11, [x10]
Lloh9:
	adrp	x9, _kNumBitModelTotalBits@GOTPAGE
Lloh10:
	ldr	x9, [x9, _kNumBitModelTotalBits@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w9, w23, w9
	mul	w9, w9, w11
	ldr	w2, [sp, #76]                   ; 4-byte Folded Reload
	subs	w12, w2, w9
	b.ge	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x27, x19
	add	x14, x12, #1
Lloh12:
	adrp	x12, _kBitModelTotal@GOTPAGE
Lloh13:
	ldr	x12, [x12, _kBitModelTotal@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	sub	w12, w12, w11
Lloh15:
	adrp	x13, _kNumMoveBits@GOTPAGE
Lloh16:
	ldr	x13, [x13, _kNumMoveBits@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
	asr	w12, w12, w13
	add	w11, w12, w11
	str	w11, [x10]
Lloh18:
	adrp	x10, _kTopValue@GOTPAGE
Lloh19:
	ldr	x10, [x10, _kTopValue@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	lsl	w9, w9, #8
Lloh21:
	adrp	x10, _RC_READ_BYTE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _RC_READ_BYTE@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w2, w10, w2, lsl #8
	b	LBB0_20
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh24:
	adrp	x13, _kNumMoveBits@GOTPAGE
Lloh25:
	ldr	x13, [x13, _kNumMoveBits@GOTPAGEOFF]
Lloh26:
	ldr	w13, [x13]
	asr	w13, w11, w13
	sub	w11, w11, w13
	str	w11, [x10]
Lloh27:
	adrp	x10, _kTopValue@GOTPAGE
Lloh28:
	ldr	x10, [x10, _kTopValue@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	sub	w9, w23, w9
	cmp	w9, w10
	lsl	w10, w9, #8
Lloh30:
	adrp	x11, _RC_READ_BYTE@GOTPAGE
Lloh31:
	ldr	x11, [x11, _RC_READ_BYTE@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	orr	w11, w11, w12, lsl #8
	csel	w9, w10, w9, lt
	csel	w2, w11, w12, lt
	cmp	w8, #232
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x8, #3
	ldr	x13, [sp, #32]                  ; 8-byte Folded Reload
	b.ls	LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x13, #16
	sub	x8, x8, #4
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x11, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, #3
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	b.ls	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [sp, #16]                  ; 8-byte Folded Reload
	add	x11, x13, #16
	sub	x8, x8, #4
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w12, [x13]
	lsl	w12, w12, #16
	orr	w8, w12, w8, lsl #24
	ldp	w12, w13, [x13, #8]
	orr	w8, w8, w12, lsl #8
	orr	x8, x8, x13
	mov	w12, #-5
	sub	w12, w12, w27
	add	x8, x8, x12
	sub	x8, x8, x19
	sub	x12, x26, x27
	sub	x13, x12, #2
	stur	w8, [x20, #-4]
	cmp	x13, x19
	b.eq	LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	asr	w13, w8, #8
	sub	x14, x12, #3
	str	w13, [x20]
	cmp	x14, x19
	b.eq	LBB0_28
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	asr	w13, w8, #16
	sub	x12, x12, #4
	str	w13, [x20, #4]
	cmp	x12, x19
	b.eq	LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	asr	w8, w8, #24
	add	x12, x27, x19
	add	x14, x12, #5
	str	w8, [x20, #8]
	str	x11, [sp, #16]                  ; 8-byte Folded Spill
	str	x10, [sp, #32]                  ; 8-byte Folded Spill
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [sp, #24]                  ; 8-byte Folded Reload
	add	x10, x28, x19
	add	x10, x10, #1
	ldr	x11, [sp, #40]                  ; 8-byte Folded Reload
	sub	x11, x11, x28
	sub	x11, x11, x19
	sub	x12, x26, x14
	cmp	x12, x11
	csel	x21, x12, x11, lo
	mov	x23, x9
	mov	x12, x10
	cbnz	x21, LBB0_4
	b	LBB0_25
LBB0_21:
Lloh33:
	adrp	x8, _SZ_ERROR_DATA@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SZ_ERROR_DATA@GOTPAGEOFF]
	b	LBB0_26
LBB0_22:
Lloh35:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
	b	LBB0_26
LBB0_23:
	mov	x14, x27
	add	x14, x27, x19
	b	LBB0_25
LBB0_24:
	mov	x14, #0
LBB0_25:
Lloh37:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
Lloh39:
	adrp	x9, _SZ_ERROR_DATA@GOTPAGE
Lloh40:
	ldr	x9, [x9, _SZ_ERROR_DATA@GOTPAGEOFF]
	cmp	x14, x26
	csel	x8, x8, x9, eq
LBB0_26:
	ldr	w0, [x8]
	ldur	x8, [x29, #-96]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.27:
	add	sp, sp, #1136
	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
LBB0_28:
	mov	x14, x26
	b	LBB0_25
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_kBitModelTotal,4,2             ; @kBitModelTotal
	.comm	_SZ_ERROR_DATA,4,2              ; @SZ_ERROR_DATA
	.comm	_RC_READ_BYTE,4,2               ; @RC_READ_BYTE
	.comm	_SZ_OK,4,2                      ; @SZ_OK
	.comm	_kNumBitModelTotalBits,4,2      ; @kNumBitModelTotalBits
	.comm	_kNumMoveBits,4,2               ; @kNumMoveBits
	.comm	_kTopValue,4,2                  ; @kTopValue
.subsections_via_symbols
