	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_sign
_verify_sign:                           ## @verify_sign
	.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	%rdi, %r12
	movq	$0, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%r8, %rbx
	movq	%rdx, %r15
	movl	%esi, %r13d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_create
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_EVP_sha256
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_EVP_DigestVerifyInit
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	callq	_EVP_PKEY_id
	movq	_EVP_PKEY_RSA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movq	-48(%rbp), %rdi
	movq	_RSA_PKCS1_PSS_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVP_PKEY_CTX_set_rsa_padding
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.8:
	movq	-48(%rbp), %rdi
	movl	$-1, %esi
	callq	_EVP_PKEY_CTX_set_rsa_pss_saltlen
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.9:
	movq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_EVP_sha256
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_EVP_PKEY_CTX_set_rsa_mgf1_md
	cmpl	$1, %eax
	jne	LBB0_5
LBB0_10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_EVP_DigestVerifyUpdate
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_EVP_DigestVerifyFinal
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	je	LBB0_14
## %bb.12:
	movq	_PTLS_ALERT_DECRYPT_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_5:
	movq	_PTLS_ERROR_LIBRARY@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ebx
LBB0_14:
	movq	%r14, %rdi
	callq	_EVP_MD_CTX_destroy
	jmp	LBB0_15
LBB0_3:
	movq	_PTLS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_15:
	movq	%r12, %rdi
	callq	_EVP_PKEY_free
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ## @PTLS_ERROR_NO_MEMORY
	.comm	_PTLS_ERROR_LIBRARY,4,2         ## @PTLS_ERROR_LIBRARY
	.comm	_EVP_PKEY_RSA,8,3               ## @EVP_PKEY_RSA
	.comm	_RSA_PKCS1_PSS_PADDING,4,2      ## @RSA_PKCS1_PSS_PADDING
	.comm	_PTLS_ALERT_DECRYPT_ERROR,4,2   ## @PTLS_ALERT_DECRYPT_ERROR
	.no_dead_strip	_verify_sign
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_sign
_verify_sign:                           ; @verify_sign
	.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	x19, x0
	str	xzr, [sp, #8]
	cbz	x2, LBB0_9
; %bb.1:
	mov	x22, x4
	mov	x21, x3
	mov	x24, x2
	mov	x23, x1
	bl	_EVP_MD_CTX_create
	cbz	x0, LBB0_12
; %bb.2:
	mov	x20, x0
	bl	_EVP_sha256
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x20
	mov	x3, #0
	mov	x4, x19
	bl	_EVP_DigestVerifyInit
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_EVP_PKEY_id
Lloh0:
	adrp	x8, _EVP_PKEY_RSA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_PKEY_RSA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.4:
	ldr	x0, [sp, #8]
Lloh3:
	adrp	x8, _RSA_PKCS1_PSS_PADDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSA_PKCS1_PSS_PADDING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_EVP_PKEY_CTX_set_rsa_padding
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.5:
	ldr	x0, [sp, #8]
	mov	w1, #-1
	bl	_EVP_PKEY_CTX_set_rsa_pss_saltlen
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.6:
	ldr	x25, [sp, #8]
	bl	_EVP_sha256
	mov	x1, x0
	mov	x0, x25
	bl	_EVP_PKEY_CTX_set_rsa_mgf1_md
	cmp	w0, #1
	b.ne	LBB0_10
LBB0_7:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_EVP_DigestVerifyUpdate
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_EVP_DigestVerifyFinal
Lloh6:
	adrp	x8, _PTLS_ALERT_DECRYPT_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PTLS_ALERT_DECRYPT_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #1
	csel	w21, wzr, w8, eq
	b	LBB0_11
LBB0_9:
	mov	w21, #0
	b	LBB0_13
LBB0_10:
Lloh9:
	adrp	x8, _PTLS_ERROR_LIBRARY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PTLS_ERROR_LIBRARY@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
LBB0_11:
	mov	x0, x20
	bl	_EVP_MD_CTX_destroy
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x8, _PTLS_ERROR_NO_MEMORY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PTLS_ERROR_NO_MEMORY@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
LBB0_13:
	mov	x0, x19
	bl	_EVP_PKEY_free
	mov	x0, x21
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ; @PTLS_ERROR_NO_MEMORY
	.comm	_PTLS_ERROR_LIBRARY,4,2         ; @PTLS_ERROR_LIBRARY
	.comm	_EVP_PKEY_RSA,8,3               ; @EVP_PKEY_RSA
	.comm	_RSA_PKCS1_PSS_PADDING,4,2      ; @RSA_PKCS1_PSS_PADDING
	.comm	_PTLS_ALERT_DECRYPT_ERROR,4,2   ; @PTLS_ALERT_DECRYPT_ERROR
	.no_dead_strip	_verify_sign
.subsections_via_symbols
