	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_root                    ## -- Begin function mp_int_root
	.p2align	4, 0x90
_mp_int_root:                           ## @mp_int_root
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %r12
	testq	%rdi, %rdi
	setne	%al
	testq	%rdx, %rdx
	setne	%cl
	andb	%al, %cl
	testl	%esi, %esi
	setg	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	cmpl	$1, %r13d
	jne	LBB0_1
## %bb.13:
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mp_int_copy                    ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	callq	_MP_SIGN
	movq	_MP_NEG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testb	$1, %r13b
	jne	LBB0_4
## %bb.2:
	cmpq	%rcx, %rax
	jne	LBB0_4
## %bb.3:
	movq	_MP_UNDEF@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$5, %edi
	callq	_DECLARE_TEMP
	xorl	%edi, %edi
	callq	_TEMP
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
	movl	$1, %edi
	callq	_TEMP
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
	movq	_MP_ZPOS@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rbx, (%rax)
	movq	(%r15), %rbx
	movl	$1, %edi
	callq	_TEMP
	movq	%rbx, (%rax)
	leal	-1(%r13), %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$4, %edi
	callq	_TEMP
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_TEMP
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rbx
	movl	$2, %edi
	callq	_TEMP
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%rax, %rdx
	callq	_mp_int_expt
	movl	%eax, %edi
	callq	_REQUIRE
	movl	$2, %edi
	callq	_TEMP
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mp_int_compare_unsigned
	testq	%rax, %rax
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$2, %edi
	callq	_TEMP
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rax, %r15
	movl	$2, %edi
	callq	_TEMP
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_mp_int_sub
	movl	%eax, %edi
	callq	_REQUIRE
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rbx
	movl	$3, %edi
	callq	_TEMP
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_mp_int_expt
	movl	%eax, %edi
	callq	_REQUIRE
	movl	$3, %edi
	callq	_TEMP
	movq	%rax, %rbx
	movl	$3, %edi
	callq	_TEMP
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%rax, %rdx
	callq	_mp_int_mul_value
	movl	%eax, %edi
	callq	_REQUIRE
	movl	$2, %edi
	callq	_TEMP
	movq	%rax, %r15
	movl	$3, %edi
	callq	_TEMP
	movq	%rax, %rbx
	movl	$4, %edi
	callq	_TEMP
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_mp_int_div
	movl	%eax, %edi
	callq	_REQUIRE
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %r15
	movl	$4, %edi
	callq	_TEMP
	movq	%rax, %rbx
	movl	$4, %edi
	callq	_TEMP
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_mp_int_sub
	movl	%eax, %edi
	callq	_REQUIRE
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rbx
	movl	$4, %edi
	callq	_TEMP
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mp_int_compare_unsigned
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$4, %edi
	callq	_TEMP
	movq	%rax, %rbx
	movl	$4, %edi
	callq	_TEMP
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_mp_int_sub_value
	movl	%eax, %edi
	callq	_REQUIRE
	jmp	LBB0_8
LBB0_9:
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_mp_int_neg
LBB0_11:
	xorl	%eax, %eax
	callq	_CLEANUP_TEMP
	movq	_MP_OK@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_NEG,8,3                     ## @MP_NEG
	.comm	_MP_UNDEF,4,2                   ## @MP_UNDEF
	.comm	_MP_ZPOS,8,3                    ## @MP_ZPOS
	.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_root                    ; -- Begin function mp_int_root
	.p2align	2
_mp_int_root:                           ; @mp_int_root
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	cmp	x0, #0
	ccmp	x2, #0, #4, ne
	ccmp	w1, #0, #4, ne
	cset	w0, gt
	bl	_assert
	subs	w22, w20, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mp_int_copy
LBB0_2:
	mov	x0, x23
	bl	_MP_SIGN
	mov	x21, x0
Lloh0:
	adrp	x8, _MP_NEG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MP_NEG@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	tbnz	w20, #0, LBB0_5
; %bb.3:
	cmp	x21, x25
	b.ne	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _MP_UNDEF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MP_UNDEF@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
	mov	w0, #5
	bl	_DECLARE_TEMP
	mov	w0, #0
	bl	_TEMP
	mov	x1, x0
	mov	x0, x23
	bl	_mp_int_copy
	bl	_REQUIRE
	mov	w0, #1
	bl	_TEMP
	mov	x1, x0
	mov	x0, x23
	bl	_mp_int_copy
	bl	_REQUIRE
Lloh5:
	adrp	x23, _MP_ZPOS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MP_ZPOS@GOTPAGEOFF]
	ldr	x24, [x23]
	mov	w0, #0
	bl	_TEMP
	str	x24, [x0]
	ldr	x23, [x23]
	mov	w0, #1
	bl	_TEMP
	str	x23, [x0]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #4
	bl	_TEMP
	mov	x23, x0
	mov	w0, #1
	bl	_TEMP
	mov	x1, x0
	mov	x0, x23
	bl	_mp_int_copy
	bl	_REQUIRE
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_TEMP
	mov	x23, x0
	mov	w0, #2
	bl	_TEMP
	mov	x2, x0
	mov	x0, x23
	mov	x1, x20
	bl	_mp_int_expt
	bl	_REQUIRE
	mov	w0, #2
	bl	_TEMP
	mov	x23, x0
	mov	w0, #0
	bl	_TEMP
	mov	x1, x0
	mov	x0, x23
	bl	_mp_int_compare_unsigned
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #2
	bl	_TEMP
	mov	x23, x0
	mov	w0, #0
	bl	_TEMP
	mov	x24, x0
	mov	w0, #2
	bl	_TEMP
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_mp_int_sub
	bl	_REQUIRE
	mov	w0, #1
	bl	_TEMP
	mov	x23, x0
	mov	w0, #3
	bl	_TEMP
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_mp_int_expt
	bl	_REQUIRE
	mov	w0, #3
	bl	_TEMP
	mov	x23, x0
	mov	w0, #3
	bl	_TEMP
	mov	x2, x0
	mov	x0, x23
	mov	x1, x20
	bl	_mp_int_mul_value
	bl	_REQUIRE
	mov	w0, #2
	bl	_TEMP
	mov	x23, x0
	mov	w0, #3
	bl	_TEMP
	mov	x24, x0
	mov	w0, #4
	bl	_TEMP
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	mov	x3, #0
	bl	_mp_int_div
	bl	_REQUIRE
	mov	w0, #1
	bl	_TEMP
	mov	x23, x0
	mov	w0, #4
	bl	_TEMP
	mov	x24, x0
	mov	w0, #4
	bl	_TEMP
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_mp_int_sub
	bl	_REQUIRE
	mov	w0, #1
	bl	_TEMP
	mov	x23, x0
	mov	w0, #4
	bl	_TEMP
	mov	x1, x0
	mov	x0, x23
	bl	_mp_int_compare_unsigned
	cbnz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #4
	bl	_TEMP
	mov	x23, x0
	mov	w0, #4
	bl	_TEMP
	mov	x2, x0
	mov	x0, x23
	mov	w1, #1
	bl	_mp_int_sub_value
	bl	_REQUIRE
	b	LBB0_6
LBB0_10:
	mov	w0, #1
	bl	_TEMP
	mov	x1, x19
	bl	_mp_int_copy
	bl	_REQUIRE
	cmp	x21, x25
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x19
	bl	_mp_int_neg
LBB0_12:
	bl	_CLEANUP_TEMP
Lloh7:
	adrp	x8, _MP_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MP_OK@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_NEG,8,3                     ; @MP_NEG
	.comm	_MP_UNDEF,4,2                   ; @MP_UNDEF
	.comm	_MP_ZPOS,8,3                    ; @MP_ZPOS
	.comm	_MP_OK,4,2                      ; @MP_OK
.subsections_via_symbols
