	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evp_md_verify_signature
_evp_md_verify_signature:               ## @evp_md_verify_signature
	.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	%r9, %r15
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	callq	*8(%rbx)
	movl	%eax, %edi
	callq	_EVP_MD_size
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rax, (%r15)
	jne	LBB0_2
## %bb.1:
	movq	%rax, %r12
	cmpq	%r13, %rax
	ja	LBB0_2
## %bb.3:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_create
	movq	%rax, %r14
	xorl	%eax, %eax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	callq	*8(%r13)
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_EVP_DigestInit_ex
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_EVP_DigestUpdate
	movq	%r14, %rdi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal_ex
	movq	%r14, %rdi
	callq	_EVP_MD_CTX_destroy
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_ct_memcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_HX509_CRYPTO_BAD_SIGNATURE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	(%r13), %r8d
	leaq	L_.str.1(%rip), %rcx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_hx509_set_error_string
	jmp	LBB0_5
LBB0_2:
	movq	_HX509_CRYPTO_SIG_INVALID_FORMAT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_hx509_set_error_string
LBB0_5:
	movl	(%rbx), %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
	.comm	_HX509_CRYPTO_SIG_INVALID_FORMAT,4,2 ## @HX509_CRYPTO_SIG_INVALID_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SHA256 sigature have wrong length"

	.comm	_HX509_CRYPTO_BAD_SIGNATURE,4,2 ## @HX509_CRYPTO_BAD_SIGNATURE
L_.str.1:                               ## @.str.1
	.asciz	"Bad %s sigature"

	.no_dead_strip	_evp_md_verify_signature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evp_md_verify_signature
_evp_md_verify_signature:               ; @evp_md_verify_signature
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x21, x5
	mov	x23, x4
	mov	x20, 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, #-72]
Lloh3:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x9, x25
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	ldr	x8, [x1, #8]
	blr	x8
	bl	_EVP_MD_size
	ldr	x8, [x21]
	cmp	x8, x0
	ccmp	x0, x25, #2, eq
	b.ls	LBB0_2
; %bb.1:
Lloh8:
	adrp	x20, _HX509_CRYPTO_SIG_INVALID_FORMAT@GOTPAGE
Lloh9:
	ldr	x20, [x20, _HX509_CRYPTO_SIG_INVALID_FORMAT@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w0, [x20]
	b	LBB0_4
LBB0_2:
	mov	x24, x0
	bl	_EVP_MD_CTX_create
	mov	x25, x0
	ldr	x8, [x20, #8]
	blr	x8
	mov	x1, x0
	mov	x0, x25
	mov	x2, #0
	bl	_EVP_DigestInit_ex
	ldr	w1, [x23, #8]
	ldr	x2, [x23]
	mov	x0, x25
	bl	_EVP_DigestUpdate
	mov	x0, x25
	mov	x1, x22
	mov	x2, #0
	bl	_EVP_DigestFinal_ex
	mov	x0, x25
	bl	_EVP_MD_CTX_destroy
	ldr	w1, [x21, #8]
	mov	x0, x22
	mov	x2, x24
	bl	_ct_memcmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x21, _HX509_CRYPTO_BAD_SIGNATURE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _HX509_CRYPTO_BAD_SIGNATURE@GOTPAGEOFF]
	ldr	w2, [x21]
	ldr	w8, [x20]
	str	x8, [sp, #-16]!
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_hx509_set_error_string
	add	sp, sp, #16
	ldr	w0, [x21]
LBB0_4:
	ldur	x8, [x29, #-72]
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, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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 AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
	.comm	_HX509_CRYPTO_SIG_INVALID_FORMAT,4,2 ; @HX509_CRYPTO_SIG_INVALID_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHA256 sigature have wrong length"

	.comm	_HX509_CRYPTO_BAD_SIGNATURE,4,2 ; @HX509_CRYPTO_BAD_SIGNATURE
l_.str.1:                               ; @.str.1
	.asciz	"Bad %s sigature"

	.no_dead_strip	_evp_md_verify_signature
.subsections_via_symbols
