	.file	"extr_archive_ppmd7.c_RangeEnc_EncodeBit_1.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	RangeEnc_EncodeBit_1, @function
RangeEnc_EncodeBit_1:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	mov	r8d, esi
	mov	esi, eax
	sar	esi, 14
	imul	esi, r8d
	add	DWORD PTR 4[rdi], esi
	sub	eax, esi
	cmp	eax, DWORD PTR kTopValue[rip]
	mov	DWORD PTR [rdi], eax
	jge	.L6
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	.p2align 4,,10
	.p2align 3
.L3:
	sal	eax, 8
	mov	rdi, rbx
	mov	DWORD PTR [rbx], eax
	call	RangeEnc_ShiftLow@PLT
	mov	eax, DWORD PTR [rbx]
	cmp	eax, DWORD PTR kTopValue[rip]
	jl	.L3
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	ret
	.cfi_endproc
.LFE0:
	.size	RangeEnc_EncodeBit_1, .-RangeEnc_EncodeBit_1
	.comm	kTopValue,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_archive_ppmd7.c_RangeEnc_EncodeBit_1.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	RangeEnc_EncodeBit_1, %function
RangeEnc_EncodeBit_1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, [r0]
	ldr	r5, .L7
	asr	r2, r3, #14
	mul	r1, r2, r1
	ldr	r0, [r5]
	ldr	r2, [r4, #4]
	sub	r3, r3, r1
	cmp	r3, r0
	add	r1, r2, r1
	str	r3, [r4]
	str	r1, [r4, #4]
	popge	{r4, r5, r6, pc}
.L3:
	lsl	r3, r3, #8
	str	r3, [r4]
	mov	r0, r4
	bl	RangeEnc_ShiftLow
	ldr	r3, [r4]
	ldr	r2, [r5]
	cmp	r3, r2
	blt	.L3
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	kTopValue
	.size	RangeEnc_EncodeBit_1, .-RangeEnc_EncodeBit_1
	.comm	kTopValue,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
