	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpi_montmul
_mpi_montmul:                           ## @mpi_montmul
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movslq	(%r8), %rdx
	cmpl	(%r15), %edx
	jle	LBB0_2
## %bb.1:
	movq	%r8, %r14
	movq	%rdi, %r13
	movq	8(%r8), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	movl	%ecx, %r12d
	movq	%rsi, %rcx
	movq	_ciL@GOTPCREL(%rip), %rax
	imulq	(%rax), %rdx
	xorl	%esi, %esi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	callq	_memset
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%r14), %rsi
	movslq	(%r15), %rbx
	movl	(%rcx), %eax
	cmpl	%ebx, %eax
	cmovael	%ebx, %eax
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	cltq
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	1(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	$2, %rbx
	movl	$1, %eax
	cmovaeq	%rbx, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %r12
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %r13d
	movq	8(%rcx), %rsi
	movl	(%rsi), %r14d
	imull	%r13d, %r14d
	addl	(%r12), %r14d
	imull	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_mpi_mul_hlp
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_mpi_mul_hlp
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	4(%r12), %rsi
	movl	%r13d, (%r12)
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movl	$0, 8(%r12,%rbx,4)
	incq	%r15
	cmpq	%r15, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_6
## %bb.7:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_2:
	movq	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_4:
	movl	$1, %edx
LBB0_8:
	movq	8(%r13), %rdi
	movq	_ciL@GOTPCREL(%rip), %rax
	imulq	(%rax), %rdx
	callq	_memcpy
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_mbedtls_mpi_cmp_abs
	testq	%rax, %rax
	js	LBB0_10
## %bb.9:
	movq	8(%r15), %rsi
	movq	8(%r13), %rdx
	jmp	LBB0_11
LBB0_10:
	movq	8(%r13), %rsi
	movq	8(%r14), %rdx
LBB0_11:
	movq	%rbx, %rdi
	callq	_mpi_sub_hlp
	xorl	%eax, %eax
LBB0_12:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_MPI_BAD_INPUT_DATA
	.comm	_ciL,8,3                        ## @ciL
	.no_dead_strip	_mpi_montmul
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpi_montmul
_mpi_montmul:                           ; @mpi_montmul
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldrsw	x8, [x4]
	ldr	w9, [x2]
	cmp	w8, w9
	b.le	LBB0_6
; %bb.1:
	mov	x19, x4
	mov	x26, x0
	ldr	x0, [x4, #8]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x28, x3
	mov	x20, x2
	mov	x24, x1
Lloh0:
	adrp	x23, _ciL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ciL@GOTPAGEOFF]
	ldr	x9, [x23]
	mul	x2, x9, x8
	mov	w1, #0
	bl	_memset
	ldr	x1, [x19, #8]
	ldrsw	x25, [x20]
	ldr	w8, [x24]
	cmp	w8, w25
	csel	w8, w8, w25, lo
	cbz	w25, LBB0_7
; %bb.3:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x19, #0
	sxtw	x8, w8
	stp	x8, x20, [sp, #16]              ; 16-byte Folded Spill
	add	x8, x25, #1
	str	x8, [sp]                        ; 8-byte Folded Spill
	cmp	x25, #1
	csinc	x20, x25, xzr, hi
	lsl	x8, x25, #2
	add	x21, x8, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26, #8]
	mov	x23, x26
	ldr	w26, [x8, x19, lsl #2]
	mov	x27, x1
	ldr	w8, [x1]
	ldr	x1, [x24, #8]
	ldr	w9, [x1]
	madd	w8, w9, w26, w8
	mul	w22, w8, w28
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x27
	mov	x3, x26
	bl	_mpi_mul_hlp
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x1, [x8, #8]
	mov	x0, x25
	mov	x2, x27
	mov	x3, x22
	bl	_mpi_mul_hlp
	add	x1, x27, #4
	str	w26, [x27]
	mov	x26, x23
	str	wzr, [x27, x21]
	add	x19, x19, #1
	cmp	x20, x19
	b.ne	LBB0_4
; %bb.5:
	ldp	x9, x19, [sp]                   ; 16-byte Folded Reload
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
Lloh2:
	adrp	x23, _ciL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ciL@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh4:
	adrp	x8, _MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_7:
	mov	w9, #1
LBB0_8:
	ldr	x0, [x26, #8]
	ldr	x8, [x23]
	mul	x2, x8, x9
	bl	_memcpy
	mov	x0, x26
	mov	x1, x20
	bl	_mbedtls_mpi_cmp_abs
	tbnz	x0, #63, LBB0_10
; %bb.9:
	ldr	x1, [x20, #8]
	ldr	x2, [x26, #8]
	b	LBB0_11
LBB0_10:
	ldr	x1, [x26, #8]
	ldr	x2, [x19, #8]
LBB0_11:
	mov	x0, x25
	bl	_mpi_sub_hlp
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_MPI_BAD_INPUT_DATA
	.comm	_ciL,8,3                        ; @ciL
	.no_dead_strip	_mpi_montmul
.subsections_via_symbols
