	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RangeDecoderBitDecode          ## -- Begin function RangeDecoderBitDecode
	.p2align	4, 0x90
_RangeDecoderBitDecode:                 ## @RangeDecoderBitDecode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	_kNumBitModelTotalBits@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	%rax, %rdx
	sarq	%cl, %rdx
	movq	8(%rsi), %rcx
	imulq	(%rdi), %rdx
	subq	%rdx, %rcx
	jge	LBB0_2
## %bb.1:
	movq	%rdx, (%rsi)
	movq	_kBitModelTotal@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rdx
	subq	%rdx, %rax
	movq	_kNumMoveBits@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rax
	addq	%rdx, %rax
	movq	%rax, (%rdi)
	movq	(%rsi), %rcx
	movq	_kTopValue@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_2:
	subq	%rdx, %rax
	movq	%rax, (%rsi)
	movq	%rcx, 8(%rsi)
	movq	(%rdi), %rax
	movq	_kNumMoveBits@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	%rax, %rdx
	sarq	%cl, %rdx
	subq	%rdx, %rax
	movq	%rax, (%rdi)
	movq	(%rsi), %rcx
	movq	_kTopValue@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jge	LBB0_5
LBB0_4:
	movq	8(%rsi), %rdx
	shlq	$8, %rdx
	movq	_ReadByte@GOTPCREL(%rip), %rdi
	movslq	(%rdi), %rdi
	orq	%rdx, %rdi
	movq	%rdi, 8(%rsi)
	shlq	$8, %rcx
	movq	%rcx, (%rsi)
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kNumBitModelTotalBits,8,3      ## @kNumBitModelTotalBits
	.comm	_kBitModelTotal,8,3             ## @kBitModelTotal
	.comm	_kNumMoveBits,8,3               ## @kNumMoveBits
	.comm	_kTopValue,8,3                  ## @kTopValue
	.comm	_ReadByte,4,2                   ## @ReadByte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RangeDecoderBitDecode          ; -- Begin function RangeDecoderBitDecode
	.p2align	2
_RangeDecoderBitDecode:                 ; @RangeDecoderBitDecode
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _kNumBitModelTotalBits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kNumBitModelTotalBits@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldp	x8, x11, [x1]
	asr	x9, x8, x9
	ldr	x10, [x0]
	mul	x10, x9, x10
	subs	x9, x11, x10
	b.ge	LBB0_2
; %bb.1:
	mov	w9, #0
	mov	w8, #0
	str	x10, [x1]
Lloh3:
	adrp	x10, _kBitModelTotal@GOTPAGE
Lloh4:
	ldr	x10, [x10, _kBitModelTotal@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x11, [x0]
	sub	x10, x10, x11
Lloh6:
	adrp	x12, _kNumMoveBits@GOTPAGE
Lloh7:
	ldr	x12, [x12, _kNumMoveBits@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	asr	x10, x10, x12
	add	x10, x10, x11
	str	x10, [x0]
	ldr	x10, [x1]
Lloh9:
	adrp	x11, _kTopValue@GOTPAGE
Lloh10:
	ldr	x11, [x11, _kTopValue@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x10, x11
	b.lt	LBB0_3
	b	LBB0_4
LBB0_2:
	sub	x8, x8, x10
	stp	x8, x9, [x1]
Lloh12:
	adrp	x8, _kNumMoveBits@GOTPAGE
Lloh13:
	ldr	x8, [x8, _kNumMoveBits@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh14:
	ldr	x8, [x8]
	asr	x8, x9, x8
	sub	x8, x9, x8
	str	x8, [x0]
	ldr	x10, [x1]
Lloh15:
	adrp	x8, _kTopValue@GOTPAGE
Lloh16:
	ldr	x8, [x8, _kTopValue@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x8]
	mov	w9, #1
	mov	w8, #1
	cmp	x10, x11
	b.ge	LBB0_4
LBB0_3:
	ldr	x8, [x1, #8]
Lloh18:
	adrp	x11, _ReadByte@GOTPAGE
Lloh19:
	ldr	x11, [x11, _ReadByte@GOTPAGEOFF]
Lloh20:
	ldrsw	x11, [x11]
	orr	x8, x11, x8, lsl #8
	lsl	x10, x10, #8
	stp	x10, x8, [x1]
	mov	x8, x9
LBB0_4:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_kNumBitModelTotalBits,8,3      ; @kNumBitModelTotalBits
	.comm	_kBitModelTotal,8,3             ; @kBitModelTotal
	.comm	_kNumMoveBits,8,3               ; @kNumMoveBits
	.comm	_kTopValue,8,3                  ; @kTopValue
	.comm	_ReadByte,4,2                   ; @ReadByte
.subsections_via_symbols
