	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_EVP_Enveloped
_test_EVP_Enveloped:                    ## @test_EVP_Enveloped
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -120(%rbp)
	movq	_EVP_MAX_IV_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_EVP_aes_256_cbc
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_load_example_rsa_key
	movq	%rax, %rbx
	movq	%rax, -128(%rbp)
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_size
	movl	%eax, %edi
	callq	_OPENSSL_zalloc
	movq	%rax, -120(%rbp)
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	subq	$8, %rsp
	leaq	-120(%rbp), %rdx
	leaq	-132(%rbp), %rcx
	leaq	-128(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %r8
	pushq	$1
	callq	_EVP_SealInit
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	leaq	_test_EVP_Enveloped.msg(%rip), %rcx
	leaq	-80(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$8, %r8d
	callq	_EVP_SealUpdate
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movslq	-104(%rbp), %rax
	leaq	(%rax,%rbp), %rsi
	addq	$-80, %rsi
	leaq	-108(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_EVP_SealFinal
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movl	-108(%rbp), %eax
	addl	%eax, -104(%rbp)
	movq	-120(%rbp), %rdx
	movl	-132(%rbp), %ecx
	movq	-128(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %r8
	callq	_EVP_OpenInit
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	-104(%rbp), %r8d
	leaq	-96(%rbp), %rsi
	leaq	-100(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_EVP_OpenUpdate
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movslq	-100(%rbp), %rax
	leaq	(%rax,%rbp), %rsi
	addq	$-96, %rsi
	leaq	-108(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_EVP_OpenFinal
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	-100(%rbp), %ecx
	addl	-108(%rbp), %ecx
	movl	%ecx, -100(%rbp)
	leaq	_test_EVP_Enveloped.msg(%rip), %rdi
	leaq	-96(%rbp), %rdx
	movl	$8, %esi
	callq	_TEST_mem_eq
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
LBB0_12:
	movq	-120(%rbp), %rdi
	callq	_OPENSSL_free
	movq	-128(%rbp), %rdi
	callq	_EVP_PKEY_free
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_CTX_free
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_IV_LENGTH,4,2          ## @EVP_MAX_IV_LENGTH
	.section	__TEXT,__const
_test_EVP_Enveloped.msg:                ## @test_EVP_Enveloped.msg
	.ascii	"\001\002\003\004\005\006\007\b"

	.no_dead_strip	_test_EVP_Enveloped
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_EVP_Enveloped
_test_EVP_Enveloped:                    ; @test_EVP_Enveloped
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #96
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	stur	xzr, [x29, #-120]
Lloh3:
	adrp	x8, _EVP_MAX_IV_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_IV_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	bl	_EVP_aes_256_cbc
	mov	x21, x0
	bl	_load_example_rsa_key
	mov	x19, x0
	stur	x0, [x29, #-112]
	bl	_TEST_ptr
	cbz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_EVP_PKEY_size
	bl	_OPENSSL_zalloc
	stur	x0, [x29, #-120]
	bl	_TEST_ptr
	cbz	w0, LBB0_10
; %bb.2:
	bl	_EVP_CIPHER_CTX_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_11
; %bb.3:
	sub	x2, x29, #120
	sub	x3, x29, #128
	sub	x5, x29, #112
	mov	x0, x19
	mov	x1, x21
	mov	x4, x20
	mov	w6, #1
	bl	_EVP_SealInit
	bl	_TEST_true
	cbz	w0, LBB0_11
; %bb.4:
Lloh8:
	adrp	x3, _test_EVP_Enveloped.msg@PAGE
Lloh9:
	add	x3, x3, _test_EVP_Enveloped.msg@PAGEOFF
	sub	x23, x29, #88
	sub	x1, x29, #88
	sub	x2, x29, #132
	mov	x0, x19
	mov	w4, #8
	bl	_EVP_SealUpdate
	bl	_TEST_true
	cbz	w0, LBB0_11
; %bb.5:
	ldursw	x8, [x29, #-132]
	add	x1, x23, x8
	sub	x2, x29, #124
	mov	x0, x19
	bl	_EVP_SealFinal
	bl	_TEST_true
	cbz	w0, LBB0_11
; %bb.6:
	ldp	w3, w8, [x29, #-128]
	ldur	w9, [x29, #-132]
	add	w8, w9, w8
	stur	w8, [x29, #-132]
	ldp	x2, x5, [x29, #-120]
	mov	x0, x19
	mov	x1, x21
	mov	x4, x20
	bl	_EVP_OpenInit
	bl	_TEST_true
	cbz	w0, LBB0_11
; %bb.7:
	ldur	w4, [x29, #-132]
	sub	x20, x29, #104
	sub	x1, x29, #104
	sub	x2, x29, #136
	sub	x3, x29, #88
	mov	x0, x19
	bl	_EVP_OpenUpdate
	bl	_TEST_true
	cbz	w0, LBB0_11
; %bb.8:
	ldursw	x8, [x29, #-136]
	add	x1, x20, x8
	sub	x2, x29, #124
	mov	x0, x19
	bl	_EVP_OpenFinal
	bl	_TEST_true
	cbz	w0, LBB0_11
; %bb.9:
	ldur	w8, [x29, #-124]
	ldur	w9, [x29, #-136]
	add	w3, w9, w8
	stur	w3, [x29, #-136]
Lloh10:
	adrp	x0, _test_EVP_Enveloped.msg@PAGE
Lloh11:
	add	x0, x0, _test_EVP_Enveloped.msg@PAGEOFF
	sub	x2, x29, #104
	mov	w1, #8
	bl	_TEST_mem_eq
	cmp	w0, #0
	cset	w20, ne
	b	LBB0_12
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	w20, #0
LBB0_12:
	ldur	x0, [x29, #-120]
	bl	_OPENSSL_free
	ldur	x0, [x29, #-112]
	bl	_EVP_PKEY_free
	mov	x0, x19
	bl	_EVP_CIPHER_CTX_free
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x20
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_IV_LENGTH,4,2          ; @EVP_MAX_IV_LENGTH
	.section	__TEXT,__const
_test_EVP_Enveloped.msg:                ; @test_EVP_Enveloped.msg
	.ascii	"\001\002\003\004\005\006\007\b"

	.no_dead_strip	_test_EVP_Enveloped
.subsections_via_symbols
