	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsa_prepare_blinding
_rsa_prepare_blinding:                  ## @rsa_prepare_blinding
	.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	%rdi, %r14
	leaq	24(%rdi), %r12
	cmpq	$0, 24(%rdi)
	je	LBB0_1
## %bb.8:
	leaq	16(%r14), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	addq	$4, %r14
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_mod_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_mpi_mod_mpi
	jmp	LBB0_6
LBB0_1:
	movq	%rdx, %r15
	movq	%rsi, %rdx
	leaq	16(%r14), %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$12, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r13d
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rsi
	decq	%rsi
	movq	%r12, %rdi
	movq	%rdx, %r14
	movq	%r15, %rcx
	callq	_mbedtls_mpi_fill_random
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_mbedtls_mpi_gcd
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_cmp_int
	movq	%r14, %rdx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_mbedtls_mpi_inv_mod
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	leaq	8(%r8), %rdx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rcx
	callq	_mbedtls_mpi_exp_mod
LBB0_6:
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
                                        ## implicit-def: $eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_MBEDTLS_ERR_RSA_RNG_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_RSA_RNG_FAILED,4,2 ## @MBEDTLS_ERR_RSA_RNG_FAILED
	.no_dead_strip	_rsa_prepare_blinding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsa_prepare_blinding
_rsa_prepare_blinding:                  ; @rsa_prepare_blinding
	.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	x20, x0
	mov	x19, x0
	ldr	x8, [x19, #24]!
	cbz	x8, LBB0_2
; %bb.1:
	add	x21, x20, #16
	mov	x0, x21
	mov	x1, x21
	mov	x2, x21
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x20, x20, #4
	mov	x0, x21
	mov	x1, x21
	mov	x2, x20
	bl	_mbedtls_mpi_mod_mpi
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x19
	mov	x1, x19
	mov	x2, x19
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x19
	mov	x1, x19
	mov	x2, x20
	bl	_mbedtls_mpi_mod_mpi
	b	LBB0_6
LBB0_2:
	mov	x23, x2
	mov	x24, x1
	add	x21, x20, #16
	add	x22, x20, #4
	mov	w25, #12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	subs	w25, w25, #1
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #32]
	sub	x1, x8, #1
	mov	x0, x19
	mov	x2, x24
	mov	x3, x23
	bl	_mbedtls_mpi_fill_random
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_mbedtls_mpi_gcd
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x21
	mov	w1, #1
	bl	_mbedtls_mpi_cmp_int
	cbnz	x0, LBB0_3
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_mbedtls_mpi_inv_mod
	bl	_MBEDTLS_MPI_CHK
	add	x2, x20, #8
	mov	x0, x21
	mov	x1, x21
	mov	x3, x22
	mov	x4, x20
	bl	_mbedtls_mpi_exp_mod
LBB0_6:
	bl	_MBEDTLS_MPI_CHK
                                        ; implicit-def: $w0
LBB0_7:
	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
LBB0_8:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_RSA_RNG_FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_RSA_RNG_FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_RSA_RNG_FAILED,4,2 ; @MBEDTLS_ERR_RSA_RNG_FAILED
	.no_dead_strip	_rsa_prepare_blinding
.subsections_via_symbols
