	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_to_uint                 ## -- Begin function mp_int_to_uint
	.p2align	4, 0x90
_mp_int_to_uint:                        ## @mp_int_to_uint
	.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	%rsi, %r14
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_MP_SIGN
	movq	_MP_NEG@GOTPCREL(%rip), %rcx
	movq	_MP_RANGE@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.1:
	movq	_MP_USMALL_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mp_int_compare_uvalue
	testq	%rax, %rax
	jg	LBB0_13
## %bb.2:
	movq	%r15, %rdi
	callq	_MP_USED
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_MP_DIGITS
	testq	%rbx, %rbx
	jle	LBB0_3
## %bb.4:
	leaq	(%rax,%rbx,4), %rax
	movq	_MP_DIGIT_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	leaq	-1(%rbx), %rsi
	movl	%ebx, %edx
	andl	$3, %edx
	cmpq	$3, %rsi
	jae	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_3:
	xorl	%esi, %esi
	jmp	LBB0_11
LBB0_6:
	andq	$-4, %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	shll	%cl, %esi
	shll	%cl, %esi
	orl	-4(%rax), %esi
	shll	%cl, %esi
	shll	%cl, %esi
	orl	-8(%rax), %esi
	shll	%cl, %esi
	shll	%cl, %esi
	orl	-12(%rax), %esi
	shll	%cl, %esi
	shll	%cl, %esi
	orl	-16(%rax), %esi
	addq	$-16, %rax
	addq	$-4, %rbx
	jne	LBB0_7
LBB0_8:
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.9:
	negq	%rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	shll	%cl, %esi
	shll	%cl, %esi
	orl	-4(%rax,%rdi,4), %esi
	decq	%rdi
	cmpq	%rdi, %rdx
	jne	LBB0_10
LBB0_11:
	movq	_MP_OK@GOTPCREL(%rip), %rbx
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movl	%esi, (%r14)
LBB0_13:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_NEG,8,3                     ## @MP_NEG
	.comm	_MP_USMALL_MAX,4,2              ## @MP_USMALL_MAX
	.comm	_MP_RANGE,4,2                   ## @MP_RANGE
	.comm	_MP_DIGIT_BIT,4,2               ## @MP_DIGIT_BIT
	.comm	_MP_OK,4,2                      ## @MP_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_to_uint                 ; -- Begin function mp_int_to_uint
	.p2align	2
_mp_int_to_uint:                        ; @mp_int_to_uint
	.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, x1
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x21
	bl	_MP_SIGN
Lloh0:
	adrp	x8, _MP_NEG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MP_NEG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MP_USMALL_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MP_USMALL_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_mp_int_compare_uvalue
	cmp	x0, #0
	b.le	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _MP_RANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MP_RANGE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	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
LBB0_4:
	mov	x0, x21
	bl	_MP_USED
	mov	x20, x0
	mov	x0, x21
	bl	_MP_DIGITS
	cmp	x20, #1
	b.lt	LBB0_10
; %bb.5:
	mov	w8, #0
Lloh8:
	adrp	x9, _MP_DIGIT_BIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MP_DIGIT_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	sub	x10, x0, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w8, w9
	lsl	w8, w8, w9
	ldr	w11, [x10, x20, lsl #2]
	orr	w8, w8, w11
	subs	x20, x20, #1
	b.hi	LBB0_6
; %bb.7:
	cbz	x19, LBB0_9
LBB0_8:
	str	w8, [x19]
LBB0_9:
Lloh11:
	adrp	x8, _MP_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MP_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_10:
	mov	w8, #0
	cbnz	x19, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_NEG,8,3                     ; @MP_NEG
	.comm	_MP_USMALL_MAX,4,2              ; @MP_USMALL_MAX
	.comm	_MP_RANGE,4,2                   ; @MP_RANGE
	.comm	_MP_DIGIT_BIT,4,2               ; @MP_DIGIT_BIT
	.comm	_MP_OK,4,2                      ; @MP_OK
.subsections_via_symbols
