	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsa_alt_check_pair
_rsa_alt_check_pair:                    ## @rsa_alt_check_pair
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MBEDTLS_MPI_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	$0, -88(%rbp)
	movq	%r12, %rdi
	callq	_rsa_alt_get_bitlen
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_rsa_get_bitlen
	cmpq	%rax, %rbx
	jne	LBB0_3
## %bb.1:
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$42, %esi
	movl	$32, %edx
	callq	_memset
	movq	_MBEDTLS_MD_NONE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	subq	$16, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	leaq	-88(%rbp), %r9
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	$32, %ecx
	movq	%r14, %r8
	callq	_rsa_alt_sign_wrap
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%r13), %esi
	movq	-88(%rbp), %r9
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movl	$32, %ecx
	movq	%r14, %r8
	callq	_rsa_verify_wrap
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_4
LBB0_3:
	movq	_MBEDTLS_ERR_RSA_KEY_CHECK_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_MPI_MAX_SIZE,4,2       ## @MBEDTLS_MPI_MAX_SIZE
	.comm	_MBEDTLS_ERR_RSA_KEY_CHECK_FAILED,4,2 ## @MBEDTLS_ERR_RSA_KEY_CHECK_FAILED
	.comm	_MBEDTLS_MD_NONE,4,2            ## @MBEDTLS_MD_NONE
	.no_dead_strip	_rsa_alt_check_pair
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsa_alt_check_pair
_rsa_alt_check_pair:                    ; @rsa_alt_check_pair
	.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
	sub	sp, sp, #48
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MBEDTLS_MPI_MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_MPI_MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	stur	xzr, [x29, #-80]
	mov	x0, x1
	bl	_rsa_alt_get_bitlen
	mov	x22, x0
	mov	x0, x19
	bl	_rsa_get_bitlen
	cmp	x22, x0
	b.ne	LBB0_3
; %bb.1:
	sub	x0, x29, #72
	mov	w1, #42
	mov	w2, #32
	bl	_memset
Lloh8:
	adrp	x22, _MBEDTLS_MD_NONE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MBEDTLS_MD_NONE@GOTPAGEOFF]
	ldr	w1, [x22]
	sub	x2, x29, #72
	sub	x5, x29, #80
	mov	x0, x21
	mov	w3, #32
	mov	x4, x20
	mov	x6, #0
	mov	x7, #0
	bl	_rsa_alt_sign_wrap
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w1, [x22]
	ldur	x5, [x29, #-80]
	sub	x2, x29, #72
	mov	x0, x19
	mov	w3, #32
	mov	x4, x20
	bl	_rsa_verify_wrap
Lloh10:
	adrp	x8, _MBEDTLS_ERR_RSA_KEY_CHECK_FAILED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MBEDTLS_ERR_RSA_KEY_CHECK_FAILED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, wzr, w8, eq
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _MBEDTLS_ERR_RSA_KEY_CHECK_FAILED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MBEDTLS_ERR_RSA_KEY_CHECK_FAILED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #32
	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
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_MPI_MAX_SIZE,4,2       ; @MBEDTLS_MPI_MAX_SIZE
	.comm	_MBEDTLS_ERR_RSA_KEY_CHECK_FAILED,4,2 ; @MBEDTLS_ERR_RSA_KEY_CHECK_FAILED
	.comm	_MBEDTLS_MD_NONE,4,2            ; @MBEDTLS_MD_NONE
	.no_dead_strip	_rsa_alt_check_pair
.subsections_via_symbols
