	.file	"extr_sm2_sign.c_sm2_verify.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sm2_verify
	.type	sm2_verify, @function
sm2_verify:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 8[rsp], rdx
	mov	QWORD PTR 16[rsp], 0
	call	ECDSA_SIG_new@PLT
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	je	.L11
	lea	rsi, 8[rsp]
	mov	rdi, rsp
	mov	edx, r12d
	call	d2i_ECDSA_SIG@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L12
	mov	rdi, QWORD PTR [rsp]
	lea	rsi, 16[rsp]
	call	i2d_ECDSA_SIG@PLT
	cmp	r12d, eax
	jne	.L6
	mov	rsi, QWORD PTR 16[rsp]
	mov	edx, r12d
	mov	rdi, r13
	call	memcmp@PLT
	test	rax, rax
	jne	.L6
	xor	edx, edx
	mov	esi, r15d
	mov	rdi, r14
	call	BN_bin2bn@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L13
	mov	rsi, QWORD PTR [rsp]
	mov	rdx, rax
	mov	rdi, rbx
	call	sm2_sig_verify@PLT
	mov	r12d, eax
.L3:
	mov	rdi, QWORD PTR 16[rsp]
	call	OPENSSL_free@PLT
	mov	rdi, rbp
	call	BN_free@PLT
	mov	rdi, QWORD PTR [rsp]
	call	ECDSA_SIG_free@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR SM2_R_INVALID_ENCODING[rip]
	mov	edi, DWORD PTR SM2_F_SM2_VERIFY[rip]
	mov	r12d, -1
	xor	ebp, ebp
	call	SM2err@PLT
	jmp	.L3
.L12:
	mov	esi, DWORD PTR SM2_R_INVALID_ENCODING[rip]
	mov	edi, DWORD PTR SM2_F_SM2_VERIFY[rip]
	mov	r12d, -1
	call	SM2err@PLT
	jmp	.L3
.L11:
	mov	esi, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edi, DWORD PTR SM2_F_SM2_VERIFY[rip]
	mov	rbp, rax
	mov	r12d, -1
	call	SM2err@PLT
	jmp	.L3
.L13:
	mov	esi, DWORD PTR ERR_R_BN_LIB[rip]
	mov	edi, DWORD PTR SM2_F_SM2_VERIFY[rip]
	mov	r12d, -1
	call	SM2err@PLT
	jmp	.L3
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sm2_verify, .-sm2_verify
	.comm	SM2_R_INVALID_ENCODING,4,4
	.comm	SM2_F_SM2_VERIFY,4,4
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	ERR_R_BN_LIB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sm2_sign.c_sm2_verify.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sm2_verify
	.syntax unified
	.arm
	.fpu softvfp
	.type	sm2_verify, %function
sm2_verify:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r9, r3
	sub	sp, sp, #20
	ldr	r3, .L14
	str	r2, [sp, #4]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r8, r2
	mov	r5, r0
	mov	r6, r1
	ldr	r7, [sp, #48]
	str	ip, [sp]
	str	ip, [sp, #8]
	bl	ECDSA_SIG_new
	cmp	r0, #0
	moveq	r4, r0
	ldreq	r2, .L14+4
	str	r0, [sp]
	beq	.L10
	mov	r2, r9
	mov	r0, sp
	add	r1, sp, #4
	bl	d2i_ECDSA_SIG
	subs	r4, r0, #0
	beq	.L12
	ldr	r0, [sp]
	add	r1, sp, #8
	bl	i2d_ECDSA_SIG
	cmp	r9, r0
	bne	.L5
	mov	r2, r9
	mov	r0, r8
	ldr	r1, [sp, #8]
	bl	memcmp
	subs	r2, r0, #0
	bne	.L5
	mov	r1, r6
	mov	r0, r5
	bl	BN_bin2bn
	subs	r4, r0, #0
	ldreq	r2, .L14+8
	beq	.L10
	mov	r0, r7
	mov	r2, r4
	ldr	r1, [sp]
	bl	sm2_sig_verify
	mov	r5, r0
.L3:
	ldr	r0, [sp, #8]
	bl	OPENSSL_free
	mov	r0, r4
	bl	BN_free
	ldr	r0, [sp]
	bl	ECDSA_SIG_free
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	ldr	r2, .L14+12
	ldr	r3, .L14+16
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	SM2err
	mvn	r5, #0
	mov	r4, #0
	b	.L3
.L12:
	ldr	r2, .L14+12
.L10:
	ldr	r3, .L14+16
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	SM2err
	mvn	r5, #0
	b	.L3
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	ERR_R_MALLOC_FAILURE
	.word	ERR_R_BN_LIB
	.word	SM2_R_INVALID_ENCODING
	.word	SM2_F_SM2_VERIFY
	.size	sm2_verify, .-sm2_verify
	.comm	SM2_R_INVALID_ENCODING,4,4
	.comm	SM2_F_SM2_VERIFY,4,4
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	ERR_R_BN_LIB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
