	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm2_verify                     ## -- Begin function sm2_verify
	.p2align	4, 0x90
_sm2_verify:                            ## @sm2_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	%rdx, -64(%rbp)
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	callq	_ECDSA_SIG_new
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movl	%r13d, %edx
	callq	_d2i_ECDSA_SIG
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_i2d_ECDSA_SIG
	cmpl	%r13d, %eax
	jne	LBB0_4
## %bb.6:
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movq	_SM2_F_SM2_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SM2_R_INVALID_ENCODING@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_SM2_F_SM2_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_SM2err
	movl	$-1, %r14d
	xorl	%ebx, %ebx
LBB0_10:
	movq	-56(%rbp), %rdi
	callq	_OPENSSL_free
	movq	%rbx, %rdi
	callq	_BN_free
	movq	-48(%rbp), %rdi
	callq	_ECDSA_SIG_free
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_BN_bin2bn
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_sm2_sig_verify
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_8:
	movq	_SM2_F_SM2_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_BN_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_SM2_F_SM2_VERIFY,4,2           ## @SM2_F_SM2_VERIFY
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_SM2_R_INVALID_ENCODING,4,2     ## @SM2_R_INVALID_ENCODING
	.comm	_ERR_R_BN_LIB,4,2               ## @ERR_R_BN_LIB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm2_verify                     ; -- Begin function sm2_verify
	.p2align	2
_sm2_verify:                            ; @sm2_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	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	stp	xzr, x2, [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, x22
	bl	_d2i_ECDSA_SIG
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [sp, #24]
	add	x1, sp, #8
	bl	_i2d_ECDSA_SIG
	cmp	w0, w22
	b.ne	LBB0_4
; %bb.3:
	ldr	x1, [sp, #8]
	mov	x0, x23
	mov	x2, x22
	bl	_memcmp
	cbz	x0, LBB0_9
LBB0_4:
Lloh0:
	adrp	x8, _SM2_F_SM2_VERIFY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SM2_F_SM2_VERIFY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SM2_R_INVALID_ENCODING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SM2_R_INVALID_ENCODING@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _SM2_F_SM2_VERIFY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SM2_F_SM2_VERIFY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	bl	_SM2err
	mov	x20, #0
LBB0_7:
	mov	w19, #-1
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_free
	mov	x0, x20
	bl	_BN_free
	ldr	x0, [sp, #24]
	bl	_ECDSA_SIG_free
	mov	x0, x19
	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
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	bl	_BN_bin2bn
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x1, [sp, #24]
	mov	x0, x19
	mov	x2, x20
	bl	_sm2_sig_verify
	mov	x19, x0
	b	LBB0_8
LBB0_11:
Lloh10:
	adrp	x8, _SM2_F_SM2_VERIFY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SM2_F_SM2_VERIFY@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _ERR_R_BN_LIB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_R_BN_LIB@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_SM2err
	b	LBB0_7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SM2_F_SM2_VERIFY,4,2           ; @SM2_F_SM2_VERIFY
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_SM2_R_INVALID_ENCODING,4,2     ; @SM2_R_INVALID_ENCODING
	.comm	_ERR_R_BN_LIB,4,2               ; @ERR_R_BN_LIB
.subsections_via_symbols
