	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_bitlen_rsa
_check_bitlen_rsa:                      ## @check_bitlen_rsa
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	leaq	-96(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_RSA_get0_key
	movq	-96(%rbp), %rdi
	callq	_BN_num_bits
	cmpl	$32, %eax
	jg	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	callq	_RSA_bits
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_RSA_size
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.2:
	movq	_MS_RSA1MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	%r15d, %ebx
	jmp	LBB0_11
LBB0_3:
	movl	%eax, %ebx
	movq	_MS_RSA2MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	leaq	-88(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RSA_get0_key
	movq	-88(%rbp), %rdi
	callq	_BN_num_bytes
	cmpl	%ebx, %eax
	jg	LBB0_9
## %bb.4:
	movl	%r15d, %ebx
	addl	$15, %ebx
	sarl	$4, %ebx
	leaq	-80(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	_RSA_get0_factors
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	callq	_RSA_get0_crt_params
	movq	-64(%rbp), %rdi
	callq	_BN_num_bytes
	cmpl	%ebx, %eax
	jg	LBB0_9
## %bb.5:
	movq	-80(%rbp), %rdi
	callq	_BN_num_bytes
	cmpl	%ebx, %eax
	jg	LBB0_9
## %bb.6:
	movq	-72(%rbp), %rdi
	callq	_BN_num_bytes
	cmpl	%ebx, %eax
	jg	LBB0_9
## %bb.7:
	movq	-56(%rbp), %rdi
	callq	_BN_num_bytes
	cmpl	%ebx, %eax
	jg	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi
	callq	_BN_num_bytes
	cmpl	%ebx, %eax
	jle	LBB0_12
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	_PEM_F_CHECK_BITLEN_RSA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PEM_R_UNSUPPORTED_KEY_COMPONENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PEMerr
LBB0_11:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%r15d, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MS_RSA1MAGIC,4,2               ## @MS_RSA1MAGIC
	.comm	_MS_RSA2MAGIC,4,2               ## @MS_RSA2MAGIC
	.comm	_PEM_F_CHECK_BITLEN_RSA,4,2     ## @PEM_F_CHECK_BITLEN_RSA
	.comm	_PEM_R_UNSUPPORTED_KEY_COMPONENTS,4,2 ## @PEM_R_UNSUPPORTED_KEY_COMPONENTS
	.no_dead_strip	_check_bitlen_rsa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_bitlen_rsa
_check_bitlen_rsa:                      ; @check_bitlen_rsa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x2, sp, #56
	mov	x1, #0
	mov	x3, #0
	bl	_RSA_get0_key
	ldr	x0, [sp, #56]
	bl	_BN_num_bits
	cmp	w0, #32
	b.le	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _PEM_F_CHECK_BITLEN_RSA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PEM_F_CHECK_BITLEN_RSA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PEM_R_UNSUPPORTED_KEY_COMPONENTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PEM_R_UNSUPPORTED_KEY_COMPONENTS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_PEMerr
	mov	w19, #0
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_RSA_bits
	mov	x19, x0
	mov	x0, x20
	bl	_RSA_size
	cbz	w22, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _MS_RSA1MAGIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MS_RSA1MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	mov	x23, x0
Lloh9:
	adrp	x8, _MS_RSA2MAGIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MS_RSA2MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21]
	add	x3, sp, #48
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	bl	_RSA_get0_key
	ldr	x0, [sp, #48]
	bl	_BN_num_bytes
	cmp	w0, w23
	b.gt	LBB0_1
; %bb.6:
	add	w8, w19, #15
	asr	w21, w8, #4
	add	x1, sp, #40
	add	x2, sp, #32
	mov	x0, x20
	bl	_RSA_get0_factors
	add	x1, sp, #16
	add	x2, sp, #8
	add	x3, sp, #24
	mov	x0, x20
	bl	_RSA_get0_crt_params
	ldr	x0, [sp, #24]
	bl	_BN_num_bytes
	cmp	w0, w21
	b.gt	LBB0_1
; %bb.7:
	ldr	x0, [sp, #40]
	bl	_BN_num_bytes
	cmp	w0, w21
	b.gt	LBB0_1
; %bb.8:
	ldr	x0, [sp, #32]
	bl	_BN_num_bytes
	cmp	w0, w21
	b.gt	LBB0_1
; %bb.9:
	ldr	x0, [sp, #16]
	bl	_BN_num_bytes
	cmp	w0, w21
	b.gt	LBB0_1
; %bb.10:
	ldr	x0, [sp, #8]
	bl	_BN_num_bytes
	cmp	w0, w21
	b.gt	LBB0_1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MS_RSA1MAGIC,4,2               ; @MS_RSA1MAGIC
	.comm	_MS_RSA2MAGIC,4,2               ; @MS_RSA2MAGIC
	.comm	_PEM_F_CHECK_BITLEN_RSA,4,2     ; @PEM_F_CHECK_BITLEN_RSA
	.comm	_PEM_R_UNSUPPORTED_KEY_COMPONENTS,4,2 ; @PEM_R_UNSUPPORTED_KEY_COMPONENTS
	.no_dead_strip	_check_bitlen_rsa
.subsections_via_symbols
