	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_literal_price
_get_literal_price:                     ## @get_literal_price
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r15d
	movl	%ecx, %ebx
	movl	%edx, %r8d
	movl	%esi, %ecx
	movl	8(%rdi), %eax
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	movl	%eax, %edi
	callq	_literal_subcoder
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movl	$1, %edi
	callq	_UINT32_C
	movl	%eax, %r12d
	shll	$8, %r12d
	addl	%r13d, %r12d
	movl	$256, %r13d                     ## imm = 0x100
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	%r15d, %r15d
	movl	%r15d, %eax
	andl	%r13d, %eax
	movl	%r12d, %ecx
	sarl	$8, %ecx
	addl	%r13d, %ecx
	addl	%eax, %ecx
	movl	%r12d, %esi
	shrl	$7, %esi
	andl	$1, %esi
	movslq	%ecx, %rax
	movl	(%r14,%rax,4), %edi
	callq	_rc_bit_price
	movslq	%ebx, %rbx
	addq	%rax, %rbx
	addl	%r12d, %r12d
	movl	%r12d, %eax
	xorl	%r15d, %eax
	notl	%eax
	andl	%eax, %r13d
	movl	$1, %edi
	callq	_UINT32_C
	shll	$16, %eax
	cmpl	%eax, %r12d
	jl	LBB0_2
## %bb.3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	movl	$8, %esi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rc_bittree_price               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_literal_price
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_literal_price
_get_literal_price:                     ; @get_literal_price
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x5
	mov	x19, x4
	mov	x21, x3
	mov	x4, x2
	mov	x3, x1
	ldp	w1, w8, [x0, #4]
	ldr	w2, [x0]
	mov	x0, x8
	bl	_literal_subcoder
	mov	x20, x0
	cbz	w21, LBB0_4
; %bb.1:
	mov	w0, #1
	bl	_UINT32_C
	mov	x21, #0
	add	w22, w22, w0, lsl #8
	mov	w23, #256
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w19, w19, #1
	and	w8, w19, w23
	add	w9, w23, w22, asr #8
	add	w8, w9, w8
	ubfx	w1, w22, #7, #1
	ldr	w0, [x20, w8, sxtw #2]
	bl	_rc_bit_price
	add	x21, x0, w21, sxtw
	lsl	w22, w22, #1
	eor	w8, w22, w19
	bic	w23, w23, w8
	mov	w0, #1
	bl	_UINT32_C
	cmp	w22, w0, lsl #16
	b.lt	LBB0_2
; %bb.3:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x20
	mov	w1, #8
	mov	x2, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rc_bittree_price
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_literal_price
.subsections_via_symbols
