	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_OpenInit                   ## -- Begin function EVP_OpenInit
	.p2align	4, 0x90
_EVP_OpenInit:                          ## @EVP_OpenInit
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r12
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movq	%r13, %rdi
	callq	_EVP_CIPHER_CTX_reset
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EVP_DecryptInit_ex
	testl	%eax, %eax
	je	LBB0_13
LBB0_2:
	testq	%r14, %r14
	je	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	callq	_EVP_PKEY_id
	movq	_EVP_PKEY_RSA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_EVP_PKEY_size
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %rcx
	callq	_EVP_PKEY_decrypt_old
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jle	LBB0_12
## %bb.6:
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_EVP_CIPHER_CTX_set_key_length
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_EVP_DecryptInit_ex
	xorl	%r15d, %r15d
	testl	%eax, %eax
	setne	%r15b
	jmp	LBB0_12
LBB0_8:
	movl	$1, %r15d
	jmp	LBB0_13
LBB0_9:
	movq	_EVP_F_EVP_OPENINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_PUBLIC_KEY_NOT_RSA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVPerr
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movq	_EVP_F_EVP_OPENINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVPerr
	xorl	%r12d, %r12d
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_OPENSSL_clear_free
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_PKEY_RSA,8,3               ## @EVP_PKEY_RSA
	.comm	_EVP_F_EVP_OPENINIT,4,2         ## @EVP_F_EVP_OPENINIT
	.comm	_EVP_R_PUBLIC_KEY_NOT_RSA,4,2   ## @EVP_R_PUBLIC_KEY_NOT_RSA
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_OpenInit                   ; -- Begin function EVP_OpenInit
	.p2align	2
_EVP_OpenInit:                          ; @EVP_OpenInit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x5
	mov	x20, x4
	mov	x24, x3
	mov	x25, x2
	mov	x21, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x0, x21
	bl	_EVP_CIPHER_CTX_reset
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_EVP_DecryptInit_ex
	cbz	w0, LBB0_10
LBB0_2:
	cbz	x23, LBB0_8
; %bb.3:
	mov	x0, x23
	bl	_EVP_PKEY_id
Lloh0:
	adrp	x8, _EVP_PKEY_RSA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_PKEY_RSA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x23
	bl	_EVP_PKEY_size
	mov	x19, x0
	bl	_OPENSSL_malloc
	mov	x22, x0
	cbz	x0, LBB0_11
; %bb.5:
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	bl	_EVP_PKEY_decrypt_old
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.6:
	mov	x1, x0
	mov	x0, x21
	bl	_EVP_CIPHER_CTX_set_key_length
	cbz	w0, LBB0_12
; %bb.7:
	mov	x0, x21
	mov	x1, #0
	mov	x2, #0
	mov	x3, x22
	mov	x4, x20
	bl	_EVP_DecryptInit_ex
	cmp	w0, #0
	cset	w20, ne
	b	LBB0_13
LBB0_8:
	mov	w20, #1
	b	LBB0_14
LBB0_9:
Lloh3:
	adrp	x8, _EVP_F_EVP_OPENINIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_F_EVP_OPENINIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _EVP_R_PUBLIC_KEY_NOT_RSA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_R_PUBLIC_KEY_NOT_RSA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_EVPerr
	mov	x22, #0
	mov	w19, #0
	b	LBB0_12
LBB0_10:
	mov	w20, #0
	b	LBB0_14
LBB0_11:
Lloh9:
	adrp	x8, _EVP_F_EVP_OPENINIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVP_F_EVP_OPENINIT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_EVPerr
LBB0_12:
	mov	w20, #0
LBB0_13:
	mov	x0, x22
	mov	x1, x19
	bl	_OPENSSL_clear_free
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_PKEY_RSA,8,3               ; @EVP_PKEY_RSA
	.comm	_EVP_F_EVP_OPENINIT,4,2         ; @EVP_F_EVP_OPENINIT
	.comm	_EVP_R_PUBLIC_KEY_NOT_RSA,4,2   ; @EVP_R_PUBLIC_KEY_NOT_RSA
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
