	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_SealInit                   ## -- Begin function EVP_SealInit
	.p2align	4, 0x90
_EVP_SealInit:                          ## @EVP_SealInit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EVP_MAX_KEY_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_EVP_CIPHER_CTX_reset
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EVP_EncryptInit_ex
	testl	%eax, %eax
	je	LBB0_17
LBB0_2:
	movl	$1, %r15d
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_17
## %bb.3:
	cmpl	$0, 16(%rbp)
	jle	LBB0_17
## %bb.4:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_EVP_CIPHER_CTX_rand_key
	testq	%rax, %rax
	jle	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_EVP_CIPHER_CTX_iv_length
	testq	%rax, %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_EVP_CIPHER_CTX_iv_length
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_RAND_bytes
	testq	%rax, %rax
	jle	LBB0_8
LBB0_9:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r13, %rcx
	movq	%r12, %r8
	callq	_EVP_EncryptInit_ex
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rbx
	movq	%r14, %rdi
	callq	_EVP_CIPHER_CTX_key_length
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%r12,8), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_EVP_PKEY_encrypt_old
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,4)
	testl	%eax, %eax
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r12
	cmpq	%r12, %r15
	jne	LBB0_11
## %bb.13:
	movl	16(%rbp), %eax
	movl	%eax, %r15d
	jmp	LBB0_15
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_14:
	movl	$-1, %r15d
LBB0_15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_8:
	xorl	%r15d, %r15d
LBB0_16:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_OPENSSL_cleanse
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_KEY_LENGTH,4,2         ## @EVP_MAX_KEY_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_SealInit                   ; -- Begin function EVP_SealInit
	.p2align	2
_EVP_SealInit:                          ; @EVP_SealInit
	.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
	sub	sp, sp, #16
	mov	x19, x6
	mov	x22, x5
	mov	x26, x4
	mov	x23, x3
	mov	x24, x2
	mov	x27, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _EVP_MAX_KEY_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_KEY_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x25
	bl	_EVP_CIPHER_CTX_reset
	mov	x0, x25
	mov	x1, x27
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_EVP_EncryptInit_ex
	cbz	w0, LBB0_15
LBB0_2:
	mov	w0, #1
	cbz	x22, LBB0_15
; %bb.3:
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.4:
	mov	x0, x25
	mov	x1, x21
	bl	_EVP_CIPHER_CTX_rand_key
	cmp	x0, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x0, x25
	bl	_EVP_CIPHER_CTX_iv_length
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x25
	bl	_EVP_CIPHER_CTX_iv_length
	mov	x1, x0
	mov	x0, x26
	bl	_RAND_bytes
	cmp	x0, #1
	b.lt	LBB0_12
LBB0_7:
	mov	x0, x25
	mov	x1, #0
	mov	x2, #0
	mov	x3, x21
	mov	x4, x26
	bl	_EVP_EncryptInit_ex
	cbz	w0, LBB0_12
; %bb.8:
	mov	w27, w19
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x24]
	mov	x0, x25
	bl	_EVP_CIPHER_CTX_key_length
	mov	x2, x0
	ldr	x3, [x22]
	mov	x0, x26
	mov	x1, x21
	bl	_EVP_PKEY_encrypt_old
	str	w0, [x23]
	cmp	w0, #0
	b.le	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #4
	add	x22, x22, #8
	add	x24, x24, #8
	subs	x27, x27, #1
	b.ne	LBB0_9
	b	LBB0_14
LBB0_11:
	mov	w0, #0
	b	LBB0_15
LBB0_12:
	mov	w19, #0
	b	LBB0_14
LBB0_13:
	mov	w19, #-1
LBB0_14:
	mov	x0, x21
	mov	x1, x20
	bl	_OPENSSL_cleanse
	mov	x0, x19
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #80
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_KEY_LENGTH,4,2         ; @EVP_MAX_KEY_LENGTH
.subsections_via_symbols
