	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cipher_ctrl
_cipher_ctrl:                           ## @cipher_ctrl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_EVP_CIPHER_CTX_get_cipher_data
	movq	%rax, %r15
	cmpl	$128, %ebx
	je	LBB0_4
## %bb.1:
	movl	$-1, %eax
	cmpl	$129, %ebx
	jne	LBB0_6
## %bb.2:
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_EVP_CIPHER_CTX_get_cipher_data
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r15), %ebx
	movq	%r12, %rdi
	callq	_EVP_CIPHER_CTX_iv
	movl	4(%r15), %edx
	movq	_COP_ENCRYPT@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpl	(%rsi), %edx
	sete	%cl
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cipher_init                    ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_5:
	movl	$1, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COP_ENCRYPT,4,2                ## @COP_ENCRYPT
	.no_dead_strip	_cipher_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cipher_ctrl
_cipher_ctrl:                           ; @cipher_ctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x22, x1
	mov	x21, x0
	bl	_EVP_CIPHER_CTX_get_cipher_data
	mov	x20, x0
	cmp	w22, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w22, #129
	b.ne	LBB0_6
; %bb.2:
	cbz	x20, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_EVP_CIPHER_CTX_get_cipher_data
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w22, [x20]
	mov	x0, x21
	bl	_EVP_CIPHER_CTX_iv
	mov	x2, x0
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x9, _COP_ENCRYPT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _COP_ENCRYPT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w3, eq
	mov	x0, x19
	mov	x1, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cipher_init
LBB0_4:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COP_ENCRYPT,4,2                ; @COP_ENCRYPT
	.no_dead_strip	_cipher_ctrl
.subsections_via_symbols
