	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RSA_padding_check_X931         ## -- Begin function RSA_padding_check_X931
	.p2align	4, 0x90
_RSA_padding_check_X931:                ## @RSA_padding_check_X931
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $r8d killed $r8d def $r8
	cmpl	%ecx, %r8d
	jne	LBB0_2
## %bb.1:
	movb	(%rdx), %al
	movl	%eax, %ecx
	andb	$-2, %cl
	cmpb	$106, %cl
	jne	LBB0_2
## %bb.4:
	cmpb	$107, %al
	jne	LBB0_14
## %bb.5:
	cmpl	$4, %r8d
	jl	LBB0_9
## %bb.6:
	leal	-3(%r8), %ebx
	addl	$-4, %r8d
	leaq	(%r8,%rdx), %rsi
	addq	$2, %rsi
	addq	$2, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rdx), %ecx
	cmpb	$-69, %cl
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	incl	%eax
	incq	%rdx
	cmpl	%eax, %ebx
	jne	LBB0_7
## %bb.11:
	movl	%ebx, %eax
	movq	%rsi, %rdx
	jmp	LBB0_12
LBB0_2:
	movq	_RSA_F_RSA_PADDING_CHECK_X931@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_INVALID_HEADER@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	callq	_RSAerr
	movl	$-1, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_14:
	incq	%rdx
	addl	$-2, %r8d
	movl	%r8d, %ebx
LBB0_15:
	movslq	%ebx, %rax
	cmpb	$-52, (%rdx,%rax)
	jne	LBB0_16
## %bb.17:
	movq	%rdx, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	jmp	LBB0_18
LBB0_16:
	movq	_RSA_F_RSA_PADDING_CHECK_X931@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_INVALID_TRAILER@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	cmpb	$-70, %cl
	jne	LBB0_9
LBB0_12:
	testl	%eax, %eax
	je	LBB0_9
## %bb.13:
	subl	%eax, %ebx
	jmp	LBB0_15
LBB0_9:
	movq	_RSA_F_RSA_PADDING_CHECK_X931@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_INVALID_PADDING@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_RSA_F_RSA_PADDING_CHECK_X931,4,2 ## @RSA_F_RSA_PADDING_CHECK_X931
	.comm	_RSA_R_INVALID_HEADER,4,2       ## @RSA_R_INVALID_HEADER
	.comm	_RSA_R_INVALID_PADDING,4,2      ## @RSA_R_INVALID_PADDING
	.comm	_RSA_R_INVALID_TRAILER,4,2      ## @RSA_R_INVALID_TRAILER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RSA_padding_check_X931         ; -- Begin function RSA_padding_check_X931
	.p2align	2
_RSA_padding_check_X931:                ; @RSA_padding_check_X931
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w4, w3
	b.ne	LBB0_8
; %bb.1:
	ldrb	w8, [x2]
	and	w9, w8, #0xfe
	cmp	w9, #106
	b.ne	LBB0_8
; %bb.2:
	cmp	w8, #107
	b.ne	LBB0_11
; %bb.3:
	subs	w10, w4, #4
	b.lt	LBB0_19
; %bb.4:
	mov	x9, #0
	sub	w8, w4, #3
	add	x10, x10, x2
	add	x1, x10, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x2, x9
	ldrb	w10, [x10, #1]
	cmp	w10, #187
	b.ne	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.7:
	mov	x9, x8
	b	LBB0_17
LBB0_8:
Lloh0:
	adrp	x8, _RSA_F_RSA_PADDING_CHECK_X931@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSA_F_RSA_PADDING_CHECK_X931@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _RSA_R_INVALID_HEADER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSA_R_INVALID_HEADER@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	bl	_RSAerr
	mov	w19, #-1
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	add	x1, x2, #1
	sub	w19, w4, #2
LBB0_12:
	ldrb	w8, [x1, w19, sxtw]
	cmp	w8, #204
	b.ne	LBB0_14
; %bb.13:
	mov	x2, x19
	bl	_memcpy
	b	LBB0_10
LBB0_14:
Lloh5:
	adrp	x8, _RSA_F_RSA_PADDING_CHECK_X931@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RSA_F_RSA_PADDING_CHECK_X931@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _RSA_R_INVALID_TRAILER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RSA_R_INVALID_TRAILER@GOTPAGEOFF]
	b	LBB0_9
LBB0_15:
	cmp	w10, #186
	b.ne	LBB0_19
; %bb.16:
	add	x10, x2, x9
	add	x1, x10, #2
LBB0_17:
	cbz	w9, LBB0_19
; %bb.18:
	sub	w19, w8, w9
	b	LBB0_12
LBB0_19:
Lloh10:
	adrp	x8, _RSA_F_RSA_PADDING_CHECK_X931@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RSA_F_RSA_PADDING_CHECK_X931@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _RSA_R_INVALID_PADDING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RSA_R_INVALID_PADDING@GOTPAGEOFF]
	b	LBB0_9
	.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	_RSA_F_RSA_PADDING_CHECK_X931,4,2 ; @RSA_F_RSA_PADDING_CHECK_X931
	.comm	_RSA_R_INVALID_HEADER,4,2       ; @RSA_R_INVALID_HEADER
	.comm	_RSA_R_INVALID_PADDING,4,2      ; @RSA_R_INVALID_PADDING
	.comm	_RSA_R_INVALID_TRAILER,4,2      ; @RSA_R_INVALID_TRAILER
.subsections_via_symbols
