	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_count_bits              ## -- Begin function mp_int_count_bits
	.p2align	4, 0x90
_mp_int_count_bits:                     ## @mp_int_count_bits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_MP_USED
	movl	%eax, %ecx
	movq	(%rbx), %rdx
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.1:
	cmpq	$0, (%rdx)
	je	LBB0_2
LBB0_3:
	leal	-1(%rcx), %eax
	movq	_MP_DIGIT_BIT@GOTPCREL(%rip), %rsi
	imull	(%rsi), %eax
	movslq	%ecx, %rcx
	movl	-8(%rdx,%rcx,8), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.4:
	movl	%ecx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%edx
	incl	%eax
	cmpl	$1, %ecx
	movl	%edx, %ecx
	ja	LBB0_5
	jmp	LBB0_6
LBB0_2:
	movl	$1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_DIGIT_BIT,4,2               ## @MP_DIGIT_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_count_bits              ; -- Begin function mp_int_count_bits
	.p2align	2
_mp_int_count_bits:                     ; @mp_int_count_bits
	.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
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	bl	_MP_USED
	ldr	x8, [x19]
	subs	w9, w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x8]
	cbz	x10, LBB0_4
LBB0_2:
Lloh0:
	adrp	x10, _MP_DIGIT_BIT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MP_DIGIT_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mul	w0, w10, w9
	ldr	x8, [x8, w9, sxtw #3]
	cbz	w8, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	asr	w9, w8, #1
	add	w0, w0, #1
	cmp	w8, #1
	mov	x8, x9
	b.hi	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_DIGIT_BIT,4,2               ; @MP_DIGIT_BIT
.subsections_via_symbols
