	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_rsa_check_privkey      ## -- Begin function mbedtls_rsa_check_privkey
	.p2align	4, 0x90
_mbedtls_rsa_check_privkey:             ## @mbedtls_rsa_check_privkey
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_mbedtls_rsa_check_pubkey
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	cmpl	$0, 16(%r14)
	je	LBB0_4
## %bb.2:
	cmpl	$0, 20(%r14)
	je	LBB0_4
## %bb.3:
	cmpl	$0, 24(%r14)
	je	LBB0_4
## %bb.5:
	leaq	16(%r14), %rbx
	leaq	20(%r14), %r13
	leaq	24(%r14), %r15
	movq	%r15, -160(%rbp)                ## 8-byte Spill
	leaq	-144(%rbp), %r12
	movq	%r12, %rdi
	callq	_mbedtls_mpi_init
	leaq	-104(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-136(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-128(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-96(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-88(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-120(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-112(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-80(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-72(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-64(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-56(%rbp), %rdi
	callq	_mbedtls_mpi_init
	movq	%r12, %rdi
	movq	%rbx, -168(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r13, -152(%rbp)                ## 8-byte Spill
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	28(%r14), %r12
	leaq	-104(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_mbedtls_mpi_sub_int
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-136(%rbp), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_mbedtls_mpi_sub_int
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-128(%rbp), %r13
	movq	%r13, %rdi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-88(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_mbedtls_mpi_gcd
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-120(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_gcd
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_mbedtls_mpi_div_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-96(%rbp), %rdi
	leaq	-104(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_mod_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-72(%rbp), %rdi
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	leaq	-48(%rbp), %rdx
	callq	_mbedtls_mpi_mod_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_mbedtls_mpi_mod_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-56(%rbp), %rdi
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	callq	_mbedtls_mpi_inv_mod
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	12(%r14), %rsi
	leaq	-144(%rbp), %rdi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_13
## %bb.6:
	leaq	8(%r14), %rsi
	leaq	-72(%rbp), %rdi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:
	leaq	4(%r14), %rsi
	leaq	-64(%rbp), %rdi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	leaq	-56(%rbp), %rdi
	movq	%r14, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	leaq	-96(%rbp), %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	leaq	-88(%rbp), %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_12
LBB0_13:
	movq	_MBEDTLS_ERR_RSA_KEY_CHECK_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_14:
	leaq	-144(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-104(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-136(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-128(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-96(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-88(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-120(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-112(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-80(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-72(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-64(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-56(%rbp), %rdi
	callq	_mbedtls_mpi_free
	movq	_MBEDTLS_ERR_RSA_KEY_CHECK_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	je	LBB0_16
## %bb.15:
	addl	%ebx, %eax
	testl	%ebx, %ebx
	cmovnel	%eax, %ebx
	jmp	LBB0_16
LBB0_4:
	movq	_MBEDTLS_ERR_RSA_KEY_CHECK_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_RSA_KEY_CHECK_FAILED,4,2 ## @MBEDTLS_ERR_RSA_KEY_CHECK_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_rsa_check_privkey      ; -- Begin function mbedtls_rsa_check_privkey
	.p2align	2
_mbedtls_rsa_check_privkey:             ; @mbedtls_rsa_check_privkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x19, x0
	bl	_mbedtls_rsa_check_pubkey
	mov	x20, x0
	cbnz	w0, LBB0_15
; %bb.1:
	mov	x20, x19
	ldr	w8, [x20, #16]!
	cbz	w8, LBB0_14
; %bb.2:
	mov	x21, x19
	ldr	w8, [x21, #20]!
	cbz	w8, LBB0_14
; %bb.3:
	mov	x22, x19
	ldr	w8, [x22, #24]!
	cbz	w8, LBB0_14
; %bb.4:
	sub	x0, x29, #56
	bl	_mbedtls_mpi_init
	sub	x0, x29, #64
	bl	_mbedtls_mpi_init
	sub	x0, x29, #72
	bl	_mbedtls_mpi_init
	add	x0, sp, #80
	bl	_mbedtls_mpi_init
	add	x0, sp, #72
	bl	_mbedtls_mpi_init
	add	x0, sp, #64
	bl	_mbedtls_mpi_init
	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
	add	x0, sp, #8
	bl	_mbedtls_mpi_init
	sub	x0, x29, #56
	mov	x1, x20
	mov	x2, x21
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x23, x19, #28
	sub	x0, x29, #64
	mov	x1, x22
	mov	x2, x23
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	sub	x0, x29, #72
	mov	x1, x20
	mov	w2, #1
	bl	_mbedtls_mpi_sub_int
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #80
	mov	x1, x21
	mov	w2, #1
	bl	_mbedtls_mpi_sub_int
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #72
	sub	x1, x29, #72
	add	x2, sp, #80
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #56
	add	x2, sp, #72
	mov	x1, x23
	bl	_mbedtls_mpi_gcd
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #48
	sub	x1, x29, #72
	add	x2, sp, #80
	bl	_mbedtls_mpi_gcd
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #40
	add	x1, sp, #32
	add	x2, sp, #72
	add	x3, sp, #48
	bl	_mbedtls_mpi_div_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #64
	sub	x1, x29, #64
	add	x2, sp, #40
	bl	_mbedtls_mpi_mod_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #24
	sub	x2, x29, #72
	mov	x1, x22
	bl	_mbedtls_mpi_mod_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #16
	add	x2, sp, #80
	mov	x1, x22
	bl	_mbedtls_mpi_mod_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_mbedtls_mpi_inv_mod
	bl	_MBEDTLS_MPI_CHK
	add	x1, x19, #12
	sub	x0, x29, #56
	bl	_mbedtls_mpi_cmp_mpi
Lloh0:
	adrp	x21, _MBEDTLS_ERR_RSA_KEY_CHECK_FAILED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MBEDTLS_ERR_RSA_KEY_CHECK_FAILED@GOTPAGEOFF]
	cbnz	x0, LBB0_11
; %bb.5:
	add	x1, x19, #8
	add	x0, sp, #24
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_11
; %bb.6:
	add	x1, x19, #4
	add	x0, sp, #16
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_11
; %bb.7:
	add	x0, sp, #8
	mov	x1, x19
	bl	_mbedtls_mpi_cmp_mpi
	cbnz	x0, LBB0_11
; %bb.8:
	add	x0, sp, #32
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	cbnz	x0, LBB0_11
; %bb.9:
	add	x0, sp, #64
	mov	w1, #1
	bl	_mbedtls_mpi_cmp_int
	cbnz	x0, LBB0_11
; %bb.10:
	add	x0, sp, #56
	mov	w1, #1
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_16
LBB0_11:
	ldr	w20, [x21]
LBB0_12:
	sub	x0, x29, #56
	bl	_mbedtls_mpi_free
	sub	x0, x29, #64
	bl	_mbedtls_mpi_free
	sub	x0, x29, #72
	bl	_mbedtls_mpi_free
	add	x0, sp, #80
	bl	_mbedtls_mpi_free
	add	x0, sp, #72
	bl	_mbedtls_mpi_free
	add	x0, sp, #64
	bl	_mbedtls_mpi_free
	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
	add	x0, sp, #8
	bl	_mbedtls_mpi_free
	ldr	w8, [x21]
	cmp	w20, w8
	b.eq	LBB0_15
; %bb.13:
	add	w8, w8, w20
	cmp	w20, #0
	csel	w20, wzr, w8, eq
	b	LBB0_15
LBB0_14:
Lloh2:
	adrp	x8, _MBEDTLS_ERR_RSA_KEY_CHECK_FAILED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_RSA_KEY_CHECK_FAILED@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_16:
	mov	w20, #0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_RSA_KEY_CHECK_FAILED,4,2 ; @MBEDTLS_ERR_RSA_KEY_CHECK_FAILED
.subsections_via_symbols
