	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_grow               ## -- Begin function mbedtls_mpi_grow
	.p2align	4, 0x90
_mbedtls_mpi_grow:                      ## @mbedtls_mpi_grow
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MBEDTLS_MPI_MAX_LIMBS@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jae	LBB0_2
LBB0_1:
	movq	_MBEDTLS_ERR_MPI_ALLOC_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	cmpq	%rsi, (%rdi)
	jae	LBB0_7
## %bb.3:
	movq	_ciL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_mbedtls_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r12
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movl	(%r13), %edx
	imull	(%r15), %edx
	movq	%r12, %rdi
	callq	_memcpy
	movq	8(%r15), %rdi
	movl	(%r15), %esi
	callq	_mbedtls_mpi_zeroize
	movq	8(%r15), %rdi
	callq	_mbedtls_free
LBB0_6:
	movq	%rbx, (%r15)
	movq	%r12, 8(%r15)
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_MPI_MAX_LIMBS,8,3      ## @MBEDTLS_MPI_MAX_LIMBS
	.comm	_MBEDTLS_ERR_MPI_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_MPI_ALLOC_FAILED
	.comm	_ciL,4,2                        ## @ciL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_grow               ; -- Begin function mbedtls_mpi_grow
	.p2align	2
_mbedtls_mpi_grow:                      ; @mbedtls_mpi_grow
	.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
Lloh0:
	adrp	x8, _MBEDTLS_MPI_MAX_LIMBS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_MPI_MAX_LIMBS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.hs	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_MPI_ALLOC_FAILED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_MPI_ALLOC_FAILED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.hs	LBB0_7
; %bb.3:
Lloh6:
	adrp	x22, _ciL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ciL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_mbedtls_calloc
	cbz	x0, LBB0_1
; %bb.4:
	mov	x21, x0
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	w8, [x19]
	ldr	w9, [x22]
	mul	w2, w9, w8
	mov	x0, x21
	bl	_memcpy
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	bl	_mbedtls_mpi_zeroize
	ldr	x0, [x19, #8]
	bl	_mbedtls_free
LBB0_6:
	mov	w0, #0
	stp	x20, x21, [x19]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_MPI_MAX_LIMBS,8,3      ; @MBEDTLS_MPI_MAX_LIMBS
	.comm	_MBEDTLS_ERR_MPI_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_MPI_ALLOC_FAILED
	.comm	_ciL,4,2                        ; @ciL
.subsections_via_symbols
