	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_cipher_init             ## -- Begin function crypto_cipher_init
	.p2align	4, 0x90
_crypto_cipher_init:                    ## @crypto_cipher_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movl	%edi, %ebx
	movl	$16, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_28
## %bb.1:
	movq	%rax, %r14
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_27
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	xorl	%eax, %eax
	callq	_EVP_rc4
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
	callq	_EVP_rc2_ecb
	jmp	LBB0_13
LBB0_11:
	xorl	%eax, %eax
	callq	_EVP_des_cbc
	jmp	LBB0_13
LBB0_4:
	cmpq	$32, %r12
	je	LBB0_9
## %bb.5:
	cmpq	$24, %r12
	je	LBB0_8
## %bb.6:
	cmpq	$16, %r12
	jne	LBB0_27
## %bb.7:
	xorl	%eax, %eax
	callq	_EVP_aes_128_cbc
	jmp	LBB0_13
LBB0_10:
	xorl	%eax, %eax
	callq	_EVP_des_ede3_cbc
LBB0_13:
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_27
## %bb.14:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_EVP_CIPHER_CTX_set_padding
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movq	8(%r14), %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EVP_EncryptInit_ex
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movq	8(%r14), %rdi
	movq	%r12, %rsi
	callq	_EVP_CIPHER_CTX_set_key_length
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_EVP_EncryptInit_ex
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_24
## %bb.20:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_EVP_CIPHER_CTX_set_padding
	testl	%eax, %eax
	je	LBB0_24
## %bb.21:
	movq	(%r14), %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EVP_DecryptInit_ex
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_EVP_CIPHER_CTX_set_key_length
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movq	(%r14), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_EVP_DecryptInit_ex
	testl	%eax, %eax
	jne	LBB0_29
LBB0_24:
	movq	8(%r14), %rdi
	callq	_EVP_CIPHER_CTX_free
	movq	(%r14), %rdi
	jmp	LBB0_25
LBB0_18:
	movq	8(%r14), %rdi
LBB0_25:
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.26:
	callq	_EVP_CIPHER_CTX_free
LBB0_27:
	movq	%r14, %rdi
	callq	_os_free
LBB0_28:
	xorl	%r14d, %r14d
LBB0_29:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	callq	_EVP_aes_256_cbc
	jmp	LBB0_13
LBB0_8:
	xorl	%eax, %eax
	callq	_EVP_aes_192_cbc
	jmp	LBB0_13
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_cipher_init             ; -- Begin function crypto_cipher_init
	.p2align	2
_crypto_cipher_init:                    ; @crypto_cipher_init
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	mov	w0, #16
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_25
; %bb.1:
	sub	w8, w23, #128
	cmp	w8, #4
	b.hi	LBB0_24
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	bl	_EVP_rc4
	b	LBB0_11
LBB0_4:
	bl	_EVP_rc2_ecb
	b	LBB0_11
LBB0_5:
	bl	_EVP_des_cbc
	b	LBB0_11
LBB0_6:
	cmp	x22, #32
	b.eq	LBB0_26
; %bb.7:
	cmp	x22, #24
	b.eq	LBB0_27
; %bb.8:
	cmp	x22, #16
	b.ne	LBB0_24
; %bb.9:
	bl	_EVP_aes_128_cbc
	b	LBB0_11
LBB0_10:
	bl	_EVP_des_ede3_cbc
LBB0_11:
	mov	x23, x0
	bl	_EVP_CIPHER_CTX_new
	str	x0, [x19, #8]
	cbz	x0, LBB0_24
; %bb.12:
	mov	w1, #0
	bl	_EVP_CIPHER_CTX_set_padding
	cbz	w0, LBB0_22
; %bb.13:
	ldr	x0, [x19, #8]
	mov	x1, x23
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_EVP_EncryptInit_ex
	cbz	w0, LBB0_22
; %bb.14:
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_EVP_CIPHER_CTX_set_key_length
	cbz	w0, LBB0_22
; %bb.15:
	ldr	x0, [x19, #8]
	mov	x1, #0
	mov	x2, #0
	mov	x3, x21
	mov	x4, x20
	bl	_EVP_EncryptInit_ex
	cbz	w0, LBB0_22
; %bb.16:
	bl	_EVP_CIPHER_CTX_new
	str	x0, [x19]
	cbz	x0, LBB0_21
; %bb.17:
	mov	w1, #0
	bl	_EVP_CIPHER_CTX_set_padding
	cbz	w0, LBB0_21
; %bb.18:
	ldr	x0, [x19]
	mov	x1, x23
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_EVP_DecryptInit_ex
	cbz	w0, LBB0_21
; %bb.19:
	ldr	x0, [x19]
	mov	x1, x22
	bl	_EVP_CIPHER_CTX_set_key_length
	cbz	w0, LBB0_21
; %bb.20:
	ldr	x0, [x19]
	mov	x1, #0
	mov	x2, #0
	mov	x3, x21
	mov	x4, x20
	bl	_EVP_DecryptInit_ex
	cbnz	w0, LBB0_25
LBB0_21:
	ldr	x0, [x19, #8]
	bl	_EVP_CIPHER_CTX_free
	ldr	x0, [x19]
	cbnz	x0, LBB0_23
	b	LBB0_24
LBB0_22:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_24
LBB0_23:
	bl	_EVP_CIPHER_CTX_free
LBB0_24:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_25:
	mov	x0, x19
	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_26:
	bl	_EVP_aes_256_cbc
	b	LBB0_11
LBB0_27:
	bl	_EVP_aes_192_cbc
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
.subsections_via_symbols
