	.file	"extr_LzmaDecode.c_RangeDecoderBitDecode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	RangeDecoderBitDecode
	.type	RangeDecoderBitDecode, @function
RangeDecoderBitDecode:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8, QWORD PTR [rsi]
	mov	rcx, QWORD PTR kNumBitModelTotalBits[rip]
	mov	rdx, QWORD PTR 8[rsi]
	mov	rax, r8
	sar	rax, cl
	imul	rax, QWORD PTR [rdi]
	mov	rcx, QWORD PTR kNumMoveBits[rip]
	cmp	rdx, rax
	jge	.L2
	mov	QWORD PTR [rsi], rax
	mov	rax, QWORD PTR kBitModelTotal[rip]
	mov	rdx, QWORD PTR [rdi]
	sub	rax, rdx
	sar	rax, cl
	add	rax, rdx
	mov	QWORD PTR [rdi], rax
	xor	eax, eax
	mov	rdx, QWORD PTR [rsi]
	cmp	rdx, QWORD PTR kTopValue[rip]
	jge	.L1
.L6:
	mov	rcx, QWORD PTR 8[rsi]
	movsx	rdi, DWORD PTR ReadByte[rip]
	sal	rdx, 8
	mov	QWORD PTR [rsi], rdx
	sal	rcx, 8
	or	rcx, rdi
	mov	QWORD PTR 8[rsi], rcx
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	sub	rdx, rax
	sub	r8, rax
	mov	QWORD PTR [rsi], r8
	mov	QWORD PTR 8[rsi], rdx
	mov	rax, QWORD PTR [rdi]
	mov	rdx, rax
	sar	rdx, cl
	sub	rax, rdx
	mov	QWORD PTR [rdi], rax
	mov	rdx, QWORD PTR [rsi]
	mov	eax, 1
	cmp	rdx, QWORD PTR kTopValue[rip]
	jge	.L1
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	RangeDecoderBitDecode, .-RangeDecoderBitDecode
	.comm	kTopValue,8,8
	.comm	kNumMoveBits,8,8
	.comm	kNumBitModelTotalBits,8,8
	.comm	kBitModelTotal,8,8
	.comm	ReadByte,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_LzmaDecode.c_RangeDecoderBitDecode.c"
	.text
	.align	2
	.global	RangeDecoderBitDecode
	.syntax unified
	.arm
	.fpu softvfp
	.type	RangeDecoderBitDecode, %function
RangeDecoderBitDecode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r2, [r0]
	asr	r3, ip, r3
	mul	r3, r2, r3
	ldr	r2, [r1, #4]
	str	lr, [sp, #-4]!
	ldr	lr, .L8+4
	cmp	r2, r3
	ldr	lr, [lr]
	bge	.L2
	ldr	ip, .L8+8
	str	r3, [r1]
	ldr	r2, [r0]
	ldr	r3, [ip]
	ldr	ip, .L8+12
	sub	r3, r3, r2
	add	r2, r2, r3, asr lr
	str	r2, [r0]
	ldr	r3, [r1]
	ldr	r2, [ip]
	cmp	r3, r2
	bge	.L4
	ldr	r2, .L8+16
	ldr	r0, [r1, #4]
	ldr	r2, [r2]
	lsl	r3, r3, #8
	orr	r2, r2, r0, lsl #8
	str	r3, [r1]
	mov	r0, #0
	str	r2, [r1, #4]
	ldr	pc, [sp], #4
.L2:
	sub	ip, ip, r3
	sub	r3, r2, r3
	str	ip, [r1]
	str	r3, [r1, #4]
	ldr	r3, [r0]
	ldr	r2, .L8+12
	sub	r3, r3, r3, asr lr
	str	r3, [r0]
	ldr	r3, [r1]
	ldr	r2, [r2]
	cmp	r3, r2
	bge	.L5
	ldr	r2, .L8+16
	ldr	r0, [r1, #4]
	ldr	r2, [r2]
	lsl	r3, r3, #8
	orr	r2, r2, r0, lsl #8
	str	r3, [r1]
	mov	r0, #1
	str	r2, [r1, #4]
	ldr	pc, [sp], #4
.L5:
	mov	r0, #1
	ldr	pc, [sp], #4
.L4:
	mov	r0, #0
	ldr	pc, [sp], #4
.L9:
	.align	2
.L8:
	.word	kNumBitModelTotalBits
	.word	kNumMoveBits
	.word	kBitModelTotal
	.word	kTopValue
	.word	ReadByte
	.size	RangeDecoderBitDecode, .-RangeDecoderBitDecode
	.comm	kTopValue,4,4
	.comm	kNumMoveBits,4,4
	.comm	kNumBitModelTotalBits,4,4
	.comm	kBitModelTotal,4,4
	.comm	ReadByte,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
