	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpc_bits_log_dec               ## -- Begin function mpc_bits_log_dec
	.p2align	4, 0x90
_mpc_bits_log_dec:                      ## @mpc_bits_log_dec
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_log2_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %r15
	movl	-4(%rax,%r15,4), %esi
	decq	%r15
	xorl	%ebx, %ebx
	cmpl	$2, %esi
	jl	LBB0_4
## %bb.3:
	decl	%esi
	movq	%r14, %rdi
	callq	_mpc_bits_read
	movl	%eax, %ebx
LBB0_4:
	movq	_log2_lost@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpl	(%rax,%r15,4), %ebx
	jl	LBB0_6
## %bb.5:
	addl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mpc_bits_read
	orl	%ebx, %eax
	movq	(%r12), %rcx
	subl	(%rcx,%r15,4), %eax
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_log2_tab,8,3                   ## @log2_tab
	.comm	_log2_lost,8,3                  ## @log2_lost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpc_bits_log_dec               ; -- Begin function mpc_bits_log_dec
	.p2align	2
_mpc_bits_log_dec:                      ; @mpc_bits_log_dec
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	w1, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _log2_tab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _log2_tab@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	w9, w1, #1
	sxtw	x21, w9
	ldr	w8, [x8, w9, sxtw #2]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.2:
	sub	w1, w8, #1
	mov	x0, x19
	bl	_mpc_bits_read
	mov	x20, x0
	b	LBB0_5
LBB0_3:
	mov	w20, #0
	b	LBB0_7
LBB0_4:
	mov	w20, #0
LBB0_5:
Lloh3:
	adrp	x22, _log2_lost@GOTPAGE
Lloh4:
	ldr	x22, [x22, _log2_lost@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w20, w8
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	bl	_mpc_bits_read
	orr	w8, w0, w20, lsl #1
	ldr	x9, [x22]
	ldr	w9, [x9, x21, lsl #2]
	sub	w20, w8, w9
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_log2_tab,8,3                   ; @log2_tab
	.comm	_log2_lost,8,3                  ; @log2_lost
.subsections_via_symbols
