	.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, %r14
	movl	%edi, %ebx
	movl	$72, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r13
	movl	%ebx, (%rax)
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_8
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	cmpq	$5, %r12
	jae	LBB0_8
## %bb.4:
	movq	%r12, 56(%r13)
	movl	64(%r13), %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	jmp	LBB0_11
LBB0_16:
	cmpq	$8, %r12
	jne	LBB0_8
## %bb.17:
	movl	12(%r13), %edx
	movl	16(%r13), %esi
	movq	%r15, %rdi
	callq	_des_key_setup
	movl	8(%r13), %edi
	jmp	LBB0_15
LBB0_5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_aes_encrypt_init
	movq	%rax, 40(%r13)
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_aes_decrypt_init
	movq	%rax, 48(%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movl	32(%r13), %edi
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	jmp	LBB0_11
LBB0_13:
	cmpq	$24, %r12
	jne	LBB0_8
## %bb.14:
	movq	%r13, %rsi
	addq	$24, %rsi
	movq	%r15, %rdi
	callq	_des3_key_setup
	movl	20(%r13), %edi
LBB0_15:
	movq	%r14, %rsi
	movl	$8, %edx
LBB0_11:
	callq	_os_memcpy
	jmp	LBB0_12
LBB0_7:
	movq	40(%r13), %rdi
	callq	_aes_encrypt_deinit
LBB0_8:
	movq	%r13, %rdi
	callq	_os_free
LBB0_9:
	xorl	%r13d, %r13d
LBB0_12:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_16
	.long	L0_0_set_5
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
.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, #72
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_16
; %bb.1:
	str	w23, [x19]
	sub	w8, w23, #128
	cmp	w8, #3
	b.hi	LBB0_15
; %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:
	cmp	x22, #5
	b.hs	LBB0_15
; %bb.4:
	str	x22, [x19, #56]
	ldr	w0, [x19, #64]
	mov	x1, x21
	mov	x2, x22
	b	LBB0_13
LBB0_5:
	cmp	x22, #8
	b.ne	LBB0_15
; %bb.6:
	ldp	w2, w1, [x19, #12]
	mov	x0, x21
	bl	_des_key_setup
	ldr	w0, [x19, #8]
	b	LBB0_12
LBB0_7:
	mov	x0, x21
	mov	x1, x22
	bl	_aes_encrypt_init
	str	x0, [x19, #40]
	cbz	x0, LBB0_15
; %bb.8:
	mov	x0, x21
	mov	x1, x22
	bl	_aes_decrypt_init
	str	x0, [x19, #48]
	cbz	x0, LBB0_14
; %bb.9:
	ldr	w0, [x19, #32]
Lloh2:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x20
	b	LBB0_13
LBB0_10:
	cmp	x22, #24
	b.ne	LBB0_15
; %bb.11:
	add	x1, x19, #24
	mov	x0, x21
	bl	_des3_key_setup
	ldr	w0, [x19, #20]
LBB0_12:
	mov	x1, x20
	mov	w2, #8
LBB0_13:
	bl	_os_memcpy
	b	LBB0_16
LBB0_14:
	ldr	x0, [x19, #40]
	bl	_aes_encrypt_deinit
LBB0_15:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_16:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
.subsections_via_symbols
