	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_rsa_verify
_pkey_rsa_verify:                       ## @pkey_rsa_verify
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	movq	(%rax), %r14
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_RSA_PKCS1_PADDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	callq	_EVP_MD_type
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %r9
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RSA_verify                     ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_setup_tbuf
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edx
	movq	(%rbx), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_RSA_public_decrypt
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	jne	LBB0_10
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_6:
	callq	_EVP_MD_size
	cmpq	%r15, %rax
	jne	LBB0_12
## %bb.7:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_RSA_X931_PADDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.8:
	xorl	%r12d, %r12d
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_pkey_rsa_verifyrecover
	testq	%rax, %rax
	jle	LBB0_18
## %bb.9:
	movq	-72(%rbp), %rax
LBB0_10:
	xorl	%r12d, %r12d
	cmpq	%r15, %rax
	jne	LBB0_18
## %bb.11:
	movl	8(%rbx), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcmp
	xorl	%r12d, %r12d
	testq	%rax, %rax
	sete	%r12b
	jmp	LBB0_18
LBB0_12:
	movq	_RSA_F_PKEY_RSA_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_INVALID_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RSAerr
LBB0_13:
	movl	$-1, %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_RSA_PKCS1_PSS_PADDING@GOTPCREL(%rip), %rcx
	movl	$-1, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.15:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_setup_tbuf
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movl	8(%rbx), %edx
	movq	_RSA_NO_PADDING@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_RSA_public_decrypt
	testl	%eax, %eax
	jle	LBB0_5
## %bb.17:
	movq	24(%rbx), %rdx
	movl	16(%rbx), %ecx
	movl	8(%rbx), %r8d
	movl	12(%rbx), %r9d
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_RSA_verify_PKCS1_PSS_mgf1
	xorl	%r12d, %r12d
	testl	%eax, %eax
	setg	%r12b
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_RSA_PKCS1_PADDING,8,3          ## @RSA_PKCS1_PADDING
	.comm	_RSA_F_PKEY_RSA_VERIFY,4,2      ## @RSA_F_PKEY_RSA_VERIFY
	.comm	_RSA_R_INVALID_DIGEST_LENGTH,4,2 ## @RSA_R_INVALID_DIGEST_LENGTH
	.comm	_RSA_X931_PADDING,8,3           ## @RSA_X931_PADDING
	.comm	_RSA_PKCS1_PSS_PADDING,8,3      ## @RSA_PKCS1_PSS_PADDING
	.comm	_RSA_NO_PADDING,8,3             ## @RSA_NO_PADDING
	.no_dead_strip	_pkey_rsa_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_rsa_verify
_pkey_rsa_verify:                       ; @pkey_rsa_verify
	.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	x21, x4
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	ldp	x8, x20, [x0]
	ldr	x22, [x8]
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _RSA_PKCS1_PADDING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RSA_PKCS1_PADDING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	bl	_EVP_MD_type
	mov	x1, x19
	mov	x2, x21
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	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
	b	_RSA_verify
LBB0_3:
	mov	x0, x20
	mov	x1, x25
	bl	_setup_tbuf
	cbz	w0, LBB0_16
; %bb.4:
	ldr	w2, [x20, #8]
	ldr	x4, [x20]
	mov	x0, x23
	mov	x1, x24
	mov	x3, x22
	bl	_RSA_public_decrypt
	str	x0, [sp, #8]
	cbz	x0, LBB0_18
; %bb.5:
	cmp	x0, x21
	b.ne	LBB0_17
LBB0_6:
	ldr	w1, [x20, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_18
LBB0_7:
	bl	_EVP_MD_size
	cmp	x0, x21
	b.ne	LBB0_11
; %bb.8:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _RSA_X931_PADDING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RSA_X931_PADDING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
	add	x2, sp, #8
	mov	x0, x25
	mov	x1, #0
	mov	x3, x24
	mov	x4, x23
	bl	_pkey_rsa_verifyrecover
	cmp	x0, #1
	b.lt	LBB0_17
; %bb.10:
	ldr	x0, [sp, #8]
	cmp	x0, x21
	b.eq	LBB0_6
	b	LBB0_17
LBB0_11:
Lloh6:
	adrp	x8, _RSA_F_PKEY_RSA_VERIFY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RSA_F_PKEY_RSA_VERIFY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _RSA_R_INVALID_DIGEST_LENGTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RSA_R_INVALID_DIGEST_LENGTH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_RSAerr
	b	LBB0_16
LBB0_12:
Lloh12:
	adrp	x9, _RSA_PKCS1_PSS_PADDING@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RSA_PKCS1_PSS_PADDING@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
	mov	x0, x20
	mov	x1, x25
	bl	_setup_tbuf
	cbz	w0, LBB0_16
; %bb.14:
	ldr	w2, [x20, #8]
Lloh15:
	adrp	x8, _RSA_NO_PADDING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RSA_NO_PADDING@GOTPAGEOFF]
Lloh17:
	ldr	x4, [x8]
	mov	x0, x23
	mov	x1, x24
	mov	x3, x22
	bl	_RSA_public_decrypt
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.15:
	ldr	x2, [x20, #24]
	ldp	w5, w3, [x20, #12]
	ldr	w4, [x20, #8]
	mov	x0, x22
	mov	x1, x19
	bl	_RSA_verify_PKCS1_PSS_mgf1
	cmp	w0, #0
	cset	w0, gt
	b	LBB0_18
LBB0_16:
	mov	w0, #-1
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RSA_PKCS1_PADDING,8,3          ; @RSA_PKCS1_PADDING
	.comm	_RSA_F_PKEY_RSA_VERIFY,4,2      ; @RSA_F_PKEY_RSA_VERIFY
	.comm	_RSA_R_INVALID_DIGEST_LENGTH,4,2 ; @RSA_R_INVALID_DIGEST_LENGTH
	.comm	_RSA_X931_PADDING,8,3           ; @RSA_X931_PADDING
	.comm	_RSA_PKCS1_PSS_PADDING,8,3      ; @RSA_PKCS1_PSS_PADDING
	.comm	_RSA_NO_PADDING,8,3             ; @RSA_NO_PADDING
	.no_dead_strip	_pkey_rsa_verify
.subsections_via_symbols
