	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RSA_padding_check_PKCS1_type_1 ## -- Begin function RSA_padding_check_PKCS1_type_1
	.p2align	4, 0x90
_RSA_padding_check_PKCS1_type_1:        ## @RSA_padding_check_PKCS1_type_1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movl	$-1, %r14d
	cmpl	$11, %r8d
	jl	LBB0_23
## %bb.1:
	movl	%ecx, %ebx
	cmpl	%ecx, %r8d
	jne	LBB0_6
## %bb.2:
	cmpb	$0, (%rdx)
	je	LBB0_5
## %bb.3:
	movq	_RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_INVALID_PADDING@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	incq	%rdx
	leal	-1(%r8), %ebx
LBB0_6:
	leal	1(%rbx), %eax
	cmpl	%r8d, %eax
	jne	LBB0_8
## %bb.7:
	cmpb	$1, (%rdx)
	jne	LBB0_8
## %bb.9:
	leal	-1(%rbx), %r8d
	cmpl	$2, %ebx
	jl	LBB0_15
## %bb.10:
	addq	$2, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rdx), %ecx
	cmpb	$-1, %cl
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	%eax
	incq	%rdx
	cmpl	%eax, %r8d
	jne	LBB0_11
	jmp	LBB0_16
LBB0_8:
	movq	_RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_BLOCK_TYPE_IS_NOT_01@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	callq	_RSAerr
LBB0_23:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	testl	%r8d, %r8d
	je	LBB0_16
LBB0_19:
	movq	_RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_BAD_PAD_BYTE_COUNT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_12:
	testb	%cl, %cl
	jne	LBB0_13
## %bb.17:
	cmpl	%eax, %r8d
	jne	LBB0_18
LBB0_16:
	movq	_RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_NULL_BEFORE_BLOCK_MISSING@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	movq	_RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_BAD_FIXED_HEADER_DECRYPT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_18:
	cmpl	$7, %eax
	jbe	LBB0_19
## %bb.20:
	subl	%eax, %ebx
	addl	$-2, %ebx
	cmpl	%esi, %ebx
	jle	LBB0_22
## %bb.21:
	movq	_RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_DATA_TOO_LARGE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_22:
	movq	%rdx, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movl	%ebx, %r14d
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1,4,2 ## @RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1
	.comm	_RSA_R_INVALID_PADDING,4,2      ## @RSA_R_INVALID_PADDING
	.comm	_RSA_R_BLOCK_TYPE_IS_NOT_01,4,2 ## @RSA_R_BLOCK_TYPE_IS_NOT_01
	.comm	_RSA_R_BAD_FIXED_HEADER_DECRYPT,4,2 ## @RSA_R_BAD_FIXED_HEADER_DECRYPT
	.comm	_RSA_R_NULL_BEFORE_BLOCK_MISSING,4,2 ## @RSA_R_NULL_BEFORE_BLOCK_MISSING
	.comm	_RSA_R_BAD_PAD_BYTE_COUNT,4,2   ## @RSA_R_BAD_PAD_BYTE_COUNT
	.comm	_RSA_R_DATA_TOO_LARGE,4,2       ## @RSA_R_DATA_TOO_LARGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RSA_padding_check_PKCS1_type_1 ; -- Begin function RSA_padding_check_PKCS1_type_1
	.p2align	2
_RSA_padding_check_PKCS1_type_1:        ; @RSA_padding_check_PKCS1_type_1
	.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, #11
	b.lt	LBB0_13
; %bb.1:
	cmp	w4, w3
	b.ne	LBB0_5
; %bb.2:
	ldrb	w8, [x2]
	cbz	w8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _RSA_R_INVALID_PADDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSA_R_INVALID_PADDING@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
	add	x2, x2, #1
	sub	w3, w4, #1
LBB0_5:
	add	w8, w3, #1
	cmp	w8, w4
	b.ne	LBB0_11
; %bb.6:
	ldrb	w8, [x2]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.7:
	subs	w19, w3, #2
	b.lt	LBB0_15
; %bb.8:
	add	x8, x2, #2
	mov	w9, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w10, [x8, #-1]
	cmp	w10, #255
	b.ne	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, #1
	add	w9, w9, #1
	sub	w19, w19, #1
	cmn	w19, #1
	b.ne	LBB0_9
	b	LBB0_22
LBB0_11:
Lloh5:
	adrp	x8, _RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _RSA_R_BLOCK_TYPE_IS_NOT_01@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RSA_R_BLOCK_TYPE_IS_NOT_01@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	bl	_RSAerr
LBB0_13:
	mov	w19, #-1
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	sub	w8, w3, #1
	cbz	w8, LBB0_22
LBB0_16:
Lloh10:
	adrp	x8, _RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _RSA_R_BAD_PAD_BYTE_COUNT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RSA_R_BAD_PAD_BYTE_COUNT@GOTPAGEOFF]
	b	LBB0_12
LBB0_17:
	cbnz	w10, LBB0_23
; %bb.18:
	cmn	w19, #1
	b.eq	LBB0_22
; %bb.19:
	sub	w9, w9, #1
	cmp	w9, #7
	b.ls	LBB0_16
; %bb.20:
	cmp	w19, w1
	b.le	LBB0_24
; %bb.21:
Lloh15:
	adrp	x8, _RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _RSA_R_DATA_TOO_LARGE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RSA_R_DATA_TOO_LARGE@GOTPAGEOFF]
	b	LBB0_12
LBB0_22:
Lloh20:
	adrp	x8, _RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _RSA_R_NULL_BEFORE_BLOCK_MISSING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RSA_R_NULL_BEFORE_BLOCK_MISSING@GOTPAGEOFF]
	b	LBB0_12
LBB0_23:
Lloh25:
	adrp	x8, _RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _RSA_R_BAD_FIXED_HEADER_DECRYPT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RSA_R_BAD_FIXED_HEADER_DECRYPT@GOTPAGEOFF]
	b	LBB0_12
LBB0_24:
	mov	x1, x8
	mov	x2, x19
	bl	_memcpy
	b	LBB0_14
	.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
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1,4,2 ; @RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1
	.comm	_RSA_R_INVALID_PADDING,4,2      ; @RSA_R_INVALID_PADDING
	.comm	_RSA_R_BLOCK_TYPE_IS_NOT_01,4,2 ; @RSA_R_BLOCK_TYPE_IS_NOT_01
	.comm	_RSA_R_BAD_FIXED_HEADER_DECRYPT,4,2 ; @RSA_R_BAD_FIXED_HEADER_DECRYPT
	.comm	_RSA_R_NULL_BEFORE_BLOCK_MISSING,4,2 ; @RSA_R_NULL_BEFORE_BLOCK_MISSING
	.comm	_RSA_R_BAD_PAD_BYTE_COUNT,4,2   ; @RSA_R_BAD_PAD_BYTE_COUNT
	.comm	_RSA_R_DATA_TOO_LARGE,4,2       ; @RSA_R_DATA_TOO_LARGE
.subsections_via_symbols
