	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RangeEnc_EncodeBit_1
_RangeEnc_EncodeBit_1:                  ## @RangeEnc_EncodeBit_1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	movl	%eax, %ecx
	sarl	$14, %ecx
	imull	%esi, %ecx
	addl	%ecx, 4(%rdi)
	subl	%ecx, %eax
	movl	%eax, (%rdi)
	movq	_kTopValue@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jge	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_RangeEnc_ShiftLow
	movl	(%rbx), %eax
	cmpl	(%r14), %eax
	jl	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kTopValue,4,2                  ## @kTopValue
	.no_dead_strip	_RangeEnc_EncodeBit_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RangeEnc_EncodeBit_1
_RangeEnc_EncodeBit_1:                  ; @RangeEnc_EncodeBit_1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	w8, w9, [x0]
	asr	w10, w8, #14
	mul	w10, w10, w1
	add	w9, w10, w9
	sub	w8, w8, w10
	stp	w8, w9, [x0]
Lloh0:
	adrp	x20, _kTopValue@GOTPAGE
Lloh1:
	ldr	x20, [x20, _kTopValue@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.1:
	mov	x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w8, #8
	str	w8, [x19]
	mov	x0, x19
	bl	_RangeEnc_ShiftLow
	ldr	w8, [x19]
	ldr	w9, [x20]
	cmp	w8, w9
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_kTopValue,4,2                  ; @kTopValue
	.no_dead_strip	_RangeEnc_EncodeBit_1
.subsections_via_symbols
