	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpi_mul                        ## -- Begin function mpi_mul
	.p2align	4, 0x90
_mpi_mul:                               ## @mpi_mul
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	(%rsi), %rax
	movq	(%rdx), %r14
	cmpq	%r14, %rax
	movq	%r14, %r12
	cmovgq	%rax, %r12
	cmovlq	%rax, %r14
	movq	%rsi, %rax
	cmovlq	%rdx, %rax
	movq	%rdi, %r13
	cmovlq	%rsi, %rdx
	movl	8(%rax), %ebx
	movq	16(%rdx), %rdi
	movq	16(%rax), %rsi
	xorl	8(%rdx), %ebx
	movq	16(%r13), %rax
	leaq	(%r12,%r14), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, 24(%r13)
	jae	LBB0_7
## %bb.1:
	cmpq	%rsi, %rax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.2:
	cmpq	%rdi, %rax
	je	LBB0_3
## %bb.5:
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_mpi_resize
	testq	%rax, %rax
	js	LBB0_24
## %bb.6:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r13), %rsi
	movb	$1, %dl
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%r14, %r14
	jne	LBB0_17
	jmp	LBB0_16
LBB0_7:
	cmpq	%rsi, %rax
	jne	LBB0_11
## %bb.8:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	callq	_mpi_alloc_limb_space
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r15
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %rsi
	cmoveq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rdx
	callq	_MPN_COPY
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movb	$1, %dl
	movq	%rbx, %rcx
	movq	%r15, %rbx
	testq	%r14, %r14
	jne	LBB0_17
	jmp	LBB0_16
LBB0_3:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_mpi_alloc_limb_space
	testq	%rax, %rax
	je	LBB0_24
## %bb.4:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	xorl	%edx, %edx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %rsi
	xorl	%ebx, %ebx
	testq	%r14, %r14
	jne	LBB0_17
	jmp	LBB0_16
LBB0_11:
	movb	$1, %dl
	cmpq	%rdi, %rax
	jne	LBB0_12
## %bb.13:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_mpi_alloc_limb_space
	testq	%rax, %rax
	je	LBB0_24
## %bb.14:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%rax, %r15
	callq	_MPN_COPY
	movq	%r15, %rcx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%rcx, %rbx
	movb	$1, %dl
	testq	%r14, %r14
	jne	LBB0_17
LBB0_16:
	movq	%rbx, %r12
	xorl	%ebx, %ebx
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	testb	%dl, %dl
	je	LBB0_20
	jmp	LBB0_21
LBB0_12:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %rcx
	movq	%rax, %rsi
	testq	%r14, %r14
	je	LBB0_16
LBB0_17:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %r9
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %r8
	callq	_mpihelp_mul
	testq	%rax, %rax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	js	LBB0_22
## %bb.18:
	movq	%rbx, %r12
	cmpq	$1, -80(%rbp)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	sbbq	$0, %rbx
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testb	%dl, %dl
	jne	LBB0_21
LBB0_20:
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_mpi_assign_limb_space
LBB0_21:
	movq	%rbx, (%r13)
	movl	%r14d, 8(%r13)
	xorl	%r15d, %r15d
	movq	%r12, %rbx
LBB0_22:
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	callq	_mpi_free_limb_space
LBB0_24:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpi_mul                        ; -- Begin function mpi_mul
	.p2align	2
_mpi_mul:                               ; @mpi_mul
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	ldr	x8, [x1]
	ldr	x9, [x2]
	cmp	x8, x9
	csel	x22, x8, x9, gt
	csel	x23, x8, x9, lt
	csel	x8, x2, x1, lt
	csel	x9, x1, x2, lt
	ldr	w25, [x9, #8]
	ldr	w27, [x8, #8]
	ldr	x26, [x9, #16]
	ldr	x21, [x8, #16]
	ldp	x8, x9, [x0, #16]
	add	x24, x22, x23
	cmp	x9, x24
	b.hs	LBB0_4
; %bb.1:
	cmp	x8, x21
	ccmp	x8, x26, #4, ne
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x24
	bl	_mpi_alloc_limb_space
	cbz	x0, LBB0_21
; %bb.3:
	stp	w25, w27, [sp]                  ; 8-byte Folded Spill
	mov	w10, #0
	mov	x25, #0
	mov	x28, x21
	mov	x27, x26
	mov	x21, x0
	cbnz	x23, LBB0_14
	b	LBB0_12
LBB0_4:
	cmp	x8, x21
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x22
	bl	_mpi_alloc_limb_space
	cbz	x0, LBB0_21
; %bb.6:
	mov	x28, x0
	stp	w25, w27, [sp]                  ; 8-byte Folded Spill
	cmp	x21, x26
	csel	x27, x0, x26, eq
	mov	x1, x21
	mov	x2, x22
	bl	_MPN_COPY
	mov	w10, #1
	mov	x25, x28
	cbnz	x23, LBB0_14
	b	LBB0_12
LBB0_7:
	mov	x0, x20
	mov	x1, x24
	bl	_mpi_resize
	tbnz	x0, #63, LBB0_21
; %bb.8:
	stp	w25, w27, [sp]                  ; 8-byte Folded Spill
	mov	x25, #0
	mov	x28, x21
	ldr	x21, [x20, #16]
	mov	w10, #1
	mov	x27, x26
	cbnz	x23, LBB0_14
	b	LBB0_12
LBB0_9:
	str	w27, [sp, #4]                   ; 4-byte Folded Spill
	cmp	x8, x26
	b.ne	LBB0_13
; %bb.10:
	mov	x0, x23
	bl	_mpi_alloc_limb_space
	cbz	x0, LBB0_21
; %bb.11:
	mov	x27, x0
	str	w25, [sp]                       ; 4-byte Folded Spill
	mov	x1, x26
	mov	x2, x23
	bl	_MPN_COPY
	mov	w10, #1
	mov	x28, x21
	mov	x21, x26
	mov	x25, x27
	cbnz	x23, LBB0_14
LBB0_12:
	mov	x22, #0
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	b	LBB0_16
LBB0_13:
	str	w25, [sp]                       ; 4-byte Folded Spill
	mov	x25, #0
	mov	w10, #1
	mov	x28, x21
	mov	x27, x26
	mov	x21, x8
	cbz	x23, LBB0_12
LBB0_14:
	mov	x26, x10
	add	x5, sp, #8
	mov	x0, x21
	mov	x1, x28
	mov	x2, x22
	mov	x3, x27
	mov	x4, x23
	bl	_mpihelp_mul
	tbnz	x0, #63, LBB0_19
; %bb.15:
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w8, eq
	sub	x22, x24, x8
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	mov	x10, x26
LBB0_16:
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	eor	w23, w9, w8
	tbnz	w10, #0, LBB0_18
; %bb.17:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_mpi_assign_limb_space
LBB0_18:
	mov	w19, #0
	str	x22, [x20]
	str	w23, [x20, #8]
LBB0_19:
	cbz	x25, LBB0_21
; %bb.20:
	mov	x0, x25
	bl	_mpi_free_limb_space
LBB0_21:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
