	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movslq	(%rdi), %r14
	callq	_bn_check_top
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bn_num_bits_consttime          ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_BN_is_zero
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	leal	-1(%r14), %r15d
	movq	_BN_BITS2@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	movq	8(%rbx), %rax
	movl	-4(%rax,%r14,4), %edi
	callq	_BN_num_bits_word
	addl	%r15d, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_FLG_CONSTTIME,4,2           ## @BN_FLG_CONSTTIME
	.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
	ldrsw	x20, [x0]
	bl	_bn_check_top
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _BN_FLG_CONSTTIME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BN_FLG_CONSTTIME@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	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
	b	_bn_num_bits_consttime
LBB0_2:
	mov	x0, x19
	bl	_BN_is_zero
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	sub	x20, x20, #1
Lloh3:
	adrp	x8, _BN_BITS2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BN_BITS2@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_BN_num_bits_word
	madd	w0, w21, w20, w0
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_FLG_CONSTTIME,4,2           ; @BN_FLG_CONSTTIME
	.comm	_BN_BITS2,4,2                   ; @BN_BITS2
.subsections_via_symbols
