	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function openssl_cipher
_openssl_cipher:                        ## @openssl_cipher
	.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, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	16(%rbp), %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movq	%r14, %r8
	movl	24(%rbp), %r9d
	callq	_EVP_CipherInit_ex
	cmpl	$1, %eax
	movq	16(%rbp), %rbx
	je	LBB0_4
## %bb.3:
	movl	(%r13), %r14d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_4:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_EVP_CIPHER_CTX_set_padding
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_EVP_CipherUpdate
	cmpl	$1, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r13), %r14d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_6:
	movslq	-44(%rbp), %r15
	leaq	(%r14,%r15,4), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_EVP_CipherFinal_ex
	cmpl	$1, %eax
	je	LBB0_8
## %bb.7:
	movl	(%r13), %r14d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_errx
LBB0_8:
	movslq	-44(%rbp), %r8
	addq	%r15, %r8
	cmpq	%rbx, %r8
	je	LBB0_10
## %bb.9:
	movl	(%r13), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_errx
LBB0_10:
	movq	%r12, %rdi
	callq	_EVP_CIPHER_CTX_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OpenSSL %s (%zu) ctx new failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"OpenSSL %s (%zu) ctx init failed: %s"

L_.str.2:                               ## @.str.2
	.asciz	"OpenSSL %s (%zu) cipher update failed: %s"

L_.str.3:                               ## @.str.3
	.asciz	"OpenSSL %s (%zu) cipher final failed: %s"

L_.str.4:                               ## @.str.4
	.asciz	"OpenSSL %s (%zu) cipher size mismatch: %d"

	.no_dead_strip	_openssl_cipher
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function openssl_cipher
_openssl_cipher:                        ; @openssl_cipher
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x7
	mov	x19, x6
	mov	x22, x5
	mov	x23, x4
	mov	x25, x3
	mov	x26, x2
	mov	x27, x1
	mov	x21, x0
	bl	_EVP_CIPHER_CTX_new
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w28, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x28
	mov	x3, x19
	bl	_errx
LBB0_2:
	mov	x0, x20
	mov	x1, x27
	mov	x2, #0
	mov	x3, x26
	mov	x4, x25
	mov	x5, x24
	bl	_EVP_CipherInit_ex
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	w24, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x24
	mov	x3, x19
	bl	_errx
LBB0_4:
	mov	x0, x20
	mov	w1, #0
	bl	_EVP_CIPHER_CTX_set_padding
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x22
	mov	x3, x23
	mov	x4, x19
	bl	_EVP_CipherUpdate
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.5:
	ldr	w23, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x3, x19
	bl	_errx
LBB0_6:
	ldrsw	x23, [sp, #12]
	add	x1, x22, x23, lsl #2
	add	x2, sp, #12
	mov	x0, x20
	bl	_EVP_CipherFinal_ex
	cmp	w0, #1
	b.eq	LBB0_8
; %bb.7:
	ldr	w22, [x21]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x4, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	mov	x3, x19
	bl	_errx
LBB0_8:
	ldrsw	x8, [sp, #12]
	add	x4, x8, x23
	cmp	x4, x19
	b.eq	LBB0_10
; %bb.9:
	ldr	w2, [x21]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	mov	x3, x19
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_errx
LBB0_10:
	mov	x0, x20
	bl	_EVP_CIPHER_CTX_free
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OpenSSL %s (%zu) ctx new failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"OpenSSL %s (%zu) ctx init failed: %s"

l_.str.2:                               ; @.str.2
	.asciz	"OpenSSL %s (%zu) cipher update failed: %s"

l_.str.3:                               ; @.str.3
	.asciz	"OpenSSL %s (%zu) cipher final failed: %s"

l_.str.4:                               ; @.str.4
	.asciz	"OpenSSL %s (%zu) cipher size mismatch: %d"

	.no_dead_strip	_openssl_cipher
.subsections_via_symbols
