	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_rsa_private            ## -- Begin function mbedtls_rsa_private
	.p2align	4, 0x90
_mbedtls_rsa_private:                   ## @mbedtls_rsa_private
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 40(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, 32(%rdi)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 88(%r14)
	je	LBB0_3
## %bb.4:
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%r8, -152(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-64(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-88(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-80(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-120(%rbp), %rdi
	callq	_mbedtls_mpi_init
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	leaq	-72(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-112(%rbp), %rdi
	callq	_mbedtls_mpi_init
LBB0_6:
	movq	(%r14), %rdx
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_mpi_read_binary
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	16(%r14), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:
	movq	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movq	_MBEDTLS_ERR_RSA_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	leaq	80(%r14), %rdx
	leaq	72(%r14), %rbx
	leaq	40(%r14), %rax
	leaq	32(%r14), %r12
	testq	%r15, %r15
	movq	%r12, -144(%rbp)                ## 8-byte Spill
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%r13, %rdx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	_rsa_prepare_blinding
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	96(%r14), %rdx
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_mbedtls_mpi_mod_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-88(%rbp), %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_mbedtls_mpi_sub_int
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-80(%rbp), %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_mbedtls_mpi_sub_int
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	_RSA_EXPONENT_BLINDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-120(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_mbedtls_mpi_fill_random
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	-88(%rbp), %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	callq	_mbedtls_mpi_add_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	_RSA_EXPONENT_BLINDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_mbedtls_mpi_fill_random
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	callq	_mbedtls_mpi_add_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	-72(%rbp), %rdx
LBB0_10:
	leaq	60(%r14), %r8
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %r12
	movq	%r12, %rsi
	movq	%rax, %r13
	movq	%rax, %rcx
	callq	_mbedtls_mpi_exp_mod
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	56(%r14), %r8
	leaq	-64(%rbp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_mbedtls_mpi_exp_mod
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	callq	_mbedtls_mpi_sub_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	48(%r14), %rdx
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdx
	callq	_mbedtls_mpi_mod_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-48(%rbp), %rdi
	movq	%rdi, %r13
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r12, %rdi
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdx
	callq	_mbedtls_mpi_add_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	leaq	24(%r14), %rdx
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_mbedtls_mpi_mod_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
LBB0_12:
	movq	(%r14), %rdx
	leaq	-56(%rbp), %rdi
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	callq	_mbedtls_mpi_write_binary
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
                                        ## implicit-def: $ebx
LBB0_13:
	leaq	-56(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-64(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-88(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-80(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-120(%rbp), %rdi
	callq	_mbedtls_mpi_free
	testq	%r15, %r15
	je	LBB0_15
## %bb.14:
	leaq	-72(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-112(%rbp), %rdi
	callq	_mbedtls_mpi_free
LBB0_15:
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.17:
	movq	_MBEDTLS_ERR_RSA_PRIVATE_FAILED@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	jmp	LBB0_18
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_RSA_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_RSA_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_MPI_BAD_INPUT_DATA
	.comm	_RSA_EXPONENT_BLINDING,4,2      ## @RSA_EXPONENT_BLINDING
	.comm	_MBEDTLS_ERR_RSA_PRIVATE_FAILED,4,2 ## @MBEDTLS_ERR_RSA_PRIVATE_FAILED
	.comm	_MBEDTLS_ERR_THREADING_MUTEX_ERROR,4,2 ## @MBEDTLS_ERR_THREADING_MUTEX_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_rsa_private            ; -- Begin function mbedtls_rsa_private
	.p2align	2
_mbedtls_rsa_private:                   ; @mbedtls_rsa_private
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x23, x0
	ldr	x8, [x23, #40]!
	cbz	x8, LBB0_7
; %bb.1:
	mov	x21, x0
	mov	x22, x0
	ldr	x8, [x22, #32]!
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x8, [x21, #88]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x20, x4
	mov	x26, x3
	mov	x25, x2
	mov	x19, x1
	add	x0, sp, #56
	bl	_mbedtls_mpi_init
	add	x0, sp, #48
	bl	_mbedtls_mpi_init
	add	x0, sp, #40
	bl	_mbedtls_mpi_init
	add	x0, sp, #32
	bl	_mbedtls_mpi_init
	add	x0, sp, #24
	bl	_mbedtls_mpi_init
	add	x0, sp, #16
	bl	_mbedtls_mpi_init
	cbz	x19, LBB0_5
; %bb.4:
	add	x0, sp, #8
	bl	_mbedtls_mpi_init
	mov	x0, sp
	bl	_mbedtls_mpi_init
LBB0_5:
	mov	x24, x21
	ldr	x2, [x24], #16
	add	x0, sp, #56
	mov	x1, x26
	bl	_mbedtls_mpi_read_binary
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #56
	mov	x1, x24
	bl	_mbedtls_mpi_cmp_mpi
	tbnz	x0, #63, LBB0_9
; %bb.6:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_14
LBB0_7:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_RSA_BAD_INPUT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_RSA_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_9:
	add	x27, x23, #40
	add	x26, x23, #32
	cbz	x19, LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x25
	bl	_rsa_prepare_blinding
	bl	_MBEDTLS_MPI_CHK
	add	x2, x21, #96
	add	x0, sp, #56
	add	x1, sp, #56
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #56
	add	x1, sp, #56
	mov	x2, x24
	bl	_mbedtls_mpi_mod_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #32
	mov	x1, x23
	mov	w2, #1
	bl	_mbedtls_mpi_sub_int
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #24
	mov	x1, x22
	mov	w2, #1
	bl	_mbedtls_mpi_sub_int
	bl	_MBEDTLS_MPI_CHK
Lloh6:
	adrp	x28, _RSA_EXPONENT_BLINDING@GOTPAGE
Lloh7:
	ldr	x28, [x28, _RSA_EXPONENT_BLINDING@GOTPAGEOFF]
	ldr	w1, [x28]
	add	x0, sp, #16
	mov	x2, x19
	mov	x3, x25
	bl	_mbedtls_mpi_fill_random
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #8
	add	x1, sp, #32
	add	x2, sp, #16
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #8
	add	x1, sp, #8
	mov	x2, x27
	bl	_mbedtls_mpi_add_mpi
	bl	_MBEDTLS_MPI_CHK
	ldr	w1, [x28]
	add	x0, sp, #16
	mov	x2, x19
	mov	x3, x25
	bl	_mbedtls_mpi_fill_random
	bl	_MBEDTLS_MPI_CHK
	mov	x0, sp
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	mov	x0, sp
	mov	x1, sp
	mov	x2, x26
	bl	_mbedtls_mpi_add_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x27, sp, #8
	mov	x26, sp
LBB0_11:
	add	x4, x21, #60
	add	x0, sp, #48
	add	x1, sp, #56
	mov	x2, x27
	mov	x3, x23
	bl	_mbedtls_mpi_exp_mod
	bl	_MBEDTLS_MPI_CHK
	add	x4, x21, #56
	add	x0, sp, #40
	add	x1, sp, #56
	mov	x2, x26
	mov	x3, x22
	bl	_mbedtls_mpi_exp_mod
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #56
	add	x1, sp, #48
	add	x2, sp, #40
	bl	_mbedtls_mpi_sub_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x2, x21, #48
	add	x0, sp, #48
	add	x1, sp, #56
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #56
	add	x1, sp, #48
	mov	x2, x23
	bl	_mbedtls_mpi_mod_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #48
	add	x1, sp, #56
	mov	x2, x22
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #56
	add	x1, sp, #40
	add	x2, sp, #48
	bl	_mbedtls_mpi_add_mpi
	bl	_MBEDTLS_MPI_CHK
	cbz	x19, LBB0_13
; %bb.12:
	add	x2, x21, #24
	add	x0, sp, #56
	add	x1, sp, #56
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #56
	add	x1, sp, #56
	mov	x2, x24
	bl	_mbedtls_mpi_mod_mpi
	bl	_MBEDTLS_MPI_CHK
LBB0_13:
	ldr	x2, [x21]
	add	x0, sp, #56
	mov	x1, x20
	bl	_mbedtls_mpi_write_binary
	bl	_MBEDTLS_MPI_CHK
                                        ; implicit-def: $w20
LBB0_14:
	add	x0, sp, #56
	bl	_mbedtls_mpi_free
	add	x0, sp, #48
	bl	_mbedtls_mpi_free
	add	x0, sp, #40
	bl	_mbedtls_mpi_free
	add	x0, sp, #32
	bl	_mbedtls_mpi_free
	add	x0, sp, #24
	bl	_mbedtls_mpi_free
	add	x0, sp, #16
	bl	_mbedtls_mpi_free
	cbz	x19, LBB0_16
; %bb.15:
	add	x0, sp, #8
	bl	_mbedtls_mpi_free
	mov	x0, sp
	bl	_mbedtls_mpi_free
LBB0_16:
	cbz	w20, LBB0_18
; %bb.17:
Lloh8:
	adrp	x8, _MBEDTLS_ERR_RSA_PRIVATE_FAILED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ERR_RSA_PRIVATE_FAILED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w0, w8, w20
	b	LBB0_8
LBB0_18:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_RSA_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_RSA_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_MPI_BAD_INPUT_DATA
	.comm	_RSA_EXPONENT_BLINDING,4,2      ; @RSA_EXPONENT_BLINDING
	.comm	_MBEDTLS_ERR_RSA_PRIVATE_FAILED,4,2 ; @MBEDTLS_ERR_RSA_PRIVATE_FAILED
	.comm	_MBEDTLS_ERR_THREADING_MUTEX_ERROR,4,2 ; @MBEDTLS_ERR_THREADING_MUTEX_ERROR
.subsections_via_symbols
