	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bn_to_mpi
_bn_to_mpi:                             ## @bn_to_mpi
	.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
	callq	_mp_int_count_bits
	leaq	-16(%rbp), %rsi
	movl	%eax, %edi
	callq	_pgp_mpi_alloc
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_mp_int_count_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	addl	$14, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	movq	-16(%rbp), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jne	LBB0_4
## %bb.2:
	movl	4(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_mp_int_to_unsigned
	movq	-16(%rbp), %rax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_px_debug
	movq	-16(%rbp), %rdi
	callq	_pgp_mpi_free
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bn_to_mpi: bignum conversion failed: bn=%d, mpi=%d"

	.no_dead_strip	_bn_to_mpi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bn_to_mpi
_bn_to_mpi:                             ; @bn_to_mpi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_mp_int_count_bits
	add	x1, sp, #8
	bl	_pgp_mpi_alloc
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_mp_int_count_bits
	add	w8, w0, #7
	add	w9, w0, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	ldr	x9, [sp, #8]
	ldr	w2, [x9]
	cmp	w8, w2
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x9, #4]
	mov	x0, x19
	mov	x2, x8
	bl	_mp_int_to_unsigned
	ldr	x0, [sp, #8]
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_px_debug
	ldr	x0, [sp, #8]
	bl	_pgp_mpi_free
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bn_to_mpi: bignum conversion failed: bn=%d, mpi=%d"

	.no_dead_strip	_bn_to_mpi
.subsections_via_symbols
