	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ossl_ecdsa_verify              ## -- Begin function ossl_ecdsa_verify
	.p2align	4, 0x90
_ossl_ecdsa_verify:                     ## @ossl_ecdsa_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	%r9, %r14
	movl	%r8d, %r12d
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rcx, -80(%rbp)
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	callq	_ECDSA_SIG_new
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	movl	%r12d, %edx
	callq	_d2i_ECDSA_SIG
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_i2d_ECDSA_SIG
	cmpl	%r12d, %eax
	jne	LBB0_5
## %bb.6:
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_ECDSA_do_verify
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_9
LBB0_3:
	movl	$-1, %r12d
	jmp	LBB0_8
LBB0_5:
	movl	%eax, %r12d
LBB0_8:
	movq	-56(%rbp), %rdi
	movl	%r12d, %esi
	callq	_OPENSSL_clear_free
	movq	-48(%rbp), %rdi
	callq	_ECDSA_SIG_free
LBB0_9:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ossl_ecdsa_verify              ; -- Begin function ossl_ecdsa_verify
	.p2align	2
_ossl_ecdsa_verify:                     ; @ossl_ecdsa_verify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x5
	mov	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	stp	xzr, x3, [sp, #8]
	bl	_ECDSA_SIG_new
	str	x0, [sp, #24]
	cbz	x0, LBB0_5
; %bb.1:
	add	x0, sp, #24
	add	x1, sp, #16
	mov	x2, x19
	bl	_d2i_ECDSA_SIG
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [sp, #24]
	add	x1, sp, #8
	bl	_i2d_ECDSA_SIG
	cmp	w0, w19
	b.ne	LBB0_7
; %bb.3:
	ldr	x1, [sp, #8]
	mov	x0, x23
	mov	x2, x19
	bl	_memcmp
	cbz	x0, LBB0_8
; %bb.4:
	mov	w20, #-1
	b	LBB0_9
LBB0_5:
	mov	w20, #-1
	b	LBB0_10
LBB0_6:
	mov	w19, #-1
	mov	w20, #-1
	b	LBB0_9
LBB0_7:
	mov	w20, #-1
	mov	x19, x0
	b	LBB0_9
LBB0_8:
	ldr	x2, [sp, #24]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x20
	bl	_ECDSA_do_verify
	mov	x20, x0
LBB0_9:
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_OPENSSL_clear_free
	ldr	x0, [sp, #24]
	bl	_ECDSA_SIG_free
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
