	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_rsa_verifyrecover
_pkey_rsa_verifyrecover:                ## @pkey_rsa_verifyrecover
	.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	%r8, %r13
	movq	%rcx, %r14
	movq	%rsi, %r9
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.1:
	movq	(%rbx), %rax
	movq	_RSA_X931_PADDING@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.2:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_setup_tbuf
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	8(%rbx), %rdx
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movq	(%r12), %r8
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_RSA_public_decrypt
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	LBB0_19
## %bb.5:
	movl	%eax, %r14d
	decl	%r14d
	movq	8(%rbx), %rax
	movq	16(%rbx), %rdi
	movzbl	(%rax,%r14), %r15d
	callq	_EVP_MD_type
	movl	%eax, %edi
	callq	_RSA_X931_hash_id
	cmpq	%r15, %rax
	jne	LBB0_6
## %bb.8:
	movq	16(%rbx), %rdi
	callq	_EVP_MD_size
	cmpl	%eax, %r14d
	jne	LBB0_9
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.11:
	movq	8(%rbx), %rsi
	movl	%r14d, %edx
	callq	_memcpy
	jmp	LBB0_18
LBB0_15:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movq	(%rbx), %r8
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r9, %rdx
	callq	_RSA_public_decrypt
	movl	%eax, %r12d
	testl	%r12d, %r12d
	jns	LBB0_17
	jmp	LBB0_19
LBB0_12:
	movq	_RSA_PKCS1_PADDING@GOTPCREL(%rip), %rcx
	movl	$-1, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.13:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	callq	_EVP_MD_type
	movq	(%r15), %rcx
	movl	(%rcx), %ebx
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %r8
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r9
	pushq	%rbx
	pushq	%r13
	callq	_int_rsa_verify
	addq	$16, %rsp
	testl	%eax, %eax
	jle	LBB0_19
## %bb.14:
	movl	-64(%rbp), %r12d
	testl	%r12d, %r12d
	js	LBB0_19
LBB0_17:
	movl	%r12d, %r14d
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movl	$1, %r12d
	jmp	LBB0_19
LBB0_3:
	movl	$-1, %r12d
	jmp	LBB0_19
LBB0_6:
	movq	_RSA_F_PKEY_RSA_VERIFYRECOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_ALGORITHM_MISMATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movq	_RSA_F_PKEY_RSA_VERIFYRECOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_INVALID_DIGEST_LENGTH@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	callq	_RSAerr
LBB0_19:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RSA_X931_PADDING,8,3           ## @RSA_X931_PADDING
	.comm	_RSA_F_PKEY_RSA_VERIFYRECOVER,4,2 ## @RSA_F_PKEY_RSA_VERIFYRECOVER
	.comm	_RSA_R_ALGORITHM_MISMATCH,4,2   ## @RSA_R_ALGORITHM_MISMATCH
	.comm	_RSA_R_INVALID_DIGEST_LENGTH,4,2 ## @RSA_R_INVALID_DIGEST_LENGTH
	.comm	_RSA_PKCS1_PADDING,8,3          ## @RSA_PKCS1_PADDING
	.no_dead_strip	_pkey_rsa_verifyrecover
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_rsa_verifyrecover
_pkey_rsa_verifyrecover:                ; @pkey_rsa_verifyrecover
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x24, x0
	ldr	x21, [x0, #8]
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x25, _RSA_X931_PADDING@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RSA_X931_PADDING@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	mov	x0, x21
	mov	x1, x24
	bl	_setup_tbuf
	cbz	w0, LBB0_14
; %bb.3:
	ldr	x2, [x21, #8]
	ldr	x8, [x24]
	ldr	w3, [x8]
	ldr	x4, [x25]
	mov	x0, x23
	mov	x1, x22
	bl	_RSA_public_decrypt
	subs	w22, w0, #1
	b.lt	LBB0_18
; %bb.4:
	ldp	x8, x0, [x21, #8]
	ldrb	w23, [x8, x22]
	bl	_EVP_MD_type
	bl	_RSA_X931_hash_id
	cmp	x0, x23
	b.ne	LBB0_15
; %bb.5:
	ldr	x0, [x21, #16]
	bl	_EVP_MD_size
	cmp	w22, w0
	b.ne	LBB0_16
; %bb.6:
	cbz	x20, LBB0_13
; %bb.7:
	ldr	x1, [x21, #8]
	mov	x0, x20
	mov	x2, x22
	bl	_memcpy
	b	LBB0_13
LBB0_8:
	ldr	x8, [x24]
	ldr	w3, [x8]
	ldr	x4, [x21]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_RSA_public_decrypt
	tbz	w0, #31, LBB0_12
	b	LBB0_19
LBB0_9:
Lloh2:
	adrp	x9, _RSA_PKCS1_PADDING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RSA_PKCS1_PADDING@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.10:
	bl	_EVP_MD_type
	ldr	x8, [x24]
	ldr	w7, [x8]
	add	x4, sp, #8
	mov	x1, #0
	mov	w2, #0
	mov	x3, x20
	mov	x5, x22
	mov	x6, x23
	bl	_int_rsa_verify
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.11:
	ldr	w0, [sp, #8]
	tbnz	w0, #31, LBB0_19
LBB0_12:
	mov	w22, w0
LBB0_13:
	str	x22, [x19]
	mov	w0, #1
	b	LBB0_19
LBB0_14:
	mov	w0, #-1
	b	LBB0_19
LBB0_15:
Lloh5:
	adrp	x8, _RSA_F_PKEY_RSA_VERIFYRECOVER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RSA_F_PKEY_RSA_VERIFYRECOVER@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _RSA_R_ALGORITHM_MISMATCH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RSA_R_ALGORITHM_MISMATCH@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh10:
	adrp	x8, _RSA_F_PKEY_RSA_VERIFYRECOVER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RSA_F_PKEY_RSA_VERIFYRECOVER@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _RSA_R_INVALID_DIGEST_LENGTH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RSA_R_INVALID_DIGEST_LENGTH@GOTPAGEOFF]
LBB0_17:
	ldr	w1, [x8]
	bl	_RSAerr
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RSA_X931_PADDING,8,3           ; @RSA_X931_PADDING
	.comm	_RSA_F_PKEY_RSA_VERIFYRECOVER,4,2 ; @RSA_F_PKEY_RSA_VERIFYRECOVER
	.comm	_RSA_R_ALGORITHM_MISMATCH,4,2   ; @RSA_R_ALGORITHM_MISMATCH
	.comm	_RSA_R_INVALID_DIGEST_LENGTH,4,2 ; @RSA_R_INVALID_DIGEST_LENGTH
	.comm	_RSA_PKCS1_PADDING,8,3          ; @RSA_PKCS1_PADDING
	.no_dead_strip	_pkey_rsa_verifyrecover
.subsections_via_symbols
