	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm2_plaintext_size             ## -- Begin function sm2_plaintext_size
	.p2align	4, 0x90
_sm2_plaintext_size:                    ## @sm2_plaintext_size
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_EC_KEY_get0_group
	movl	%eax, %edi
	callq	_ec_field_size
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_EVP_MD_size
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	testq	%r12, %r12
	je	LBB0_4
## %bb.5:
	movl	%eax, %eax
	leaq	(%rax,%r12,2), %rax
	addq	$10, %rax
	cmpq	%r15, %rax
	jae	LBB0_6
## %bb.7:
	subq	%rax, %r15
	movq	%r15, (%r14)
	movl	$1, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_SM2_F_SM2_PLAINTEXT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SM2_R_INVALID_DIGEST@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_SM2_F_SM2_PLAINTEXT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SM2_R_INVALID_FIELD@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_SM2_F_SM2_PLAINTEXT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SM2_R_INVALID_ENCODING@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_SM2err
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SM2_F_SM2_PLAINTEXT_SIZE,4,2   ## @SM2_F_SM2_PLAINTEXT_SIZE
	.comm	_SM2_R_INVALID_DIGEST,4,2       ## @SM2_R_INVALID_DIGEST
	.comm	_SM2_R_INVALID_FIELD,4,2        ## @SM2_R_INVALID_FIELD
	.comm	_SM2_R_INVALID_ENCODING,4,2     ## @SM2_R_INVALID_ENCODING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm2_plaintext_size             ; -- Begin function sm2_plaintext_size
	.p2align	2
_sm2_plaintext_size:                    ; @sm2_plaintext_size
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	bl	_EC_KEY_get0_group
	bl	_ec_field_size
	mov	x21, x0
	mov	x0, x22
	bl	_EVP_MD_size
	tbnz	w0, #31, LBB0_4
; %bb.1:
	cbz	x21, LBB0_5
; %bb.2:
	lsl	x8, x21, #1
	add	x8, x8, w0, uxtw
	add	x8, x8, #10
	cmp	x8, x20
	b.hs	LBB0_6
; %bb.3:
	sub	x8, x20, x8
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _SM2_F_SM2_PLAINTEXT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SM2_F_SM2_PLAINTEXT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SM2_R_INVALID_DIGEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SM2_R_INVALID_DIGEST@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _SM2_F_SM2_PLAINTEXT_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SM2_F_SM2_PLAINTEXT_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _SM2_R_INVALID_FIELD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SM2_R_INVALID_FIELD@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _SM2_F_SM2_PLAINTEXT_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SM2_F_SM2_PLAINTEXT_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _SM2_R_INVALID_ENCODING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SM2_R_INVALID_ENCODING@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	bl	_SM2err
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SM2_F_SM2_PLAINTEXT_SIZE,4,2   ; @SM2_F_SM2_PLAINTEXT_SIZE
	.comm	_SM2_R_INVALID_DIGEST,4,2       ; @SM2_R_INVALID_DIGEST
	.comm	_SM2_R_INVALID_FIELD,4,2        ; @SM2_R_INVALID_FIELD
	.comm	_SM2_R_INVALID_ENCODING,4,2     ; @SM2_R_INVALID_ENCODING
.subsections_via_symbols
