	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_num_bits                    ## -- Begin function BN_num_bits
	.p2align	4, 0x90
_BN_num_bits:                           ## @BN_num_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_bn_check_top
	movslq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rcx
	movq	-8(%rcx,%rax,8), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	movl	(%rbx), %ebx
	decl	%ebx
	movq	_BN_BITS2@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movq	%r14, %rdi
	callq	_BN_num_bits_word
	addl	%ebx, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_BITS2,4,2                   ## @BN_BITS2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_num_bits                    ; -- Begin function BN_num_bits
	.p2align	2
_BN_num_bits:                           ; @BN_num_bits
	.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
	mov	x19, x0
	bl	_bn_check_top
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	sub	w8, w8, #1
	ldr	x20, [x9, w8, sxtw #3]
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x19]
	sub	w19, w8, #1
Lloh0:
	adrp	x8, _BN_BITS2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BN_BITS2@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_BN_num_bits_word
	madd	w0, w19, w21, w0
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_BITS2,4,2                   ; @BN_BITS2
.subsections_via_symbols
