	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsa_ossl_public_encrypt
_rsa_ossl_public_encrypt:               ## @rsa_ossl_public_encrypt
	.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
	movl	%r8d, %r14d
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movl	%edi, %r15d
	movq	8(%rcx), %rdi
	callq	_BN_num_bits
	movq	_OPENSSL_RSA_MAX_MODULUS_BITS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.1:
	movq	_RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_MODULUS_TOO_LARGE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	8(%r12), %rdi
	movq	16(%r12), %rsi
	callq	_BN_ucmp
	testq	%rax, %rax
	jle	LBB0_4
## %bb.5:
	movq	8(%r12), %rdi
	callq	_BN_num_bits
	movq	_OPENSSL_RSA_SMALL_MODULUS_BITS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.6:
	movq	16(%r12), %rdi
	callq	_BN_num_bits
	movq	_OPENSSL_RSA_MAX_PUBEXP_BITS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
LBB0_4:
	movq	_RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_BAD_E_VALUE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_RSAerr
	movl	$-1, %ebx
	jmp	LBB0_32
LBB0_7:
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_BN_CTX_start
	movq	%rbx, %rdi
	callq	_BN_CTX_get
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_BN_CTX_get
	movq	%rax, %rbx
	movq	8(%r12), %rdi
	callq	_BN_num_bytes
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %edi
	callq	_OPENSSL_malloc
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	addl	$-128, %r14d
	cmpl	$3, %r14d
	ja	LBB0_18
## %bb.14:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%r14,4), %rcx
	addq	%rdx, %rcx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmpq	*%rcx
LBB0_16:
	movq	%rax, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_RSA_padding_add_SSLv23
	jmp	LBB0_20
LBB0_8:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movl	$-1, %ebx
	jmp	LBB0_31
LBB0_11:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	_RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPCREL(%rip), %rcx
	movq	%rax, %r12
	movl	(%rcx), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	callq	_RSAerr
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$-1, %ebx
	jmp	LBB0_31
LBB0_18:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	_RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPCREL(%rip), %rcx
	movq	%rax, %r12
	movl	(%rcx), %edi
	movq	_RSA_R_UNKNOWN_PADDING_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_19:
	movq	%rax, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_RSA_padding_add_PKCS1_type_2
	jmp	LBB0_20
LBB0_15:
	movq	%rax, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RSA_padding_add_PKCS1_OAEP
	jmp	LBB0_20
LBB0_17:
	movq	%rax, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_RSA_padding_add_none
LBB0_20:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_21
## %bb.23:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_BN_bin2bn
	testq	%rax, %rax
	je	LBB0_21
## %bb.24:
	movq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_BN_ucmp
	testq	%rax, %rax
	js	LBB0_26
## %bb.25:
	movq	%r14, %r15
	movq	_RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RSA_R_DATA_TOO_LARGE_FOR_MODULUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_RSAerr
	jmp	LBB0_22
LBB0_26:
	movq	_RSA_FLAG_CACHE_PUBLIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_28
## %bb.27:
	leaq	4(%r12), %rdi
	movl	32(%r12), %esi
	movq	8(%r12), %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_BN_MONT_CTX_set_locked
	testl	%eax, %eax
	je	LBB0_21
LBB0_28:
	movq	24(%r12), %rax
	movq	16(%r12), %rdx
	movq	8(%r12), %rcx
	movl	4(%r12), %r9d
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_21
## %bb.29:
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %r15
	movl	%r14d, %edx
	callq	_BN_bn2binpad
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_30
LBB0_21:
	movq	%r14, %r15
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$-1, %ebx
LBB0_30:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_31:
	movq	%rdi, %r14
	callq	_BN_CTX_end
	movq	%r14, %rdi
	callq	_BN_CTX_free
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_OPENSSL_clear_free
LBB0_32:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_15
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_OPENSSL_RSA_MAX_MODULUS_BITS,8,3 ## @OPENSSL_RSA_MAX_MODULUS_BITS
	.comm	_RSA_F_RSA_OSSL_PUBLIC_ENCRYPT,4,2 ## @RSA_F_RSA_OSSL_PUBLIC_ENCRYPT
	.comm	_RSA_R_MODULUS_TOO_LARGE,4,2    ## @RSA_R_MODULUS_TOO_LARGE
	.comm	_RSA_R_BAD_E_VALUE,4,2          ## @RSA_R_BAD_E_VALUE
	.comm	_OPENSSL_RSA_SMALL_MODULUS_BITS,8,3 ## @OPENSSL_RSA_SMALL_MODULUS_BITS
	.comm	_OPENSSL_RSA_MAX_PUBEXP_BITS,8,3 ## @OPENSSL_RSA_MAX_PUBEXP_BITS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_RSA_R_UNKNOWN_PADDING_TYPE,4,2 ## @RSA_R_UNKNOWN_PADDING_TYPE
	.comm	_RSA_R_DATA_TOO_LARGE_FOR_MODULUS,4,2 ## @RSA_R_DATA_TOO_LARGE_FOR_MODULUS
	.comm	_RSA_FLAG_CACHE_PUBLIC,4,2      ## @RSA_FLAG_CACHE_PUBLIC
	.no_dead_strip	_rsa_ossl_public_encrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsa_ossl_public_encrypt
_rsa_ossl_public_encrypt:               ; @rsa_ossl_public_encrypt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x28, x4
	mov	x23, x3
	mov	x22, x2
	mov	x27, x1
	mov	x26, x0
	ldr	x0, [x3, #8]
	bl	_BN_num_bits
Lloh0:
	adrp	x8, _OPENSSL_RSA_MAX_MODULUS_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPENSSL_RSA_MAX_MODULUS_BITS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _RSA_R_MODULUS_TOO_LARGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RSA_R_MODULUS_TOO_LARGE@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	ldp	x0, x1, [x23, #8]
	bl	_BN_ucmp
	cmp	x0, #0
	b.le	LBB0_5
; %bb.3:
	ldr	x0, [x23, #8]
	bl	_BN_num_bits
Lloh8:
	adrp	x8, _OPENSSL_RSA_SMALL_MODULUS_BITS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OPENSSL_RSA_SMALL_MODULUS_BITS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_7
; %bb.4:
	ldr	x0, [x23, #16]
	bl	_BN_num_bits
Lloh11:
	adrp	x8, _OPENSSL_RSA_MAX_PUBEXP_BITS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPENSSL_RSA_MAX_PUBEXP_BITS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_7
LBB0_5:
Lloh14:
	adrp	x8, _RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _RSA_R_BAD_E_VALUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RSA_R_BAD_E_VALUE@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	bl	_RSAerr
	mov	w22, #-1
	b	LBB0_18
LBB0_7:
	bl	_BN_CTX_new
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.8:
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x25, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x24, x0
	ldr	x0, [x23, #8]
	bl	_BN_num_bytes
	mov	x20, x0
	bl	_OPENSSL_malloc
	mov	x21, x0
	cbz	x24, LBB0_14
; %bb.9:
	cbz	x21, LBB0_14
; %bb.10:
	sub	w8, w28, #128
	cmp	w8, #3
	b.hi	LBB0_19
; %bb.11:
Lloh19:
	adrp	x9, lJTI0_0@PAGE
Lloh20:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_12
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x27
	mov	x3, x26
	bl	_RSA_padding_add_SSLv23
	b	LBB0_23
LBB0_13:
	mov	w20, #0
	mov	x21, #0
	b	LBB0_16
LBB0_14:
Lloh21:
	adrp	x8, _RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	bl	_RSAerr
LBB0_16:
	mov	w22, #-1
LBB0_17:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x19
	bl	_BN_CTX_free
	mov	x0, x21
	mov	x1, x20
	bl	_OPENSSL_clear_free
LBB0_18:
	mov	x0, x22
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh26:
	adrp	x8, _RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _RSA_R_UNKNOWN_PADDING_TYPE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RSA_R_UNKNOWN_PADDING_TYPE@GOTPAGEOFF]
	b	LBB0_15
LBB0_20:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x27
	mov	x3, x26
	bl	_RSA_padding_add_PKCS1_type_2
	b	LBB0_23
LBB0_21:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x27
	mov	x3, x26
	mov	x4, #0
	mov	w5, #0
	bl	_RSA_padding_add_PKCS1_OAEP
	b	LBB0_23
LBB0_22:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x27
	mov	x3, x26
	bl	_RSA_padding_add_none
LBB0_23:
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.24:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	bl	_BN_bin2bn
	cbz	x0, LBB0_16
; %bb.25:
	ldr	x1, [x23, #8]
	mov	x0, x25
	bl	_BN_ucmp
	tbnz	x0, #63, LBB0_27
; %bb.26:
Lloh31:
	adrp	x8, _RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RSA_F_RSA_OSSL_PUBLIC_ENCRYPT@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x8, _RSA_R_DATA_TOO_LARGE_FOR_MODULUS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RSA_R_DATA_TOO_LARGE_FOR_MODULUS@GOTPAGEOFF]
	b	LBB0_15
LBB0_27:
	ldr	w8, [x23]
Lloh36:
	adrp	x9, _RSA_FLAG_CACHE_PUBLIC@GOTPAGE
Lloh37:
	ldr	x9, [x9, _RSA_FLAG_CACHE_PUBLIC@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:
	add	x0, x23, #4
	ldr	w1, [x23, #32]
	ldr	x2, [x23, #8]
	mov	x3, x19
	bl	_BN_MONT_CTX_set_locked
	cbz	w0, LBB0_16
LBB0_29:
	ldp	x2, x8, [x23, #16]
	ldr	x8, [x8]
	ldr	x3, [x23, #8]
	ldr	w5, [x23, #4]
	mov	x0, x24
	mov	x1, x25
	mov	x4, x19
	blr	x8
	cbz	w0, LBB0_16
; %bb.30:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x20
	bl	_BN_bn2binpad
	mov	x22, x0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_20-LBB0_12)>>2
	.byte	(LBB0_21-LBB0_12)>>2
	.byte	(LBB0_22-LBB0_12)>>2
                                        ; -- End function
	.comm	_OPENSSL_RSA_MAX_MODULUS_BITS,8,3 ; @OPENSSL_RSA_MAX_MODULUS_BITS
	.comm	_RSA_F_RSA_OSSL_PUBLIC_ENCRYPT,4,2 ; @RSA_F_RSA_OSSL_PUBLIC_ENCRYPT
	.comm	_RSA_R_MODULUS_TOO_LARGE,4,2    ; @RSA_R_MODULUS_TOO_LARGE
	.comm	_RSA_R_BAD_E_VALUE,4,2          ; @RSA_R_BAD_E_VALUE
	.comm	_OPENSSL_RSA_SMALL_MODULUS_BITS,8,3 ; @OPENSSL_RSA_SMALL_MODULUS_BITS
	.comm	_OPENSSL_RSA_MAX_PUBEXP_BITS,8,3 ; @OPENSSL_RSA_MAX_PUBEXP_BITS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_RSA_R_UNKNOWN_PADDING_TYPE,4,2 ; @RSA_R_UNKNOWN_PADDING_TYPE
	.comm	_RSA_R_DATA_TOO_LARGE_FOR_MODULUS,4,2 ; @RSA_R_DATA_TOO_LARGE_FOR_MODULUS
	.comm	_RSA_FLAG_CACHE_PUBLIC,4,2      ; @RSA_FLAG_CACHE_PUBLIC
	.no_dead_strip	_rsa_ossl_public_encrypt
.subsections_via_symbols
